dmitry Wed Jun 25 12:18:22 2008 UTC
Modified files: (Branch: PHP_5_2)
/php-src NEWS
/php-src/main main.c php_ticks.c php_ticks.h
Log:
Fixed bug #45352 (Segmentation fault because of tick function on second
request)
http://cvs.php.net/viewvc.cgi/php-src/NEWS?r1=1.2027.2.547.2.1165&r2=1.2027.2.547.2.1166&diff_format=u
Index: php-src/NEWS
diff -u php-src/NEWS:1.2027.2.547.2.1165 php-src/NEWS:1.2027.2.547.2.1166
--- php-src/NEWS:1.2027.2.547.2.1165 Thu Jun 19 12:09:21 2008
+++ php-src/NEWS Wed Jun 25 12:18:21 2008
@@ -8,6 +8,8 @@
functions. (Andrey)
- Fixed a bug where exec() on Windows would eat the first and last double
quotes
(Scott)
+- Fixed bug #45352 (Segmentation fault because of tick function on second
+ request). (Dmitry)
- Fixed bug #45312 (Segmentation fault on second request for array functions).
(Dmitry)
- Fixed bug #45251 (double free or corruption with setAttributeNode()). (Rob)
http://cvs.php.net/viewvc.cgi/php-src/main/main.c?r1=1.640.2.23.2.62&r2=1.640.2.23.2.63&diff_format=u
Index: php-src/main/main.c
diff -u php-src/main/main.c:1.640.2.23.2.62 php-src/main/main.c:1.640.2.23.2.63
--- php-src/main/main.c:1.640.2.23.2.62 Wed Mar 5 20:58:08 2008
+++ php-src/main/main.c Wed Jun 25 12:18:21 2008
@@ -18,7 +18,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: main.c,v 1.640.2.23.2.62 2008/03/05 20:58:08 pajoye Exp $ */
+/* $Id: main.c,v 1.640.2.23.2.63 2008/06/25 12:18:21 dmitry Exp $ */
/* {{{ includes
*/
@@ -1435,6 +1435,8 @@
EG(opline_ptr) = NULL;
EG(active_op_array) = NULL;
+ php_deactivate_ticks(TSRMLS_C);
+
/* 1. Call all possible shutdown functions registered with
register_shutdown_function() */
if (PG(modules_activated)) zend_try {
php_call_shutdown_functions(TSRMLS_C);
http://cvs.php.net/viewvc.cgi/php-src/main/php_ticks.c?r1=1.20.2.1.2.2&r2=1.20.2.1.2.3&diff_format=u
Index: php-src/main/php_ticks.c
diff -u php-src/main/php_ticks.c:1.20.2.1.2.2
php-src/main/php_ticks.c:1.20.2.1.2.3
--- php-src/main/php_ticks.c:1.20.2.1.2.2 Mon Dec 31 07:20:15 2007
+++ php-src/main/php_ticks.c Wed Jun 25 12:18:22 2008
@@ -16,7 +16,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: php_ticks.c,v 1.20.2.1.2.2 2007/12/31 07:20:15 sebastian Exp $ */
+/* $Id: php_ticks.c,v 1.20.2.1.2.3 2008/06/25 12:18:22 dmitry Exp $ */
#include "php.h"
#include "php_ticks.h"
@@ -27,6 +27,11 @@
return SUCCESS;
}
+void php_deactivate_ticks(TSRMLS_D)
+{
+ zend_llist_clean(&PG(tick_functions));
+}
+
void php_shutdown_ticks(TSRMLS_D)
{
zend_llist_destroy(&PG(tick_functions));
http://cvs.php.net/viewvc.cgi/php-src/main/php_ticks.h?r1=1.14.2.1.2.2&r2=1.14.2.1.2.3&diff_format=u
Index: php-src/main/php_ticks.h
diff -u php-src/main/php_ticks.h:1.14.2.1.2.2
php-src/main/php_ticks.h:1.14.2.1.2.3
--- php-src/main/php_ticks.h:1.14.2.1.2.2 Mon Dec 31 07:20:15 2007
+++ php-src/main/php_ticks.h Wed Jun 25 12:18:22 2008
@@ -16,12 +16,13 @@
+----------------------------------------------------------------------+
*/
-/* $Id: php_ticks.h,v 1.14.2.1.2.2 2007/12/31 07:20:15 sebastian Exp $ */
+/* $Id: php_ticks.h,v 1.14.2.1.2.3 2008/06/25 12:18:22 dmitry Exp $ */
#ifndef PHP_TICKS_H
#define PHP_TICKS_H
int php_startup_ticks(TSRMLS_D);
+void php_deactivate_ticks(TSRMLS_D);
void php_shutdown_ticks(TSRMLS_D);
void php_run_ticks(int count);
--
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php