Discussion:
[PHP-INSTALL] Specifying endianness in Cross-Compiling PHP
Naga Kiran K
2010-06-14 03:55:39 UTC
Permalink
Hi,

We are cross-compiling PHP for PowerPC,Octeon platforms from FreeBSD
machine.

As we need to specify that PowerPC,Octeon platforms are "big-endian" during
cross-compilaintion.

Please suggest the best location to specify this endianness during
compilation phase.

Thanks,
Naga Kiran

---------- Forwarded message ----------
From: Naga Kiran K <***@gmail.com>
Date: Fri, Apr 16, 2010 at 5:45 PM
Subject: Re: [PHP-INSTALL] Getting file pointer from file descriptor
To: Rasmus Lerdorf <***@lerdorf.com>, php-***@lists.php.net


Hi Rasmus,

Thanks for reply.
The requirement I was looking for is to read/write given only the file
descriptor number.

PHP-CGI binary is invoked by a webserver that runs in jail-directory and
doesn't have access to the file path directory.
So, it communicates with another daemon that opens a socket to that file and
in turn passes the file descriptor alone.

Can you please suggest if there is any API in PHP that serves this
requirement [read/write to given file descriptor]
Please let me know if I need to provide more information.

Thanks,
Naga Kiran
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
--
Regards,
Naga Kiran
--
Regards,
Naga Kiran
Loading...