empty() and property-less objects

php.internals

Brad Bulger

23 years ago
excuse question, but it seemed too trivial for a bug report. for class foo {}, $x = new foo;, in php4 empty($x) is true. in php5, empty($x) is false. is this correct?