From: kaiser at macbureau dot de
Operating system: FreeBSD 7
PHP version: 5.2.6
PHP Bug Type: Apache2 related
Bug description: PCRE with utf8 kill apache childprocess
Description:
------------
PCRE with utf8 (Typo3 Mailform) kills apache childprocess. With the
following entry in apache errorlog on FreeBSD 7 with Apache 2.2.8:
[notice] child pid 6709 exit signal Illegal instruction (4)
Output of ulimit -a:
core file size (blocks, -c) unlimited
data seg size (kbytes, -d) 33554432
file size (blocks, -f) unlimited
max locked memory (kbytes, -l) unlimited
max memory size (kbytes, -m) unlimited
open files (-n) 11095
pipe size (512 bytes, -p) 1
stack size (kbytes, -s) 524288
cpu time (seconds, -t) unlimited
max user processes (-u) 5547
virtual memory (kbytes, -v) unlimite
Reproduce code:
---------------
#!/usr/local/bin/php
<?php
function is_utf8($str) {
return
(preg_match('/^([\x00-\x7f]|[\xc2-\xdf][\x80-\xbf]|\xe0[\
}
$i=0;
$str = '';
while ($i<5000) {
$str .= 'a';
$i++;
}
is_utf8($str);
?>
--
Edit bug report at http://bugs.php.net/?id=45546&edit=1
--
Try a CVS snapshot (PHP 5.2):
http://bugs.php.net/fix.php?id=45546&r=trysnapshot52
Try a CVS snapshot (PHP 5.3):
http://bugs.php.net/fix.php?id=45546&r=trysnapshot53
Try a CVS snapshot (PHP 6.0):
http://bugs.php.net/fix.php?id=45546&r=trysnapshot60
Fixed in CVS: http://bugs.php.net/fix.php?id=45546&r=fixedcvs
Fixed in release:
http://bugs.php.net/fix.php?id=45546&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=45546&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=45546&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=45546&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=45546&r=support
Expected behavior: http://bugs.php.net/fix.php?id=45546&r=notwrong
Not enough info:
http://bugs.php.net/fix.php?id=45546&r=notenoughinfo
Submitted twice:
http://bugs.php.net/fix.php?id=45546&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=45546&r=globals
PHP 4 support discontinued: http://bugs.php.net/fix.php?id=45546&r=php4
Daylight Savings: http://bugs.php.net/fix.php?id=45546&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=45546&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=45546&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=45546&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=45546&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=45546&r=mysqlcfg