Bug #3115: phpinfo() cores with phplib

From: Date: Thu, 06 Jan 2000 09:40:14 +0000
Subject: Bug #3115: phpinfo() cores with phplib
Groups: php.dev 
Request: Send a blank email to php-dev+get-14300@lists.php.net to get a copy of this message
From: Brian.Craigie@necs.demon.co.uk Operating system: Sparc Solaris 7 PHP version: 3.0.12 PHP Bug Type: Misbehaving function Bug description: phpinfo() cores with phplib I see numerous closed bug reports relating to phpinfo() causing a core dump, however in certain situations it does not appear to be fixed yet. phpinfo() creates a partial web page (stopping in the middle of the "Environment" table) when used in a script with phplib's page_open on it. phplib version 7.2 Backtrace: (gdb) run -f /usr/local/apache/conf/httpd_debug.conf -X Starting program: /apache_stuff/apache/conf/../bin/httpd_debug -f /usr/local/apache/conf/httpd_debug.conf -X Program received signal SIGSEGV, Segmentation fault. 0x530ac in _php3_hash_internal_pointer_reset (ht=0x1b5818) at php3_hash.c:983 983 ht->pInternalPointer = ht->pListHead; (gdb) bt #0 0x530ac in _php3_hash_internal_pointer_reset (ht=0x1b5818) at php3_hash.c:983 #1 0x7c710 in _php3_info () at functions/info.c:290 #2 0x7cbc0 in php3_info (ht=0x40d398, return_value=0x21c4a8, list=0x21cf6c, plist=0x21dce4) at functions/info.c:418 #3 0x8f7c8 in phpparse () at control_structures_inline.h:934 #4 0x513f0 in php3_parse (yyin=0x21d400) at main.c:1548 #5 0x51718 in apache_php3_module_main (r=0x318c40, fd=2092032, display_source_mode=0, preprocessed=0) at main.c:1934 #6 0x4e37c in send_php3 () #7 0x4e40c in send_parsed_php3 () #8 0xdc06c in ap_invoke_handler () #9 0xf84b4 in process_request_internal () #10 0xf8538 in ap_process_request () #11 0xec110 in child_main () #12 0xec3a4 in make_child () #13 0xec5c0 in startup_children () #14 0xecfb0 in standalone_main () #15 0xedb98 in main () (gdb) test.php3 script which causes the problem:- <?php page_open(array("sess" => "Example_Session")); ?> <html> <head><title>PHP3 test page</title></head> <body bgcolor="#ffffff"> <a href="<?php $sess->purl("index.php3")?>">Load</a> the simple page again.<br> <a href="<?php $sess->purl("showoff.php3")?>">Load</a> the complex example again (login as kris, password test). <br> <a href="<?php $sess->purl("defauth.php3")?>">Load</a> the default auth example.<br> <a href="<?php $sess->purl("logout.php3") ?>">Logout</a> and delete your authentication information.<br> <?php page_close(); phpinfo(); ?> </body> </html> <!-- $Id: test.php3,v 1.5 1999/04/30 19:51:29 kk Exp $ --> If I can provide any help or more info on this, please let me know. Thanks very much for an excellent product. Best Regards, Brian S. Craigie

« previous php.dev (#14300) next »