ID: 12326
Updated by: sniper
Old Status: Open
Status: Bogus
Bug Type: Session related
Operating System: Windows 2000 Server
PHP Version: 4.0.4
New Comment:



Previous Comments:

[2001-07-23 23:27:14] [EMAIL PROTECTED]

If you try session_remember()ing a variable that contains a resource, for instance one 
that you acquired via pfsockopen(), the value will be mangled, and the resource will 
become unavailable.

For instance:

        echo gettype($socket),"<br>";
        if (!$socket) {
                $socket = fsockopen("", 80);
        echo gettype($socket),"<br>";

The second time you visit the page, the output is "integer<br>resource". It pretty 
much tells me that my resource gets saved as an integer, and then nobody remebers to 
turn it back into a resource again :(

Can this be done? Am I thinking in the wrong direction if I need file descriptor 


Edit this bug report at

PHP Development Mailing List <>
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to