Minor Zend Engine Niggle

From: Date: Mon, 17 May 2004 18:15:11 +0000
Subject: Minor Zend Engine Niggle
Groups: php.internals 
Request: Send a blank email to internals+get-9902@lists.php.net to get a copy of this message
ive noticed in all the OOP extensions callbacks for properties that the "member" (property name) is not guaranteed to be a string zval. is there a reason for this, given that any other type should have choked the lexer in the first place ? even if not, then can the casting be done in the engine as opposed to the extensions ? what im referring to is the common idiom if (member->type != IS_STRING) { tmp_member = *member; zval_copy_ctor(&tmp_member); convert_to_string(&tmp_member); member = &tmp_member; } ...... if (member == &tmp_member) { zval_dtor(member); } in read_property and write_property handlers. l0t3k

« previous php.internals (#9902) next »