dmitry Fri Jul 25 08:50:55 2008 UTC
Modified files: (Branch: PHP_5_3)
/php-src/ext/reflection php_reflection.c
Log:
Fixed uninitialized data
http://cvs.php.net/viewvc.cgi/php-src/ext/reflection/php_reflection.c?r1=1.164.2.33.2.45.2.23&r2=1.164.2.33.2.45.2.24&diff_format=u
Index: php-src/ext/reflection/php_reflection.c
diff -u php-src/ext/reflection/php_reflection.c:1.164.2.33.2.45.2.23
php-src/ext/reflection/php_reflection.c:1.164.2.33.2.45.2.24
--- php-src/ext/reflection/php_reflection.c:1.164.2.33.2.45.2.23 Fri Jul
25 08:45:09 2008
+++ php-src/ext/reflection/php_reflection.c Fri Jul 25 08:50:55 2008
@@ -20,7 +20,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: php_reflection.c,v 1.164.2.33.2.45.2.23 2008/07/25 08:45:09 tony2001
Exp $ */
+/* $Id: php_reflection.c,v 1.164.2.33.2.45.2.24 2008/07/25 08:50:55 dmitry Exp
$ */
#ifdef HAVE_CONFIG_H
#include "config.h"
@@ -1235,7 +1235,7 @@
fcc.initialized = 1;
fcc.function_handler = ce_ptr->constructor;
fcc.calling_scope = ce_ptr;
- fcc.called_scope = reflection_ptr;
+ fcc.called_scope = Z_OBJCE_P(reflector_ptr);
fcc.object_pp = &reflector_ptr;
result = zend_call_function(&fci, &fcc TSRMLS_CC);
@@ -5117,7 +5117,7 @@
php_info_print_table_start();
php_info_print_table_header(2, "Reflection", "enabled");
- php_info_print_table_row(2, "Version", "$Id: php_reflection.c,v
1.164.2.33.2.45.2.23 2008/07/25 08:45:09 tony2001 Exp $");
+ php_info_print_table_row(2, "Version", "$Id: php_reflection.c,v
1.164.2.33.2.45.2.24 2008/07/25 08:50:55 dmitry Exp $");
php_info_print_table_end();
} /* }}} */
--
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php