ID:               33084
 Updated by:       [EMAIL PROTECTED]
 Reported By:      cs at scanner dot de
-Status:           Open
+Status:           Feedback
 Bug Type:         PCRE related
 Operating System: linux suse
 PHP Version:      4.3.11
 New Comment:

Thank you for this bug report. To properly diagnose the problem, we
need a short but complete example script to be able to reproduce
this bug ourselves. 

A proper reproducing script starts with <?php and ends with ?>,
is max. 10-20 lines long and does not require any external 
resources such as databases, etc.

If possible, make the script source available online and provide
an URL to it here. Try to avoid embedding huge scripts into the report.




Previous Comments:
------------------------------------------------------------------------

[2005-05-20 16:48:15] cs at scanner dot de

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 this bug report at http://bugs.php.net/?id=33084&edit=1

Reply via email to