ID:               36553
 Updated by:       [EMAIL PROTECTED]
 Reported By:      php at kaiundina dot de
-Status:           Open
+Status:           Bogus
 Bug Type:         PCRE related
 Operating System: different
 PHP Version:      5.1.2
 New Comment:

Please report this issue to PCRE library author.
You can also try to compile PHP against external PCRE lib (grab the
latest version from pcre.org), the issue may have been already fixed
there.


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

[2006-02-27 23:38:00] php at kaiundina dot de

Description:
------------
The statement in the reproduce code simply crashes my server (Win XP
Pro, Apache 2, PHP 5.1.0, default-charset UTF 8) and that of my
webhoster (Linux, Apache 2, PHP 5.1.2, default-charset Latin1) -
time_limit, which is set to 30 s seems not to work.

Executing the script via CLI produces the same result (but can be
cancelled by Ctrl-C)

The snipped shall look for adjacent blocks, each persisting of  a
separator character followed by one or more characters that aren't
control- or separator-characters.

Crashing is independent of the $aName-value and the result, the match
would produce.

The example is stripped down from a bigger pattern - always having to
kill the webserver after each test is quite annoying :(

Reproduce code:
---------------
<?php

$aName = 'My Name';
preg_match('/^(\\p{Z}[^\\p{C}\\p{Z}]+)*$/', $aName);

?>


Expected result:
----------------
just nothing happens - the function returns and drops its result (false
in this case, but doesn't matter)

Actual result:
--------------
Server "crashes": CPU usage is at 100% and Apache doesn't respond to a
restart (php compiled as module).


------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=36553&edit=1

Reply via email to