NuSphere Forums Forum Index
NuSphere Forums
Reply to topic
PHP 5.2.1?


Joined: 13 Jun 2004
Posts: 25
Reply with quote
Hi

Just building a new dev server and can't seem to get dbg working, which seems odd as it is normally so simple.

I'm wondering if it is because I'm running PHP 5.2.1 and the .so I'm using is the 5.2.x one bundled with PHPEd 4.6.3.

For example:

grendel:/usr/lib/php/20060613-zts# php -v
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php/20060613-zts/dbg.so' - /usr/lib/php/20060613-zts/dbg.so: undefined symbol: compiler_globals in Unknown on line 0
PHP 5.2.1 (cli) (built: Apr 16 2007 17:46:47)
Copyright (c) 1997-2007 The PHP Group
Zend Engine v2.2.0, Copyright (c) 1998-2007 Zend Technologies

FWIW here's my PHP compile lines

./configure --with-layout=GNU --with-pear=/usr/share/php --enable-track-vars \
–enable-force-cgi-redirect –with-openssl=shared,/usr –with-zlib \
–with-exec-dir=/usr/lib/php/libexec –prefix=/usr –with-apxs2=/usr/bin/apxs2 \
–with-regex=php –with-config-file-path=/etc/php –with-curl=shared,/usr \
–with-gd –with-zlib-dir=/usr –with-jpeg-dir=shared,/usr \
–with-png-dir=shared,/usr –with-mysql=/usr –with-mysql-sock=/tmp/mysql.sock
View user's profileFind all posts by bealersSend private message
Site Admin

Joined: 13 Jul 2003
Posts: 8334
Reply with quote
--enable-track-vars
removing this will solve your problem.

_________________
The PHP IDE team
View user's profileFind all posts by dmitriSend private messageVisit poster's website


Joined: 21 Oct 2007
Posts: 14
Reply with quote
I seem to be suffering from this also. Originally --enable-track-vars was in the configure so I recompiled without that but it still refuses to load with the same error. Here's the ./configure from phpinfo:-

Code:

'./configure' '--prefix=/opt/php' '--sysconfdir=/etc/php' '--with-config-file-path=/etc/php' '--disable-debug' '--enable-pic' '--disable-rpath' '--enable-inline-optimization' '--with-bz2' '--with-db4' '--with-curl' '--with-dom' '--with-exec-dir=/usr/local/bin' '--with-freetype-dir' '--with-png-dir' '--with-gd' '--enable-gd-native-ttf' '--with-ttf' '--with-gdbm' '--with-gettext' '--with-ncurses' '--with-gmp' '--with-iconv' '--with-jpeg-dir' '--with-openssl' '--with-png' '--with-pspell' '--with-regex=system' '--with-xml' '--with-expat-dir' '--with-pcre' '--with-zlib' '--with-layout=GNU' '--enable-bcmath' '--enable-exif' '--enable-ftp' '--enable-magic-quotes' '--enable-safe-mode' '--enable-sockets' '--enable-sysvsem' '--enable-sysvshm' '--enable-discard-path' '--enable-yp' '--enable-wddx' '--enable-mbstring' '--enable-mbstr-enc-trans' '--enable-mbregex' '--without-oci8' '--with-pear' '--with-kerberos' '--with-ldap' '--with-mysql' '--enable-memory-limit' '--enable-bcmath' '--enable-shmop' '--enable-calendar' '--enable-dbx' '--enable-dio' '--enable-mcal' '--with-apxs2=/opt/httpd/bin/apxs' '--with-imap-ssl' '--with-mcrypt' '--with-xsl' '--with-mysqli=/usr/bin/mysql_config'


We're running on a Linux 64 bit platform and we made sure we were using the x86_64 version of the module. Any ideas? tia.
(edit: we're using php5.2.5 :-

Code:

Server API    Apache 2.0 Handler
Virtual Directory Support    enabled
Configuration File (php.ini) Path    /etc/php
Loaded Configuration File    /etc/php/php.ini
PHP API    20041225
PHP Extension    20060613
Zend Extension    220060519
Debug Build    no
Thread Safety    enabled
Zend Memory Manager    enabled
IPv6 Support    enabled
Registered PHP Streams    php, file, data, http, ftp, compress.bzip2, compress.zlib, https, ftps
Registered Stream Socket Transports    tcp, udp, unix, udg, ssl, sslv3, sslv2, tls
Registered Stream Filters    string.rot13, string.toupper, string.tolower, string.strip_tags, convert.*, consumed, convert.iconv.*, bzip2.*, zlib.*
View user's profileFind all posts by AjKSend private message


Joined: 21 Oct 2007
Posts: 14
Reply with quote
Solved by recompiling Apache to be non-worker and php without thread safety.
View user's profileFind all posts by AjKSend private message
Site Admin

Joined: 13 Jul 2003
Posts: 8334
Reply with quote
"thead safety" is an experimental thing in PHP and it's not recommended to use it because many php extensions even included in the PHP source tree are not thradsafe by their design.
Certainly, Apache should be compiled in PreFork more and php threadsafety should be turned off.

On the other hand, if you have a lot of plain html/jpg/gif/css/js files on your server, you may get some performance boost if you run Apache in worker mode and php through a fastcgi apache module (still with php threadsafety turned off).

_________________
The PHP IDE team
View user's profileFind all posts by dmitriSend private messageVisit poster's website
PHP 5.2.1?
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
All times are GMT - 5 Hours  
Page 1 of 1  

  
  
 Reply to topic