cvs: /php4/ext/standard basic_functions.c /php4/tests testobj

From: Date: Thu, 29 Jul 1999 04:03:03 +0000
Subject: cvs: /php4/ext/standard basic_functions.c /php4/tests testobj
Groups: php.version4 
Request: Send a blank email to php-version4+get-2938@lists.php.net to get a copy of this message
andi Thu Jul 29 00:03:03 1999 EDT Modified files: /php4/ext/standard basic_functions.c /php4/tests testobj Log: -Tiny fix Index: php4/ext/standard/basic_functions.c diff -u php4/ext/standard/basic_functions.c:1.62 php4/ext/standard/basic_functions.c:1.63 --- php4/ext/standard/basic_functions.c:1.62 Wed Jul 28 23:48:29 1999 +++ php4/ext/standard/basic_functions.c Thu Jul 29 00:03:03 1999 @@ -1670,7 +1670,7 @@ 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; Index: php4/tests/testobj diff -u php4/tests/testobj:1.3 php4/tests/testobj:1.4 --- php4/tests/testobj:1.3 Wed Jul 28 13:58:38 1999 +++ php4/tests/testobj Thu Jul 29 00:03:03 1999 @@ -14,7 +14,8 @@ }; } -$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;

« previous php.version4 (#2938) next »