dbg_client fails to make on macosx-10.4.2 tiger PHP-5.0.4 |
phpinfo showing DBG (c) in header but not DBG variables |
|
macosx-10.4.2 tiger php-5.0.4 apache-2.0.54 dbg-2.11.32
I run into the following problem, DBG copyright appears in the phpinfo header as follow : This program makes use of the Zend Scripting Language Engine: Zend Engine v2.0.4-dev, Copyright (c) 1998-2004 Zend Technologies with DBG v2.11.32, (C) 2000,2005, by Dmitri Dmitrienko but DBG variables are not displayed by phpinfo. Any ideas? Thanks for your help |
||||||||||||
|
Site Admin
|
Do you have any other Zend Extension module loaded with zend_extension=/some/path/somefile.so ? In this case you'd remove extension=dbg.so and add zend_extension=/path/to/dbg/dbg.so and this line should be the first among other zend_extension lines in the configuration file. |
||||||||||||||
|
phpinfo showing DBG (c) in header but not DBG variables |
|
Dmitri
Thanks for your time. I made dbg with the following commands: cd dbg-2.11.32 /usr/jj/php/bin/phpize ./deferphpize ./configure --enable-dbg=shared --with-php-config=/usr/jj/php/bin/php-config --with-dbg-profiler make make install I made PHP with the followinf configuration: ./configure --prefix=/usr/jj/php --with-config-file-path=/usr/jj/php/etc --with-zlib --with-zlib-dir=/usr/jj/zlib --with-freetype-dir=/usr/jj/freetype --with-apxs2=/usr/jj/apache2/bin/apxs --with-curl=/usr/jj/curl --with-gd=/usr/jj/gd --with-jpeg-dir=/usr/jj/libjpeg --with-png-dir=/usr/jj/libpng --with-mysql=/usr/local/mysql --with-mysqli=/usr/local/mysql/bin/mysql_config --enable-sqlite-utf8 --enable-bcmath --enable-shared --enable-static --enable-mbstring --enable-exif --enable-zend-multibyte --enable-wddx --with-xmlrpc --with-pear=/usr/jj/pear --with-xsl=/usr/jj/libxslt --with-gettext=/usr/jj/gettext --with-libxml-dir=/usr/jj/libxml --with-expat-dir=/usr/jj/expat --with-iconv-dir=/usr/jj/libiconv --with-mhash=/usr/jj/mhash --with-mcrypt=/usr/jj/libmcrypt --with-bz2=/usr/jj/bzip2 --with-readline=/usr/jj/readline --with-t1lib=/usr/jj/t1lib --with-openssl=/usr/jj/openssl --with-db4=/usr/jj/db php.ini dbg section: [Debugger] zend_extension="/usr/jj/php/lib/php/extensions/no-debug-non-zts-20041030/dbg.so" ;extension=dbg.so debugger.enabled=On debugger.profiler_enabled=On debugger.JIT_enabled=On debugger.JIT_host=clienthost debugger.JIT_port=7869 debugger.hosts_allow=ALL debugger.fail_silently=Off I tryed different build sequences: - with and without ./deferphpize, - with different configure options. I tryed different php.ini sequences: - with no zend stuff and as extension=dbg.so (phpinfo: DBG doesn't show in credits and no DBG section), - with no zend stuff and as zend_extension=/blabla/dbg.so (phpinfo: DBG shows in credits but no DBG section), - with zend stuff (phpinfo: Zend Manager, Zend Optimizer and DBG do show in credits but no DBG section), [Zend Extension Manager] zend_extension="/usr/local/Zend/lib/ZendExtensionManager.so" [Zend optimizer] zend_optimizer.optimization_level=15 zend_extension_manager.optimizer="/usr/local/Zend/lib/Optimizer-2.5.11" zend_optimizer.version=2.5.10a I am running macosx-10.4.2 tiger with apache-2.0.54 and php 5.0.4 I have no clue on what is wrong. Is DBG expecting some libs ? I have a peculiar layout and the libs might not be where expected. Do I need to add some LDFLAGS and CPPFLAGS to ./configure ? If DBG shows in phpinfo credits does that mean that it has been loaded ? Your help is much appreciated. Sincerely, |
||||||||||||
|
Site Admin
|
it's platform-depended. In most cases no libs are required other than libc itself.
Nope.
it must be shown in phpinfo credits and in its own section (DBG). Otherwise it means that it's not been properly loaded. BTW, whenever you change anything in php.ini you must restart httpd, otherwise no changes will be in effect. |
||||||||||||||||||
|
|
Yes i do restart apache after each php.ini change.
Any clue on what can be the causes of this behaviour ? |
||||||||||||
|
Site Admin
|
ok. Create clean php.ini with no options in other than below
extension_dir=/some/dir/where/php/extensions/are extension=dbg.so debugger.enabled=On and let me know if it works |
||||||||||||
Last edited by dmitri on Thu Oct 20, 2005 9:10 am; edited 1 time in total |
|
Go for it
|
||||||||||||
|
|
GOOD, now it shows up in credits *AND* DBG section.
|
||||||||||||
|
|
Next question is what if I add Zend Optimiser ?
|
||||||||||||
|
Site Admin
|
you can try it but first
1) change extension=dbg.so to zend_extension=/some/dir/where/php/extensions/are/dbg.so 2) make sure that this line is above any other zend_extension lines |
||||||||||||
|
|
Here are the results of some php.ini tests that were run separately.
BTW I installed Zend Studio 5.0 Beta some times ago. Can this be an explanation ? ;;test 1 - WORKS! DBG in credits and DBG section ;extension_dir=/usr/jj/php/lib/php/extensions/no-debug-non-zts-20041030 ;extension=dbg.so ;debugger.enabled=On ;;test2 - FAILS! Shows in credits NOT in DBG section ;zend_extension=/usr/jj/php/lib/php/extensions/no-debug-non-zts-20041030/dbg.so ;debugger.enabled=On ;;test3 - FAILS! Shows in credits NOT in DBG section ;zend_extension=/usr/local/Zend/lib/ZendExtensionManager.so ;zend_extension=/usr/jj/php/lib/php/extensions/no-debug-non-zts-20041030/dbg.so ;debugger.enabled=On ;;test4 - FAILS! Shows in credits NOT in DBG section ;zend_extension=/usr/jj/php/lib/php/extensions/no-debug-non-zts-20041030/dbg.so ;zend_extension=/usr/local/Zend/lib/ZendExtensionManager.so ;debugger.enabled=On ;;test 4 - FAILS! Apache doesn't restart ;extension_dir=/usr/jj/php/lib/php/extensions/no-debug-non-zts-20041030 ;extension=dbg.so ;debugger.enabled=On ;zend_extension=/usr/local/Zend/lib/ZendExtensionManager.so ;zend_optimizer.optimization_level=15 ;zend_extension_manager.optimizer=/usr/local/Zend/lib/Optimizer-2.5.11 ;zend_optimizer.version=2.5.10a ;;test 5 - FAILS! Shows in credits NOT in DBG section zend_extension=/usr/jj/php/lib/php/extensions/no-debug-non-zts-20041030/dbg.so debugger.enabled=On zend_extension=/usr/local/Zend/lib/ZendExtensionManager.so zend_optimizer.optimization_level=15 zend_extension_manager.optimizer=/usr/local/Zend/lib/Optimizer-2.5.11 zend_optimizer.version=2.5.10a |
||||||||||||
|
dbg_client fails to make on macosx-10.4.2 tiger PHP-5.0.4 |
|
||
Content © NuSphere Corp., PHP IDE team
Powered by phpBB © phpBB Group, Design by phpBBStyles.com | Styles Database.
Powered by
Powered by phpBB © phpBB Group, Design by phpBBStyles.com | Styles Database.
Powered by