Bug #1222 Updated: $this point does not contain function list

From: Date: Sat, 13 Mar 1999 13:34:43 +0000
Subject: Bug #1222 Updated: $this point does not contain function list
Groups: php.dev 
Request: Send a blank email to php-dev+get-4603@lists.php.net to get a copy of this message
ID: 1222 Updated by: sas Reported By: jonsmirl@mediaone.net Status: Closed Bug Type: Other Assigned To: Comments: You are not resetting the object properly. This works: class Object { function checkme($obj) { reset($obj); while(list($key, $val) = each($obj)) { printf("AA %s => %s (%s)\n", $key, $val, gettype($val)); } reset($this); while(list($key, $val) = each($this)) { printf("BB %s => %s (%s)\n", $key, $val, gettype($val)); } } } $obj = new Object; $obj->checkme($obj); Full Bug description available at: http://ca.php.net/bugs.php3?id=1222 -- PHP Development Mailing List http://www.php.net/ To unsubscribe send an empty message to php-dev-unsubscribe@lists.php.net For help: php-dev-help@lists.php.net

« previous php.dev (#4603) next »