Re: [PHP4BETA] require bug.
| From: | Yann Doussot | Date: | Wed, 09 Jun 1999 22:55:49 +0000 |
| Subject: | Re: [PHP4BETA] require bug. | ||
| References: | 1 | Groups: | php.version4 |
| Request: | Send a blank email to php-version4+get-1441@lists.php.net to get a copy of this message | ||
On Wed, 9 Jun 1999, Zeev Suraski wrote:
> What's that colon? I got a parse error with that colon, and it worked fine
> without it. I'd guess that you have error_reporting set to a low value in
> your php3.ini, and since the values of error_reporting changed in version
> 4.0, you're not seeing parse errors, thus, no output.
Ok did not see this one. In fact I was trying to produce a test
case for a bug I found in a one of my application. A page does not produce
any output (even with high error_reporting), the same page works with
PHP3. Here is another one that fails to produce any output (this an
extract from a bigger script):
Hello
<?
Error_reporting(1023);
$open = 1;
if ($open == 0) {
require("docs/$user_lang/dossier.dml");
echo "<p><font color=\"#007F7F\">",
$dict["opened_projects"],
":</font>\n";
} elseif ($open == 1) {
require("docs/$user_lang/running.dml");
echo "<p><font color=\"#F62500\">",
$dict["finished_projects"],
":</font>\n";
};
?>
---
Yann Doussot <doussot@gifrance.com>
Grey Interactive - France - http://www.gifrance.com/
Cell: +33 6 12 71 70 03 Work: + 33 1 46 84 85 00