php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #24751 PHP CGI : Premature end of script
Submitted: 2003-07-22 07:59 UTC Modified: 2003-07-23 22:18 UTC
From: cthomas at cybersurfeur dot com Assigned:
Status: Closed Package: *General Issues
PHP Version: 4.3.1 OS: Linux Debian
Private report: No CVE-ID: None
 [2003-07-22 07:59 UTC] cthomas at cybersurfeur dot com
Description:
------------
I'm using php 4.3.1 in cgi mode with Apache 1.3.27 with suexec

When I try to retrieve some url which exceed 85 char. (with http://) I've got an "Internal Server Error" and a "Premature end of script" in error log.
 

Reproduce code:
---------------
the php code is not important. Let's do a 
echo "hello";

If I store this code in file for which the url is:
http://evrest.cdr.fluxus.net/ctcms2/test/unitaire/Gui/Html/HTML_InputTextarea.test.php  
it fails.

Now if you just remove 1 char. anywhere in this url, for exemple the filename (I remove the 'L' near "HTML" in the filename )
http://evrest.cdr.fluxus.net/ctcms2/test/unitaire/Gui/Html/HTM_InputTextarea.test.php
It works. 


Expected result:
----------------
I expect the "Hello" string.

Actual result:
--------------
I've got a 500 Internal Error in my Browser 
and a "Premature end of script" in Apache's error.log file.

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2003-07-23 22:18 UTC] sniper@php.net
Please try using this CVS snapshot:

  http://snaps.php.net/php4-STABLE-latest.tar.gz
 
For Windows:
 
  http://snaps.php.net/win32/php4-win32-STABLE-latest.zip

AFAIK, this is fixed, or you're just doing something wrong.
(works fine with latest CVS snapshot here)

 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Thu Dec 04 21:00:02 2025 UTC