Professional Web Applications Themes

#40241 [NEW]: PHP crashes sometimes, when first parameter of strcspn is empty - PHP Bugs

From: markus at dix dot at Operating system: Linux PHP version: 5.2.0 PHP Bug Type: Strings related Bug description: PHP crashes sometimes, when first parameter of strcspn is empty Description: ------------ PHP crashes sometimes, when first parameter of strcspn is empty (string with length zero). Example: see [url]http://bugs.typo3.org/view.php?id=4678[/url] Maybe this bug is related to bug #39032 (strcspn stops on null character)? -- Edit bug report at [url]http://bugs.php.net/?id=40241&edit=1[/url] -- Try a CVS snapshot (PHP 4.4): [url]http://bugs.php.net/fix.php?id=40241&r=trysnapshot44[/url] Try a CVS snapshot (PHP 5.2): [url]http://bugs.php.net/fix.php?id=40241&r=trysnapshot52[/url] Try a CVS snapshot (PHP 6.0): [url]http://bugs.php.net/fix.php?id=40241&r=trysnapshot60[/url] Fixed in CVS: [url]http://bugs.php.net/fix.php?id=40241&r=fixedcvs[/url] Fixed in release: [url]http://bugs.php.net/fix.php?id=40241&r=alreadyfixed[/url] Need backtrace: [url]http://bugs.php.net/fix.php?id=40241&r=needtrace[/url] ...

  1. #1

    Default #40241 [NEW]: PHP crashes sometimes, when first parameter of strcspn is empty

    From: markus at dix dot at
    Operating system: Linux
    PHP version: 5.2.0
    PHP Bug Type: Strings related
    Bug description: PHP crashes sometimes, when first parameter of strcspn is empty

    Description:
    ------------
    PHP crashes sometimes, when first parameter of strcspn is empty (string
    with length zero).

    Example: see [url]http://bugs.typo3.org/view.php?id=4678[/url]

    Maybe this bug is related to bug #39032 (strcspn stops on null character)?


    --
    Edit bug report at [url]http://bugs.php.net/?id=40241&edit=1[/url]
    --
    Try a CVS snapshot (PHP 4.4): [url]http://bugs.php.net/fix.php?id=40241&r=trysnapshot44[/url]
    Try a CVS snapshot (PHP 5.2): [url]http://bugs.php.net/fix.php?id=40241&r=trysnapshot52[/url]
    Try a CVS snapshot (PHP 6.0): [url]http://bugs.php.net/fix.php?id=40241&r=trysnapshot60[/url]
    Fixed in CVS: [url]http://bugs.php.net/fix.php?id=40241&r=fixedcvs[/url]
    Fixed in release: [url]http://bugs.php.net/fix.php?id=40241&r=alreadyfixed[/url]
    Need backtrace: [url]http://bugs.php.net/fix.php?id=40241&r=needtrace[/url]
    Need Reproduce Script: [url]http://bugs.php.net/fix.php?id=40241&r=needscript[/url]
    Try newer version: [url]http://bugs.php.net/fix.php?id=40241&r=oldversion[/url]
    Not developer issue: [url]http://bugs.php.net/fix.php?id=40241&r=support[/url]
    Expected behavior: [url]http://bugs.php.net/fix.php?id=40241&r=notwrong[/url]
    Not enough info: [url]http://bugs.php.net/fix.php?id=40241&r=notenoughinfo[/url]
    Submitted twice: [url]http://bugs.php.net/fix.php?id=40241&r=submittedtwice[/url]
    register_globals: [url]http://bugs.php.net/fix.php?id=40241&r=globals[/url]
    PHP 3 support discontinued: [url]http://bugs.php.net/fix.php?id=40241&r=php3[/url]
    Daylight Savings: [url]http://bugs.php.net/fix.php?id=40241&r=dst[/url]
    IIS Stability: [url]http://bugs.php.net/fix.php?id=40241&r=isapi[/url]
    Install GNU Sed: [url]http://bugs.php.net/fix.php?id=40241&r=gnused[/url]
    Floating point limitations: [url]http://bugs.php.net/fix.php?id=40241&r=float[/url]
    No Zend Extensions: [url]http://bugs.php.net/fix.php?id=40241&r=nozend[/url]
    MySQL Configuration Error: [url]http://bugs.php.net/fix.php?id=40241&r=mysqlcfg[/url]
    markus at dix dot at Guest

  2. #2

    Default #40241 [Opn->Fbk]: PHP crashes sometimes, when first parameter of strcspn is empty

    ID: 40241
    Updated by: [email]tony2001php.net[/email]
    Reported By: markus at dix dot at
    -Status: Open
    +Status: Feedback
    Bug Type: Strings related
    Operating System: Linux
    PHP Version: 5.2.0
    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 the script requires a
    database to demonstrate the issue, please make sure it creates
    all necessary tables, stored procedures etc.

    Please avoid embedding huge scripts into the report.




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

    [2007-01-25 20:48:27] markus at dix dot at

    Description:
    ------------
    PHP crashes sometimes, when first parameter of strcspn is empty (string
    with length zero).

    Example: see [url]http://bugs.typo3.org/view.php?id=4678[/url]

    Maybe this bug is related to bug #39032 (strcspn stops on null
    character)?



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


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

  3. #3

    Default #40241 [Fbk->Opn]: PHP crashes sometimes, when first parameter of strcspn is empty

    ID: 40241
    User updated by: markus at dix dot at
    Reported By: markus at dix dot at
    -Status: Feedback
    +Status: Open
    Bug Type: Strings related
    Operating System: Linux
    PHP Version: 5.2.0
    New Comment:

    I am very sorry, I cannot extract the code that reproduces the crash.
    It only happens in the context of TYPO3 (see
    [url]http://bugs.typo3.org/view.php?id=4678[/url]).

    Using TYPO3, editing a "tt_news" Plugin results in an empty page.
    Tracing the error, the strcspn statement crashes. Extracting the block
    of code and executing it with the same parameters, everything works
    fine.


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

    [2007-01-25 20:51:53] [email]tony2001php.net[/email]

    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 the script requires a
    database to demonstrate the issue, please make sure it creates
    all necessary tables, stored procedures etc.

    Please avoid embedding huge scripts into the report.



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

    [2007-01-25 20:48:27] markus at dix dot at

    Description:
    ------------
    PHP crashes sometimes, when first parameter of strcspn is empty (string
    with length zero).

    Example: see [url]http://bugs.typo3.org/view.php?id=4678[/url]

    Maybe this bug is related to bug #39032 (strcspn stops on null
    character)?



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


    --
    Edit this bug report at [url]http://bugs.php.net/?id=40241&edit=1[/url]
    markus at dix dot at Guest

  4. #4

    Default #40241 [Opn->Bgs]: PHP crashes sometimes, when first parameter of strcspn is empty

    ID: 40241
    Updated by: [email]tony2001php.net[/email]
    Reported By: markus at dix dot at
    -Status: Open
    +Status: Bogus
    Bug Type: Strings related
    Operating System: Linux
    PHP Version: 5.2.0
    New Comment:

    We cannot fix something we can't reproduce, sorry.


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

    [2007-01-26 12:04:04] markus at dix dot at

    I am very sorry, I cannot extract the code that reproduces the crash.
    It only happens in the context of TYPO3 (see
    [url]http://bugs.typo3.org/view.php?id=4678[/url]).

    Using TYPO3, editing a "tt_news" Plugin results in an empty page.
    Tracing the error, the strcspn statement crashes. Extracting the block
    of code and executing it with the same parameters, everything works
    fine.

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

    [2007-01-25 20:51:53] [email]tony2001php.net[/email]

    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 the script requires a
    database to demonstrate the issue, please make sure it creates
    all necessary tables, stored procedures etc.

    Please avoid embedding huge scripts into the report.



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

    [2007-01-25 20:48:27] markus at dix dot at

    Description:
    ------------
    PHP crashes sometimes, when first parameter of strcspn is empty (string
    with length zero).

    Example: see [url]http://bugs.typo3.org/view.php?id=4678[/url]

    Maybe this bug is related to bug #39032 (strcspn stops on null
    character)?



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


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

Similar Threads

  1. #39134 [NEW]: PHP + FreeTDS 0.64 crashes when TEXT field with empty string encountered
    By jr-phpbugs at cedric dot unob dot cz in forum PHP Bugs
    Replies: 6
    Last Post: November 1st, 09:49 AM
  2. #39218 [NEW]: parameter substitution:parameters always empty
    By jan_metzel at gmx dot de in forum PHP Bugs
    Replies: 3
    Last Post: October 21st, 08:38 PM
  3. Replies: 0
    Last Post: September 18th, 10:06 AM
  4. Replies: 0
    Last Post: September 12th, 02:26 AM
  5. #25502 [NEW]: Empty query with SQLite_query() crashes the Apache
    By o_gangrel at hotmail dot com in forum PHP Development
    Replies: 0
    Last Post: September 11th, 11:06 PM

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