Re: [Php-tuxedo-development] CVS updates (resend)
Status: Pre-Alpha
Brought to you by:
cdog1977
From: Brian F. <bf...@mn...> - 2002-01-05 06:15:53
|
On Fri, 28 Dec 2001 16:22:34 +0900, CheolMin Lee wrote: >good idea. BTW, is it working well for pipe or socket? >I checked in your recently updated code and found that >php_file_le_fopen() was used to get the resource. >I'm wondering that php_file_le_fopen() works for pipe or socket >even if not using php_file_le_popen() or php_file_le_socket(). > >I'm not an expert in Zend and PHP. So just curious. Good call, I rans some tests and no it wouldn't work primarily because you have to tell the file resource function what types of file resources to accept. So I've changed that code to reflect the example in fwrite, using the raw function call not the macro. Upon testing this, I found files and pipes work fine. I tried a socket connection to an echo server and received a core dump inside the Tuxedo Ffprint function. So until we can get those file types to work, I've removed them from the acceptable list to zend_fetch_resource. I would think files and pipes would be the most important types, but it would be nice to get sockets going someday. Brian |