From: guth at fiifo dot u-psud dot fr Operating system: * PHP version: 5CVS-2004-10-09 (dev) PHP Bug Type: Unknown/Other Function Bug description: Problem with php_check_syntax()
Description: ------------ I get an error when i use php_check_syntax() with an invalid PHP file. Reproduce code: --------------- <?php var_dump(php_check_syntax("test2.php")); ?> in test2.php <?php sddfdsf fsqd ?> Expected result: ---------------- bool(false) Actual result: -------------- bool(false) /usr/src/php5-STABLE-200410091830/main/streams/streams.c(375) : Stream of type 'STDIO' 0x831c7ec (path:test2.php) was not closed The following diff seems to correct the problem : [EMAIL PROTECTED] php5-STABLE-200410091830]$ diff main/main.c2 main/main.c 1751a1752,1753 > zend_destroy_file_handle(file TSRMLS_CC); > -- Edit bug report at http://bugs.php.net/?id=30377&edit=1 -- Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=30377&r=trysnapshot4 Try a CVS snapshot (php5.0): http://bugs.php.net/fix.php?id=30377&r=trysnapshot50 Try a CVS snapshot (php5.1): http://bugs.php.net/fix.php?id=30377&r=trysnapshot51 Fixed in CVS: http://bugs.php.net/fix.php?id=30377&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=30377&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=30377&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=30377&r=needscript Try newer version: http://bugs.php.net/fix.php?id=30377&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=30377&r=support Expected behavior: http://bugs.php.net/fix.php?id=30377&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=30377&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=30377&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=30377&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=30377&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=30377&r=dst IIS Stability: http://bugs.php.net/fix.php?id=30377&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=30377&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=30377&r=float MySQL Configuration Error: http://bugs.php.net/fix.php?id=30377&r=mysqlcfg