cvs: php-src(PHP_5_3) /ext/reflection php_reflection.c
| From: | Christian Seiler | Date: | Sun, 01 Feb 2009 15:06:20 +0000 |
| Subject: | cvs: php-src(PHP_5_3) /ext/reflection php_reflection.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-56040@lists.php.net to get a copy of this message | ||
cseiler Sun Feb 1 15:06:20 2009 UTC
Modified files: (Branch: PHP_5_3)
/php-src/ext/reflection php_reflection.c
Log:
Fixed regression of bug #46205, thanks to felipe for pointing this out.
http://cvs.php.net/viewvc.cgi/php-src/ext/reflection/php_reflection.c?r1=1.164.2.33.2.45.2.52&r2=1.164.2.33.2.45.2.53&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.52
php-src/ext/reflection/php_reflection.c:1.164.2.33.2.45.2.53
--- php-src/ext/reflection/php_reflection.c:1.164.2.33.2.45.2.52 Mon Jan 26 22:54:33 2009
+++ php-src/ext/reflection/php_reflection.c Sun Feb 1 15:06:19 2009
@@ -20,7 +20,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: php_reflection.c,v 1.164.2.33.2.45.2.52 2009/01/26 22:54:33 cseiler Exp $ */
+/* $Id: php_reflection.c,v 1.164.2.33.2.45.2.53 2009/02/01 15:06:19 cseiler Exp $ */
#ifdef HAVE_CONFIG_H
#include "config.h"
@@ -2077,6 +2077,9 @@
}
efree(fptr);
}
+ if (is_closure) {
+ zval_ptr_dtor(&reference);
+ }
_DO_THROW("The parameter specified by its offset could not be found");
/* returns out of this function */
}
@@ -2098,6 +2101,9 @@
}
efree(fptr);
}
+ if (is_closure) {
+ zval_ptr_dtor(&reference);
+ }
_DO_THROW("The parameter specified by its name could not be found");
/* returns out of this function */
}
@@ -5429,7 +5435,7 @@
php_info_print_table_start();
php_info_print_table_header(2, "Reflection", "enabled");
- php_info_print_table_row(2, "Version", "$Revision: 1.164.2.33.2.45.2.52 $");
+ php_info_print_table_row(2, "Version", "$Revision: 1.164.2.33.2.45.2.53 $");
php_info_print_table_end();
} /* }}} */
@@ -5443,7 +5449,7 @@
NULL,
NULL,
PHP_MINFO(reflection),
- "$Revision: 1.164.2.33.2.45.2.52 $",
+ "$Revision: 1.164.2.33.2.45.2.53 $",
STANDARD_MODULE_PROPERTIES
}; /* }}} */