This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: php 7 upgrade -- segmentation fault


On 2016-11-29 11:50, 59yfvs+f4bkzvgzw at guerrillamail.com wrote:
I've isolated the issue to a regular expression match!

This line:
$command = ( preg_match('#^(?:\:.*? )?(.*?) #', $buffer, $matches) ) ? $matches[1] : '';

causes the segfaulting.  BUT WHY? Again this worked fine in php5.x . There is
something broken with PCRE in this build.

I don't think so. I tried the preg_match() examples in the manual and they worked fine. Are you sure there isn't something else in your script that needs to updated for 7.0? Otherwise, please provide an STC which replicates this.

--
Yaakov

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]