Hi, is there any reason why a temporary file created with SplTempFileObject isn't accessible by another e.g. SplFileObject instance.
$temp = new SplTempFileObject(); $temp->fwrite('A string'); var_dump($temp->getPathname()); The var_dump call returns always the PHP stream URL php://temp. Why the method getPathname doesn't return a unique ID in the URL(php://temp/ertZ789) which references to this temporary file. So it would be posible to access this temporary file by another e.g. SplFileObject instance. For testing purpose this would be a great benefit. With a SplTempFileObject instance a test fixture could be created in RAM. It would like a virtual file system for one file. Greetings Christian -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php