Opened 13 years ago

Closed 12 years ago

#30661 closed defect (worksforme)

php5-soap extension not available in fastcgi binary

Reported by: axolx@… Owned by: ryandesign (Ryan Carsten Schmidt)
Priority: Normal Milestone:
Component: ports Version: 2.0.1
Keywords: Cc:
Port: php5-soap

Description (last modified by ryandesign (Ryan Carsten Schmidt))

The classes provided by the SOAP PHP extension are not available on cgi, but are available in the command line binary. Both are using the same php.ini. The soap extension shows in the phpinfo() for the command line, but not fastcgi. php throws no errors in fastcgi until i try to instantiate a class provided by the SOAP extensions. I recompiled both php5 and php5-soap. I am running the following versions:

php5 @5.3.6_0+fastcgi+pear
php5-soap @5.3.6_0
lighttpd @1.4.28_0+cml+ssl

Could the SOAP extension not be compiling for the fastcgi binary?

Let me know if I can provide any further information.

Change History (4)

comment:1 Changed 13 years ago by jmroot (Joshua Root)

Owner: changed from macports-tickets@… to ryandesign@…

Please remember to cc the maintainer.

comment:2 Changed 13 years ago by ryandesign (Ryan Carsten Schmidt)

Description: modified (diff)

comment:3 Changed 13 years ago by ryandesign (Ryan Carsten Schmidt)

Summary: soap extension not available in fastcgi binaryphp5-soap extension not available in fastcgi binary

Works fine here.

$ port installed php5 php5-soap lighttpd
The following ports are currently installed:
  lighttpd @1.4.28_0+ssl+universal (active)
  php5 @5.3.6_0+apache2+fastcgi+universal (active)
  php5-soap @5.3.6_0+universal (active)
$ echo '<?php echo (int)class_exists("SoapClient")."\n";' > ~/Sites/test/soap.php
$ php ~/Sites/test/soap.php
1
$ curl -i http://localhost/~rschmidt/test/soap.php
HTTP/1.1 200 OK
Content-type: text/html
Transfer-Encoding: chunked
Date: Tue, 09 Aug 2011 14:31:53 GMT
Server: lighttpd

1
$ sudo port deactivate php5-soap
--->  Deactivating php5-soap @5.3.6_0+universal
$ sudo port unload lighttpd
$ sudo port load lighttpd
$ php ~/Sites/test/soap.php
0
$ curl -i http://localhost/~rschmidt/test/soap.php
HTTP/1.1 200 OK
Content-type: text/html
Transfer-Encoding: chunked
Date: Tue, 09 Aug 2011 14:46:10 GMT
Server: lighttpd

0
$ 

Are you sure:

  • you stopped and started lighttpd after installing php5-soap?
  • lighttpd is actually using MacPorts PHP FCGI and not some other PHP FCGI?

comment:4 Changed 12 years ago by ryandesign (Ryan Carsten Schmidt)

Resolution: worksforme
Status: newclosed
Note: See TracTickets for help on using tickets.