get_browser() seg-faults

From: Date: Wed, 16 Feb 2000 16:48:58 +0000
Subject: get_browser() seg-faults
Groups: php.version4 
Request: Send a blank email to php-version4+get-10364@lists.php.net to get a copy of this message
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hi, I've compiled the latest CVS as an Apache DSO (1.3.11) on a FreeBSD 3.3 box. I tried to use the get_browser() function with the browscap.ini file from http://www.cyscape.com/browscap (the php version was 12 lines of header???). If the browser's details are found/matched, apache/php segfaults (trace below). I've narrowed it down to the pval_copy_constructor() function on line 106 of ext/standard/browscap.c, but don't know to fix it :( Thanks in advance... Stewart. Program received signal SIGSEGV, Segmentation fault. 0x282fdc08 in zend_hash_copy () from /usr/local/libexec/apache/libphp4.so (gdb) bt #0 0x282fdc08 in zend_hash_copy () from /usr/local/libexec/apache/libphp4.so #1 0x282f9bb4 in _zval_copy_ctor () from /usr/local/libexec/apache/libphp4.so #2 0x2832163e in php_if_get_browser () from /usr/local/libexec/apache/libphp4.so #3 0x282eb14f in execute () from /usr/local/libexec/apache/libphp4.so #4 0x282ba1a2 in php_execute_script () from /usr/local/libexec/apache/libphp4.so #5 0x28305045 in apache_php_module_main () from /usr/local/libexec/apache/libphp4.so #6 0x28305897 in send_php () from /usr/local/libexec/apache/libphp4.so #7 0x283058d4 in send_parsed_php () from /usr/local/libexec/apache/libphp4.so #8 0x8052e55 in ap_invoke_handler () #9 0x8060371 in process_request_internal () #10 0x80603bf in ap_process_request () #11 0x805a630 in child_main () #12 0x805a777 in make_child () #13 0x805a86c in startup_children () #14 0x805ad04 in standalone_main () #15 0x805b3eb in main () #16 0x804f935 in _start () -----BEGIN PGP SIGNATURE----- Version: PGP 6.5.1i for non-commercial use <http://www.pgpi.com/> iQA/AwUBOKrU+DBV3dfs1c5kEQLARQCeJZY9NsJ/sz3a7Ffvb1HzTvH5aDQAoJYu QLhVV96J/xlvjBw5ZI8w2zq9 =0b+p -----END PGP SIGNATURE-----

« previous php.version4 (#10364) next »