<?php
class foo
{
$something = 1;
function __construct()
{}
}
$f = new foo();
?> yielded the same as yours, but this worked:
<?php
class foo
{
public $something = 1;
function __construct()
{
}
}
$f = new foo();
?> Maybe PHP now requires access modifiers for variables?
[edit:] confirmed:
Quote:
|
Originally Posted by http://us3.php.net/manual/en/language.oop5.visibility.php
Class members must be defined with public, private, or protected.
|