[PHP] PHP 5.2.17 zend_mm_panic Called
Hi I recently upgraded from PHP 5.2.3 to PHP 5.2.17. After that, some of my pages keep failing with either Segfaults or calls to zend_mm_panic. My gdb backtrace shows: (gdb) bt #0 zend_mm_panic (message=0xb71fbda4 "zend_mm_heap corrupted") at /src/php-5.2.17/Zend/zend_alloc.c:92 #1 0xb70a1555 in zend_mm_remove_from_free_list (heap=0x80a61c8, mm_block=0x422d97a4) at /src/php-5.2.17/Zend/zend_alloc.c:838 #2 0xb70a0a21 in _zend_mm_free_int (heap=0x80a61c8, p=0x422d9964) at /src/php-5.2.17/Zend/zend_alloc.c:1984 #3 0xb70a0f8e in _efree (ptr=0x422d97d4) at /src/php-5.2.17/Zend/zend_alloc.c:2311 #4 0xb70a91c9 in free_zend_constant (c=0x82f8398) at /src/php-5.2.17/Zend/zend_variables.h:35 #5 0xb70bc4cc in zend_hash_apply_deleter (ht=0x80a6978, p=0x82f8358) at /src/php-5.2.17/Zend/zend_hash.c:611 #6 0xb70bc7ba in zend_hash_reverse_apply (ht=0x80a6978, apply_func=0xb70a922c ) at /src/php-5.2.17/Zend/zend_hash.c:760 #7 0xb70a9523 in clean_non_persistent_constants () at /src/php-5.2.17/Zend/zend_constants.c:162 #8 0xb70aa1a5 in shutdown_executor () at /src/php-5.2.17/Zend/zend_execute_API.c:303 #9 0xb70b4a83 in zend_deactivate () at /src/php-5.2.17/Zend/zend.c:860 #10 0xb708102e in php_request_shutdown (dummy=0x0) at /src/php-5.2.17/main/main.c:1504 #11 0xb711106e in apache_php_module_main (r=0x828ce5c, display_source_mode=0) at /src/php-5.2.17/sapi/apache/sapi_apache.c:59 #12 0xb7111a5b in send_php (r=0x828ce5c, display_source_mode=0, filename=0x0) at /src/php-5.2.17/sapi/apache/mod_php5.c:666 #13 0xb7111b67 in send_parsed_php (r=0x828ce5c) at /src/php-5.2.17/sapi/apache/mod_php5.c:681 #14 0x08054aa4 in ap_invoke_handler () #15 0x0806a2db in process_request_internal () #16 0x0806a737 in ap_internal_redirect () #17 0x400a071f in mod_gzip_redir1_handler () from /adp/home/www_serv/libexec/mod_gzip.so #18 0x4009eb06 in mod_gzip_handler () from /adp/home/www_serv/libexec/mod_gzip.so #19 0x08054aa4 in ap_invoke_handler () #20 0x0806a2db in process_request_internal () #21 0x0806a33a in ap_process_request () #22 0x0806109c in child_main () #23 0x08061322 in make_child () #24 0x08061661 in perform_idle_server_maintenance () #25 0x08061c9a in standalone_main () #26 0x080622ba in main () Has anyone seen this before? Any assistance would be greatly appreciated. Thanks in advance, Bruce
[PHP] 'dl() is deprecated' Error in PHP5.2.3
Hi Can someone explain to me why I'm getting the 'dl() is deprecated' error? I'm running PHP5.2.3 and I believe that I have the php.ini settings correct: error.log:[2010-08-24T13:38:53] PC Error: dl() [function.dl]: dl() is deprecated - use extension=test.so in your php.ini bash-2.05b$ php --version PHP 5.2.3 (cli) (built: May 4 2009 16:23:02) bash-2.05b$ php -i | grep -i safe Thread Safety => disabled safe_mode => Off => Off safe_mode_exec_dir => no value => no value safe_mode_gid => Off => Off safe_mode_include_dir => no value => no value sql.safe_mode => Off => Off bash-2.05b$ php -i | grep -i dl enable_dl => On => On I thought that 'dl' wasn't deprecated until version 5.3.x Thanks in advance, Bruce
RE: [PHP] Re: Can a PHP 5 Object Be Persisted Past Script End?
Adam Thanks for the information, I'll explore that option. Bruce From: Adam Zey <[EMAIL PROTECTED]> To: Bruce Bailey <[EMAIL PROTECTED]> CC: php-general@lists.php.net Subject: [PHP] Re: Can a PHP 5 Object Be Persisted Past Script End? Date: Thu, 17 Aug 2006 17:05:41 -0400 Bruce Bailey wrote: Hi In order to improve performance for a socket-based PHP 5 object, I would like to persist an object beyond the end of a script. Is there any way to make this work? Will PHP 5 automatically destroy the object sometime after the script ends? Thanks in Advance, Bruce _ On the road to retirement? Check out MSN Life Events for advice on how to get there! http://lifeevents.msn.com/category.aspx?cid=Retirement Yes (it will destroy them), but you can look into persistent sockets, and serializing objects. Info is in the manual. Regards, Adam. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php _ Express yourself instantly with MSN Messenger! Download today - it's FREE! http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Can a PHP 5 Object Be Persisted Past Script End?
Hi In order to improve performance for a socket-based PHP 5 object, I would like to persist an object beyond the end of a script. Is there any way to make this work? Will PHP 5 automatically destroy the object sometime after the script ends? Thanks in Advance, Bruce _ On the road to retirement? Check out MSN Life Events for advice on how to get there! http://lifeevents.msn.com/category.aspx?cid=Retirement -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Difference between --with-... and --enable-... in config.m4 [php-4.3.1]
Hi I created a new extension in php-4.3.1 using the ext_skel script. When I edit the config.m4 file, I see a comment that says 'If your extension references something external, use with' seems rather ambiguous. Its not clear if something external is the UNIX file system, a socket connection to another system, another DSO, or something else. What is the difference between --with-... and --enable-... in config.m4. More importantly, why would I choose one or the other. Thanks in advance. Bruce [EMAIL PROTECTED] _ Learn how to choose, serve, and enjoy wine at Wine @ MSN. http://wine.msn.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php