New Ticket     Tickets     Wiki     Browse Source     Timeline     Roadmap     Ticket Reports     Search

Ticket #30661 (closed defect: worksforme)

Opened 22 months ago

Last modified 12 months ago

php5-soap extension not available in fastcgi binary

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

Description (last modified by ryandesign@…) (diff)

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

comment:1 Changed 22 months ago by jmr@…

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

Please remember to cc the maintainer.

comment:2 Changed 22 months ago by ryandesign@…

  • Description modified (diff)

comment:3 Changed 22 months ago by ryandesign@…

  • Summary changed from soap extension not available in fastcgi binary to php5-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 months ago by ryandesign@…

  • Status changed from new to closed
  • Resolution set to worksforme
Note: See TracTickets for help on using tickets.