diff --git a/Zend/tests/bug48770.phpt b/Zend/tests/bug48770.phpt index e96047c79be33..13ff963d0677e 100644 --- a/Zend/tests/bug48770.phpt +++ b/Zend/tests/bug48770.phpt @@ -1,53 +1,34 @@ --TEST-- Bug #48770 (call_user_func_array() fails to call parent from inheriting class) ---XFAIL-- -See Bug #48770 --FILE-- func('This should work!'); +$c->callFuncInParent('Which function will be called??'); ?> --EXPECT-- -string(26) "A::func: This should work!" +B::func called diff --git a/Zend/tests/bug48770_2.phpt b/Zend/tests/bug48770_2.phpt index b8f88445f8189..f3bfffcba6e8a 100644 --- a/Zend/tests/bug48770_2.phpt +++ b/Zend/tests/bug48770_2.phpt @@ -1,7 +1,5 @@ --TEST-- Bug #48770 (call_user_func_array() fails to call parent from inheriting class) ---XFAIL-- -See Bug #48770 --FILE-- func('This should work!'); ?> --EXPECT-- -string(27) "A::func2: This should work!" -string(27) "A::func3: This should work!" -call_user_func_array(): Argument #1 ($function) must be a valid callback, cannot access private method A::func22() -call_user_func_array(): Argument #1 ($function) must be a valid callback, class 'A' does not have a method 'inexistent' +string(27) "B::func2: This should work!" +string(27) "B::func3: This should work!" +call_user_func_array(): Argument #1 ($function) must be a valid callback, cannot access private method B::func22() +call_user_func_array(): Argument #1 ($function) must be a valid callback, class 'B' does not have a method 'inexistent' diff --git a/Zend/tests/bug48770_3.phpt b/Zend/tests/bug48770_3.phpt index 0ce0d6911987a..f2b537363b560 100644 --- a/Zend/tests/bug48770_3.phpt +++ b/Zend/tests/bug48770_3.phpt @@ -1,7 +1,5 @@ --TEST-- Bug #48770 (call_user_func_array() fails to call parent from inheriting class) ---XFAIL-- -See Bug #48770 --FILE-- func('This should work!'); --EXPECT-- string(27) "B::func2: This should work!" string(27) "B::func3: This should work!" -call_user_func_array(): Argument #1 ($function) must be a valid callback, class 'B' does not have a method 'inexistent' +call_user_func_array(): Argument #1 ($function) must be a valid callback, class 'C' does not have a method 'inexistent'