Discussion:
[PHP-INSTALL] Getting file pointer from file descriptor
Naga Kiran K
2010-04-15 13:52:27 UTC
Permalink
Hi,

We are upgrading PHP from 5.2.3 to 5.3.2 and are facing few issues [like
unsupported functions...]

In PHP 5.2.3, "fdopen" was used to read/write to a file descriptor that's
opened by another application.

fdopen(<fileDescriptorId>,"rw"); //It worked fine with PHP 5.2.3

After PHP upgrade,its throwing "undefined reference to 'fdopen' function".

Please suggest whats the replacement for this in PHP 5.2.3 or any
workaround.

Thanks,
Naga Kiran
Rasmus Lerdorf
2010-04-15 14:03:57 UTC
Permalink
Post by Naga Kiran K
Hi,
We are upgrading PHP from 5.2.3 to 5.3.2 and are facing few issues [like
unsupported functions...]
In PHP 5.2.3, "fdopen" was used to read/write to a file descriptor
that's opened by another application.
fdopen(<fileDescriptorId>,"rw"); //It worked fine with PHP 5.2.3
After PHP upgrade,its throwing "undefined reference to 'fdopen' function".
Please suggest whats the replacement for this in PHP 5.2.3 or any
workaround.
PHP has never had an fdopen() function. It must be something in user
space that provided that for you if you had it.

-Rasmus
Michael Felt
2010-04-20 00:51:32 UTC
Permalink
Personally, I am avoiding the 5.3.X tree as long as I can because it
breaks so many things. Your workaround might be to "update" the the
latest 5.2.X level.
Post by Naga Kiran K
Hi,
We are upgrading PHP from 5.2.3 to 5.3.2 and are facing few issues [like
unsupported functions...]
In PHP 5.2.3, "fdopen" was used to read/write to a file descriptor that's
opened by another application.
fdopen(<fileDescriptorId>,"rw"); //It worked fine with PHP 5.2.3
After PHP upgrade,its throwing "undefined reference to 'fdopen' function".
Please suggest whats the replacement for this in PHP 5.2.3 or any
workaround.
Thanks,
Naga Kiran
Ferenc Kovacs
2010-04-20 05:58:33 UTC
Permalink
Personally, I am avoiding the 5.3.X tree as long as I can because it breaks
so many things. Your workaround might be to "update" the the latest 5.2.X
level.
Post by Naga Kiran K
Hi,
We are upgrading PHP from 5.2.3 to 5.3.2 and are facing few issues [like
unsupported functions...]
In PHP 5.2.3, "fdopen" was used to read/write to a file descriptor that's
opened by another application.
fdopen(<fileDescriptorId>,"rw"); //It worked fine with PHP 5.2.3
After PHP upgrade,its throwing "undefined reference to 'fdopen' function".
Please suggest whats the replacement for this in PHP 5.2.3 or any
workaround.
You are missing the point.
Tyrael

Loading...