-Tiny fix

This commit is contained in:
Andi Gutmans 1999-07-29 04:03:03 +00:00
parent 7d0715d53d
commit e3246872e3
2 changed files with 3 additions and 2 deletions

View File

@ -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;

View File

@ -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;