ID:          48880
 Updated by:  gwy...@php.net
 Reported By: brwarner at rogers dot com
-Status:      Open
+Status:      Verified
 Bug Type:    Safe Mode/open_basedir
 PHP Version: 5.3.0
 New Comment:

I set up a build of 5.3 (latest SVN) with Apache 2.2.11, set
php_admin_value open_basedir, and ran the whole mess through valgrind.
Here're the results:

==63247== Invalid read of size 1
==63247==    at 0x100C4974B: OnUpdateBaseDir (in
/opt/httpd-2.2.11/modules/libphp5.so)
==63247==    by 0x100D00B5A: zend_alter_ini_entry_ex (in
/opt/httpd-2.2.11/modules/libphp5.so)
==63247==    by 0x100D008C3: zend_alter_ini_entry (in
/opt/httpd-2.2.11/modules/libphp5.so)
==63247==    by 0x100DF0C5D: apply_config (in
/opt/httpd-2.2.11/modules/libphp5.so)
==63247==    by 0x100DEFF53: php_handler (in
/opt/httpd-2.2.11/modules/libphp5.so)
==63247==    by 0x100001C2A: ap_run_handler (in /sw/httpd/bin/httpd)
==63247==    by 0x1000024DD: ap_invoke_handler (in
/sw/httpd/bin/httpd)
==63247==    by 0x100038579: ap_process_request (in
/sw/httpd/bin/httpd)
==63247==    by 0x100034E3C: ap_process_http_connection (in
/sw/httpd/bin/httpd)
==63247==    by 0x100012356: ap_run_process_connection (in
/sw/httpd/bin/httpd)
==63247==    by 0x1000127A6: ap_process_connection (in
/sw/httpd/bin/httpd)
==63247==    by 0x10005EC22: child_main (in /sw/httpd/bin/httpd)
==63247==  Address 0x1037727b0 is 0 bytes inside a block of size 17
free'd
==63247==    at 0x1000BDAEF: free (vg_replace_malloc.c:324)
==63247==    by 0x100CB259C: _efree (in
/opt/httpd-2.2.11/modules/libphp5.so)
==63247==    by 0x100CFFF97: zend_restore_ini_entry_cb (in
/opt/httpd-2.2.11/modules/libphp5.so)
==63247==    by 0x100D00042: zend_restore_ini_entry_wrapper (in
/opt/httpd-2.2.11/modules/libphp5.so)
==63247==    by 0x100CF5F03: zend_hash_apply (in
/opt/httpd-2.2.11/modules/libphp5.so)
==63247==    by 0x100D00225: zend_ini_deactivate (in
/opt/httpd-2.2.11/modules/libphp5.so)
==63247==    by 0x100CE28D7: zend_deactivate (in
/opt/httpd-2.2.11/modules/libphp5.so)
==63247==    by 0x100C40DC2: php_request_shutdown (in
/opt/httpd-2.2.11/modules/libphp5.so)
==63247==    by 0x100DEFBB9: php_apache_request_dtor (in
/opt/httpd-2.2.11/modules/libphp5.so)
==63247==    by 0x100DF05B9: php_handler (in
/opt/httpd-2.2.11/modules/libphp5.so)
==63247==    by 0x100001C2A: ap_run_handler (in /sw/httpd/bin/httpd)
==63247==    by 0x1000024DD: ap_invoke_handler (in
/sw/httpd/bin/httpd)
==63247== 
==63247== Invalid read of size 1
==63247==    at 0x100C49C20: php_check_open_basedir_ex (in
/opt/httpd-2.2.11/modules/libphp5.so)
==63247==    by 0x100C497EA: OnUpdateBaseDir (in
/opt/httpd-2.2.11/modules/libphp5.so)
==63247==    by 0x100D00B5A: zend_alter_ini_entry_ex (in
/opt/httpd-2.2.11/modules/libphp5.so)
==63247==    by 0x100D008C3: zend_alter_ini_entry (in
/opt/httpd-2.2.11/modules/libphp5.so)
==63247==    by 0x100DF0C5D: apply_config (in
/opt/httpd-2.2.11/modules/libphp5.so)
==63247==    by 0x100DEFF53: php_handler (in
/opt/httpd-2.2.11/modules/libphp5.so)
==63247==    by 0x100001C2A: ap_run_handler (in /sw/httpd/bin/httpd)
==63247==    by 0x1000024DD: ap_invoke_handler (in
/sw/httpd/bin/httpd)
==63247==    by 0x100038579: ap_process_request (in
/sw/httpd/bin/httpd)
==63247==    by 0x100034E3C: ap_process_http_connection (in
/sw/httpd/bin/httpd)
==63247==    by 0x100012356: ap_run_process_connection (in
/sw/httpd/bin/httpd)
==63247==    by 0x1000127A6: ap_process_connection (in
/sw/httpd/bin/httpd)
==63247==  Address 0x1037727b0 is 0 bytes inside a block of size 17
free'd
==63247==    at 0x1000BDAEF: free (vg_replace_malloc.c:324)
==63247==    by 0x100CB259C: _efree (in
/opt/httpd-2.2.11/modules/libphp5.so)
==63247==    by 0x100CFFF97: zend_restore_ini_entry_cb (in
/opt/httpd-2.2.11/modules/libphp5.so)
==63247==    by 0x100D00042: zend_restore_ini_entry_wrapper (in
/opt/httpd-2.2.11/modules/libphp5.so)
==63247==    by 0x100CF5F03: zend_hash_apply (in
/opt/httpd-2.2.11/modules/libphp5.so)
==63247==    by 0x100D00225: zend_ini_deactivate (in
/opt/httpd-2.2.11/modules/libphp5.so)
==63247==    by 0x100CE28D7: zend_deactivate (in
/opt/httpd-2.2.11/modules/libphp5.so)
==63247==    by 0x100C40DC2: php_request_shutdown (in
/opt/httpd-2.2.11/modules/libphp5.so)
==63247==    by 0x100DEFBB9: php_apache_request_dtor (in
/opt/httpd-2.2.11/modules/libphp5.so)
==63247==    by 0x100DF05B9: php_handler (in
/opt/httpd-2.2.11/modules/libphp5.so)
==63247==    by 0x100001C2A: ap_run_handler (in /sw/httpd/bin/httpd)
==63247==    by 0x1000024DD: ap_invoke_handler (in
/sw/httpd/bin/httpd)
==63247== 
==63247== Invalid read of size 1
==63247==    at 0x1000BEF96: strlen (mc_replace_strmem.c:275)
==63247==    by 0x100CB2A6F: _estrdup (in
/opt/httpd-2.2.11/modules/libphp5.so)
==63247==    by 0x100C49C6E: php_check_open_basedir_ex (in
/opt/httpd-2.2.11/modules/libphp5.so)
==63247==    by 0x100C497EA: OnUpdateBaseDir (in
/opt/httpd-2.2.11/modules/libphp5.so)
==63247==    by 0x100D00B5A: zend_alter_ini_entry_ex (in
/opt/httpd-2.2.11/modules/libphp5.so)
==63247==    by 0x100D008C3: zend_alter_ini_entry (in
/opt/httpd-2.2.11/modules/libphp5.so)
==63247==    by 0x100DF0C5D: apply_config (in
/opt/httpd-2.2.11/modules/libphp5.so)
==63247==    by 0x100DEFF53: php_handler (in
/opt/httpd-2.2.11/modules/libphp5.so)
==63247==    by 0x100001C2A: ap_run_handler (in /sw/httpd/bin/httpd)
==63247==    by 0x1000024DD: ap_invoke_handler (in
/sw/httpd/bin/httpd)
==63247==    by 0x100038579: ap_process_request (in
/sw/httpd/bin/httpd)
==63247==    by 0x100034E3C: ap_process_http_connection (in
/sw/httpd/bin/httpd)
==63247==  Address 0x1037727b0 is 0 bytes inside a block of size 17
free'd
==63247==    at 0x1000BDAEF: free (vg_replace_malloc.c:324)
==63247==    by 0x100CB259C: _efree (in
/opt/httpd-2.2.11/modules/libphp5.so)
==63247==    by 0x100CFFF97: zend_restore_ini_entry_cb (in
/opt/httpd-2.2.11/modules/libphp5.so)
==63247==    by 0x100D00042: zend_restore_ini_entry_wrapper (in
/opt/httpd-2.2.11/modules/libphp5.so)
==63247==    by 0x100CF5F03: zend_hash_apply (in
/opt/httpd-2.2.11/modules/libphp5.so)
==63247==    by 0x100D00225: zend_ini_deactivate (in
/opt/httpd-2.2.11/modules/libphp5.so)
==63247==    by 0x100CE28D7: zend_deactivate (in
/opt/httpd-2.2.11/modules/libphp5.so)
==63247==    by 0x100C40DC2: php_request_shutdown (in
/opt/httpd-2.2.11/modules/libphp5.so)
==63247==    by 0x100DEFBB9: php_apache_request_dtor (in
/opt/httpd-2.2.11/modules/libphp5.so)
==63247==    by 0x100DF05B9: php_handler (in
/opt/httpd-2.2.11/modules/libphp5.so)
==63247==    by 0x100001C2A: ap_run_handler (in /sw/httpd/bin/httpd)
==63247==    by 0x1000024DD: ap_invoke_handler (in
/sw/httpd/bin/httpd)
==63247== 
==63247== Invalid read of size 1
==63247==    at 0x1000BEFA3: strlen (mc_replace_strmem.c:275)
==63247==    by 0x100CB2A6F: _estrdup (in
/opt/httpd-2.2.11/modules/libphp5.so)
==63247==    by 0x100C49C6E: php_check_open_basedir_ex (in
/opt/httpd-2.2.11/modules/libphp5.so)
==63247==    by 0x100C497EA: OnUpdateBaseDir (in
/opt/httpd-2.2.11/modules/libphp5.so)
==63247==    by 0x100D00B5A: zend_alter_ini_entry_ex (in
/opt/httpd-2.2.11/modules/libphp5.so)
==63247==    by 0x100D008C3: zend_alter_ini_entry (in
/opt/httpd-2.2.11/modules/libphp5.so)
==63247==    by 0x100DF0C5D: apply_config (in
/opt/httpd-2.2.11/modules/libphp5.so)
==63247==    by 0x100DEFF53: php_handler (in
/opt/httpd-2.2.11/modules/libphp5.so)
==63247==    by 0x100001C2A: ap_run_handler (in /sw/httpd/bin/httpd)
==63247==    by 0x1000024DD: ap_invoke_handler (in
/sw/httpd/bin/httpd)
==63247==    by 0x100038579: ap_process_request (in
/sw/httpd/bin/httpd)
==63247==    by 0x100034E3C: ap_process_http_connection (in
/sw/httpd/bin/httpd)
==63247==  Address 0x1037727b1 is 1 bytes inside a block of size 17
free'd
==63247==    at 0x1000BDAEF: free (vg_replace_malloc.c:324)
==63247==    by 0x100CB259C: _efree (in
/opt/httpd-2.2.11/modules/libphp5.so)
==63247==    by 0x100CFFF97: zend_restore_ini_entry_cb (in
/opt/httpd-2.2.11/modules/libphp5.so)
==63247==    by 0x100D00042: zend_restore_ini_entry_wrapper (in
/opt/httpd-2.2.11/modules/libphp5.so)
==63247==    by 0x100CF5F03: zend_hash_apply (in
/opt/httpd-2.2.11/modules/libphp5.so)
==63247==    by 0x100D00225: zend_ini_deactivate (in
/opt/httpd-2.2.11/modules/libphp5.so)
==63247==    by 0x100CE28D7: zend_deactivate (in
/opt/httpd-2.2.11/modules/libphp5.so)
==63247==    by 0x100C40DC2: php_request_shutdown (in
/opt/httpd-2.2.11/modules/libphp5.so)
==63247==    by 0x100DEFBB9: php_apache_request_dtor (in
/opt/httpd-2.2.11/modules/libphp5.so)
==63247==    by 0x100DF05B9: php_handler (in
/opt/httpd-2.2.11/modules/libphp5.so)
==63247==    by 0x100001C2A: ap_run_handler (in /sw/httpd/bin/httpd)
==63247==    by 0x1000024DD: ap_invoke_handler (in
/sw/httpd/bin/httpd)
==63247== 
==63247== Invalid read of size 1
==63247==    at 0x1000BFF30: memcpy (mc_replace_strmem.c:482)
==63247==    by 0x100CB2AB8: _estrdup (in
/opt/httpd-2.2.11/modules/libphp5.so)
==63247==    by 0x100C49C6E: php_check_open_basedir_ex (in
/opt/httpd-2.2.11/modules/libphp5.so)
==63247==    by 0x100C497EA: OnUpdateBaseDir (in
/opt/httpd-2.2.11/modules/libphp5.so)
==63247==    by 0x100D00B5A: zend_alter_ini_entry_ex (in
/opt/httpd-2.2.11/modules/libphp5.so)
==63247==    by 0x100D008C3: zend_alter_ini_entry (in
/opt/httpd-2.2.11/modules/libphp5.so)
==63247==    by 0x100DF0C5D: apply_config (in
/opt/httpd-2.2.11/modules/libphp5.so)
==63247==    by 0x100DEFF53: php_handler (in
/opt/httpd-2.2.11/modules/libphp5.so)
==63247==    by 0x100001C2A: ap_run_handler (in /sw/httpd/bin/httpd)
==63247==    by 0x1000024DD: ap_invoke_handler (in
/sw/httpd/bin/httpd)
==63247==    by 0x100038579: ap_process_request (in
/sw/httpd/bin/httpd)
==63247==    by 0x100034E3C: ap_process_http_connection (in
/sw/httpd/bin/httpd)
==63247==  Address 0x1037727c0 is 16 bytes inside a block of size 17
free'd
==63247==    at 0x1000BDAEF: free (vg_replace_malloc.c:324)
==63247==    by 0x100CB259C: _efree (in
/opt/httpd-2.2.11/modules/libphp5.so)
==63247==    by 0x100CFFF97: zend_restore_ini_entry_cb (in
/opt/httpd-2.2.11/modules/libphp5.so)
==63247==    by 0x100D00042: zend_restore_ini_entry_wrapper (in
/opt/httpd-2.2.11/modules/libphp5.so)
==63247==    by 0x100CF5F03: zend_hash_apply (in
/opt/httpd-2.2.11/modules/libphp5.so)
==63247==    by 0x100D00225: zend_ini_deactivate (in
/opt/httpd-2.2.11/modules/libphp5.so)
==63247==    by 0x100CE28D7: zend_deactivate (in
/opt/httpd-2.2.11/modules/libphp5.so)
==63247==    by 0x100C40DC2: php_request_shutdown (in
/opt/httpd-2.2.11/modules/libphp5.so)
==63247==    by 0x100DEFBB9: php_apache_request_dtor (in
/opt/httpd-2.2.11/modules/libphp5.so)
==63247==    by 0x100DF05B9: php_handler (in
/opt/httpd-2.2.11/modules/libphp5.so)
==63247==    by 0x100001C2A: ap_run_handler (in /sw/httpd/bin/httpd)
==63247==    by 0x1000024DD: ap_invoke_handler (in
/sw/httpd/bin/httpd)
==63247== 
==63247== Invalid read of size 1
==63247==    at 0x1000BFF35: memcpy (mc_replace_strmem.c:482)
==63247==    by 0x100CB2AB8: _estrdup (in
/opt/httpd-2.2.11/modules/libphp5.so)
==63247==    by 0x100C49C6E: php_check_open_basedir_ex (in
/opt/httpd-2.2.11/modules/libphp5.so)
==63247==    by 0x100C497EA: OnUpdateBaseDir (in
/opt/httpd-2.2.11/modules/libphp5.so)
==63247==    by 0x100D00B5A: zend_alter_ini_entry_ex (in
/opt/httpd-2.2.11/modules/libphp5.so)
==63247==    by 0x100D008C3: zend_alter_ini_entry (in
/opt/httpd-2.2.11/modules/libphp5.so)
==63247==    by 0x100DF0C5D: apply_config (in
/opt/httpd-2.2.11/modules/libphp5.so)
==63247==    by 0x100DEFF53: php_handler (in
/opt/httpd-2.2.11/modules/libphp5.so)
==63247==    by 0x100001C2A: ap_run_handler (in /sw/httpd/bin/httpd)
==63247==    by 0x1000024DD: ap_invoke_handler (in
/sw/httpd/bin/httpd)
==63247==    by 0x100038579: ap_process_request (in
/sw/httpd/bin/httpd)
==63247==    by 0x100034E3C: ap_process_http_connection (in
/sw/httpd/bin/httpd)
==63247==  Address 0x1037727bf is 15 bytes inside a block of size 17
free'd
==63247==    at 0x1000BDAEF: free (vg_replace_malloc.c:324)
==63247==    by 0x100CB259C: _efree (in
/opt/httpd-2.2.11/modules/libphp5.so)
==63247==    by 0x100CFFF97: zend_restore_ini_entry_cb (in
/opt/httpd-2.2.11/modules/libphp5.so)
==63247==    by 0x100D00042: zend_restore_ini_entry_wrapper (in
/opt/httpd-2.2.11/modules/libphp5.so)
==63247==    by 0x100CF5F03: zend_hash_apply (in
/opt/httpd-2.2.11/modules/libphp5.so)
==63247==    by 0x100D00225: zend_ini_deactivate (in
/opt/httpd-2.2.11/modules/libphp5.so)
==63247==    by 0x100CE28D7: zend_deactivate (in
/opt/httpd-2.2.11/modules/libphp5.so)
==63247==    by 0x100C40DC2: php_request_shutdown (in
/opt/httpd-2.2.11/modules/libphp5.so)
==63247==    by 0x100DEFBB9: php_apache_request_dtor (in
/opt/httpd-2.2.11/modules/libphp5.so)
==63247==    by 0x100DF05B9: php_handler (in
/opt/httpd-2.2.11/modules/libphp5.so)
==63247==    by 0x100001C2A: ap_run_handler (in /sw/httpd/bin/httpd)
==63247==    by 0x1000024DD: ap_invoke_handler (in
/sw/httpd/bin/httpd)
==63247== 
==63247== Invalid read of size 1
==63247==    at 0x1000BFF3C: memcpy (mc_replace_strmem.c:482)
==63247==    by 0x100CB2AB8: _estrdup (in
/opt/httpd-2.2.11/modules/libphp5.so)
==63247==    by 0x100C49C6E: php_check_open_basedir_ex (in
/opt/httpd-2.2.11/modules/libphp5.so)
==63247==    by 0x100C497EA: OnUpdateBaseDir (in
/opt/httpd-2.2.11/modules/libphp5.so)
==63247==    by 0x100D00B5A: zend_alter_ini_entry_ex (in
/opt/httpd-2.2.11/modules/libphp5.so)
==63247==    by 0x100D008C3: zend_alter_ini_entry (in
/opt/httpd-2.2.11/modules/libphp5.so)
==63247==    by 0x100DF0C5D: apply_config (in
/opt/httpd-2.2.11/modules/libphp5.so)
==63247==    by 0x100DEFF53: php_handler (in
/opt/httpd-2.2.11/modules/libphp5.so)
==63247==    by 0x100001C2A: ap_run_handler (in /sw/httpd/bin/httpd)
==63247==    by 0x1000024DD: ap_invoke_handler (in
/sw/httpd/bin/httpd)
==63247==    by 0x100038579: ap_process_request (in
/sw/httpd/bin/httpd)
==63247==    by 0x100034E3C: ap_process_http_connection (in
/sw/httpd/bin/httpd)
==63247==  Address 0x1037727be is 14 bytes inside a block of size 17
free'd
==63247==    at 0x1000BDAEF: free (vg_replace_malloc.c:324)
==63247==    by 0x100CB259C: _efree (in
/opt/httpd-2.2.11/modules/libphp5.so)
==63247==    by 0x100CFFF97: zend_restore_ini_entry_cb (in
/opt/httpd-2.2.11/modules/libphp5.so)
==63247==    by 0x100D00042: zend_restore_ini_entry_wrapper (in
/opt/httpd-2.2.11/modules/libphp5.so)
==63247==    by 0x100CF5F03: zend_hash_apply (in
/opt/httpd-2.2.11/modules/libphp5.so)
==63247==    by 0x100D00225: zend_ini_deactivate (in
/opt/httpd-2.2.11/modules/libphp5.so)
==63247==    by 0x100CE28D7: zend_deactivate (in
/opt/httpd-2.2.11/modules/libphp5.so)
==63247==    by 0x100C40DC2: php_request_shutdown (in
/opt/httpd-2.2.11/modules/libphp5.so)
==63247==    by 0x100DEFBB9: php_apache_request_dtor (in
/opt/httpd-2.2.11/modules/libphp5.so)
==63247==    by 0x100DF05B9: php_handler (in
/opt/httpd-2.2.11/modules/libphp5.so)
==63247==    by 0x100001C2A: ap_run_handler (in /sw/httpd/bin/httpd)
==63247==    by 0x1000024DD: ap_invoke_handler (in
/sw/httpd/bin/httpd)
==63247== 
==63247== Invalid read of size 1
==63247==    at 0x1000BFF43: memcpy (mc_replace_strmem.c:482)
==63247==    by 0x100CB2AB8: _estrdup (in
/opt/httpd-2.2.11/modules/libphp5.so)
==63247==    by 0x100C49C6E: php_check_open_basedir_ex (in
/opt/httpd-2.2.11/modules/libphp5.so)
==63247==    by 0x100C497EA: OnUpdateBaseDir (in
/opt/httpd-2.2.11/modules/libphp5.so)
==63247==    by 0x100D00B5A: zend_alter_ini_entry_ex (in
/opt/httpd-2.2.11/modules/libphp5.so)
==63247==    by 0x100D008C3: zend_alter_ini_entry (in
/opt/httpd-2.2.11/modules/libphp5.so)
==63247==    by 0x100DF0C5D: apply_config (in
/opt/httpd-2.2.11/modules/libphp5.so)
==63247==    by 0x100DEFF53: php_handler (in
/opt/httpd-2.2.11/modules/libphp5.so)
==63247==    by 0x100001C2A: ap_run_handler (in /sw/httpd/bin/httpd)
==63247==    by 0x1000024DD: ap_invoke_handler (in
/sw/httpd/bin/httpd)
==63247==    by 0x100038579: ap_process_request (in
/sw/httpd/bin/httpd)
==63247==    by 0x100034E3C: ap_process_http_connection (in
/sw/httpd/bin/httpd)
==63247==  Address 0x1037727bd is 13 bytes inside a block of size 17
free'd
==63247==    at 0x1000BDAEF: free (vg_replace_malloc.c:324)
==63247==    by 0x100CB259C: _efree (in
/opt/httpd-2.2.11/modules/libphp5.so)
==63247==    by 0x100CFFF97: zend_restore_ini_entry_cb (in
/opt/httpd-2.2.11/modules/libphp5.so)
==63247==    by 0x100D00042: zend_restore_ini_entry_wrapper (in
/opt/httpd-2.2.11/modules/libphp5.so)
==63247==    by 0x100CF5F03: zend_hash_apply (in
/opt/httpd-2.2.11/modules/libphp5.so)
==63247==    by 0x100D00225: zend_ini_deactivate (in
/opt/httpd-2.2.11/modules/libphp5.so)
==63247==    by 0x100CE28D7: zend_deactivate (in
/opt/httpd-2.2.11/modules/libphp5.so)
==63247==    by 0x100C40DC2: php_request_shutdown (in
/opt/httpd-2.2.11/modules/libphp5.so)
==63247==    by 0x100DEFBB9: php_apache_request_dtor (in
/opt/httpd-2.2.11/modules/libphp5.so)
==63247==    by 0x100DF05B9: php_handler (in
/opt/httpd-2.2.11/modules/libphp5.so)
==63247==    by 0x100001C2A: ap_run_handler (in /sw/httpd/bin/httpd)
==63247==    by 0x1000024DD: ap_invoke_handler (in
/sw/httpd/bin/httpd)
==63247== 
==63247== Invalid read of size 1
==63247==    at 0x1000BFF70: memcpy (mc_replace_strmem.c:482)
==63247==    by 0x100CB2AB8: _estrdup (in
/opt/httpd-2.2.11/modules/libphp5.so)
==63247==    by 0x100C49C6E: php_check_open_basedir_ex (in
/opt/httpd-2.2.11/modules/libphp5.so)
==63247==    by 0x100C497EA: OnUpdateBaseDir (in
/opt/httpd-2.2.11/modules/libphp5.so)
==63247==    by 0x100D00B5A: zend_alter_ini_entry_ex (in
/opt/httpd-2.2.11/modules/libphp5.so)
==63247==    by 0x100D008C3: zend_alter_ini_entry (in
/opt/httpd-2.2.11/modules/libphp5.so)
==63247==    by 0x100DF0C5D: apply_config (in
/opt/httpd-2.2.11/modules/libphp5.so)
==63247==    by 0x100DEFF53: php_handler (in
/opt/httpd-2.2.11/modules/libphp5.so)
==63247==    by 0x100001C2A: ap_run_handler (in /sw/httpd/bin/httpd)
==63247==    by 0x1000024DD: ap_invoke_handler (in
/sw/httpd/bin/httpd)
==63247==    by 0x100038579: ap_process_request (in
/sw/httpd/bin/httpd)
==63247==    by 0x100034E3C: ap_process_http_connection (in
/sw/httpd/bin/httpd)
==63247==  Address 0x1037727b0 is 0 bytes inside a block of size 17
free'd
==63247==    at 0x1000BDAEF: free (vg_replace_malloc.c:324)
==63247==    by 0x100CB259C: _efree (in
/opt/httpd-2.2.11/modules/libphp5.so)
==63247==    by 0x100CFFF97: zend_restore_ini_entry_cb (in
/opt/httpd-2.2.11/modules/libphp5.so)
==63247==    by 0x100D00042: zend_restore_ini_entry_wrapper (in
/opt/httpd-2.2.11/modules/libphp5.so)
==63247==    by 0x100CF5F03: zend_hash_apply (in
/opt/httpd-2.2.11/modules/libphp5.so)
==63247==    by 0x100D00225: zend_ini_deactivate (in
/opt/httpd-2.2.11/modules/libphp5.so)
==63247==    by 0x100CE28D7: zend_deactivate (in
/opt/httpd-2.2.11/modules/libphp5.so)
==63247==    by 0x100C40DC2: php_request_shutdown (in
/opt/httpd-2.2.11/modules/libphp5.so)
==63247==    by 0x100DEFBB9: php_apache_request_dtor (in
/opt/httpd-2.2.11/modules/libphp5.so)
==63247==    by 0x100DF05B9: php_handler (in
/opt/httpd-2.2.11/modules/libphp5.so)
==63247==    by 0x100001C2A: ap_run_handler (in /sw/httpd/bin/httpd)
==63247==    by 0x1000024DD: ap_invoke_handler (in
/sw/httpd/bin/httpd)



Previous Comments:
------------------------------------------------------------------------

[2009-07-12 18:49:08] patrick at patrickpatoray dot com

I am having the same problem on Mac OS X 10.5.7.  

Intermittent failures.  It will work after a refresh or two.  Each 
time, it seems to have a slightly 
different allowed path(s).  I've pasted a few example error lines 
below:


Warning: Unknown: open_basedir restriction in effect. 
File(/www/htdocs/common/functions/class.Base.php) is 
not within the allowed path(s): (X-Powered-By: PHP/5.3.0) in Unknown 
on line 0

Warning: Unknown: open_basedir restriction in effect. 
File(/www/htdocs/common/functions/class.Base.php) is 
not within the allowed path(s): (Mozilla/5.0 (Macintosh; U; Intel Mac 
OS X 10_5_7; en-us) AppleWebKit/530.18 
(KHTML, like Gecko) Version/4.0.1 Safari/530.18) in Unknown on line 0

Warning: Unknown: open_basedir restriction in effect. 
File(/www/htdocs/common/functions/class.Base.php) is 
not within the allowed path(s): ( Mac OS X 10_5_7; en-us) 
AppleWebKit/530.19.2 (KHTML, like Gecko) 
Version/4.0.2 Safari/530.19) in Unknown on line 0

Warning: Unknown: open_basedir restriction in effect. 
File(/www/htdocs/common/functions/class.Base.php) is 
not within the allowed path(s): (�O) in Unknown on line 0


I am using Apache 2.2.11 with PHP configured as a module.  Thread 
safety is disabled.

I am setting open_basedir for each virtual host using php_admin_value

The file class.Base.php is included via an auto_prepend line in 
httpd.conf (not on a virtual host basis, but 
for all virtual hosts), which is why it shows "in Unknown on line 0" 
for each error message

As mentioned by brwarner, I have never seen this in any other version 
of PHP until 5.3.0.

------------------------------------------------------------------------

[2009-07-12 15:05:53] paj...@php.net

not windows specific (given the comments)

------------------------------------------------------------------------

[2009-07-12 15:03:03] brwarner at rogers dot com

Yes, they also appear to have ASCII characters outside those of
letters, 
numbers, and symbols. Almost like it is being corrupted.

------------------------------------------------------------------------

[2009-07-12 11:09:29] te at powie dot de

We noticed the same problem under Suse Linux + Apache2 + php 5.3.0. 
Warning:

Warning: Unknown: open_basedir restriction in effect.
File(/srv/www/web1/html/cms/mod/gb/index.php) is not within the allowed
path(s): (ΒΆ/www/web14/html/) in Unknown on line 0

The displayed allowed paths are random, from other vhosts on the
system!

------------------------------------------------------------------------

[2009-07-10 18:27:02] brwarner at rogers dot com

In the httpd file the following line includes the virtual hosts file

# Virtual hosts
Include conf/extra/httpd-vhosts.conf

In that file here is what the virtual host for that specific domain is

<VirtualHost *:80>
        ServerName brwarner.co.cc
        ServerAlias www.brwarner.co.cc 127.0.0.1
        DocumentRoot "C:/www/brwarner.co.cc"
        php_admin_value open_basedir 
"C:\www\brwarner.co.cc;C:\svn;C:\Program 
Files\PHP\PEAR;C:\WINDOWS\Temp;C:\djgpp"
        php_admin_value short_open_tag "Off"
        ErrorLog "C:/www/logs/brwarner_error.log"
        ErrorDocument 404 /error404.php
</VirtualHost>

I have several other virtual hosts with look practically idential.

I have never seen this in any other version of PHP besides 5.3.0 and 
not before I upgraded, and I have had these sites working for a while 
so if it was there I probably would have seen it.

------------------------------------------------------------------------

The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
    http://bugs.php.net/48880

-- 
Edit this bug report at http://bugs.php.net/?id=48880&edit=1

Reply via email to