Professional Web Applications Themes

#26171 [Opn->Fbk]: using /(a)+/ to match a long string makes php crash - PHP Development

ID: 26171 Updated by: [email]iliaaphp.net[/email] Reported By: xuefer at 21cn dot com -Status: Open +Status: Feedback Bug Type: PCRE related Operating System: win PHP Version: 4.3.4 New Comment: Please try using this CVS snapshot: [url]http://snaps.php.net/php4-STABLE-latest.tar.gz[/url] For Windows: [url]http://snaps.php.net/win32/php4-win32-STABLE-latest.zip[/url] Works fine here with PHP4 & PHP5. Previous Comments: ------------------------------------------------------------------------ [2003-11-07 22:53:28] xuefer at 21cn dot com Description: ------------ if just crash Reproduce code: --------------- <?php preg_match('/(aa)+/', str_repeat('a', 1000)); ?> ------------------------------------------------------------------------ -- Edit this bug report at [url]http://bugs.php.net/?id=26171&edit=1[/url]...

  1. #1

    Default #26171 [Opn->Fbk]: using /(a)+/ to match a long string makes php crash

    ID: 26171
    Updated by: [email]iliaaphp.net[/email]
    Reported By: xuefer at 21cn dot com
    -Status: Open
    +Status: Feedback
    Bug Type: PCRE related
    Operating System: win
    PHP Version: 4.3.4
    New Comment:

    Please try using this CVS snapshot:

    [url]http://snaps.php.net/php4-STABLE-latest.tar.gz[/url]

    For Windows:

    [url]http://snaps.php.net/win32/php4-win32-STABLE-latest.zip[/url]

    Works fine here with PHP4 & PHP5.


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

    [2003-11-07 22:53:28] xuefer at 21cn dot com

    Description:
    ------------
    if just crash

    Reproduce code:
    ---------------
    <?php
    preg_match('/(aa)+/', str_repeat('a', 1000));
    ?>



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


    --
    Edit this bug report at [url]http://bugs.php.net/?id=26171&edit=1[/url]
    iliaa@php.net Guest

  2. #2

    Default #26171 [Opn->Fbk]: using /(a)+/ to match a long string makes php crash

    ID: 26171
    Updated by: [email]iliaaphp.net[/email]
    Reported By: xuefer at 21cn dot com
    -Status: Open
    +Status: Feedback
    Bug Type: PCRE related
    Operating System: win
    PHP Version: 4.3.4
    New Comment:

    Do you have memory limit enabled?


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

    [2003-11-08 13:20:23] xuefer at 21cn dot com

    apache2
    [Sun Nov 09 02:20:30 2003] [notice] Parent: child process exited with
    status 128 -- Restarting.
    still crashing

    but what system did u pass the test?

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

    [2003-11-08 12:50:57] [email]iliaaphp.net[/email]

    Please try using this CVS snapshot:

    [url]http://snaps.php.net/php4-STABLE-latest.tar.gz[/url]

    For Windows:

    [url]http://snaps.php.net/win32/php4-win32-STABLE-latest.zip[/url]

    Works fine here with PHP4 & PHP5.

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

    [2003-11-07 22:53:28] xuefer at 21cn dot com

    Description:
    ------------
    if just crash

    Reproduce code:
    ---------------
    <?php
    preg_match('/(aa)+/', str_repeat('a', 1000));
    ?>



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


    --
    Edit this bug report at [url]http://bugs.php.net/?id=26171&edit=1[/url]
    iliaa@php.net Guest

  3. #3

    Default #26171 [Opn->Fbk]: using /(a)+/ to match a long string makes php crash

    ID: 26171
    Updated by: [email]iliaaphp.net[/email]
    Reported By: xuefer at 21cn dot com
    -Status: Open
    +Status: Feedback
    Bug Type: PCRE related
    Operating System: win
    PHP Version: 4.3.4
    New Comment:

    Try raising the memory limit to 20-30 megs.


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

    [2003-11-10 21:31:34] xuefer at 21cn dot com

    ;;;;;;;;;;;;;;;;;;;
    ; Resource Limits ;
    ;;;;;;;;;;;;;;;;;;;

    max_execution_time = 30 ; Maximum execution time of each script, in
    seconds
    max_input_time = 60 ; Maximum amount of time each script may spend
    parsing request data
    memory_limit = 8M ; Maximum amount of memory a script may consume
    (8MB)

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

    [2003-11-10 20:14:19] [email]iliaaphp.net[/email]

    Do you have memory limit enabled?

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

    [2003-11-08 13:20:23] xuefer at 21cn dot com

    apache2
    [Sun Nov 09 02:20:30 2003] [notice] Parent: child process exited with
    status 128 -- Restarting.
    still crashing

    but what system did u pass the test?

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

    [2003-11-08 12:50:57] [email]iliaaphp.net[/email]

    Please try using this CVS snapshot:

    [url]http://snaps.php.net/php4-STABLE-latest.tar.gz[/url]

    For Windows:

    [url]http://snaps.php.net/win32/php4-win32-STABLE-latest.zip[/url]

    Works fine here with PHP4 & PHP5.

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

    [2003-11-07 22:53:28] xuefer at 21cn dot com

    Description:
    ------------
    if just crash

    Reproduce code:
    ---------------
    <?php
    preg_match('/(aa)+/', str_repeat('a', 1000));
    ?>



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


    --
    Edit this bug report at [url]http://bugs.php.net/?id=26171&edit=1[/url]
    iliaa@php.net Guest

Similar Threads

  1. Flash9.ocx makes IE7 Final Crash!
    By Superman75 in forum Macromedia Flash Player
    Replies: 7
    Last Post: November 12th, 08:04 PM
  2. Replies: 0
    Last Post: November 17th, 11:26 PM
  3. #26171 [Fbk->Opn]: using /(a)+/ to match a long string makes php crash
    By xuefer at 21cn dot com in forum PHP Development
    Replies: 2
    Last Post: November 13th, 02:10 AM
  4. #26171 [NEW]: using /(a)+/ to match a long string makes php crash
    By xuefer at 21cn dot com in forum PHP Development
    Replies: 0
    Last Post: November 8th, 03:55 AM
  5. #22231 [Com]: PHP makes Apache crash
    By mail at dooley dot cjb dot net in forum PHP Development
    Replies: 0
    Last Post: July 29th, 01:30 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139