Issues

ZF-10371: Zend_Loader_AutoloaderTest: should run in PHP 5.2.x

Issue Type: Unit Tests: Problem Created: 2010-08-23T12:17:02.000+0000 Last Updated: 2010-09-18T12:57:59.000+0000 Status: Resolved Fix version(s): - 1.11.0 (02/Nov/10)

Reporter: Benoît Durand (intiilapa) Assignee: Ramon Henrique Ornelas (ramon) Tags: - Zend_Loader

Related issues: - ZF-10134

Attachments:

Description

We can not run Zend_Loader_AutoloaderTest (and AllTests.php in fact), because the testClosuresRegisteredWithAutoloaderShouldBeUtilized() method use a closure. A closure in PHP 5.2.x is a syntax error. And, you can't skip a syntax error with "version_compare(PHP_VERSION, '5.3.0', '<'))".

$ phpunit --colors tests/Zend/Loader/AutoloaderTest.php PHP Parse error: syntax error, unexpected T_FUNCTION, expecting ')' in /zf-svn/tests/Zend/Loader/AutoloaderTest.php on line 394

Comments

Posted by Ramon Henrique Ornelas (ramon) on 2010-08-23T12:45:23.000+0000

Hi Benoît

I think that [~thomas] reported problem similar.

Posted by Ramon Henrique Ornelas (ramon) on 2010-08-23T12:50:28.000+0000

Here is the issue ZF-10134.

Posted by Ramon Henrique Ornelas (ramon) on 2010-09-18T12:57:59.000+0000

Fixed with r22969.

Have you found an issue?

See the Overview section for more details.

Copyright

© 2006-2016 by Zend, a Rogue Wave Company. Made with by awesome contributors.

This website is built using zend-expressive and it runs on PHP 7.

Contacts