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:
@@ -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
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user