mirror of
https://github.com/php/php-src.git
synced 2024-09-21 18:07:23 +00:00
-Tiny fix
This commit is contained in:
parent
7d0715d53d
commit
e3246872e3
@ -1670,7 +1670,7 @@ PHP_FUNCTION(method_exists)
|
||||
RETURN_FALSE;
|
||||
}
|
||||
convert_to_string(arg2);
|
||||
if(zend_hash_exists(&arg1->value.obj.ce->function_table, arg2->value.str.val, arg2->value.str.len+1) {
|
||||
if(zend_hash_exists(&arg1->value.obj.ce->function_table, arg2->value.str.val, arg2->value.str.len+1)) {
|
||||
RETURN_TRUE;
|
||||
} else {
|
||||
RETURN_FALSE;
|
||||
|
@ -14,7 +14,8 @@ class barbara extends foobar {
|
||||
};
|
||||
}
|
||||
|
||||
$foo = new foobar; // or die("Unable to construct foobar\n");
|
||||
$name = "foobar";
|
||||
$foo = new $name; // or die("Unable to construct foobar\n");
|
||||
//print $foo->initialized;
|
||||
|
||||
$boo = new barbara;
|
||||
|
Loading…
Reference in New Issue
Block a user