Bug #3546: die function example incorrect?

From: Date: Mon, 21 Feb 2000 10:14:34 +0000
Subject: Bug #3546: die function example incorrect?
Groups: php.dev 
Request: Send a blank email to php-dev+get-15747@lists.php.net to get a copy of this message
From: sagawa@sohgoh.net Operating system: Win95 etc... PHP version: 3.0.14 PHP Bug Type: Documentation problem Bug description: die function example incorrect? die() manual example 1 is below... ------------ <?php $filename = '/path/to/data-file'; $file = fopen($filename, 'r') or die "unable to open file ($filename)"; ?> ------------ but this makes a parse error (line 4), So I correct this, below... ------------ <?php $filename = '/path/to/data-file'; $file = fopen($filename, 'r') or die ("unable to open file ($filename)"); // () are required ?> ------------ Sorry, my poor English Akihiro SAGAWA (Japanese)

« previous php.dev (#15747) next »