#30377 [Asn->Csd]: Problem with php_check_syntax()

From: Date: Wed, 06 Apr 2005 14:21:58 +0000
Subject: #30377 [Asn->Csd]: Problem with php_check_syntax()
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-76996@lists.php.net to get a copy of this message
ID: 30377 Updated by: iliaa@php.net Reported By: guth at fiifo dot u-psud dot fr -Status: Assigned +Status: Closed Bug Type: Filesystem function related Operating System: * PHP Version: 5CVS-2005-03-29 Assigned To: iliaa New Comment: After extensive code review it was determined that it would take too many engine hacks to make it work properly and the function was removed. Previous Comments: ------------------------------------------------------------------------ [2005-03-29 01:47:05] sniper@php.net Propably same as bug #31918 ------------------------------------------------------------------------ [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 (#76996) next »