1
0
mirror of https://github.com/php/php-src.git synced 2026-04-29 19:23:22 +02:00

MFH Fix #44424 (Extending PDO/MySQL class with a __call() function doesn't work)

This commit is contained in:
Johannes Schlüter
2008-09-16 23:37:35 +00:00
parent 03f74b711e
commit 0f6e281034
2 changed files with 9 additions and 3 deletions
+2
View File
@@ -102,6 +102,8 @@ PHP NEWS
(Hannes)
- Fixed bug #44617 (wrong HTML entity output when substitute_character=entity).
(Moriyoshi)
- Fixed bug #44425 (Extending PDO/MySQL class with a __call() function doesn't
work). (Johannes)
- Fixed bug #44246 (closedir() accepts a file resource opened by fopen()).
(Dmitry, Tony)
- Fixed bug #44127 (UNIX abstract namespace socket connect does not work).
+7 -3
View File
@@ -1291,9 +1291,7 @@ static union _zend_function *dbh_method_get(
if (zend_hash_find(dbh->cls_methods[PDO_DBH_DRIVER_METHOD_KIND_DBH],
lc_method_name, method_len+1, (void**)&fbc) == FAILURE) {
if (std_object_handlers.get_method) {
fbc = std_object_handlers.get_method(object_pp, lc_method_name, method_len TSRMLS_CC);
}
if (!fbc) {
fbc = NULL;
}
@@ -1304,6 +1302,12 @@ static union _zend_function *dbh_method_get(
}
out:
if (!fbc) {
if (std_object_handlers.get_method) {
fbc = std_object_handlers.get_method(object_pp, lc_method_name, method_len TSRMLS_CC);
}
}
efree(lc_method_name);
return fbc;
}