Menu

#4 Using WACT with PHP5.1 RC1

open
nobody
None
5
2005-10-05
2005-10-05
m_pichler
No

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');

Discussion

  • m_pichler

    m_pichler - 2005-10-05
     
  • Bart van Bragt

    Bart van Bragt - 2005-10-05

    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.

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.