#37889 [Asn-Fbk]: Segfault using IteratorIterator on PDO statements
ID: 37889 Updated by: [EMAIL PROTECTED] Reported By: kevin at littletrader dot net -Status: Assigned +Status: Feedback Bug Type: SPL related Operating System: * PHP Version: 5.1.5 Assigned To: helly New Comment: Thank you for this bug report. To properly diagnose the problem, we need a backtrace to see what is happening behind the scenes. To find out how to generate a backtrace, please read http://bugs.php.net/bugs-generating-backtrace.php for *NIX and http://bugs.php.net/bugs-generating-backtrace-win32.php for Win32 Once you have generated a backtrace, please submit it to this bug report and change the status back to Open. Thank you for helping us make PHP better. Previous Comments: [2006-06-22 16:18:01] kevin at littletrader dot net Description: Segfault: [Thu Jun 22 18:34:02 2006] [notice] child pid 6222 exit signal Segmentation fault (11) Reproduce code: --- ?php $sql = SELECT * FROM news ORDER BY nid DESC LIMIT 1; try{ $dbh = new PDO(mysql:host=$dbhost;dbname=$dbname, $username, $password); $dbh-setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION); $stmt = $dbh-prepare($sql); $stmt-execute(); $result = $stmt-setFetchMode(PDO::FETCH_ASSOC); $it = new IteratorIterator($stmt); foreach($it as $resultSet) { echo $resultSet-key(); } } catch(PDOException $e) { echo 'Unable to select latest record'.$e-getMessage(); } ? Actual result: -- [Thu Jun 22 18:34:02 2006] [notice] child pid 6222 exit signal Segmentation fault (11) -- Edit this bug report at http://bugs.php.net/?id=37889edit=1
#37886 [Fbk-Opn]: oci_connect crashes php when charset-parameter is given
ID: 37886 User updated by: j dot henge-ernst at interexa dot de Reported By: j dot henge-ernst at interexa dot de -Status: Feedback +Status: Open Bug Type: OCI8 related Operating System: linux PHP Version: 5.1.4 New Comment: Still the same with the lastest snapshot Starting program: /root/src/php5.2-200606230630/sapi/cli/php test.php [Thread debugging using libthread_db enabled] [New Thread 182929799936 (LWP 13713)] *** glibc detected *** realloc(): invalid pointer: 0x007b4378 *** Program received signal SIGSEGV, Segmentation fault. [Switching to Thread 182929799936 (LWP 13713)] 0x002a97006af5 in memcpy () from /lib64/tls/libc.so.6 (gdb) where #0 0x002a97006af5 in memcpy () from /lib64/tls/libc.so.6 #1 0x0031 in ?? () #2 0x00440fdd in php_oci_do_connect_ex (username=0x7cc238 , username_len=8, password=0x7cc268 , password_len=8, new_password=0x0, new_password_len=0, dbname=0x7cc2b8 XXX.XXX.XXX.XX, dbname_len=30, charset=0x7b42f8 AMERICAN_AMERICA.WE8ISO8859P15, session_mode=0, persistent=0, exclusive=1) at /root/src/php5.2-200606230630/ext/oci8/oci8.c:995 #3 0x0044235c in php_oci_do_connect (ht=value optimized out, return_value=0x7b4338, return_value_ptr=value optimized out, this_ptr=value optimized out, return_value_used=value optimized out, persistent=0, exclusive=1380273473) at /root/src/php5.2-200606230630/ext/oci8/oci8.c:947 #4 0x0044aa23 in zif_oci_new_connect (ht=value optimized out, return_value=value optimized out, return_value_ptr=value optimized out, this_ptr=value optimized out, return_value_used=value optimized out) at /root/src/php5.2-200606230630/ext/oci8/oci8_interface.c:1520 #5 0x00519c73 in zend_do_fcall_common_helper_SPEC (execute_data=dwarf2_read_address: Corrupted DWARF expression. ) at zend_vm_execute.h:200 #6 0x005683bc in execute (op_array=0x7cc128) at zend_vm_execute.h:92 #7 0x004fac91 in zend_execute_scripts (type=8, retval=0x0, file_count=3) at /root/src/php5.2-200606230630/Zend/zend.c:1110 #8 0x004bfed5 in php_execute_script (primary_file=0x7fb1c0) at /root/src/php5.2-200606230630/main/main.c:1748 #9 0x005698d4 in main (argc=2, argv=0x7fb338) at /root/src/php5.2-200606230630/sapi/cli/php_cli.c:1097 Previous Comments: [2006-06-22 18:53:31] [EMAIL PROTECTED] Please try using this CVS snapshot: http://snaps.php.net/php5.2-latest.tar.gz For Windows: http://snaps.php.net/win32/php5.2-win32-latest.zip [2006-06-22 11:59:38] j dot henge-ernst at interexa dot de Description: php crashes if the fourth/charset parameter is given to oc_connect or oci_new_connect. Problem seems to be line 990 in oci8.c Problem occurs also if ZendDebugger is not activated. Error occurs also in older versions 5.0.5 Reproduce code: --- ?php $c=oci_new_connect(, , XXX.XXX.XXX.XX, 'AMERICAN_AMERICA.WE8ISO8859P15'); Actual result: -- #0 0x002a95ea4ef2 in __pause_nocancel () from /lib64/tls/libpthread.so.0 #1 0x002a9a426c0c in zend_oe () from /usr/local/Zend/Core/lib/zend/optimizer/php-5.1.x/ZendOptimizer.so #2 signal handler called #3 0x002a96121af5 in memcpy () from /lib64/tls/libc.so.6 #4 0x0031 in ?? () #5 0x002a985c5e83 in php_oci_do_connect_ex (username=0x986418 , username_len=8, password=0x986978 , password_len=8, new_password=0x0, new_password_len=0, dbname=0x986088 OPRISKT.XX, dbname_len=30, charset=0x9bacc8 AMERICAN_AMERICA.WE8ISO8859P15, session_mode=0, persistent=0, exclusive=0) at /root/oci8/oci8.c:990 #6 0x002a985c71de in php_oci_do_connect (ht=value optimized out, return_value=0x9b4078, return_value_ptr=value optimized out, this_ptr=value optimized out, return_value_used=value optimized out, persistent=0, exclusive=1380273473) at /root/oci8/oci8.c:942 #7 0x002a985cfc33 in zif_oci_connect (ht=value optimized out, return_value=value optimized out, return_value_ptr=value optimized out, this_ptr=value optimized out, return_value_used=value optimized out) at /root/oci8/oci8_interface.c:1528 line 990 in oci8.c is: if (charset *charset) { smart_str_appends_ex(hashed_details, charset, 1); } which then uses the macro from ./ext/standard/php_smart_str.h where the memcopy is called -- Edit this bug report at http://bugs.php.net/?id=37886edit=1
#37897 [Opn-Bgs]: Code error
ID: 37897 Updated by: [EMAIL PROTECTED] Reported By: demonhunterds at hotmail dot com -Status: Open +Status: Bogus Bug Type: MSSQL related Operating System: windows xp PHP Version: 5.1.4 New Comment: Sorry, but your problem does not imply a bug in PHP itself. For a list of more appropriate places to ask for help using PHP, please visit http://www.php.net/support.php as this bug system is not the appropriate forum for asking support questions. Due to the volume of reports we can not explain in detail here why your report is not a bug. The support channels will be able to provide an explanation for you. Thank you for your interest in PHP. Previous Comments: [2006-06-23 00:06:18] demonhunterds at hotmail dot com Description: I have tried to create a script which stores data in to the mysql database but for some reason i am getting this error Fatal error: Method name must be a string in D:\william\xampp\htdocs\personal\classwork\EXAMPLE2\admin\includes\addmenu.inc on line 28 I have tried to research and thought this might be a problem how can i fix this? Reproduce code: --- The Changes i have made are by removing it but still doesnt insert the data into the database so how can i fix this? any ideas how this can be fixed? include(../dbconnect.php); $lQuery=INSERT INTO navmenu VALUES('','.$lname.','.$laddy.'); echo $lQuery; and under it i have if(!$rs) { echo Error:.mysqli_error($con); } Expected result: i got the error when i click my submit button and didnt do anything i tried to do echo iquery that worked fine but without me going into the database it doesnt do anything. Actual result: -- it is suppose to insert the data into the table called navmenu but doesnt do that unless i use the sql query so how can i fix this? if i do put the insert code it works just gives me that error -- Edit this bug report at http://bugs.php.net/?id=37897edit=1
#37886 [Opn-Fbk]: oci_connect crashes php when charset-parameter is given
ID: 37886 Updated by: [EMAIL PROTECTED] Reported By: j dot henge-ernst at interexa dot de -Status: Open +Status: Feedback Bug Type: OCI8 related Operating System: linux PHP Version: 5.1.4 New Comment: Works just fine here. What if you change line 995 to this: smart_str_appends_ex(hashed_details, charset, 0); ? Previous Comments: [2006-06-23 07:49:49] j dot henge-ernst at interexa dot de Still the same with the lastest snapshot Starting program: /root/src/php5.2-200606230630/sapi/cli/php test.php [Thread debugging using libthread_db enabled] [New Thread 182929799936 (LWP 13713)] *** glibc detected *** realloc(): invalid pointer: 0x007b4378 *** Program received signal SIGSEGV, Segmentation fault. [Switching to Thread 182929799936 (LWP 13713)] 0x002a97006af5 in memcpy () from /lib64/tls/libc.so.6 (gdb) where #0 0x002a97006af5 in memcpy () from /lib64/tls/libc.so.6 #1 0x0031 in ?? () #2 0x00440fdd in php_oci_do_connect_ex (username=0x7cc238 , username_len=8, password=0x7cc268 , password_len=8, new_password=0x0, new_password_len=0, dbname=0x7cc2b8 XXX.XXX.XXX.XX, dbname_len=30, charset=0x7b42f8 AMERICAN_AMERICA.WE8ISO8859P15, session_mode=0, persistent=0, exclusive=1) at /root/src/php5.2-200606230630/ext/oci8/oci8.c:995 #3 0x0044235c in php_oci_do_connect (ht=value optimized out, return_value=0x7b4338, return_value_ptr=value optimized out, this_ptr=value optimized out, return_value_used=value optimized out, persistent=0, exclusive=1380273473) at /root/src/php5.2-200606230630/ext/oci8/oci8.c:947 #4 0x0044aa23 in zif_oci_new_connect (ht=value optimized out, return_value=value optimized out, return_value_ptr=value optimized out, this_ptr=value optimized out, return_value_used=value optimized out) at /root/src/php5.2-200606230630/ext/oci8/oci8_interface.c:1520 #5 0x00519c73 in zend_do_fcall_common_helper_SPEC (execute_data=dwarf2_read_address: Corrupted DWARF expression. ) at zend_vm_execute.h:200 #6 0x005683bc in execute (op_array=0x7cc128) at zend_vm_execute.h:92 #7 0x004fac91 in zend_execute_scripts (type=8, retval=0x0, file_count=3) at /root/src/php5.2-200606230630/Zend/zend.c:1110 #8 0x004bfed5 in php_execute_script (primary_file=0x7fb1c0) at /root/src/php5.2-200606230630/main/main.c:1748 #9 0x005698d4 in main (argc=2, argv=0x7fb338) at /root/src/php5.2-200606230630/sapi/cli/php_cli.c:1097 [2006-06-22 18:53:31] [EMAIL PROTECTED] Please try using this CVS snapshot: http://snaps.php.net/php5.2-latest.tar.gz For Windows: http://snaps.php.net/win32/php5.2-win32-latest.zip [2006-06-22 11:59:38] j dot henge-ernst at interexa dot de Description: php crashes if the fourth/charset parameter is given to oc_connect or oci_new_connect. Problem seems to be line 990 in oci8.c Problem occurs also if ZendDebugger is not activated. Error occurs also in older versions 5.0.5 Reproduce code: --- ?php $c=oci_new_connect(, , XXX.XXX.XXX.XX, 'AMERICAN_AMERICA.WE8ISO8859P15'); Actual result: -- #0 0x002a95ea4ef2 in __pause_nocancel () from /lib64/tls/libpthread.so.0 #1 0x002a9a426c0c in zend_oe () from /usr/local/Zend/Core/lib/zend/optimizer/php-5.1.x/ZendOptimizer.so #2 signal handler called #3 0x002a96121af5 in memcpy () from /lib64/tls/libc.so.6 #4 0x0031 in ?? () #5 0x002a985c5e83 in php_oci_do_connect_ex (username=0x986418 , username_len=8, password=0x986978 , password_len=8, new_password=0x0, new_password_len=0, dbname=0x986088 OPRISKT.XX, dbname_len=30, charset=0x9bacc8 AMERICAN_AMERICA.WE8ISO8859P15, session_mode=0, persistent=0, exclusive=0) at /root/oci8/oci8.c:990 #6 0x002a985c71de in php_oci_do_connect (ht=value optimized out, return_value=0x9b4078, return_value_ptr=value optimized out, this_ptr=value optimized out, return_value_used=value optimized out, persistent=0, exclusive=1380273473) at /root/oci8/oci8.c:942 #7 0x002a985cfc33 in zif_oci_connect (ht=value optimized out, return_value=value optimized out, return_value_ptr=value optimized out, this_ptr=value optimized out, return_value_used=value optimized out) at /root/oci8/oci8_interface.c:1528 line 990 in oci8.c is: if (charset *charset) { smart_str_appends_ex(hashed_details, charset, 1); } which then uses the macro from ./ext/standard/php_smart_str.h where the memcopy is called -- Edit this bug report at
#37886 [Fbk]: oci_connect crashes php when charset-parameter is given
ID: 37886 Updated by: [EMAIL PROTECTED] Reported By: j dot henge-ernst at interexa dot de Status: Feedback Bug Type: OCI8 related Operating System: linux PHP Version: 5.1.4 New Comment: And don't forget to disable ALL zend_extension's. Previous Comments: [2006-06-23 08:09:39] [EMAIL PROTECTED] Works just fine here. What if you change line 995 to this: smart_str_appends_ex(hashed_details, charset, 0); ? [2006-06-23 07:49:49] j dot henge-ernst at interexa dot de Still the same with the lastest snapshot Starting program: /root/src/php5.2-200606230630/sapi/cli/php test.php [Thread debugging using libthread_db enabled] [New Thread 182929799936 (LWP 13713)] *** glibc detected *** realloc(): invalid pointer: 0x007b4378 *** Program received signal SIGSEGV, Segmentation fault. [Switching to Thread 182929799936 (LWP 13713)] 0x002a97006af5 in memcpy () from /lib64/tls/libc.so.6 (gdb) where #0 0x002a97006af5 in memcpy () from /lib64/tls/libc.so.6 #1 0x0031 in ?? () #2 0x00440fdd in php_oci_do_connect_ex (username=0x7cc238 , username_len=8, password=0x7cc268 , password_len=8, new_password=0x0, new_password_len=0, dbname=0x7cc2b8 XXX.XXX.XXX.XX, dbname_len=30, charset=0x7b42f8 AMERICAN_AMERICA.WE8ISO8859P15, session_mode=0, persistent=0, exclusive=1) at /root/src/php5.2-200606230630/ext/oci8/oci8.c:995 #3 0x0044235c in php_oci_do_connect (ht=value optimized out, return_value=0x7b4338, return_value_ptr=value optimized out, this_ptr=value optimized out, return_value_used=value optimized out, persistent=0, exclusive=1380273473) at /root/src/php5.2-200606230630/ext/oci8/oci8.c:947 #4 0x0044aa23 in zif_oci_new_connect (ht=value optimized out, return_value=value optimized out, return_value_ptr=value optimized out, this_ptr=value optimized out, return_value_used=value optimized out) at /root/src/php5.2-200606230630/ext/oci8/oci8_interface.c:1520 #5 0x00519c73 in zend_do_fcall_common_helper_SPEC (execute_data=dwarf2_read_address: Corrupted DWARF expression. ) at zend_vm_execute.h:200 #6 0x005683bc in execute (op_array=0x7cc128) at zend_vm_execute.h:92 #7 0x004fac91 in zend_execute_scripts (type=8, retval=0x0, file_count=3) at /root/src/php5.2-200606230630/Zend/zend.c:1110 #8 0x004bfed5 in php_execute_script (primary_file=0x7fb1c0) at /root/src/php5.2-200606230630/main/main.c:1748 #9 0x005698d4 in main (argc=2, argv=0x7fb338) at /root/src/php5.2-200606230630/sapi/cli/php_cli.c:1097 [2006-06-22 18:53:31] [EMAIL PROTECTED] Please try using this CVS snapshot: http://snaps.php.net/php5.2-latest.tar.gz For Windows: http://snaps.php.net/win32/php5.2-win32-latest.zip [2006-06-22 11:59:38] j dot henge-ernst at interexa dot de Description: php crashes if the fourth/charset parameter is given to oc_connect or oci_new_connect. Problem seems to be line 990 in oci8.c Problem occurs also if ZendDebugger is not activated. Error occurs also in older versions 5.0.5 Reproduce code: --- ?php $c=oci_new_connect(, , XXX.XXX.XXX.XX, 'AMERICAN_AMERICA.WE8ISO8859P15'); Actual result: -- #0 0x002a95ea4ef2 in __pause_nocancel () from /lib64/tls/libpthread.so.0 #1 0x002a9a426c0c in zend_oe () from /usr/local/Zend/Core/lib/zend/optimizer/php-5.1.x/ZendOptimizer.so #2 signal handler called #3 0x002a96121af5 in memcpy () from /lib64/tls/libc.so.6 #4 0x0031 in ?? () #5 0x002a985c5e83 in php_oci_do_connect_ex (username=0x986418 , username_len=8, password=0x986978 , password_len=8, new_password=0x0, new_password_len=0, dbname=0x986088 OPRISKT.XX, dbname_len=30, charset=0x9bacc8 AMERICAN_AMERICA.WE8ISO8859P15, session_mode=0, persistent=0, exclusive=0) at /root/oci8/oci8.c:990 #6 0x002a985c71de in php_oci_do_connect (ht=value optimized out, return_value=0x9b4078, return_value_ptr=value optimized out, this_ptr=value optimized out, return_value_used=value optimized out, persistent=0, exclusive=1380273473) at /root/oci8/oci8.c:942 #7 0x002a985cfc33 in zif_oci_connect (ht=value optimized out, return_value=value optimized out, return_value_ptr=value optimized out, this_ptr=value optimized out, return_value_used=value optimized out) at /root/oci8/oci8_interface.c:1528 line 990 in oci8.c is: if (charset *charset) { smart_str_appends_ex(hashed_details, charset, 1); } which then uses the macro from ./ext/standard/php_smart_str.h where the memcopy is
#37886 [Fbk-Opn]: oci_connect crashes php when charset-parameter is given
ID: 37886 User updated by: j dot henge-ernst at interexa dot de Reported By: j dot henge-ernst at interexa dot de -Status: Feedback +Status: Open Bug Type: OCI8 related Operating System: linux PHP Version: 5.1.4 New Comment: changing line 995 as given solves the problem and gives the correct output Warning: oci_new_connect(): ORA-12154: TNS:could not resolve the connect identifier specified in /root/src/php5.2-200606230630/test.php on line 3 The System is a SuSE Linux EenterpriseServer 9 64bit with Oracle 10g The zendextensions have not been used when testing the latest snapshot Previous Comments: [2006-06-23 08:10:10] [EMAIL PROTECTED] And don't forget to disable ALL zend_extension's. [2006-06-23 08:09:39] [EMAIL PROTECTED] Works just fine here. What if you change line 995 to this: smart_str_appends_ex(hashed_details, charset, 0); ? [2006-06-23 07:49:49] j dot henge-ernst at interexa dot de Still the same with the lastest snapshot Starting program: /root/src/php5.2-200606230630/sapi/cli/php test.php [Thread debugging using libthread_db enabled] [New Thread 182929799936 (LWP 13713)] *** glibc detected *** realloc(): invalid pointer: 0x007b4378 *** Program received signal SIGSEGV, Segmentation fault. [Switching to Thread 182929799936 (LWP 13713)] 0x002a97006af5 in memcpy () from /lib64/tls/libc.so.6 (gdb) where #0 0x002a97006af5 in memcpy () from /lib64/tls/libc.so.6 #1 0x0031 in ?? () #2 0x00440fdd in php_oci_do_connect_ex (username=0x7cc238 , username_len=8, password=0x7cc268 , password_len=8, new_password=0x0, new_password_len=0, dbname=0x7cc2b8 XXX.XXX.XXX.XX, dbname_len=30, charset=0x7b42f8 AMERICAN_AMERICA.WE8ISO8859P15, session_mode=0, persistent=0, exclusive=1) at /root/src/php5.2-200606230630/ext/oci8/oci8.c:995 #3 0x0044235c in php_oci_do_connect (ht=value optimized out, return_value=0x7b4338, return_value_ptr=value optimized out, this_ptr=value optimized out, return_value_used=value optimized out, persistent=0, exclusive=1380273473) at /root/src/php5.2-200606230630/ext/oci8/oci8.c:947 #4 0x0044aa23 in zif_oci_new_connect (ht=value optimized out, return_value=value optimized out, return_value_ptr=value optimized out, this_ptr=value optimized out, return_value_used=value optimized out) at /root/src/php5.2-200606230630/ext/oci8/oci8_interface.c:1520 #5 0x00519c73 in zend_do_fcall_common_helper_SPEC (execute_data=dwarf2_read_address: Corrupted DWARF expression. ) at zend_vm_execute.h:200 #6 0x005683bc in execute (op_array=0x7cc128) at zend_vm_execute.h:92 #7 0x004fac91 in zend_execute_scripts (type=8, retval=0x0, file_count=3) at /root/src/php5.2-200606230630/Zend/zend.c:1110 #8 0x004bfed5 in php_execute_script (primary_file=0x7fb1c0) at /root/src/php5.2-200606230630/main/main.c:1748 #9 0x005698d4 in main (argc=2, argv=0x7fb338) at /root/src/php5.2-200606230630/sapi/cli/php_cli.c:1097 [2006-06-22 18:53:31] [EMAIL PROTECTED] Please try using this CVS snapshot: http://snaps.php.net/php5.2-latest.tar.gz For Windows: http://snaps.php.net/win32/php5.2-win32-latest.zip [2006-06-22 11:59:38] j dot henge-ernst at interexa dot de Description: php crashes if the fourth/charset parameter is given to oc_connect or oci_new_connect. Problem seems to be line 990 in oci8.c Problem occurs also if ZendDebugger is not activated. Error occurs also in older versions 5.0.5 Reproduce code: --- ?php $c=oci_new_connect(, , XXX.XXX.XXX.XX, 'AMERICAN_AMERICA.WE8ISO8859P15'); Actual result: -- #0 0x002a95ea4ef2 in __pause_nocancel () from /lib64/tls/libpthread.so.0 #1 0x002a9a426c0c in zend_oe () from /usr/local/Zend/Core/lib/zend/optimizer/php-5.1.x/ZendOptimizer.so #2 signal handler called #3 0x002a96121af5 in memcpy () from /lib64/tls/libc.so.6 #4 0x0031 in ?? () #5 0x002a985c5e83 in php_oci_do_connect_ex (username=0x986418 , username_len=8, password=0x986978 , password_len=8, new_password=0x0, new_password_len=0, dbname=0x986088 OPRISKT.XX, dbname_len=30, charset=0x9bacc8 AMERICAN_AMERICA.WE8ISO8859P15, session_mode=0, persistent=0, exclusive=0) at /root/oci8/oci8.c:990 #6 0x002a985c71de in php_oci_do_connect (ht=value optimized out, return_value=0x9b4078, return_value_ptr=value optimized out, this_ptr=value optimized out, return_value_used=value optimized out,
#37889 [Fbk-Opn]: Segfault using IteratorIterator on PDO statements
ID: 37889 User updated by: kevin at littletrader dot net Reported By: kevin at littletrader dot net -Status: Feedback +Status: Open Bug Type: SPL related Operating System: * -PHP Version: 5.1.5 +PHP Version: 5.2.0-dev Assigned To: helly New Comment: [New Thread -151095616 (LWP 12720)] Program received signal SIGSEGV, Segmentation fault. [Switching to Thread -151095616 (LWP 12720)] 0xf626b618 in mysql_more_results () from /usr/local/apache/libexec/libphp5.so Previous Comments: [2006-06-23 07:49:23] [EMAIL PROTECTED] Thank you for this bug report. To properly diagnose the problem, we need a backtrace to see what is happening behind the scenes. To find out how to generate a backtrace, please read http://bugs.php.net/bugs-generating-backtrace.php for *NIX and http://bugs.php.net/bugs-generating-backtrace-win32.php for Win32 Once you have generated a backtrace, please submit it to this bug report and change the status back to Open. Thank you for helping us make PHP better. [2006-06-22 16:18:01] kevin at littletrader dot net Description: Segfault: [Thu Jun 22 18:34:02 2006] [notice] child pid 6222 exit signal Segmentation fault (11) Reproduce code: --- ?php $sql = SELECT * FROM news ORDER BY nid DESC LIMIT 1; try{ $dbh = new PDO(mysql:host=$dbhost;dbname=$dbname, $username, $password); $dbh-setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION); $stmt = $dbh-prepare($sql); $stmt-execute(); $result = $stmt-setFetchMode(PDO::FETCH_ASSOC); $it = new IteratorIterator($stmt); foreach($it as $resultSet) { echo $resultSet-key(); } } catch(PDOException $e) { echo 'Unable to select latest record'.$e-getMessage(); } ? Actual result: -- [Thu Jun 22 18:34:02 2006] [notice] child pid 6222 exit signal Segmentation fault (11) -- Edit this bug report at http://bugs.php.net/?id=37889edit=1
#37886 [Opn-Csd]: oci_connect crashes php when charset-parameter is given
ID: 37886 Updated by: [EMAIL PROTECTED] Reported By: j dot henge-ernst at interexa dot de -Status: Open +Status: Closed Bug Type: OCI8 related Operating System: linux PHP Version: 5.1.4 New Comment: This bug has been fixed in CVS. Snapshots of the sources are packaged every three hours; this change will be in the next snapshot. You can grab the snapshot at http://snaps.php.net/. Thank you for the report, and for helping us make PHP better. Previous Comments: [2006-06-23 08:18:13] j dot henge-ernst at interexa dot de changing line 995 as given solves the problem and gives the correct output Warning: oci_new_connect(): ORA-12154: TNS:could not resolve the connect identifier specified in /root/src/php5.2-200606230630/test.php on line 3 The System is a SuSE Linux EenterpriseServer 9 64bit with Oracle 10g The zendextensions have not been used when testing the latest snapshot [2006-06-23 08:10:10] [EMAIL PROTECTED] And don't forget to disable ALL zend_extension's. [2006-06-23 08:09:39] [EMAIL PROTECTED] Works just fine here. What if you change line 995 to this: smart_str_appends_ex(hashed_details, charset, 0); ? [2006-06-23 07:49:49] j dot henge-ernst at interexa dot de Still the same with the lastest snapshot Starting program: /root/src/php5.2-200606230630/sapi/cli/php test.php [Thread debugging using libthread_db enabled] [New Thread 182929799936 (LWP 13713)] *** glibc detected *** realloc(): invalid pointer: 0x007b4378 *** Program received signal SIGSEGV, Segmentation fault. [Switching to Thread 182929799936 (LWP 13713)] 0x002a97006af5 in memcpy () from /lib64/tls/libc.so.6 (gdb) where #0 0x002a97006af5 in memcpy () from /lib64/tls/libc.so.6 #1 0x0031 in ?? () #2 0x00440fdd in php_oci_do_connect_ex (username=0x7cc238 , username_len=8, password=0x7cc268 , password_len=8, new_password=0x0, new_password_len=0, dbname=0x7cc2b8 XXX.XXX.XXX.XX, dbname_len=30, charset=0x7b42f8 AMERICAN_AMERICA.WE8ISO8859P15, session_mode=0, persistent=0, exclusive=1) at /root/src/php5.2-200606230630/ext/oci8/oci8.c:995 #3 0x0044235c in php_oci_do_connect (ht=value optimized out, return_value=0x7b4338, return_value_ptr=value optimized out, this_ptr=value optimized out, return_value_used=value optimized out, persistent=0, exclusive=1380273473) at /root/src/php5.2-200606230630/ext/oci8/oci8.c:947 #4 0x0044aa23 in zif_oci_new_connect (ht=value optimized out, return_value=value optimized out, return_value_ptr=value optimized out, this_ptr=value optimized out, return_value_used=value optimized out) at /root/src/php5.2-200606230630/ext/oci8/oci8_interface.c:1520 #5 0x00519c73 in zend_do_fcall_common_helper_SPEC (execute_data=dwarf2_read_address: Corrupted DWARF expression. ) at zend_vm_execute.h:200 #6 0x005683bc in execute (op_array=0x7cc128) at zend_vm_execute.h:92 #7 0x004fac91 in zend_execute_scripts (type=8, retval=0x0, file_count=3) at /root/src/php5.2-200606230630/Zend/zend.c:1110 #8 0x004bfed5 in php_execute_script (primary_file=0x7fb1c0) at /root/src/php5.2-200606230630/main/main.c:1748 #9 0x005698d4 in main (argc=2, argv=0x7fb338) at /root/src/php5.2-200606230630/sapi/cli/php_cli.c:1097 [2006-06-22 18:53:31] [EMAIL PROTECTED] Please try using this CVS snapshot: http://snaps.php.net/php5.2-latest.tar.gz For Windows: http://snaps.php.net/win32/php5.2-win32-latest.zip 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/37886 -- Edit this bug report at http://bugs.php.net/?id=37886edit=1
#37889 [Opn]: Segfault using IteratorIterator on PDO statements
ID: 37889 User updated by: kevin at littletrader dot net Reported By: kevin at littletrader dot net Status: Open Bug Type: SPL related Operating System: * PHP Version: 5.2.0-dev Assigned To: helly New Comment: [New Thread -151095616 (LWP 12747)] Program received signal SIGSEGV, Segmentation fault. [Switching to Thread -151095616 (LWP 12747)] 0xf626b618 in mysql_more_results () from /usr/local/apache/libexec/libphp5.so (gdb) bt #0 0xf626b618 in mysql_more_results () from /usr/local/apache/libexec/libphp5.so #1 0xf606155d in pdo_mysql_stmt_dtor (stmt=0x834d3c4) at /home/kevin/html/php/dev/php5.2-200606221430/ext/pdo_mysql/mysql_statement.c:71 #2 0xf605dc99 in free_statement (stmt=0x834d3c4) at /home/kevin/html/php/dev/php5.2-200606221430/ext/pdo/pdo_stmt.c:2225 #3 0xf605df5e in pdo_stmt_iter_dtor (iter=0x834e3c4) at /home/kevin/html/php/dev/php5.2-200606221430/ext/pdo/pdo_stmt.c:2308 #4 0xf60c8d6d in spl_dual_it_free_storage (_object=0x836768c) at /home/kevin/html/php/dev/php5.2-200606221430/ext/spl/spl_iterators.c:1447 #5 0xf621cdd8 in zend_objects_store_free_object_storage (objects=0xf64a4a18) at /home/kevin/html/php/dev/php5.2-200606221430/Zend/zend_objects_API.c:86 #6 0xf61f3a91 in shutdown_executor () at /home/kevin/html/php/dev/php5.2-200606221430/Zend/zend_execute_API.c:281 #7 0xf6200c99 in zend_deactivate () at /home/kevin/html/php/dev/php5.2-200606221430/Zend/zend.c:854 #8 0xf61bd0bc in php_request_shutdown (dummy=0x0) at /home/kevin/html/php/dev/php5.2-200606221430/main/main.c:1300 #9 0xf62639c7 in apache_php_module_main (r=0x833c6c4, display_source_mode=0) at /home/kevin/html/php/dev/php5.2-200606221430/sapi/apache/sapi_apache.c:59 #10 0xf62646d3 in send_php (r=0x833c6c4, display_source_mode=0, filename=0x833d264 /home/kevin/html/news/index.php) at /home/kevin/html/php/dev/php5.2-200606221430/sapi/apache/mod_php5.c:665 #11 0xf626471b in send_parsed_php (r=0x833c6c4) at /home/kevin/html/php/dev/php5.2-200606221430/sapi/apache/mod_php5.c:680 #12 0x08069f94 in ap_invoke_handler () #13 0x0807f1ac in process_request_internal () #14 0x0807f20b in ap_process_request () #15 0x080760aa in child_main () #16 0x080762ad in make_child () #17 0x08076411 in startup_children () #18 0x08076aa7 in standalone_main () #19 0x080772bf in main () Previous Comments: [2006-06-23 08:25:33] kevin at littletrader dot net [New Thread -151095616 (LWP 12720)] Program received signal SIGSEGV, Segmentation fault. [Switching to Thread -151095616 (LWP 12720)] 0xf626b618 in mysql_more_results () from /usr/local/apache/libexec/libphp5.so [2006-06-23 07:49:23] [EMAIL PROTECTED] Thank you for this bug report. To properly diagnose the problem, we need a backtrace to see what is happening behind the scenes. To find out how to generate a backtrace, please read http://bugs.php.net/bugs-generating-backtrace.php for *NIX and http://bugs.php.net/bugs-generating-backtrace-win32.php for Win32 Once you have generated a backtrace, please submit it to this bug report and change the status back to Open. Thank you for helping us make PHP better. [2006-06-22 16:18:01] kevin at littletrader dot net Description: Segfault: [Thu Jun 22 18:34:02 2006] [notice] child pid 6222 exit signal Segmentation fault (11) Reproduce code: --- ?php $sql = SELECT * FROM news ORDER BY nid DESC LIMIT 1; try{ $dbh = new PDO(mysql:host=$dbhost;dbname=$dbname, $username, $password); $dbh-setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION); $stmt = $dbh-prepare($sql); $stmt-execute(); $result = $stmt-setFetchMode(PDO::FETCH_ASSOC); $it = new IteratorIterator($stmt); foreach($it as $resultSet) { echo $resultSet-key(); } } catch(PDOException $e) { echo 'Unable to select latest record'.$e-getMessage(); } ? Actual result: -- [Thu Jun 22 18:34:02 2006] [notice] child pid 6222 exit signal Segmentation fault (11) -- Edit this bug report at http://bugs.php.net/?id=37889edit=1
#37889 [Opn-Bgs]: Segfault using IteratorIterator on PDO statements
ID: 37889 Updated by: [EMAIL PROTECTED] Reported By: kevin at littletrader dot net -Status: Open +Status: Bogus Bug Type: SPL related Operating System: * PHP Version: 5.2.0-dev Assigned To: helly New Comment: Duplicate of bug #37445. Previous Comments: [2006-06-23 08:30:54] kevin at littletrader dot net [New Thread -151095616 (LWP 12747)] Program received signal SIGSEGV, Segmentation fault. [Switching to Thread -151095616 (LWP 12747)] 0xf626b618 in mysql_more_results () from /usr/local/apache/libexec/libphp5.so (gdb) bt #0 0xf626b618 in mysql_more_results () from /usr/local/apache/libexec/libphp5.so #1 0xf606155d in pdo_mysql_stmt_dtor (stmt=0x834d3c4) at /home/kevin/html/php/dev/php5.2-200606221430/ext/pdo_mysql/mysql_statement.c:71 #2 0xf605dc99 in free_statement (stmt=0x834d3c4) at /home/kevin/html/php/dev/php5.2-200606221430/ext/pdo/pdo_stmt.c:2225 #3 0xf605df5e in pdo_stmt_iter_dtor (iter=0x834e3c4) at /home/kevin/html/php/dev/php5.2-200606221430/ext/pdo/pdo_stmt.c:2308 #4 0xf60c8d6d in spl_dual_it_free_storage (_object=0x836768c) at /home/kevin/html/php/dev/php5.2-200606221430/ext/spl/spl_iterators.c:1447 #5 0xf621cdd8 in zend_objects_store_free_object_storage (objects=0xf64a4a18) at /home/kevin/html/php/dev/php5.2-200606221430/Zend/zend_objects_API.c:86 #6 0xf61f3a91 in shutdown_executor () at /home/kevin/html/php/dev/php5.2-200606221430/Zend/zend_execute_API.c:281 #7 0xf6200c99 in zend_deactivate () at /home/kevin/html/php/dev/php5.2-200606221430/Zend/zend.c:854 #8 0xf61bd0bc in php_request_shutdown (dummy=0x0) at /home/kevin/html/php/dev/php5.2-200606221430/main/main.c:1300 #9 0xf62639c7 in apache_php_module_main (r=0x833c6c4, display_source_mode=0) at /home/kevin/html/php/dev/php5.2-200606221430/sapi/apache/sapi_apache.c:59 #10 0xf62646d3 in send_php (r=0x833c6c4, display_source_mode=0, filename=0x833d264 /home/kevin/html/news/index.php) at /home/kevin/html/php/dev/php5.2-200606221430/sapi/apache/mod_php5.c:665 #11 0xf626471b in send_parsed_php (r=0x833c6c4) at /home/kevin/html/php/dev/php5.2-200606221430/sapi/apache/mod_php5.c:680 #12 0x08069f94 in ap_invoke_handler () #13 0x0807f1ac in process_request_internal () #14 0x0807f20b in ap_process_request () #15 0x080760aa in child_main () #16 0x080762ad in make_child () #17 0x08076411 in startup_children () #18 0x08076aa7 in standalone_main () #19 0x080772bf in main () [2006-06-23 08:25:33] kevin at littletrader dot net [New Thread -151095616 (LWP 12720)] Program received signal SIGSEGV, Segmentation fault. [Switching to Thread -151095616 (LWP 12720)] 0xf626b618 in mysql_more_results () from /usr/local/apache/libexec/libphp5.so [2006-06-23 07:49:23] [EMAIL PROTECTED] Thank you for this bug report. To properly diagnose the problem, we need a backtrace to see what is happening behind the scenes. To find out how to generate a backtrace, please read http://bugs.php.net/bugs-generating-backtrace.php for *NIX and http://bugs.php.net/bugs-generating-backtrace-win32.php for Win32 Once you have generated a backtrace, please submit it to this bug report and change the status back to Open. Thank you for helping us make PHP better. [2006-06-22 16:18:01] kevin at littletrader dot net Description: Segfault: [Thu Jun 22 18:34:02 2006] [notice] child pid 6222 exit signal Segmentation fault (11) Reproduce code: --- ?php $sql = SELECT * FROM news ORDER BY nid DESC LIMIT 1; try{ $dbh = new PDO(mysql:host=$dbhost;dbname=$dbname, $username, $password); $dbh-setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION); $stmt = $dbh-prepare($sql); $stmt-execute(); $result = $stmt-setFetchMode(PDO::FETCH_ASSOC); $it = new IteratorIterator($stmt); foreach($it as $resultSet) { echo $resultSet-key(); } } catch(PDOException $e) { echo 'Unable to select latest record'.$e-getMessage(); } ? Actual result: -- [Thu Jun 22 18:34:02 2006] [notice] child pid 6222 exit signal Segmentation fault (11) -- Edit this bug report at http://bugs.php.net/?id=37889edit=1
#37900 [NEW]: NULL values on a first record
From: ovendrell at oip dot jazztel dot es Operating system: Linux PHP version: 5.1.4 PHP Bug Type: ODBC related Bug description: NULL values on a first record Description: I work with this environment: * OS: Linux * Web server: Apache 2.0 * DB server: Microsoft SQL server (7.0 or 2000) * PHP 5.1.2 I execute a query with odbc_query() function. when the first record result has a NULL value in a field, the next record that doesn't has a NULL value in the same field doesn't return the correct value. It returns unrecognizable chars. Reproduce code: --- $res = odbc_exec ($bd, SELECT Id, Num, Obs FROM publicacions); odbc_result_all ($res); --- $res = odbc_exec ($bd, SELECT Id, Num FROM publicacions); while (odbc_fetch_row ($res)) echo odbc_result ($res, Id). .odbc_result ($res, Num). .odbc_result ($res, Obs).br; Expected result: Id Num Obs -- 1NULL NULL 2NULL comment 323NULL 445a 5NULL 612c Actual result: -- Id Num Obs -- 1NULL NULL 2NULL [EMAIL PROTECTED]@ 3èH@ NULL 445a 5NULL 612c -- Edit bug report at http://bugs.php.net/?id=37900edit=1 -- Try a CVS snapshot (PHP 4.4): http://bugs.php.net/fix.php?id=37900r=trysnapshot44 Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=37900r=trysnapshot52 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=37900r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=37900r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=37900r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=37900r=needtrace Need Reproduce Script:http://bugs.php.net/fix.php?id=37900r=needscript Try newer version:http://bugs.php.net/fix.php?id=37900r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=37900r=support Expected behavior:http://bugs.php.net/fix.php?id=37900r=notwrong Not enough info: http://bugs.php.net/fix.php?id=37900r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=37900r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=37900r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=37900r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=37900r=dst IIS Stability:http://bugs.php.net/fix.php?id=37900r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=37900r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=37900r=float No Zend Extensions: http://bugs.php.net/fix.php?id=37900r=nozend MySQL Configuration Error:http://bugs.php.net/fix.php?id=37900r=mysqlcfg
#37843 [Opn-Fbk]: I start getting COM Surrogate crushes after installing php as ISAPI
ID: 37843 Updated by: [EMAIL PROTECTED] Reported By: dragos dot matachescu at enterprise-concept dot com -Status: Open +Status: Feedback Bug Type: IIS related Operating System: Windows XP SP2 PHP Version: 5.1.4 New Comment: Please try using this CVS snapshot: http://snaps.php.net/php5.2-latest.tar.gz For Windows: http://snaps.php.net/win32/php5.2-win32-latest.zip Previous Comments: [2006-06-19 09:39:07] dragos dot matachescu at enterprise-concept dot com ... is not the dll thing I thought it was :(. It keeps crushing. I tried the debugger + symbols as you suggested in your email, the problem is MSVC6 does not start when I hit Cancel for debugging (although I have it installed obviously). As I said, I am running ISAPI version and is dllhost.exe the process that crushes. I intercepted the error report that is sent to Microsoft, I can send you the crush dump dllhost.exe.mdmp and appcompat.txt if it helps you... [2006-06-19 08:46:59] dragos dot matachescu at enterprise-concept dot com I think I know why it happens. I tested, and it seems it is because: - I have c:\php put in the path env variable (it does not matter if it is the first in the path or last) - I have mssql 2000 sp4 installed on my computer - mssql has the following dll ntwdblib.dll in c:\windows\system32, the file version is 2000.80.2039.0 - in C:\php there is also ntwdblib.dll as part of php distribution, but the file version is 2000.2.8.0 If I rename/delete the dll in the php distribution the problem seems to go away. I will monitor this further, and let you know if this is not it. Thank you, Dragos [2006-06-19 07:28:49] [EMAIL PROTECTED] Thank you for this bug report. To properly diagnose the problem, we need a backtrace to see what is happening behind the scenes. To find out how to generate a backtrace, please read http://bugs.php.net/bugs-generating-backtrace.php for *NIX and http://bugs.php.net/bugs-generating-backtrace-win32.php for Win32 Once you have generated a backtrace, please submit it to this bug report and change the status back to Open. Thank you for helping us make PHP better. [2006-06-19 07:24:12] dragos dot matachescu at enterprise-concept dot com Description: I installed php as ISAPI on IIS using php.ini-recommended, when I start/stop IIS I get from time to time COM Surrogate error, Data Execution Prevention ..., in the event viewer I see these log entries: Faulting application dllhost.exe, version 5.1.2600.2180, faulting module unknown, version 0.0.0.0, fault address 0x01275c80. For more information, see Help and Support Center at http://go.microsoft.com/fwlink/events.asp. Reproduce code: --- There is no code. Error seems to appear random, I could not find a behaviour pattern that reproduces the error. I assume a memory leak somewhere. -- Edit this bug report at http://bugs.php.net/?id=37843edit=1
#37350 [Com]: realpath() doesn't canonicalize drive letter case
ID: 37350 Comment by: hanskrentel at yahoo dot de Reported By: k95vz5f02 at sneakemail dot com Status: Open Bug Type: Filesystem function related Operating System: Windows XP SP2 PHP Version: 5.1.4 New Comment: within the windows OS there is no difference between cAsE in filenames, a solution might be to read out the actual filename from the system and return it by realpath. but this won't be a valid solution afterall: next to case ignorance, there are two filenames for a file as well: the long and the short (8.3) one (since win/32/95 or FAT 32). so i guess a comparison will fail in that case anyway. additionally, for me another problem occurs: c:\windows is a directory and could be name as c:\windows\ as well (in my opinion it even should but that's my personal opinion anyway). since for me there is no logical correct solution for this problem anyway I would suggest to handle the windows filesystem more similar to the *nix one, that meaning using / instead of \ for example to point to directories with the needed / at the end. additionally, a virtual root might be good idea as well sothat c:\windows would be /c:/windows/ afterall. this would help developers to create better cross platform code. this might be already discussed somewhere else maybe. Previous Comments: [2006-05-07 18:41:58] [EMAIL PROTECTED] Realpath is also used internally for f.e. include_once, so this should be looked into. [2006-05-07 18:08:28] k95vz5f02 at sneakemail dot com Description: The realpath function doesn't canonicalize the case of the drive letter on Windows (and possibly on certain other platforms). For example: realpath('C:\WINDOWS') returns 'C:\WINDOWS' but realpath('c:\WINDOWS') returns 'c:\WINDOWS' (note the different case of the 'C:') Hence comparing realpaths cannot reliably be used to check that two files are the same on Windows. Reproduce code: --- echo (realpath('C:\WINDOWS')==realpath('c:\WINDOWS')) ? true : false; Expected result: true Actual result: -- false -- Edit this bug report at http://bugs.php.net/?id=37350edit=1
#36290 [Com]: tempnam() creates file on wrong drive
ID: 36290 Comment by: hanskrentel at yahoo dot de Reported By: info at silisoftware dot com Status: No Feedback Bug Type: Filesystem function related Operating System: Windows XP Pro SP2 PHP Version: 4.4.2 New Comment: I just checked this out on PHP Version 5.1.2 and the behavior for me is the same, so this was not fixed. reproduced with: $tempname = tempnam('', 'foo'); echo $tempname.'br'; echo realpath($tempname).'br'; output in my case: \foo5E0.tmp d:\foo5E0.tmp d:\ is not my tempdir anyway this function behaves inconsisten per default as discribben in the current online documentaion: Creates a file with a unique filename in the specified directory. If the directory does not exist, tempnam() may generate a file in the system's temporary directory, and return the name of that. http://www.php.net/manual/en/function.tempnam.php so the behavior is correct per definition but useless and i guess not intended. Previous Comments: [2006-02-13 01:00:04] php-bugs at lists dot php dot net No feedback was provided for this bug for over a week, so it is being suspended automatically. If you are able to provide the information that was originally requested, please do so and change the status of the bug back to Open. [2006-02-05 10:31:29] [EMAIL PROTECTED] Please try using this CVS snapshot: http://snaps.php.net/php5.1-latest.tar.gz For Windows: http://snaps.php.net/win32/php5.1-win32-latest.zip [2006-02-05 02:19:00] info at silisoftware dot com Description: tempnam() returns a temp filename, and creates the file. However, it creates it on the wrong drive. For example: $tempname = tempnam('', 'foo'); echo $tempname.'br'; echo realpath($tempname).'br'; This outputs: \foo49.tmp e:\foo49.tmp Notice the returned filename has no drive letter. The file is created (to prevent race condition) in C:\ but realpath() resolves that to E:\ (the last drive letter of physical harddrives in this system). For reference: getenv('TMP')== 'C:\WINDOWS\TEMP' getenv('TMPDIR') == '' Reproduce code: --- $tempname = tempnam('', 'foo'); echo $tempname.'br'; echo realpath($tempname).'br'; Expected result: c:\foo49.tmp c:\foo49.tmp Actual result: -- \foo49.tmp e:\foo49.tmp -- Edit this bug report at http://bugs.php.net/?id=36290edit=1
#37901 [NEW]: Unable to find the wrapper file
From: [EMAIL PROTECTED] Operating system: Windows2000 PHP version: 4.4.2 PHP Bug Type: Streams related Bug description: Unable to find the wrapper file Description: file:// wrapper doesn't work on PHP 4.x.x, but it should according to docs http://php.net/opendir Reproduce code: --- ?php file_get_contents('file://C:/autoexec.bat'); file_get_contents('file://C:\autoexec.bat'); file_get_contents('file:///autoexec.bat'); $dh = opendir('file://C:\temp'); Actual result: -- PHP Notice: file_get_contents(): Unable to find the wrapper file - did you forget to enable it when you configured PHP? in c:\test.php on line 3 PHP Warning: file_get_contents(file://C:/autoexec.bat): failed to open stream: Invalid argument in c:\test.php on line 3 PHP Notice: file_get_contents(): Unable to find the wrapper file - did you forget to enable it when you configured PHP? in c:\test.php on line 4 PHP Warning: file_get_contents(file://C:\autoexec.bat): failed to open stream: Invalid argument in c:\test.php on line 4 PHP Notice: file_get_contents(): Unable to find the wrapper file - did you forget to enable it when you configured PHP? in c:\test.php on line 5 PHP Warning: file_get_contents(file:///autoexec.bat): failed to open stream: Invalid argument in c:\test.php on line 5 PHP Notice: opendir(): Unable to find the wrapper file - did you forget to enable it when you configured PHP? in c:\test.php on line 7 PHP Warning: opendir(file://C:\temp): failed to open dir: Invalid argument in c:\test.php on line 7 -- Edit bug report at http://bugs.php.net/?id=37901edit=1 -- Try a CVS snapshot (PHP 4.4): http://bugs.php.net/fix.php?id=37901r=trysnapshot44 Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=37901r=trysnapshot52 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=37901r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=37901r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=37901r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=37901r=needtrace Need Reproduce Script:http://bugs.php.net/fix.php?id=37901r=needscript Try newer version:http://bugs.php.net/fix.php?id=37901r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=37901r=support Expected behavior:http://bugs.php.net/fix.php?id=37901r=notwrong Not enough info: http://bugs.php.net/fix.php?id=37901r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=37901r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=37901r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=37901r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=37901r=dst IIS Stability:http://bugs.php.net/fix.php?id=37901r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=37901r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=37901r=float No Zend Extensions: http://bugs.php.net/fix.php?id=37901r=nozend MySQL Configuration Error:http://bugs.php.net/fix.php?id=37901r=mysqlcfg
#37894 [Fbk-Opn]: failed to open stream: HTTP request failed!
ID: 37894 User updated by: roclar at gmail dot com Reported By: roclar at gmail dot com -Status: Feedback +Status: Open Bug Type: Filesystem function related Operating System: Solaris 10 PHP Version: 4.4.2 New Comment: Recompiled with the same options with the same result though the error messages seemed to be formatted slightly different: Warning: main(http://www.example.com/) [function.main]: failed to open stream: HTTP request failed! in /path/to/ script/testit.php on line 3 Warning: main() [function.include]: Failed opening 'http:// www.example.com/' for inclusion (include_path='.:/usr/local/ php/lib/php') in /path/to/script/testit.php on line 3 Previous Comments: [2006-06-22 20:30:29] [EMAIL PROTECTED] Please try using this CVS snapshot: http://snaps.php.net/php4-STABLE-latest.tar.gz For Windows: http://snaps.php.net/win32/php4-win32-STABLE-latest.zip [2006-06-22 20:13:11] roclar at gmail dot com Description: Doing an include('http://www.example.com/'); for names local to the server hang and eventually time out a minute later. Using include for external names as well as to localhost and 127.0.0.1 all work as expected. External servers can use include() to load pages on this server. php.ini Fopen wrappers: allow_url_fopen = On default_socket_timeout = 60 Compile time options: LD_LIBRARY_PATH=/oraclesw/instantclient_10_2 export LD_LIBRARY_PATH ./configure \ --prefix=/usr/local/$1 \ --with-apxs=/usr/local/apache/bin/apxs \ --with-ldap=/usr/local \ --with-mysql=/usr/local/mysql \ --with-oci8-instant-client=/oraclesw/ instantclient_10_2 \ --with-ftp \ --with-gd \ --with-gettext \ --with-iconv \ --with-jpeg-dir=/usr/sfw \ --with-openssl=/usr/sfw \ --with-png-dir=/usr/sfw \ --with-zlib \ --with-zlib-dir \ --with-dom=/usr/local \ --with-dom-xslt=/usr/local \ --with-dom-exslt=/usr/local \ --enable-sockets \ --enable-track-vars \ --enable-xml \ --with-expat-dir=/usr/local \ --enable-mbstring=all \ --with-pspell=/usr Reproduce code: --- ?php include('http://www.example.com/'); ? Expected result: For the page to be included successfully. Actual result: -- Warning: main(http://www.example.com/): failed to open stream: HTTP request failed! in /path/to/script/testit.php on line 3 Warning: main(): Failed opening 'http://www.wm.edu/it/' for inclusion (include_path='.:/usr/local/php/lib/php') in /path/ to/script/testit.php on line 3 -- Edit this bug report at http://bugs.php.net/?id=37894edit=1
#37894 [Opn-Fbk]: failed to open stream: HTTP request failed!
ID: 37894 Updated by: [EMAIL PROTECTED] Reported By: roclar at gmail dot com -Status: Open +Status: Feedback Bug Type: Filesystem function related Operating System: Solaris 10 PHP Version: 4.4.2 New Comment: What is the web-server used on this host (aka example.com) and are you able to connect to it using telnet or something else? Previous Comments: [2006-06-23 14:22:01] roclar at gmail dot com Recompiled with the same options with the same result though the error messages seemed to be formatted slightly different: Warning: main(http://www.example.com/) [function.main]: failed to open stream: HTTP request failed! in /path/to/ script/testit.php on line 3 Warning: main() [function.include]: Failed opening 'http:// www.example.com/' for inclusion (include_path='.:/usr/local/ php/lib/php') in /path/to/script/testit.php on line 3 [2006-06-22 20:30:29] [EMAIL PROTECTED] Please try using this CVS snapshot: http://snaps.php.net/php4-STABLE-latest.tar.gz For Windows: http://snaps.php.net/win32/php4-win32-STABLE-latest.zip [2006-06-22 20:13:11] roclar at gmail dot com Description: Doing an include('http://www.example.com/'); for names local to the server hang and eventually time out a minute later. Using include for external names as well as to localhost and 127.0.0.1 all work as expected. External servers can use include() to load pages on this server. php.ini Fopen wrappers: allow_url_fopen = On default_socket_timeout = 60 Compile time options: LD_LIBRARY_PATH=/oraclesw/instantclient_10_2 export LD_LIBRARY_PATH ./configure \ --prefix=/usr/local/$1 \ --with-apxs=/usr/local/apache/bin/apxs \ --with-ldap=/usr/local \ --with-mysql=/usr/local/mysql \ --with-oci8-instant-client=/oraclesw/ instantclient_10_2 \ --with-ftp \ --with-gd \ --with-gettext \ --with-iconv \ --with-jpeg-dir=/usr/sfw \ --with-openssl=/usr/sfw \ --with-png-dir=/usr/sfw \ --with-zlib \ --with-zlib-dir \ --with-dom=/usr/local \ --with-dom-xslt=/usr/local \ --with-dom-exslt=/usr/local \ --enable-sockets \ --enable-track-vars \ --enable-xml \ --with-expat-dir=/usr/local \ --enable-mbstring=all \ --with-pspell=/usr Reproduce code: --- ?php include('http://www.example.com/'); ? Expected result: For the page to be included successfully. Actual result: -- Warning: main(http://www.example.com/): failed to open stream: HTTP request failed! in /path/to/script/testit.php on line 3 Warning: main(): Failed opening 'http://www.wm.edu/it/' for inclusion (include_path='.:/usr/local/php/lib/php') in /path/ to/script/testit.php on line 3 -- Edit this bug report at http://bugs.php.net/?id=37894edit=1
#37894 [Fbk-Opn]: failed to open stream: HTTP request failed!
ID: 37894 User updated by: roclar at gmail dot com Reported By: roclar at gmail dot com -Status: Feedback +Status: Open Bug Type: Filesystem function related Operating System: Solaris 10 PHP Version: 4.4.2 New Comment: The web server is Apache/1.3.36 (Unix) I have command line access to the host and can compile, start/ stop, etc. Previous Comments: [2006-06-23 14:39:57] [EMAIL PROTECTED] What is the web-server used on this host (aka example.com) and are you able to connect to it using telnet or something else? [2006-06-23 14:22:01] roclar at gmail dot com Recompiled with the same options with the same result though the error messages seemed to be formatted slightly different: Warning: main(http://www.example.com/) [function.main]: failed to open stream: HTTP request failed! in /path/to/ script/testit.php on line 3 Warning: main() [function.include]: Failed opening 'http:// www.example.com/' for inclusion (include_path='.:/usr/local/ php/lib/php') in /path/to/script/testit.php on line 3 [2006-06-22 20:30:29] [EMAIL PROTECTED] Please try using this CVS snapshot: http://snaps.php.net/php4-STABLE-latest.tar.gz For Windows: http://snaps.php.net/win32/php4-win32-STABLE-latest.zip [2006-06-22 20:13:11] roclar at gmail dot com Description: Doing an include('http://www.example.com/'); for names local to the server hang and eventually time out a minute later. Using include for external names as well as to localhost and 127.0.0.1 all work as expected. External servers can use include() to load pages on this server. php.ini Fopen wrappers: allow_url_fopen = On default_socket_timeout = 60 Compile time options: LD_LIBRARY_PATH=/oraclesw/instantclient_10_2 export LD_LIBRARY_PATH ./configure \ --prefix=/usr/local/$1 \ --with-apxs=/usr/local/apache/bin/apxs \ --with-ldap=/usr/local \ --with-mysql=/usr/local/mysql \ --with-oci8-instant-client=/oraclesw/ instantclient_10_2 \ --with-ftp \ --with-gd \ --with-gettext \ --with-iconv \ --with-jpeg-dir=/usr/sfw \ --with-openssl=/usr/sfw \ --with-png-dir=/usr/sfw \ --with-zlib \ --with-zlib-dir \ --with-dom=/usr/local \ --with-dom-xslt=/usr/local \ --with-dom-exslt=/usr/local \ --enable-sockets \ --enable-track-vars \ --enable-xml \ --with-expat-dir=/usr/local \ --enable-mbstring=all \ --with-pspell=/usr Reproduce code: --- ?php include('http://www.example.com/'); ? Expected result: For the page to be included successfully. Actual result: -- Warning: main(http://www.example.com/): failed to open stream: HTTP request failed! in /path/to/script/testit.php on line 3 Warning: main(): Failed opening 'http://www.wm.edu/it/' for inclusion (include_path='.:/usr/local/php/lib/php') in /path/ to/script/testit.php on line 3 -- Edit this bug report at http://bugs.php.net/?id=37894edit=1
#37894 [Opn-Fbk]: failed to open stream: HTTP request failed!
ID: 37894 Updated by: [EMAIL PROTECTED] Reported By: roclar at gmail dot com -Status: Open +Status: Feedback Bug Type: Filesystem function related Operating System: Solaris 10 PHP Version: 4.4.2 New Comment: But are you able to connect to this server from the same host where your PHP script is located? Previous Comments: [2006-06-23 14:44:11] roclar at gmail dot com The web server is Apache/1.3.36 (Unix) I have command line access to the host and can compile, start/ stop, etc. [2006-06-23 14:39:57] [EMAIL PROTECTED] What is the web-server used on this host (aka example.com) and are you able to connect to it using telnet or something else? [2006-06-23 14:22:01] roclar at gmail dot com Recompiled with the same options with the same result though the error messages seemed to be formatted slightly different: Warning: main(http://www.example.com/) [function.main]: failed to open stream: HTTP request failed! in /path/to/ script/testit.php on line 3 Warning: main() [function.include]: Failed opening 'http:// www.example.com/' for inclusion (include_path='.:/usr/local/ php/lib/php') in /path/to/script/testit.php on line 3 [2006-06-22 20:30:29] [EMAIL PROTECTED] Please try using this CVS snapshot: http://snaps.php.net/php4-STABLE-latest.tar.gz For Windows: http://snaps.php.net/win32/php4-win32-STABLE-latest.zip [2006-06-22 20:13:11] roclar at gmail dot com Description: Doing an include('http://www.example.com/'); for names local to the server hang and eventually time out a minute later. Using include for external names as well as to localhost and 127.0.0.1 all work as expected. External servers can use include() to load pages on this server. php.ini Fopen wrappers: allow_url_fopen = On default_socket_timeout = 60 Compile time options: LD_LIBRARY_PATH=/oraclesw/instantclient_10_2 export LD_LIBRARY_PATH ./configure \ --prefix=/usr/local/$1 \ --with-apxs=/usr/local/apache/bin/apxs \ --with-ldap=/usr/local \ --with-mysql=/usr/local/mysql \ --with-oci8-instant-client=/oraclesw/ instantclient_10_2 \ --with-ftp \ --with-gd \ --with-gettext \ --with-iconv \ --with-jpeg-dir=/usr/sfw \ --with-openssl=/usr/sfw \ --with-png-dir=/usr/sfw \ --with-zlib \ --with-zlib-dir \ --with-dom=/usr/local \ --with-dom-xslt=/usr/local \ --with-dom-exslt=/usr/local \ --enable-sockets \ --enable-track-vars \ --enable-xml \ --with-expat-dir=/usr/local \ --enable-mbstring=all \ --with-pspell=/usr Reproduce code: --- ?php include('http://www.example.com/'); ? Expected result: For the page to be included successfully. Actual result: -- Warning: main(http://www.example.com/): failed to open stream: HTTP request failed! in /path/to/script/testit.php on line 3 Warning: main(): Failed opening 'http://www.wm.edu/it/' for inclusion (include_path='.:/usr/local/php/lib/php') in /path/ to/script/testit.php on line 3 -- Edit this bug report at http://bugs.php.net/?id=37894edit=1
#37894 [Fbk-Opn]: failed to open stream: HTTP request failed!
ID: 37894 User updated by: roclar at gmail dot com Reported By: roclar at gmail dot com -Status: Feedback +Status: Open Bug Type: Filesystem function related Operating System: Solaris 10 PHP Version: 4.4.2 New Comment: I could use wget on the server and get the same result. Previous Comments: [2006-06-23 14:52:14] [EMAIL PROTECTED] But are you able to connect to this server from the same host where your PHP script is located? [2006-06-23 14:44:11] roclar at gmail dot com The web server is Apache/1.3.36 (Unix) I have command line access to the host and can compile, start/ stop, etc. [2006-06-23 14:39:57] [EMAIL PROTECTED] What is the web-server used on this host (aka example.com) and are you able to connect to it using telnet or something else? [2006-06-23 14:22:01] roclar at gmail dot com Recompiled with the same options with the same result though the error messages seemed to be formatted slightly different: Warning: main(http://www.example.com/) [function.main]: failed to open stream: HTTP request failed! in /path/to/ script/testit.php on line 3 Warning: main() [function.include]: Failed opening 'http:// www.example.com/' for inclusion (include_path='.:/usr/local/ php/lib/php') in /path/to/script/testit.php on line 3 [2006-06-22 20:30:29] [EMAIL PROTECTED] Please try using this CVS snapshot: http://snaps.php.net/php4-STABLE-latest.tar.gz For Windows: http://snaps.php.net/win32/php4-win32-STABLE-latest.zip 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/37894 -- Edit this bug report at http://bugs.php.net/?id=37894edit=1
#37894 [Opn-Fbk]: failed to open stream: HTTP request failed!
ID: 37894 Updated by: [EMAIL PROTECTED] Reported By: roclar at gmail dot com -Status: Open +Status: Feedback Bug Type: Filesystem function related Operating System: Solaris 10 PHP Version: 4.4.2 New Comment: The same result? I.e. unable to connect? Previous Comments: [2006-06-23 15:00:04] roclar at gmail dot com I could use wget on the server and get the same result. [2006-06-23 14:52:14] [EMAIL PROTECTED] But are you able to connect to this server from the same host where your PHP script is located? [2006-06-23 14:44:11] roclar at gmail dot com The web server is Apache/1.3.36 (Unix) I have command line access to the host and can compile, start/ stop, etc. [2006-06-23 14:39:57] [EMAIL PROTECTED] What is the web-server used on this host (aka example.com) and are you able to connect to it using telnet or something else? [2006-06-23 14:22:01] roclar at gmail dot com Recompiled with the same options with the same result though the error messages seemed to be formatted slightly different: Warning: main(http://www.example.com/) [function.main]: failed to open stream: HTTP request failed! in /path/to/ script/testit.php on line 3 Warning: main() [function.include]: Failed opening 'http:// www.example.com/' for inclusion (include_path='.:/usr/local/ php/lib/php') in /path/to/script/testit.php on line 3 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/37894 -- Edit this bug report at http://bugs.php.net/?id=37894edit=1
#37894 [Fbk-Opn]: failed to open stream: HTTP request failed!
ID: 37894 User updated by: roclar at gmail dot com Reported By: roclar at gmail dot com -Status: Feedback +Status: Open Bug Type: Filesystem function related Operating System: Solaris 10 PHP Version: 4.4.2 New Comment: br / bWarning/b: main(http://www.example.com/) [a href='function.main'function.main/a]: failed to open stream: HTTP request failed! in b/path/to/script/ testit.php/b on line b3/bbr / br / bWarning/b: main() [a href='function.include'function.include/a]: Failed opening 'http://www.example.com/' for inclusion (include_path='.:/usr/local/php/lib/php') in b/path/to/ script/testit.php/b on line b3/bbr / Previous Comments: [2006-06-23 15:14:58] [EMAIL PROTECTED] The same result? I.e. unable to connect? [2006-06-23 15:00:04] roclar at gmail dot com I could use wget on the server and get the same result. [2006-06-23 14:52:14] [EMAIL PROTECTED] But are you able to connect to this server from the same host where your PHP script is located? [2006-06-23 14:44:11] roclar at gmail dot com The web server is Apache/1.3.36 (Unix) I have command line access to the host and can compile, start/ stop, etc. [2006-06-23 14:39:57] [EMAIL PROTECTED] What is the web-server used on this host (aka example.com) and are you able to connect to it using telnet or something else? 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/37894 -- Edit this bug report at http://bugs.php.net/?id=37894edit=1
#37894 [Opn-Fbk]: failed to open stream: HTTP request failed!
ID: 37894 Updated by: [EMAIL PROTECTED] Reported By: roclar at gmail dot com -Status: Open +Status: Feedback Bug Type: Filesystem function related Operating System: Solaris 10 PHP Version: 4.4.2 New Comment: Again. Please try to connect to this web-server (aka example.com) using a telnet or wget or something else from the server where the script is located. I want you to do this because I suspect there is a firewall or a proxy or some other reason which prevents you from connecting from one server to another. What you need to do: login to the server, run `telnet example.com 80` (or wget example.com/some_page.html), make sure you're able to get the data. Previous Comments: [2006-06-23 15:20:01] roclar at gmail dot com br / bWarning/b: main(http://www.example.com/) [a href='function.main'function.main/a]: failed to open stream: HTTP request failed! in b/path/to/script/ testit.php/b on line b3/bbr / br / bWarning/b: main() [a href='function.include'function.include/a]: Failed opening 'http://www.example.com/' for inclusion (include_path='.:/usr/local/php/lib/php') in b/path/to/ script/testit.php/b on line b3/bbr / [2006-06-23 15:14:58] [EMAIL PROTECTED] The same result? I.e. unable to connect? [2006-06-23 15:00:04] roclar at gmail dot com I could use wget on the server and get the same result. [2006-06-23 14:52:14] [EMAIL PROTECTED] But are you able to connect to this server from the same host where your PHP script is located? [2006-06-23 14:44:11] roclar at gmail dot com The web server is Apache/1.3.36 (Unix) I have command line access to the host and can compile, start/ stop, etc. 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/37894 -- Edit this bug report at http://bugs.php.net/?id=37894edit=1
#37902 [NEW]: include() and family do not use filesystem encoding
From: [EMAIL PROTECTED] Operating system: PHP version: 6CVS-2006-06-23 (CVS) PHP Bug Type: Scripting Engine problem Bug description: include() and family do not use filesystem encoding Description: It seems that fopen_for_include uses runtime encoding, not filesystem encoding. Reproduce code: --- php.ini --- unicode_semantics = on unicode.output_encoding = utf-8 unicode.runtime_encoding = iso-8859-1 unicode.script_encoding = utf-8 unicode.filesystem_encoding = utf-8 f.php - ?php include café.php; café.php (UTF-8 name) - ?php echo in café\n; ? Expected result: in café Actual result: -- Warning: include(caf?.php): failed to open stream: No such file or directory in /home/andrei/dev/php-src/f.php on line 1 Warning: include(): Failed opening 'caf?.php' for inclusion (include_path='.') in /home/andrei/dev/php-src/f.php on line 1 -- Edit bug report at http://bugs.php.net/?id=37902edit=1 -- Try a CVS snapshot (PHP 4.4): http://bugs.php.net/fix.php?id=37902r=trysnapshot44 Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=37902r=trysnapshot52 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=37902r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=37902r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=37902r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=37902r=needtrace Need Reproduce Script:http://bugs.php.net/fix.php?id=37902r=needscript Try newer version:http://bugs.php.net/fix.php?id=37902r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=37902r=support Expected behavior:http://bugs.php.net/fix.php?id=37902r=notwrong Not enough info: http://bugs.php.net/fix.php?id=37902r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=37902r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=37902r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=37902r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=37902r=dst IIS Stability:http://bugs.php.net/fix.php?id=37902r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=37902r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=37902r=float No Zend Extensions: http://bugs.php.net/fix.php?id=37902r=nozend MySQL Configuration Error:http://bugs.php.net/fix.php?id=37902r=mysqlcfg
#34776 [Com]: mb_convert_encoding() - wrong convertion from UTF-16 (problem with BOM)
ID: 34776 Comment by: markl at lindenlab dot com Reported By: narzeczony at zabuchy dot net Status: No Feedback Bug Type: mbstring related Operating System: Linux, Windows PHP Version: 5.0.5 New Comment: There are two problems when mb_convert_encoding is converting from UTF-16: 1) It is including the (transcoded) BOM in the result, rather than stripping it 2) If the source UTF-16 string was little endian, then the second character of the conversion will be wrong; it is converted as if the character code had 0xFF00 or'd into it. Problem 1 occurs with any UTF-16 variant (though it is arguably correct behavior for UTF-16LE and UTF-16BE). Problem 2 only occurs when converting from UTF-16. This PHP program demonstrates this all clearly: function dump($s) { for ($i = 0; $i strlen($s); ++$i) { echo substr(dechex(256+ord(substr($s, $i, 1))), 1, 2), ' '; } var_dump($s); } $utf16le = \xFF\xFE\x41\x00\x42\x00\x43\x00; $utf16be = \xFE\xFF\x00\x41\x00\x42\x00\x43; // these strings are both valid UTF-16, the BOM at the start indicates // the endianness. We don't expect the BOM to be included in a conversion echo The UTF-16LE and UTF-16BE sequences:\n; dump($utf16le); dump($utf16be); echo \n; $encodings = array(ascii, iso-8859-1, utf-8, utf-16, utf-16le, utf-16be); foreach ($encodings as $enc) { echo Converting to $enc:\n; dump(mb_convert_encoding($utf16le, $enc, utf-16)); dump(mb_convert_encoding($utf16be, $enc, utf-16)); echo \n; } Previous Comments: [2005-10-15 01:00:03] php-bugs at lists dot php dot net No feedback was provided for this bug for over a week, so it is being suspended automatically. If you are able to provide the information that was originally requested, please do so and change the status of the bug back to Open. [2005-10-07 21:58:46] [EMAIL PROTECTED] Please try using this CVS snapshot: http://snaps.php.net/php5-latest.tar.gz For Windows: http://snaps.php.net/win32/php5-win32-latest.zip [2005-10-07 16:36:23] narzeczony at zabuchy dot net The same example but with iconv instead of mb_convert_encoding works perfect - but it doesn't close bug related to mb_convert_encoding I guess :). Another problem exist with converting to 'UTF-16' (using mb_convert_encoding) - BOM section is not added. Again iconv works well in this case. [2005-10-07 12:43:32] [EMAIL PROTECTED] ah, mbstring has a weird parameter order (dest, src) instead of (src, dest)... did you try to use iconv perhaps? [2005-10-07 12:33:45] narzeczony at zabuchy dot net I'm not specifying which endianess mb_convert_encoding should use to convert to ISO. Look: $utf16LE2iso = mb_convert_encoding($utf16LE,'ISO-8859-1','UTF-16'); I'm converting from UTF-16 (LE or BE) to ISO-8859-1. It looks like mb_convert_encoding is checking BOM field and choosing right encoding (if you remove BOM field it won't be converted properly for one endianess). The only problem is that BOM is not ignored. The first two lines with endianess specified: $utf16LE = mb_convert_encoding($iso_8859_1,'UTF-16LE','ISO-8859-1'); $utf16BE = mb_convert_encoding($iso_8859_1,'UTF-16BE','ISO-8859-1'); are just for convient UTF-16 string creation, please ignore them. 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/34776 -- Edit this bug report at http://bugs.php.net/?id=34776edit=1
#37894 [Fbk-Opn]: failed to open stream: HTTP request failed!
ID: 37894 User updated by: roclar at gmail dot com Reported By: roclar at gmail dot com -Status: Feedback +Status: Open Bug Type: Filesystem function related Operating System: Solaris 10 PHP Version: 4.4.2 New Comment: That last comment was retreived using wget from the command line on the server that hosts both the php script. It is also the server where I am trying to pull the data from. If I wget http://www.example.com directly, I get the data: --12:10:28-- http://www.example.com/ = `index.html' Resolving www.example.com... 127.0.0.1 Connecting to www.example.com[127.0.0.1]:80... connected. HTTP request sent, awaiting response... 200 OK Previous Comments: [2006-06-23 15:30:29] [EMAIL PROTECTED] Again. Please try to connect to this web-server (aka example.com) using a telnet or wget or something else from the server where the script is located. I want you to do this because I suspect there is a firewall or a proxy or some other reason which prevents you from connecting from one server to another. What you need to do: login to the server, run `telnet example.com 80` (or wget example.com/some_page.html), make sure you're able to get the data. [2006-06-23 15:20:01] roclar at gmail dot com br / bWarning/b: main(http://www.example.com/) [a href='function.main'function.main/a]: failed to open stream: HTTP request failed! in b/path/to/script/ testit.php/b on line b3/bbr / br / bWarning/b: main() [a href='function.include'function.include/a]: Failed opening 'http://www.example.com/' for inclusion (include_path='.:/usr/local/php/lib/php') in b/path/to/ script/testit.php/b on line b3/bbr / [2006-06-23 15:14:58] [EMAIL PROTECTED] The same result? I.e. unable to connect? [2006-06-23 15:00:04] roclar at gmail dot com I could use wget on the server and get the same result. [2006-06-23 14:52:14] [EMAIL PROTECTED] But are you able to connect to this server from the same host where your PHP script is located? 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/37894 -- Edit this bug report at http://bugs.php.net/?id=37894edit=1
#37350 [Opn]: realpath() doesn't canonicalize case on Windows
ID: 37350 User updated by: k95vz5f02 at sneakemail dot com -Summary: realpath() doesn't canonicalize drive letter case Reported By: k95vz5f02 at sneakemail dot com Status: Open Bug Type: Filesystem function related Operating System: Windows XP SP2 PHP Version: 5.1.4 New Comment: On further investigation, realpath doesn't consistently canonicalize the case at all on Windows, I've updated the summary accordingly. First to remember the need for this: the documentation definition for realpath is Returns canonicalized absolute pathname, and Wikipedia defines canonicalization as Canonicalization (abbreviated c14n) is the process of converting data that has more than one possible representation into a standard canonical representation. This can be done to compare different representations for equivalence (...) So clearly case should be converted to a standard form on platforms such as Windows that are case-insensitive, and indeed Windows stores the preferred case for every file, for example the standard directory 'C:\Program Files' should be capitalised like that, rather than, e.g. 'C:\program files' or 'C:\PROGRAM FILES', whereas 'C:\WINDOWS' is the preferred case for that directory (on Win XP at least). Tests: 1. realpath(C:\\Program Files) = C:\Program Files 2. realpath(c:\\PrOgRaM fIlEs) = c:\PrOgRaM fIlEs 3. realpath(C:\\program files\\) = C:\program files 4. realpath(C:/program files/) = C:\program files 5. realpath(C:\\pRoGrA~1)= C:\Program Files 6. realpath(c:\\windows) = c:\WINDOWS 7. realpath(c:\\wInDoWs\\DoWnLoAdEd PrOgRaM fIlEs\\) = c:\WINDOWS\DoWnLoAdEd PrOgRaM fIlEs Conclusion: realpath deals with slashes consistently, but it only canonicalizes the case of short filenames (as well as expanding them), not long file names (anything more than 8.3, or with a space, etc); and it never capitalizes the drive letter as it should. A possible solution, if slightly inefficient, would be to convert path components into short (8.3) form then apply the normal realpath logic. Previous Comments: [2006-06-23 11:13:39] hanskrentel at yahoo dot de within the windows OS there is no difference between cAsE in filenames, a solution might be to read out the actual filename from the system and return it by realpath. but this won't be a valid solution afterall: next to case ignorance, there are two filenames for a file as well: the long and the short (8.3) one (since win/32/95 or FAT 32). so i guess a comparison will fail in that case anyway. additionally, for me another problem occurs: c:\windows is a directory and could be name as c:\windows\ as well (in my opinion it even should but that's my personal opinion anyway). since for me there is no logical correct solution for this problem anyway I would suggest to handle the windows filesystem more similar to the *nix one, that meaning using / instead of \ for example to point to directories with the needed / at the end. additionally, a virtual root might be good idea as well sothat c:\windows would be /c:/windows/ afterall. this would help developers to create better cross platform code. this might be already discussed somewhere else maybe. [2006-05-07 18:41:58] [EMAIL PROTECTED] Realpath is also used internally for f.e. include_once, so this should be looked into. [2006-05-07 18:08:28] k95vz5f02 at sneakemail dot com Description: The realpath function doesn't canonicalize the case of the drive letter on Windows (and possibly on certain other platforms). For example: realpath('C:\WINDOWS') returns 'C:\WINDOWS' but realpath('c:\WINDOWS') returns 'c:\WINDOWS' (note the different case of the 'C:') Hence comparing realpaths cannot reliably be used to check that two files are the same on Windows. Reproduce code: --- echo (realpath('C:\WINDOWS')==realpath('c:\WINDOWS')) ? true : false; Expected result: true Actual result: -- false -- Edit this bug report at http://bugs.php.net/?id=37350edit=1
#34564 [Com]: reference (in/out) parameters don't work
ID: 34564 Comment by: massimiliano at it dot ibm dot com Reported By: milman at gmx dot de Status: Assigned Bug Type: COM related Operating System: windows xp PHP Version: 5CVS-2005-09-20 (snap) Assigned To: wez New Comment: Hello, on today 23.06.2006: I can reproduce the same problem also on Win2K... using the sample code here. I tried with php 5.1.4 and (php 6 development) with the same behavior. On php 4 abend give me a memory read fault popup reporting instruction at address 0x1003b481 had referenced memory at 0x. IE version 6.0.2800... Regards, Massimiliano Previous Comments: [2005-09-20 15:26:04] [EMAIL PROTECTED] Assigned to the maintainer of COM. [2005-09-20 14:31:41] milman at gmx dot de Description: reference paramater in com-function-calls don't work Reproduce code: --- ?php class IEEventSinker { function BeforeNavigate2($dom, $url, $flags, $TargetFrameName, $PostData, $Headers, $cancel) { // THAT IS THE PROBLEM. IT DOSN'T WORK $cancel = true ; } } $ie = new COM(InternetExplorer.Application); $sink =new IEEventSinker(); com_event_sink($ie, $sink, DWebBrowserEvents2); $ie-Visible = true; $ie-Navigate(http://www.php.net;); while(!$sink-terminated) { com_message_pump(4000); } ? Expected result: the InternetExplorer shows a blank page Actual result: -- he show the page the same in VB shows the expected. -- Edit this bug report at http://bugs.php.net/?id=34564edit=1