Re: Re: Bug #7238 Updated: Crash caused by is_uploaded function, see also bug#7198

From: Date: Thu, 01 Jan 1970 00:00:00 +0000
Subject: Re: Re: Bug #7238 Updated: Crash caused by is_uploaded function, see also bug#7198
References: 1  Groups: php.dev 
Request: Send a blank email to php-dev+get-35244@lists.php.net to get a copy of this message
On Tue, 17 Oct 2000, Zeev Suraski wrote: > That's not a very good solution... > Maybe, not. But that is what I had to do to get the php 3.0.17 working with IMP 2.2.x. Php 3.0.16 worked more or less flawlesly with IMP 2.2.x The is_upload funtion is removed because it used the GLOBAL(request_info).rfc1867_uploaded_files variable. I had to remove function call from mime.c: _php3_hash_add(&GLOBAL(request_info).rfc1867_uploaded_files, ... otherwise Apache process would crash. Here's gdb's backtrace of apache process with that has the _php3_hash_add(&GLOBAL(request_info).r... function call in mime.c: Program received signal SIGSEGV, Segmentation fault. 0x0 in ?? () #0 0x0 in ?? () #1 0x55450 in php3_mime_split () #2 0x59eb8 in php3_getpost () #3 0x5a4cc in php3_treat_data () #4 0x2e194 in _php3_hash_environment () #5 0x818ec in lex_scan () #6 0x34824 in read_next_token () #7 0x2cc24 in phplex () #8 0x756a4 in phpparse () #9 0x2e670 in php3_parse () #10 0x2e998 in apache_php3_module_main () #11 0x2bc90 in send_php3 () #12 0x2bd08 in send_parsed_php3 () #13 0x876e8 in ap_invoke_handler () #14 0x982b8 in process_request_internal () #15 0x98310 in ap_process_request () #16 0x91140 in child_main () #17 0x912e0 in make_child () #18 0x91428 in startup_children () #19 0x919d4 in standalone_main () So there's definately something very wrong in that _php3_hash_add(... function call in mime.c. As file functions/mime.c in php3 3.0.16 did not have that function call in mime.c and it worked with with IMP 2.2.x. If I do remove that _php3_hash_add from php3 3.0.17 then IMP 2.2.x once again works. > -- > Zeev Suraski <zeev@zend.com> > http://www.zend.com/ > -- Leena Heino (liinu@uta.fi)

« previous php.dev (#35244) next »