cvs: php-src(PHP_5_3) / NEWS /ext/reflection php_reflection.c /ext/reflection/tests bug43926.phpt
| From: | Felipe Pena | Date: | Wed, 30 Jan 2008 10:27:30 +0000 |
| Subject: | cvs: php-src(PHP_5_3) / NEWS /ext/reflection php_reflection.c /ext/reflection/tests bug43926.phpt | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-48160@lists.php.net to get a copy of this message | ||
felipe Wed Jan 30 10:27:30 2008 UTC
Added files: (Branch: PHP_5_3)
/php-src/ext/reflection/tests bug43926.phpt
Modified files:
/php-src/ext/reflection php_reflection.c
/php-src NEWS
Log:
Fixed Bug#43926 (isInstance() isn't equivalent to instanceof operator)
http://cvs.php.net/viewvc.cgi/php-src/ext/reflection/php_reflection.c?r1=1.164.2.33.2.45.2.7&r2=1.164.2.33.2.45.2.8&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.7
php-src/ext/reflection/php_reflection.c:1.164.2.33.2.45.2.8
--- php-src/ext/reflection/php_reflection.c:1.164.2.33.2.45.2.7 Wed Jan 16 14:21:07 2008
+++ php-src/ext/reflection/php_reflection.c Wed Jan 30 10:27:28 2008
@@ -20,7 +20,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: php_reflection.c,v 1.164.2.33.2.45.2.7 2008/01/16 14:21:07 helly Exp $ */
+/* $Id: php_reflection.c,v 1.164.2.33.2.45.2.8 2008/01/30 10:27:28 felipe Exp $ */
#ifdef HAVE_CONFIG_H
#include "config.h"
@@ -3402,7 +3402,7 @@
return;
}
GET_REFLECTION_OBJECT_PTR(ce);
- RETURN_BOOL(ce == Z_OBJCE_P(object));
+ RETURN_BOOL(HAS_CLASS_ENTRY(*object) && instanceof_function(Z_OBJCE_P(object), ce));
}
/* }}} */
@@ -4913,7 +4913,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.7
2008/01/16 14:21:07 helly Exp $");
+ php_info_print_table_row(2, "Version", "$Id: php_reflection.c,v 1.164.2.33.2.45.2.8
2008/01/30 10:27:28 felipe Exp $");
php_info_print_table_end();
} /* }}} */
http://cvs.php.net/viewvc.cgi/php-src/NEWS?r1=1.2027.2.547.2.965.2.100&r2=1.2027.2.547.2.965.2.101&diff_format=u
Index: php-src/NEWS
diff -u php-src/NEWS:1.2027.2.547.2.965.2.100 php-src/NEWS:1.2027.2.547.2.965.2.101
--- php-src/NEWS:1.2027.2.547.2.965.2.100 Wed Jan 30 09:41:11 2008
+++ php-src/NEWS Wed Jan 30 10:27:28 2008
@@ -240,6 +240,7 @@
- Fixed PECL bug #11216 (crash in ZipArchive::addEmptyDir when a directory
already exists). (Pierre)
+- Fixed bug #43926 (isInstance() isn't equivalent to instanceof operator). (Marcus)
- Fixed bug #42368 (Incorrect error message displayed by pg_escape_string).
(Ilia)
- Fixed bug #42365 (glob() crashes and/or accepts way too many flags).
http://cvs.php.net/viewvc.cgi/php-src/ext/reflection/tests/bug43926.phpt?view=markup&rev=1.1
Index: php-src/ext/reflection/tests/bug43926.phpt
+++ php-src/ext/reflection/tests/bug43926.phpt