Bug #12801: scope of opened files
| From: | lumberjakel at hotmail dot com | Date: | Thu, 16 Aug 2001 23:19:48 +0000 |
| Subject: | Bug #12801: scope of opened files | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-63481@lists.php.net to get a copy of this message | ||
From: lumberjakel@hotmail.com
Operating system: win98
PHP version: 4.0.6
PHP Bug Type: Filesystem function related
Bug description: scope of opened files
Look at the following script-file:
<html><body>
<?php
$fp1=fopen("project1.txt", "r");
fpassthru($fp1);
?>
<br>
some text
<br>
<?php
fpassthru($fp1);
?>
</body></html>
You should get twice the content op project1.txt, seperated by "some text",
but I get this:
contents of project1.txt
some text
Warning: 1 is not a valid File-Handle resource in
e:\documenten\scripts\test area\project11.php on line 10
--
Edit bug report at: http://bugs.php.net/?id=12801&edit=1