#28708 [Opn->Fbk]: move_uploaded_file to no Permission dir make php crash

From: Date: Thu, 10 Jun 2004 14:01:21 +0000
Subject: #28708 [Opn->Fbk]: move_uploaded_file to no Permission dir make php crash
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-60728@lists.php.net to get a copy of this message
ID: 28708 Updated by: iliaa@php.net Reported By: xuefer at 21cn dot com -Status: Open +Status: Feedback Bug Type: Filesystem function related Operating System: linux & xp PHP Version: 4.3.7 New Comment: Are you using thread-safe PHP? Try compiling php with --enable-debug, this should produce a more detailed backtrace. Previous Comments: ------------------------------------------------------------------------ [2004-06-10 03:25:13] xuefer at 21cn dot com backtrace: #0 0x404878fb in zif_move_uploaded_file () from /www/modules/libphp4.so #1 0x4052b6f8 in execute () from /www/modules/libphp4.so #2 0x4052b464 in execute () from /www/modules/libphp4.so #3 0x40515f12 in call_user_function_ex () from /www/modules/libphp4.so #4 0x40485547 in zif_call_user_func_array () from /www/modules/libphp4.so #5 0x4052b6f8 in execute () from /www/modules/libphp4.so #6 0x4052b464 in execute () from /www/modules/libphp4.so #7 0x4052b464 in execute () from /www/modules/libphp4.so #8 0x4052b464 in execute () from /www/modules/libphp4.so #9 0x4052b464 in execute () from /www/modules/libphp4.so #10 0x4052b464 in execute () from /www/modules/libphp4.so #11 0x4052b464 in execute () from /www/modules/libphp4.so #12 0x4052b464 in execute () from /www/modules/libphp4.so #13 0x4051dacc in zend_execute_scripts () from /www/modules/libphp4.so #14 0x404f1b6c in php_execute_script () from /www/modules/libphp4.so #15 0x4053170b in php_handler () from /www/modules/libphp4.so #16 0x080af7e0 in ap_invoke_handler () #17 0x0809164b in ap_process_request () #18 0x0808bd2c in ap_process_http_connection () #19 0x080bc385 in ap_process_connection () #20 0x080af2da in child_main () #21 0x080ae144 in make_child () #22 0x080ae539 in perform_idle_server_maintenance () #23 0x080adaed in ap_mpm_run () #24 0x080b56a1 in main () #25 0x402b0657 in __libc_start_main (main=0x80b4cd0 <main>, argc=3, ubp_av=0xbffffae4, init=0x806693c <_init>, fini=0x80d5540 <_fini>, rtld_fini=0x4100dc54 <_dl_fini>, stack_end=0xbffffadc) at ../sysdeps/generic/libc-start.c:129 ------------------------------------------------------------------------ [2004-06-09 16:14:03] iliaa@php.net Cannot replicate the bug, I get the same error messages, however the error correctly displays the filenames involved. The error seems to be caused by an unrelated memory corruption. ------------------------------------------------------------------------ [2004-06-09 09:21:41] xuefer at 21cn dot com Description: ------------ move_uploaded_file to NO Permission dir get make crash in shell: chmod 000 /path/to in php: move_uploaded_file($_FILES['userfile']['tmp_name'], '/path/to/file.jpg'); crash or show 2 error: move_uploaded_file(/path/to/file.jpg): failed to open stream: Permission denied move_uploaded_file(): Unable to move 'pbZ@ËZ ' to '@ËZ€V,' ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=28708&edit=1

« previous php.bugs (#60728) next »