The program
<?php
class T
{
var $A;
} // class T
$Cur=new T();
$Cur->A='test';
$Cur->B='test';
?>
Runs without error, but I expect an error when referencing undefined property B.
I've searched the Web and cannot find an explanation.
The program
<?php
class T
{
var $A;
} // class T
$Cur=new T();
$Cur->A='test';
$Cur->B='test';
?>
Runs without error, but I expect an error when referencing undefined property B.
I've searched the Web and cannot find an explanation.