The attached patch allows using the latest WACT cvs
snapshot with PHP 5.1 RC1.
All unit tests that run correctly with PHP 4.3.10 will
also run with the patched version, except
cases/template/tags/data_table_tag.test.php. This test
fails because the SPL EmptyIterator throws an
Exception, if you try to access its properties.
And there is a second strange behaviour with simple
test and mock objects. If you try to execute the
following example the zend engine says you have to
implement the interface Traversable.
Mock::generate('ErrorList');
But if you declare a new ErrorList class and change the
method call, everything works fine.
if (!class_exists('TmpErrorList')) {
class TmpErrorList extends ErrorList {}
}
Mock::generate('TmpErrorList', 'MockErrorList');
Logged In: YES
user_id=30196
Just (very quickly) skimmed the patch but IMO most of those
issues won't need fixing because 5.1RC2 is going to contain
a fix for most of the reference related problems.