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

From: Date: Mon, 11 Oct 2004 05:52:34 +0000
Subject: #30377 [Opn->Asn]: Problem with php_check_syntax()
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-67382@lists.php.net to get a copy of this message
ID: 30377 Updated by: derick@php.net Reported By: guth at fiifo dot u-psud dot fr -Status: Open +Status: Assigned Bug Type: Unknown/Other Function Operating System: * PHP Version: 5CVS-2004-10-09 (dev) -Assigned To: +Assigned To: wez New Comment: Wez, I saw this before too, seems streams related. Previous Comments: ------------------------------------------------------------------------ [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 (#67382) next »