Re: [PHP-DEV] FastCGI unix sockets support patch

2006-03-24 Thread Rostislav Krasny
On Fri, 24 Mar 2006 11:14:56 +0300 [EMAIL PROTECTED] ("Dmitry Stogov") wrote: > I don't think that "-b :" is good solution. > Two different options for TCP and UNIX sockets make sense. > > What is wrong with sapi/cgi/fastcgi.c? With two different options for TCP/IP and UNIX sockets you should ha

Re: [PHP-DEV] FastCGI unix sockets support patch

2006-03-23 Thread Rostislav Krasny
On Thu, 23 Mar 2006 13:23:40 +0300 [EMAIL PROTECTED] ("Dmitry Stogov") wrote: > Hi Rostisla, > > I've committed another patch into HEAD and PHP_5_1, that allows usage of > UNIX sockets without ':'. > > -b : > -b > -b It means that a choice of the unix_path is restricted. It cannot be a number

Re: [PHP-DEV] FastCGI unix sockets support patch

2006-03-20 Thread Rostislav Krasny
On Mon, 20 Mar 2006 21:41:39 +0200 [EMAIL PROTECTED] (Rostislav Krasny) wrote: > 1. use gethostbyname2(host, AF_INET) instead of gethostbyname(host) >it will eliminate IPv6 addresses from resolving The gethostbyname() doesn't actually request IPv6 addresses. Sorry for that sep

Re: [PHP-DEV] FastCGI unix sockets support patch

2006-03-20 Thread Rostislav Krasny
On Mon, 20 Mar 2006 13:44:30 +0300 [EMAIL PROTECTED] ("Dmitry Stogov") wrote: > Hi Rostislav, > > PHP HEAD and PHP_5_1 (5.1.3) don't use libfcgi any more. > They use simplest and smallest replacement library. > > Please look into CVS code and provide a patch for it (if necessary). > > Thanks. D

[PHP-DEV] FastCGI unix sockets support patch

2006-03-20 Thread Rostislav Krasny
Hi, According to a 'php -h' output of php-cgi 5.1.2 the FastCGI can be used only by TCP/IP: -b | Bind Path for external FASTCGI Server mode But according to the code FastCGI could also be used by UNIX sockets. According to the code if the "-b " option is used and the port number is illegal or

[PHP-DEV] no newline after "?>" in the resulting HTML

2006-03-18 Thread Rostislav Krasny
Hi, I am a newbie to PHP. I've installed a php5-cgi-5.1.2_1 from FreeBSD ports collection and access it by FastCGI protocol from nginx HTTP server. I've tried an example of "Hello World" PHP script from the following tutorial page: http://www.php.net/manual/en/tutorial.firstpage.php This is how