From: cs at scanner dot de Operating system: linux suse PHP version: 4.3.11 PHP Bug Type: PCRE related Bug description: the modifier U works incorrectly
Description: ------------ preg_match_all('#<envelope>(.+)</envelope>#smiU',$ricxml,&$envelopes); i have a xml file around 40,5 MB huge. when i parse the text $ricxml through the preg_match_all fnc then the results will be empty arrays instead of arrays filled with the text. that means if i do not use the U modifier then p_m_a will find the first match. with the U modifier p_m_a will not find any matches. for command line: Configure Command => './configure' '--with-mysql=/usr/mysql' '--with-zlib' '--enable-sysvshm=yes' ' --enable-sysvsem=yes' '--enable-shmop=shared' '--with-config-file-path=/etc' '--enable-track-vars=ye s' '--enable-url-includes' '--with-gd=/usr/local' '--with-jpeg-dir=/usr/local/lib' '--with-pdflib=/u sr/local' '--with-zlib-dir=/usr/lib' '--enable-ftp' '--with-pear' '--with-openssl=/usr/local/openssl ' '--enable-calendar' '--with-crack=/usr/local' '--with-curl=/usr/local' '--enable-dbase' '--enable- dio' '--enable-exif' '--with-mcrypt=/usr/local' '--with-mhash=/usr/local' '--enable-sockets' '--enab le-wddx' '--enable-xml' '--disable-magic-quotes' '--enable-pcntl' '--with-mssql=/usr/local/freetds' Expected result: ---------------- array(4) { [0]=> array(1) { [0]=> string(41523804) "<Envelope> .... Actual result: -------------- without the U modifier preg_match_all('#<envelope>(.+)</envelope>#smi',$ricxml,&$envelopes); -- size of xml file: 41524017 Bytes array(2) { [0]=> array(0) { } [1]=> array(0) { } } -- Edit bug report at http://bugs.php.net/?id=33084&edit=1 -- Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=33084&r=trysnapshot4 Try a CVS snapshot (php5.0): http://bugs.php.net/fix.php?id=33084&r=trysnapshot50 Try a CVS snapshot (php5.1): http://bugs.php.net/fix.php?id=33084&r=trysnapshot51 Fixed in CVS: http://bugs.php.net/fix.php?id=33084&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=33084&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=33084&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=33084&r=needscript Try newer version: http://bugs.php.net/fix.php?id=33084&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=33084&r=support Expected behavior: http://bugs.php.net/fix.php?id=33084&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=33084&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=33084&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=33084&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=33084&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=33084&r=dst IIS Stability: http://bugs.php.net/fix.php?id=33084&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=33084&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=33084&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=33084&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=33084&r=mysqlcfg