#30377 [Asn]: Problem with php_check_syntax()

From: Date: Mon, 28 Mar 2005 23:47:06 +0000
Subject: #30377 [Asn]: Problem with php_check_syntax()
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-75954@lists.php.net to get a copy of this message
ID: 30377 Updated by: sniper@php.net Reported By: guth at fiifo dot u-psud dot fr Status: Assigned Bug Type: Filesystem function related Operating System: * PHP Version: 5CVS-2005-03-29 -Assigned To: wez +Assigned To: iliaa New Comment: Propably same as bug #31918 Previous Comments: ------------------------------------------------------------------------ [2004-10-11 07:52:33] derick@php.net Wez, I saw this before too, seems streams related. ------------------------------------------------------------------------ [2004-10-09 22:39:13] guth at fiifo dot u-psud dot fr 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 : [vincent@localhost php5-STABLE-200410091830]$ diff main/main.c2 main/main.c 1751a1752,1753 > zend_destroy_file_handle(file TSRMLS_CC); > ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=30377&edit=1

« previous php.bugs (#75954) next »