note 118538 added to pcre.constants

From: Date: Wed, 23 Dec 2015 10:41:56 +0000
Subject: note 118538 added to pcre.constants
Groups: php.notes 
Request: Send a blank email to php-notes+get-204525@lists.php.net to get a copy of this message
The new PREG_JIT_STACKLIMIT_ERROR constant introduced with PHP 7.0.0 has got a value of 6. I experienced this error code when parsing a 112KB file. preg_match_all failed with this error. Interesting was: The matches array contained some entries, but not all as the command failed (I missed to check the return value). Unfortunately you can not configure the stack-size of the PCRE JIT. The only way out was - at least for me - to disable the PCRE JIT via php.ini (pcre.jit=0). ---- Server IP: 72.52.91.14 Probable Submitter: 213.235.245.210 ---- Manual Page -- http://php.net/manual/en/pcre.constants.php Edit -- https://master.php.net/note/edit/118538 Del: integrated -- https://master.php.net/note/delete/118538/integrated Del: useless -- https://master.php.net/note/delete/118538/useless Del: bad code -- https://master.php.net/note/delete/118538/bad+code Del: spam -- https://master.php.net/note/delete/118538/spam Del: non-english -- https://master.php.net/note/delete/118538/non-english Del: in docs -- https://master.php.net/note/delete/118538/in+docs Del: other reasons-- https://master.php.net/note/delete/118538 Reject -- https://master.php.net/note/reject/118538 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#204525) next »