I just updated from php5.6.27-1 to php7.0.13-1 . A previously working script
now segfaults and the stackdump isn't terribly helpful in tracing the issue:
$ cat php.exe.stackdump
Exception: STATUS_ACCESS_VIOLATION at eip=FFBC0008
eax=80155DA0 ebx=80165AC8 ecx=00289080 edx=0004 esi=FFBC0008 ed
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.
Sent using
It's more serious than I thought as ANY use of preg_match causes the
segfaulting, even in interactive mode.
$ php -a
Interactive shell
php > $msg="!Hello"; if ( preg_match('#^!Hello\b#', $msg) ) echo "wee";
Segmentation fault (core dumped)
php > if ( preg_match('/d/', 'dba') ) echo "wee";
Segmen
I can revert to php5 (insecure) and the problem is gone. I just performed a
full rebase which did nothing for this problem. Are you saying that on a
Windows 7 64 bit Home system with 32 bit cygwin you are not having any issues?
I found a solution that is not really satisfying. If I go into Win
4 matches
Mail list logo