In the meanwhile, if any of your scripts break because of my fix please let me know.
Andi
At 08:53 PM 12/1/2003 +0200, Jani Taskinen wrote:
This script:
<?php
class A { function NotAConstructor(){ if(isset($this->x)){ //just for demo } } }
$t=new A(); var_dump($t);
?>
Output with php4:
object(a)(0) { }
Output with php5:
object(a)#1 (1) { ["x"]=> NULL }
The property x gets created by that check if it exists in the class.. Pretty high WTF factor IMO. And someone might rely that a property STAYS unset even if they happen to check it in their methods.
--Jani
-- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php