ID:               37257
 Updated by:       [EMAIL PROTECTED]
 Reported By:      judas dot iscariote at gmail dot com
-Status:           Open
+Status:           Assigned
 Bug Type:         SPL related
 Operating System: linux 64 bit
 PHP Version:      5CVS-2006-05-01 (CVS)
-Assigned To:      
+Assigned To:      helly


Previous Comments:
------------------------------------------------------------------------

[2006-05-01 06:13:00] judas dot iscariote at gmail dot com

seems to be completely broken. :-(

this :

$foo = new SplTempFileObject();

produces in CLI :

PHP Fatal error:  Uncaught exception 'RuntimeException' with message
'SplTempFileObject::__construct(php://temp): failed to open stream:
**Illegal seek**' in Command line code:1
Stack trace:
#0 Command line code(1): SplTempFileObject->__construct()
#1 {main}
  thrown in Command line code on line 1

and in the webserver ( apache) produces :

Fatal error: Uncaught exception 'RuntimeException' with message
'SplTempFileObject::__construct(php://temp): failed to open stream:
*******Not a directory*******' in /srv/www/htdocs/temp.php:3 Stack
trace: #0 /srv/www/htdocs/temp.php(3): SplTempFileObject->__construct()
#1 {main} thrown in /srv/www/htdocs/temp.php on line 3 

I don't think php://temp (???) wrapper should be detected as a
directory, nor I have produced code to generate an "Illegal seek" ..
;-)

------------------------------------------------------------------------

[2006-05-01 05:48:55] judas dot iscariote at gmail dot com

Description:
------------
an incorrect exception is thrown by SplTempFileObject



Reproduce code:
---------------
php -r '$foo = new SplTempFileObject(1024);'

Expected result:
----------------
not sure, since it's not documented, but I think at least not   with
"Success" message..

Actual result:
--------------
PHP Fatal error:  Uncaught exception 'RuntimeException' with message
'SplTempFileObject::__construct(php://temp/maxmemory:1024): failed to
open stream: ****Success*****' in Command line code:1
Stack trace:
#0 Command line code(1): SplTempFileObject->__construct(1024)
#1 {main}
  thrown in Command line code on line 1



------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=37257&edit=1

Reply via email to