From: grialet at dsi dot cnrs dot fr Operating system: Windows XP PHP version: 4.3.4 PHP Bug Type: Filesystem function related Bug description: Pb : Call to undefined function: fopen()
Description: ------------ Hello, I've just downloaded the last EasyPHP version (1.7) on the dedicated site. I have made no change in the install files, but i have a serious pb. I wrote a simple php file that reads a text file (under the "www" php directory) and displays its content. When i make : "if (file_exists ("toto.txt"))" it returns true, but then when i make : "$f = fopen("toto.txt", "r")" i get the following fatal error : Call to undefined function: fopen() Looks like a big bug... pretty ennoying... Could someone resolve it quickly ? Stéphane Reproduce code: --------------- $nomFicConf = "config.txt"; if (file_exists($nomFicConf)) { $ficConf = fopen($nomFicConf,"r"); while (!feof($ficConf)) { $ligneFic = fgets($ficConf, 4096); ..... Expected result: ---------------- the display of the content of the file. Actual result: -------------- Fatal error: Call to undefined function: fopen() in c:\program files\easyphp1-7\www\impression.php on line 35 -- Edit bug report at http://bugs.php.net/?id=27695&edit=1 -- Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=27695&r=trysnapshot4 Try a CVS snapshot (php5): http://bugs.php.net/fix.php?id=27695&r=trysnapshot5 Fixed in CVS: http://bugs.php.net/fix.php?id=27695&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=27695&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=27695&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=27695&r=needscript Try newer version: http://bugs.php.net/fix.php?id=27695&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=27695&r=support Expected behavior: http://bugs.php.net/fix.php?id=27695&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=27695&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=27695&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=27695&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=27695&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=27695&r=dst IIS Stability: http://bugs.php.net/fix.php?id=27695&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=27695&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=27695&r=float