php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #30708 Stream of type 'STDIO' was not closed
Submitted: 2004-11-07 00:22 UTC Modified: 2005-05-15 01:00 UTC
From: guth at fiifo dot u-psud dot fr Assigned:
Status: No Feedback Package: Scripting Engine problem
PHP Version: 5.0.4 OS: Linux
Private report: No CVE-ID: None
Have you experienced this issue?
Rate the importance of this bug to you:

 [2004-11-07 00:22 UTC] guth at fiifo dot u-psud dot fr
Description:
------------
hello, 
 
It seems that PHP doesn't close a "Stream of type 'STDIO'" 
when the PHP code produces a parse error with "throw". 

Reproduce code:
---------------
<?php
strlen(throw new Exception);
?>

Expected result:
----------------
/www/test2.php(2) : Parse error - parse error, unexpected 
T_THROW, expecting ')' 

Actual result:
--------------
/www/test2.php(2) : Parse error - parse error, unexpected 
T_THROW, expecting ')' 
 
/usr/src/php5/main/streams/streams.c(375) : Stream of type 
'STDIO' 0x816d83c (path:/www/test2.php) was not closed 

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2005-03-07 21:47 UTC] sniper@php.net
Please try using this CVS snapshot:

  http://snaps.php.net/php5-latest.tar.gz
 
For Windows:
 
  http://snaps.php.net/win32/php5-win32-latest.zip

(can not reproduce)
 [2005-03-20 18:05 UTC] sniper@php.net
No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Open". Thank you.


 [2005-05-07 03:12 UTC] guth at fiifo dot u-psud dot fr
Still here:

/www/test3.php(2) : Parse error - parse error, unexpected T_THROW, expecting ')'
/usr/src/php5-STABLE-200505070036/main/streams/streams.c(375) : Stream of type 'STDIO' 0x816da44 (path:/www/test3.php) was not closed
 [2005-05-07 04:21 UTC] wez@php.net
The message is safe to ignore (in a release build it won't even occur): PHP will still close the stream.

Please tell us which SAPI you are using, so that we can explicitly handle this error case.
 [2005-05-15 01:00 UTC] php-bugs at lists dot php dot net
No feedback was provided for this bug for over a week, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Mon May 06 18:01:35 2024 UTC