#40241 [Fbk->Opn]: PHP crashes sometimes, when first parameter of strcspn is empty
| From: | markus at dix dot at | Date: | Fri, 26 Jan 2007 12:04:05 +0000 |
| Subject: | #40241 [Fbk->Opn]: PHP crashes sometimes, when first parameter of strcspn is empty | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-108089@lists.php.net to get a copy of this message | ||
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
http://bugs.typo3.org/view.php?id=4678).
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] tony2001@php.net
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 http://bugs.typo3.org/view.php?id=4678
Maybe this bug is related to bug #39032 (strcspn stops on null
character)?
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=40241&edit=1