Skip to content

Commit 0df9b51

Browse files
committed
Return meaningful value
1 parent 9b61479 commit 0df9b51

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

Zend/tests/overloaded_func_002.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,4 @@ $a = new _ZendTestClass();
1010
var_dump($a->{trim(" test")}());
1111
?>
1212
--EXPECT--
13-
NULL
13+
string(4) "test"

Zend/zend_builtin_functions.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -302,6 +302,7 @@ static zend_function *zend_test_class_static_method_get(zend_class_entry *ce, ze
302302
/* }}} */
303303

304304
static int zend_test_class_call_method(zend_string *method, zend_object *object, INTERNAL_FUNCTION_PARAMETERS) /* {{{ */ {
305+
RETVAL_STR(zend_string_copy(method));
305306
return 0;
306307
}
307308
/* }}} */

0 commit comments

Comments
 (0)