php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #3594 simple syntax errors result in Document Contains no Data
Submitted: 2000-02-23 18:06 UTC Modified: 2000-08-15 09:36 UTC
From: sbeam at beeline dot net Assigned:
Status: Closed Package: Scripting Engine problem
PHP Version: 4.0 Beta 3 OS: Linux RH 6.1
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: sbeam at beeline dot net
New email:
PHP Version: OS:

 

 [2000-02-23 18:06 UTC] sbeam at beeline dot net
parsing or syntax errors sometimes produce a complete parser bailout, giving the user "Document contains no data". Usually we get "parse error at line XX" as expected but with certain types of errors, in certan combinations, we just get the whole lotta nothing. Mostly these are unmatched single quotes, brackets and parens. Following are some complete scripts that reliably cause this on our system:

#1:
<?php
echo "great " . ' googily . " moogily";
?>

=============
#2:
<?php
function foo() {
   return "hello kitty";
}
 echo foo); ?>

===========
#3:
<?php
function foo() 
   return "hello kitty";
}
 echo foo(); ?>



This might seem like a trivial thing since these are so obvious but in a large script it makes it basically impossible to track down several errors like this, especially when hairer complex expressions are used.

Here is the relevant section of php.ini:
error_reporting =       7
display_errors  =       On
log_errors        =       On
track_errors    =       On 
 
this is how PHP was configured:
   ./configure --with-mysql --with-pgsql=/usr/bin --with-apache=../apache -enable-track-vars=on

Thx!

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2000-02-23 18:09 UTC] sbeam at beeline dot net
I should add that this happens with error_reporting(8) as well
 [2000-02-29 19:03 UTC] sbeam at beeline dot net
also now I want to add that restarting apache will temporarily cure the problem, at least some of the time.
 [2000-07-23 14:15 UTC] stas at cvs dot php dot net
Does this still happen with the latest version?
 [2000-08-15 09:36 UTC] waldschrott@php.net
Closed due to missing user feedback.
 
PHP Copyright © 2001-2026 The PHP Group
All rights reserved.
Last updated: Sun Oct 11 21:00:02 2026 UTC