Opened 14 years ago
Closed 13 years ago
#25941 closed defect (worksforme)
php52 fastcgi doesn't work. can't find native php functions
Reported by: | axolx@… | Owned by: | ryandesign (Ryan Carsten Schmidt) |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | 1.9.1 |
Keywords: | Cc: | ||
Port: | php52 |
Description
I've upgraded by older php52 port to: php52 @5.2.14_0+fastcgi+mysql5+pear+postgresql83+sqlite+tidy
The regular php binary works fine, but php-cgi cannot find native php functions. I thought I upgrade may have left some libs behind, so I wiped out /opt/local/lib/php and /opt/local/etc and recompiled to no avail.
Illustration of the problem:
Running CLI php:
[beast] /opt/local/bin/php -a Interactive mode enabled <?php phpinfo(); ?> [regular phpinfo output]
Running the FastCGI binary php:
[beast] /opt/local/bin/php-cgi -a Interactive mode enabled <?php phpinfo(); ?> PHP Fatal error: Call to undefined function phpinfo() in - on line 1 Status: 500 Internal Server Error X-Powered-By: PHP/5.2.14 Content-type: text/html
Versions:
[beast] /opt/local/bin/php -v PHP 5.2.14 (cli) (built: Aug 3 2010 17:19:43) Copyright (c) 1997-2010 The PHP Group Zend Engine v2.2.0, Copyright (c) 1998-2010 Zend Technologies
[beast] /opt/local/bin/php-cgi -v PHP 5.2.14 (cgi-fcgi) (built: Aug 3 2010 17:19:42) Copyright (c) 1997-2010 The PHP Group Zend Engine v2.2.0, Copyright (c) 1998-2010 Zend Technologies
MacPorts 1.9.1 OS X 10.6.4
Change History (7)
comment:1 Changed 14 years ago by axolx@…
comment:2 Changed 14 years ago by ryandesign (Ryan Carsten Schmidt)
Keywords: | php removed |
---|---|
Owner: | changed from macports-tickets@… to ryandesign@… |
Priority: | High → Normal |
Status: | new → assigned |
I see. Sounds like something you should report to the developers of PHP. I have not had the opportunity to test php52 @5.2.14.
comment:3 Changed 14 years ago by ryandesign (Ryan Carsten Schmidt)
FYI, I am not able to reproduce this issue with php52 @5.2.14_0+apache2+fastcgi+mysql5+sqlite+universal installed on Snow Leopard. What OS have you installed this on?
comment:5 Changed 14 years ago by ryandesign (Ryan Carsten Schmidt)
Sorry, I see now you said so initially.
I can't reproduce this with php52 @5.2.14_0+fastcgi+mysql5+pear+postgresql83+sqlite+tidy either.
Do you have anything weird in your php.ini? Or any PHP extensions installed that you could try deactivating?
comment:6 Changed 14 years ago by axolx@…
I removed all installed extensions (had apc & xdebug) and the problem persisted. also started using the php.ini that comes with the port rather than mine and still had the problem.
i'm going to take a break for tonight as i've compiled php52 about 20 times in the past couple of hours :-P will report back here when i try to compile again...
comment:7 Changed 13 years ago by ryandesign (Ryan Carsten Schmidt)
Resolution: | → worksforme |
---|---|
Status: | assigned → closed |
Closing due to lack of information.
I reverted the portfile to @69520 (which is right before the revision with message "php52: update to 5.2.14") and building off that portfile does not have the problem documented above.