|
|
| version 1.1, 2013/10/14 10:32:47 | version 1.1.1.2, 2016/11/02 10:35:00 |
|---|---|
| Line 17 my $tf_proxy = LightyTest->new(); | Line 17 my $tf_proxy = LightyTest->new(); |
| my $t; | my $t; |
| my $php_child = -1; | my $php_child = -1; |
| my $phpbin = (defined $ENV{'PHP'} ? $ENV{'PHP'} : '/usr/bin/php-cgi'); | |
| $ENV{'PHP'} = $phpbin; | |
| SKIP: { | SKIP: { |
| skip "PHP already running on port 1026", 1 if $tf_real->listening_on(1026); | skip "PHP already running on port 1026", 1 if $tf_real->listening_on(1026); |
| skip "no php binary found", 1 unless -x $phpbin; | skip "no php binary found", 1 unless $LightyTest::HAVE_PHP; |
| ok(-1 != ($php_child = $tf_real->spawnfcgi($phpbin, 1026)), "Spawning php"); | ok(-1 != ($php_child = $tf_real->spawnfcgi($ENV{'PHP'}, 1026)), "Spawning php"); |
| } | } |
| ## we need two procs | ## we need two procs |