|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #436 Script execution stopped at echo(nl2br($x));
Submitted: 1998-06-03 23:12 UTC Modified: 1998-06-04 18:00 UTC
From: C dot Oldiges at tu-bs dot de Assigned: rasmus (profile)
Status: Closed Package: Reproducible Crash
PHP Version: 3.0 Release Candidate 5 OS: Linux 2.0.31 x86
Private report: No CVE-ID: None
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
Solve the problem:
18 - 5 = ?
Subscribe to this entry?

 [1998-06-03 23:12 UTC] C dot Oldiges at tu-bs dot de
Client IE4.01 (NN4.05 works !?!?!)
Apache 126 with php as module


This line stops script execution when the variable
$newtext is filled by a form POST from a textarea from IE401 AND the last character typed in the textarea is a RETURN.



works !

The output is ends exactly AFTER this line.

nl2br seems to be the problem, but i can only find this:

Line 829 of functions/string.c should be

result->value.str.len = (len+(char_count*(to_len-1)))+1;

because the string gets longer by (to_len-1) for each occurence of the inchar and not by to_len, because the inchar is 1 byte long for itself.


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [1998-06-04 18:00 UTC] rasmus
Fixed - off by one error
PHP Copyright © 2001-2023 The PHP Group
All rights reserved.
Last updated: Mon Oct 02 23:01:24 2023 UTC