ZF2-241: Segment-Routing not working due to old PCRE-library

Issue Type: Bug Created: 2012-03-28T06:03:47.000+0000 Last Updated: 2012-03-30T05:56:42.000+0000 Status: Resolved Fix version(s): Reporter: Andreas Heigl (heiglandreas) Assignee: Ben Scholzen (dasprid) Tags: - Zend\Mvc\Router

Related issues: Attachments:


Using a Segment-Router with a rather current PHP-Version (5.3.8) compiled against an - admittedly really - old version of the PCRE-lib (6.6 from 2006) seems to fail.

The cause of that seems to be named matches that should work since PHP5.2.2 as stated at [1] but failed in the actual environment. (According to an example[3] that only works if compiled against PCRE 7.0) After changing all occurences of (?< to (?P< routing works as expected.

So as long as there are no speed issues speaking against it, all named matches should be coded using the "old-fashioned" way as no one seems to be able to guarantee a working PHP-Version even after 5.2.2.

A phpinfo of the actual system can be found here[2].

[1]… [2] [3]…


Posted by Andreas Heigl (heiglandreas) on 2012-03-30T05:56:42.000+0000

Resolved with Merged Pull-Request #976

Have you found an issue?

See the Overview section for more details.


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

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