Re: Bug #1061: include($undefined); causes a "Document contains no data";

From: Date: Wed, 13 Jan 1999 06:27:51 +0000
Subject: Re: Bug #1061: include($undefined); causes a "Document contains no data";
References: 1  Groups: php.dev 
Request: Send a blank email to php-dev+get-3506@lists.php.net to get a copy of this message
> From: cmv@privateworld.com > Operating system: Linux 2.0.35 > PHP version: 3.0.5 > PHP Bug Type: Reproduceable crash > Bug description: include($undefined); causes a "Document contains no data"; > > <? > echo "hello"; > include($undefined); > ?> > > Inculding an undefined variable or a null string, will cause a "Document contains no > data" message, regardless of any text that has been send to the browser before the include(). > > It should probably produce an error message instead. On my system Linux 2.0.35, php 3.06 it does produce an error message. Here is the output. hello Warning: Failed opening '' for inclusion in /usr/local/apache/htdocs/hw/test.php3 on line 3 Uwe -- PHP Development Mailing List http://www.php.net/ To unsubscribe send an empty message to php-dev-unsubscribe@lists.php.net For help: php-dev-help@lists.php.net

« previous php.dev (#3506) next »