#36903 [Opn->Bgs]: Bug #36526 is not a bogus bug
ID: 36903 Updated by: [EMAIL PROTECTED] Reported By: govi74 at yahoo dot com -Status: Open +Status: Bogus Bug Type: Zlib Related Operating System: Windows PHP Version: 5.1.2 New Comment: Thank you for taking the time to write to us, but this is not a bug. Please double-check the documentation available at http://www.php.net/manual/ and the instructions on how to report a bug at http://bugs.php.net/how-to-report.php http://php.net/urlencode Previous Comments: [2006-03-31 06:57:24] govi74 at yahoo dot com Test case page1.php - 0,array(1,2,3),array(1,2,3)); $data=base64_encode(gzcompress(serialize($packeddata))); echo "Call Page 2"; ?> - page2.php::: - Hope this makes complete.. on clicking the page2 link from the page 1 gives this error... this happens only when we send array data Warning: gzuncompress() [function.gzuncompress]: data error in D:\WebHome\home\testcase\page2.php on line 4 [2006-03-29 11:42:03] [EMAIL PROTECTED] Not enough information was provided for us to be able to handle this bug. Please re-read the instructions at http://bugs.php.net/how-to-report.php If you can provide more information, feel free to add it to this bug and change the status back to "Open". Thank you for your interest in PHP. [2006-03-29 06:25:04] govi74 at yahoo dot com Description: Even I have exactly the same issue as discussed in Bug #36526, this does *not* happen in PHP 5.0.1, but this is a BUG in 5.1.2 I am using gzcompress the same issue, also the issue is the same for gzinflate/gzdeflate. The script is like this... $data=base64_encode(gzcompress(serialize($packeddata))); When send it over _REQUEST.. and trying to reverse it to get the $packeddata, I get the data error for gzcompress... $unpackeddata = unserialize(gzuncompress(base64_decode($_REQUEST["data"]))); I need a fix for this, as of now, I have moved back to 5.0.1 again... If urlencode needs to be used, why was it working fine in the earlier versions??? This is a BUG in the uncompress code.. please have a relook into this... -- Edit this bug report at http://bugs.php.net/?id=36903&edit=1
#36929 [Opn->Bgs]: "\" turns to "\\" when passing parameter from page1 to page 2
ID: 36929 Updated by: [EMAIL PROTECTED] Reported By: timo dot ahokas at nesteoil dot com -Status: Open +Status: Bogus Bug Type: *General Issues Operating System: XP PHP Version: 5.1.2 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. Hint: check your magic_quotes php.ini setting. Previous Comments: [2006-03-31 08:30:52] timo dot ahokas at nesteoil dot com Description: "\" turns to "\\" when passing parameter from page1 to page 2 php WITH SAMBAR 6 Reproduce code: --- CODE FOR PAGE1: "; ?> CODE FOR PAGE2: $regresult "; ?> Expected result: ahokatim\something Actual result: -- ahokatim\\something -- Edit this bug report at http://bugs.php.net/?id=36929&edit=1
#36929 [NEW]: "\" turns to "\\" when passing parameter from page1 to page 2
From: timo dot ahokas at nesteoil dot com Operating system: XP PHP version: 5.1.2 PHP Bug Type: *General Issues Bug description: "\" turns to "\\" when passing parameter from page1 to page 2 Description: "\" turns to "\\" when passing parameter from page1 to page 2 php WITH SAMBAR 6 Reproduce code: --- CODE FOR PAGE1: "; ?> CODE FOR PAGE2: $regresult "; ?> Expected result: ahokatim\something Actual result: -- ahokatim\\something -- Edit bug report at http://bugs.php.net/?id=36929&edit=1 -- Try a CVS snapshot (PHP 4.4): http://bugs.php.net/fix.php?id=36929&r=trysnapshot44 Try a CVS snapshot (PHP 5.1): http://bugs.php.net/fix.php?id=36929&r=trysnapshot51 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=36929&r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=36929&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=36929&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=36929&r=needtrace Need Reproduce Script:http://bugs.php.net/fix.php?id=36929&r=needscript Try newer version:http://bugs.php.net/fix.php?id=36929&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=36929&r=support Expected behavior:http://bugs.php.net/fix.php?id=36929&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=36929&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=36929&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=36929&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=36929&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=36929&r=dst IIS Stability:http://bugs.php.net/fix.php?id=36929&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=36929&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=36929&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=36929&r=nozend MySQL Configuration Error:http://bugs.php.net/fix.php?id=36929&r=mysqlcfg
#36928 [Ana]: error_log with invalid arguments crashes PHP
ID: 36928 User updated by: michaelw at webcentral dot com dot au Reported By: michaelw at webcentral dot com dot au Status: Analyzed Bug Type: Reproducible crash Operating System: Solaris 9 / PHP Version: 4.4.2 New Comment: Thank you, this corrects the issue. Just one more thing for completeness.. in the mail.c patch you test the value of to before passing it to fprintf. Should the same thing be done for the value of subject ? Previous Comments: [2006-03-31 06:40:31] [EMAIL PROTECTED] And a patch for error_log() to require 'destination' when set to send email: http://php.is/bugs/36928/error_log.patch.txt [2006-03-31 06:33:54] arnar at 8 dot is This crash is cosed by solaris's libc not checking the fprintf arguments, and php fault for passing in a NULL argumnet. Link to patch: http://php.is/patch/mail.patch Index: ext/standard/mail.c === RCS file: /repository/php-src/ext/standard/mail.c,v retrieving revision 1.66.2.12.4.2 diff -u -r1.66.2.12.4.2 mail.c --- ext/standard/mail.c 1 Jan 2006 13:46:57 - 1.66.2.12.4.2 +++ ext/standard/mail.c 31 Mar 2006 04:29:29 - @@ -196,6 +196,10 @@ return 0; #endif } + if (to == NULL && headers == NULL) { + php_error_docref(NULL TSRMLS_CC, E_WARNING, "Invalid arguments"); + return 0; + } if (extra_cmd != NULL) { sendmail_cmd = emalloc (strlen (sendmail_path) + strlen (extra_cmd) + 2); strcpy (sendmail_cmd, sendmail_path); @@ -225,7 +229,9 @@ return 0; } #endif - fprintf(sendmail, "To: %s\n", to); + if (to != NULL) { + fprintf(sendmail, "To: %s\n", to); + } fprintf(sendmail, "Subject: %s\n", subject); if (headers != NULL) { fprintf(sendmail, "%s\n", headers); [2006-03-31 03:56:10] michaelw at webcentral dot com dot au I've verified I can reproduce it with the latest CVS snapshot with a compile string of: ./configure --prefix=/opt/php --with-nsapi=/opt/sunapps/web --enable-debug Its probably also worth noting I can replicate it using the CLI.. # gdb sapi/cli/php GNU gdb 6.0 Copyright 2003 Free Software Foundation, Inc. GDB is free software, covered by the GNU General Public License, and you are welcome to change it and/or distribute copies of it under certain conditions. Type "show copying" to see the conditions. There is absolutely no warranty for GDB. Type "show warranty" for details. This GDB was configured as "sparc-sun-solaris2.9"...set (gdb) set args /webdocs/school-hosting/centraloffice/mis-webcentral/www/crash2.php (gdb) run Starting program: /opt/admin/build/php4-STABLE-200603310035/sapi/cli/php /webdocs/school-hosting/centraloffice/mis-webcentral/www/crash2.php Program received signal SIGSEGV, Segmentation fault. 0xff13451c in strlen () from /usr/lib/libc.so.1 (gdb) bt #0 0xff13451c in strlen () from /usr/lib/libc.so.1 #1 0xff186f88 in _doprnt () from /usr/lib/libc.so.1 #2 0xff1889e4 in fprintf () from /usr/lib/libc.so.1 #3 0x0009c374 in php_mail (to=0x0, subject=0x15c8e0 "To: %s\n", message=0x0, headers=0xff1bc000 "", extra_cmd=0x2134a8 "s\022øÜ", tsrm_ls=0x1a6278) at /opt/admin/build/php4-STABLE-200603310035/ext/standard/mail.c:228 [2006-03-31 03:50:28] michaelw at webcentral dot com dot au Hey, This is a better 'Reproduce Code' (it doesn't attempt to send an email if the 2nd variable is a 0, and hence doesn't crash, so depending on what $_SERVER['HTTPS'] evaluated to for you, it might not have errored..): Test.. I'm currently compiling the suggested CVS snapshot and will let you know when I have a result. [2006-03-31 03:32:05] [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 Can't reproduce 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/36928 -- Edit this bug report at http://bugs.php.net/?id=36928&edit=1
#36903 [Fbk->Opn]: Bug #36526 is not a bogus bug
ID: 36903 User updated by: govi74 at yahoo dot com Reported By: govi74 at yahoo dot com -Status: Feedback +Status: Open Bug Type: Zlib Related Operating System: Windows PHP Version: 5.1.2 New Comment: Test case page1.php - 0,array(1,2,3),array(1,2,3)); $data=base64_encode(gzcompress(serialize($packeddata))); echo "Call Page 2"; ?> - page2.php::: - Hope this makes complete.. on clicking the page2 link from the page 1 gives this error... this happens only when we send array data Warning: gzuncompress() [function.gzuncompress]: data error in D:\WebHome\home\testcase\page2.php on line 4 Previous Comments: [2006-03-29 11:42:03] [EMAIL PROTECTED] Not enough information was provided for us to be able to handle this bug. Please re-read the instructions at http://bugs.php.net/how-to-report.php If you can provide more information, feel free to add it to this bug and change the status back to "Open". Thank you for your interest in PHP. [2006-03-29 06:25:04] govi74 at yahoo dot com Description: Even I have exactly the same issue as discussed in Bug #36526, this does *not* happen in PHP 5.0.1, but this is a BUG in 5.1.2 I am using gzcompress the same issue, also the issue is the same for gzinflate/gzdeflate. The script is like this... $data=base64_encode(gzcompress(serialize($packeddata))); When send it over _REQUEST.. and trying to reverse it to get the $packeddata, I get the data error for gzcompress... $unpackeddata = unserialize(gzuncompress(base64_decode($_REQUEST["data"]))); I need a fix for this, as of now, I have moved back to 5.0.1 again... If urlencode needs to be used, why was it working fine in the earlier versions??? This is a BUG in the uncompress code.. please have a relook into this... -- Edit this bug report at http://bugs.php.net/?id=36903&edit=1
#34852 [Com]: [PATCH] Failure in odbc_exec() using oracle-supplied odbc driver
ID: 34852 Comment by: adrian dot chadd at uwa dot edu dot au Reported By: tim dot tassonis at trivadis dot com Status: No Feedback Bug Type: ODBC related Operating System: Linux PHP Version: 5CVS-2005-11-03 (cvs) New Comment: We're having the same problem: matrix:~# php5 -v PHP 5.1.2-1 (cli) (built: Jan 18 2006 06:49:47) Copyright (c) 1997-2006 The PHP Group Zend Engine v2.1.0, Copyright (c) 1998-2006 Zend Technologies matrix:~# cat adri.php5 matrix:~# php5 adri.php5 result: Array ( [server] => HISDEV [description] => OracleODBC-10g ) Warning: odbc_prepare(): SQL error: [unixODBC][Driver Manager]Driver does not support this function, SQL state IM001 in SQLSetStmtOption in /root/adri.php5 on line 12 matrix:~# dpkg -l | grep odbc rc odbcinst1 2.2.4-11 Support library and helper program for acces ii odbcinst1debia 2.2.11-10 Support library and helper program for acces ii php5-odbc 5.1.2-1ODBC module for php5 ii unixodbc 2.2.11-10 ODBC tools libraries Can someone shed some light on this? What can/should I try? adrian Previous Comments: [2005-12-20 01:00:05] 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-12-12 10:31:21] [EMAIL PROTECTED] Can you repeat this error when using the PDO odbc ?? [2005-11-30 21:09:46] [EMAIL PROTECTED] Unfortunately Dan can not be involved in this. (some license thing) [2005-11-04 01:49:46] [EMAIL PROTECTED] Tony: Check with Dan Scott before applying this patch; he's probably most current on this aspect of the odbc extension. [2005-10-13 13:34:40] tim dot tassonis at trivadis dot com Well, here is a patch. I dont know whether the formatting is preserved her properly, it should apply cleanly with "patch -p1 < patchfile" from whithing the php-5.0.5 directory. The patch just stops odbc_exec and odbc_prepare from failing if the SQLSetStmtOption fails. The warning is still displayed in the error_log. It would be great if this could be applied. So below follows the patch (created with diff -ruN): diff -ruN php-5.0.5/ext/odbc/php_odbc.c php-5.0.5-ora/ext/odbc/php_odbc.c --- php-5.0.5/ext/odbc/php_odbc.c 2005-07-03 00:50:01.0 +0200 +++ php-5.0.5-ora/ext/odbc/php_odbc.c 2005-10-13 12:20:55.0 +0200 @@ -875,9 +875,11 @@ if (SQLSetStmtOption(result->stmt, SQL_CURSOR_TYPE, SQL_CURSOR_DYNAMIC) == SQL_ERROR) { odbc_sql_error(conn, result->stmt, " SQLSetStmtOption"); + /* Dont fail, but go on. This can happen SQLFreeStmt(result->stmt, SQL_DROP); efree(result); RETURN_FALSE; + */ } } } else { @@ -1296,9 +1298,11 @@ if (SQLSetStmtOption(result->stmt, SQL_CURSOR_TYPE, SQL_CURSOR_DYNAMIC) == SQL_ERROR) { odbc_sql_error(conn, result->stmt, " SQLSetStmtOption"); + /* Dont fail, but go on. This can happen SQLFreeStmt(result->stmt, SQL_DROP); efree(result); RETURN_FALSE; + */ } } } 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/34852 -- Edit this bug report at http://bugs.php.net/?id=34852&edit=1
#36928 [Opn->Ana]: error_log with invalid arguments crashes PHP
ID: 36928 Updated by: [EMAIL PROTECTED] Reported By: michaelw at webcentral dot com dot au -Status: Open +Status: Analyzed Bug Type: Reproducible crash Operating System: Solaris 9 / PHP Version: 4.4.2 New Comment: And a patch for error_log() to require 'destination' when set to send email: http://php.is/bugs/36928/error_log.patch.txt Previous Comments: [2006-03-31 06:33:54] arnar at 8 dot is This crash is cosed by solaris's libc not checking the fprintf arguments, and php fault for passing in a NULL argumnet. Link to patch: http://php.is/patch/mail.patch Index: ext/standard/mail.c === RCS file: /repository/php-src/ext/standard/mail.c,v retrieving revision 1.66.2.12.4.2 diff -u -r1.66.2.12.4.2 mail.c --- ext/standard/mail.c 1 Jan 2006 13:46:57 - 1.66.2.12.4.2 +++ ext/standard/mail.c 31 Mar 2006 04:29:29 - @@ -196,6 +196,10 @@ return 0; #endif } + if (to == NULL && headers == NULL) { + php_error_docref(NULL TSRMLS_CC, E_WARNING, "Invalid arguments"); + return 0; + } if (extra_cmd != NULL) { sendmail_cmd = emalloc (strlen (sendmail_path) + strlen (extra_cmd) + 2); strcpy (sendmail_cmd, sendmail_path); @@ -225,7 +229,9 @@ return 0; } #endif - fprintf(sendmail, "To: %s\n", to); + if (to != NULL) { + fprintf(sendmail, "To: %s\n", to); + } fprintf(sendmail, "Subject: %s\n", subject); if (headers != NULL) { fprintf(sendmail, "%s\n", headers); [2006-03-31 03:56:10] michaelw at webcentral dot com dot au I've verified I can reproduce it with the latest CVS snapshot with a compile string of: ./configure --prefix=/opt/php --with-nsapi=/opt/sunapps/web --enable-debug Its probably also worth noting I can replicate it using the CLI.. # gdb sapi/cli/php GNU gdb 6.0 Copyright 2003 Free Software Foundation, Inc. GDB is free software, covered by the GNU General Public License, and you are welcome to change it and/or distribute copies of it under certain conditions. Type "show copying" to see the conditions. There is absolutely no warranty for GDB. Type "show warranty" for details. This GDB was configured as "sparc-sun-solaris2.9"...set (gdb) set args /webdocs/school-hosting/centraloffice/mis-webcentral/www/crash2.php (gdb) run Starting program: /opt/admin/build/php4-STABLE-200603310035/sapi/cli/php /webdocs/school-hosting/centraloffice/mis-webcentral/www/crash2.php Program received signal SIGSEGV, Segmentation fault. 0xff13451c in strlen () from /usr/lib/libc.so.1 (gdb) bt #0 0xff13451c in strlen () from /usr/lib/libc.so.1 #1 0xff186f88 in _doprnt () from /usr/lib/libc.so.1 #2 0xff1889e4 in fprintf () from /usr/lib/libc.so.1 #3 0x0009c374 in php_mail (to=0x0, subject=0x15c8e0 "To: %s\n", message=0x0, headers=0xff1bc000 "", extra_cmd=0x2134a8 "s\022øÜ", tsrm_ls=0x1a6278) at /opt/admin/build/php4-STABLE-200603310035/ext/standard/mail.c:228 [2006-03-31 03:50:28] michaelw at webcentral dot com dot au Hey, This is a better 'Reproduce Code' (it doesn't attempt to send an email if the 2nd variable is a 0, and hence doesn't crash, so depending on what $_SERVER['HTTPS'] evaluated to for you, it might not have errored..): Test.. I'm currently compiling the suggested CVS snapshot and will let you know when I have a result. [2006-03-31 03:32:05] [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 Can't reproduce [2006-03-31 03:08:23] michaelw at webcentral dot com dot au Description: This was noticed by a developer making a typo ( , instead of . ) when attempting to concat strings within the parameters of error_log. It is reported as a bug because it causes a segfault in PHP which causes the webserver to crash. Reproduce code: --- Test.. Expected result: Presumably an error indicating that the 2nd parameter passed to error_log is invalid. Actual result: -- Program received signal SIGSEGV, Segmentation fault. (gdb) bt #0 0xfedb451c in strlen () from /usr/lib/libc.so.1 #1 0xfee06f88 in _doprnt () from /usr/lib/libc.so.1 #2 0xfee089e4 in fprintf () from /usr/lib/libc.so.1 #3 0x000d0970 in php_mail (to=0x0, subject=0x193868 "To: %s\n", mess
#36928 [Com]: error_log with invalid arguments crashes PHP
ID: 36928 Comment by: arnar at 8 dot is Reported By: michaelw at webcentral dot com dot au Status: Open Bug Type: Reproducible crash Operating System: Solaris 9 / PHP Version: 4.4.2 New Comment: This crash is cosed by solaris's libc not checking the fprintf arguments, and php fault for passing in a NULL argumnet. Link to patch: http://php.is/patch/mail.patch Index: ext/standard/mail.c === RCS file: /repository/php-src/ext/standard/mail.c,v retrieving revision 1.66.2.12.4.2 diff -u -r1.66.2.12.4.2 mail.c --- ext/standard/mail.c 1 Jan 2006 13:46:57 - 1.66.2.12.4.2 +++ ext/standard/mail.c 31 Mar 2006 04:29:29 - @@ -196,6 +196,10 @@ return 0; #endif } + if (to == NULL && headers == NULL) { + php_error_docref(NULL TSRMLS_CC, E_WARNING, "Invalid arguments"); + return 0; + } if (extra_cmd != NULL) { sendmail_cmd = emalloc (strlen (sendmail_path) + strlen (extra_cmd) + 2); strcpy (sendmail_cmd, sendmail_path); @@ -225,7 +229,9 @@ return 0; } #endif - fprintf(sendmail, "To: %s\n", to); + if (to != NULL) { + fprintf(sendmail, "To: %s\n", to); + } fprintf(sendmail, "Subject: %s\n", subject); if (headers != NULL) { fprintf(sendmail, "%s\n", headers); Previous Comments: [2006-03-31 03:56:10] michaelw at webcentral dot com dot au I've verified I can reproduce it with the latest CVS snapshot with a compile string of: ./configure --prefix=/opt/php --with-nsapi=/opt/sunapps/web --enable-debug Its probably also worth noting I can replicate it using the CLI.. # gdb sapi/cli/php GNU gdb 6.0 Copyright 2003 Free Software Foundation, Inc. GDB is free software, covered by the GNU General Public License, and you are welcome to change it and/or distribute copies of it under certain conditions. Type "show copying" to see the conditions. There is absolutely no warranty for GDB. Type "show warranty" for details. This GDB was configured as "sparc-sun-solaris2.9"...set (gdb) set args /webdocs/school-hosting/centraloffice/mis-webcentral/www/crash2.php (gdb) run Starting program: /opt/admin/build/php4-STABLE-200603310035/sapi/cli/php /webdocs/school-hosting/centraloffice/mis-webcentral/www/crash2.php Program received signal SIGSEGV, Segmentation fault. 0xff13451c in strlen () from /usr/lib/libc.so.1 (gdb) bt #0 0xff13451c in strlen () from /usr/lib/libc.so.1 #1 0xff186f88 in _doprnt () from /usr/lib/libc.so.1 #2 0xff1889e4 in fprintf () from /usr/lib/libc.so.1 #3 0x0009c374 in php_mail (to=0x0, subject=0x15c8e0 "To: %s\n", message=0x0, headers=0xff1bc000 "", extra_cmd=0x2134a8 "s\022øÜ", tsrm_ls=0x1a6278) at /opt/admin/build/php4-STABLE-200603310035/ext/standard/mail.c:228 [2006-03-31 03:50:28] michaelw at webcentral dot com dot au Hey, This is a better 'Reproduce Code' (it doesn't attempt to send an email if the 2nd variable is a 0, and hence doesn't crash, so depending on what $_SERVER['HTTPS'] evaluated to for you, it might not have errored..): Test.. I'm currently compiling the suggested CVS snapshot and will let you know when I have a result. [2006-03-31 03:32:05] [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 Can't reproduce [2006-03-31 03:08:23] michaelw at webcentral dot com dot au Description: This was noticed by a developer making a typo ( , instead of . ) when attempting to concat strings within the parameters of error_log. It is reported as a bug because it causes a segfault in PHP which causes the webserver to crash. Reproduce code: --- Test.. Expected result: Presumably an error indicating that the 2nd parameter passed to error_log is invalid. Actual result: -- Program received signal SIGSEGV, Segmentation fault. (gdb) bt #0 0xfedb451c in strlen () from /usr/lib/libc.so.1 #1 0xfee06f88 in _doprnt () from /usr/lib/libc.so.1 #2 0xfee089e4 in fprintf () from /usr/lib/libc.so.1 #3 0x000d0970 in php_mail (to=0x0, subject=0x193868 "To: %s\n", message=0x0, headers=0x0, extra_cmd=0x0, tsrm_ls=0x0) at /opt/admin/build/php-4.4.2/ext/standard/mail.c:228 Presumably the variable should be sanity checked both in php_mail and the error_log function.. ---
#36928 [Opn]: error_log with invalid arguments crashes PHP
ID: 36928 User updated by: michaelw at webcentral dot com dot au Reported By: michaelw at webcentral dot com dot au Status: Open Bug Type: Reproducible crash Operating System: Solaris 9 / PHP Version: 4.4.2 New Comment: I've verified I can reproduce it with the latest CVS snapshot with a compile string of: ./configure --prefix=/opt/php --with-nsapi=/opt/sunapps/web --enable-debug Its probably also worth noting I can replicate it using the CLI.. # gdb sapi/cli/php GNU gdb 6.0 Copyright 2003 Free Software Foundation, Inc. GDB is free software, covered by the GNU General Public License, and you are welcome to change it and/or distribute copies of it under certain conditions. Type "show copying" to see the conditions. There is absolutely no warranty for GDB. Type "show warranty" for details. This GDB was configured as "sparc-sun-solaris2.9"...set (gdb) set args /webdocs/school-hosting/centraloffice/mis-webcentral/www/crash2.php (gdb) run Starting program: /opt/admin/build/php4-STABLE-200603310035/sapi/cli/php /webdocs/school-hosting/centraloffice/mis-webcentral/www/crash2.php Program received signal SIGSEGV, Segmentation fault. 0xff13451c in strlen () from /usr/lib/libc.so.1 (gdb) bt #0 0xff13451c in strlen () from /usr/lib/libc.so.1 #1 0xff186f88 in _doprnt () from /usr/lib/libc.so.1 #2 0xff1889e4 in fprintf () from /usr/lib/libc.so.1 #3 0x0009c374 in php_mail (to=0x0, subject=0x15c8e0 "To: %s\n", message=0x0, headers=0xff1bc000 "", extra_cmd=0x2134a8 "s\022øÜ", tsrm_ls=0x1a6278) at /opt/admin/build/php4-STABLE-200603310035/ext/standard/mail.c:228 Previous Comments: [2006-03-31 03:50:28] michaelw at webcentral dot com dot au Hey, This is a better 'Reproduce Code' (it doesn't attempt to send an email if the 2nd variable is a 0, and hence doesn't crash, so depending on what $_SERVER['HTTPS'] evaluated to for you, it might not have errored..): Test.. I'm currently compiling the suggested CVS snapshot and will let you know when I have a result. [2006-03-31 03:32:05] [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 Can't reproduce [2006-03-31 03:08:23] michaelw at webcentral dot com dot au Description: This was noticed by a developer making a typo ( , instead of . ) when attempting to concat strings within the parameters of error_log. It is reported as a bug because it causes a segfault in PHP which causes the webserver to crash. Reproduce code: --- Test.. Expected result: Presumably an error indicating that the 2nd parameter passed to error_log is invalid. Actual result: -- Program received signal SIGSEGV, Segmentation fault. (gdb) bt #0 0xfedb451c in strlen () from /usr/lib/libc.so.1 #1 0xfee06f88 in _doprnt () from /usr/lib/libc.so.1 #2 0xfee089e4 in fprintf () from /usr/lib/libc.so.1 #3 0x000d0970 in php_mail (to=0x0, subject=0x193868 "To: %s\n", message=0x0, headers=0x0, extra_cmd=0x0, tsrm_ls=0x0) at /opt/admin/build/php-4.4.2/ext/standard/mail.c:228 Presumably the variable should be sanity checked both in php_mail and the error_log function.. -- Edit this bug report at http://bugs.php.net/?id=36928&edit=1
#36928 [Fbk->Opn]: error_log with invalid arguments crashes PHP
ID: 36928 User updated by: michaelw at webcentral dot com dot au Reported By: michaelw at webcentral dot com dot au -Status: Feedback +Status: Open Bug Type: Reproducible crash Operating System: Solaris 9 / PHP Version: 4.4.2 New Comment: Hey, This is a better 'Reproduce Code' (it doesn't attempt to send an email if the 2nd variable is a 0, and hence doesn't crash, so depending on what $_SERVER['HTTPS'] evaluated to for you, it might not have errored..): Test.. I'm currently compiling the suggested CVS snapshot and will let you know when I have a result. Previous Comments: [2006-03-31 03:32:05] [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 Can't reproduce [2006-03-31 03:08:23] michaelw at webcentral dot com dot au Description: This was noticed by a developer making a typo ( , instead of . ) when attempting to concat strings within the parameters of error_log. It is reported as a bug because it causes a segfault in PHP which causes the webserver to crash. Reproduce code: --- Test.. Expected result: Presumably an error indicating that the 2nd parameter passed to error_log is invalid. Actual result: -- Program received signal SIGSEGV, Segmentation fault. (gdb) bt #0 0xfedb451c in strlen () from /usr/lib/libc.so.1 #1 0xfee06f88 in _doprnt () from /usr/lib/libc.so.1 #2 0xfee089e4 in fprintf () from /usr/lib/libc.so.1 #3 0x000d0970 in php_mail (to=0x0, subject=0x193868 "To: %s\n", message=0x0, headers=0x0, extra_cmd=0x0, tsrm_ls=0x0) at /opt/admin/build/php-4.4.2/ext/standard/mail.c:228 Presumably the variable should be sanity checked both in php_mail and the error_log function.. -- Edit this bug report at http://bugs.php.net/?id=36928&edit=1
#36928 [Opn->Fbk]: error_log with invalid arguments crashes PHP
ID: 36928 Updated by: [EMAIL PROTECTED] Reported By: michaelw at webcentral dot com dot au -Status: Open +Status: Feedback Bug Type: Reproducible crash Operating System: Solaris 9 / PHP Version: 4.4.2 New Comment: 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 Can't reproduce Previous Comments: [2006-03-31 03:08:23] michaelw at webcentral dot com dot au Description: This was noticed by a developer making a typo ( , instead of . ) when attempting to concat strings within the parameters of error_log. It is reported as a bug because it causes a segfault in PHP which causes the webserver to crash. Reproduce code: --- Test.. Expected result: Presumably an error indicating that the 2nd parameter passed to error_log is invalid. Actual result: -- Program received signal SIGSEGV, Segmentation fault. (gdb) bt #0 0xfedb451c in strlen () from /usr/lib/libc.so.1 #1 0xfee06f88 in _doprnt () from /usr/lib/libc.so.1 #2 0xfee089e4 in fprintf () from /usr/lib/libc.so.1 #3 0x000d0970 in php_mail (to=0x0, subject=0x193868 "To: %s\n", message=0x0, headers=0x0, extra_cmd=0x0, tsrm_ls=0x0) at /opt/admin/build/php-4.4.2/ext/standard/mail.c:228 Presumably the variable should be sanity checked both in php_mail and the error_log function.. -- Edit this bug report at http://bugs.php.net/?id=36928&edit=1
#36928 [NEW]: error_log with invalid arguments crashes PHP
From: michaelw at webcentral dot com dot au Operating system: Solaris 9 / PHP version: 4.4.2 PHP Bug Type: Reproducible crash Bug description: error_log with invalid arguments crashes PHP Description: This was noticed by a developer making a typo ( , instead of . ) when attempting to concat strings within the parameters of error_log. It is reported as a bug because it causes a segfault in PHP which causes the webserver to crash. Reproduce code: --- Test.. Expected result: Presumably an error indicating that the 2nd parameter passed to error_log is invalid. Actual result: -- Program received signal SIGSEGV, Segmentation fault. (gdb) bt #0 0xfedb451c in strlen () from /usr/lib/libc.so.1 #1 0xfee06f88 in _doprnt () from /usr/lib/libc.so.1 #2 0xfee089e4 in fprintf () from /usr/lib/libc.so.1 #3 0x000d0970 in php_mail (to=0x0, subject=0x193868 "To: %s\n", message=0x0, headers=0x0, extra_cmd=0x0, tsrm_ls=0x0) at /opt/admin/build/php-4.4.2/ext/standard/mail.c:228 Presumably the variable should be sanity checked both in php_mail and the error_log function.. -- Edit bug report at http://bugs.php.net/?id=36928&edit=1 -- Try a CVS snapshot (PHP 4.4): http://bugs.php.net/fix.php?id=36928&r=trysnapshot44 Try a CVS snapshot (PHP 5.1): http://bugs.php.net/fix.php?id=36928&r=trysnapshot51 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=36928&r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=36928&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=36928&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=36928&r=needtrace Need Reproduce Script:http://bugs.php.net/fix.php?id=36928&r=needscript Try newer version:http://bugs.php.net/fix.php?id=36928&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=36928&r=support Expected behavior:http://bugs.php.net/fix.php?id=36928&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=36928&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=36928&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=36928&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=36928&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=36928&r=dst IIS Stability:http://bugs.php.net/fix.php?id=36928&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=36928&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=36928&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=36928&r=nozend MySQL Configuration Error:http://bugs.php.net/fix.php?id=36928&r=mysqlcfg
#24028 [Opn->Csd]: Reading raw post message by php://input
ID: 24028 Updated by: [EMAIL PROTECTED] Reported By: florianophoneltd at yahoo dot com -Status: Open +Status: Closed Bug Type: FrontBase related Operating System: win32 only PHP Version: 4.3.2 Previous Comments: [2006-03-31 01:12:00] florianophoneltd at yahoo dot com NOTE: ALL PHONES ARE IN FACTORY SEALED BOXES, WITH CHARGERS, ACCESSORIES, MANUALS INCLUDED. COULD BE NEGOTIATED ACCORDING TO YOUR ORDER QUANTITY. FOR SALE!!! ::: MOTOROLA MPX 220 AT JUST $135usd MOTOROLA MPX 300 AT JUST $165usd MOTOROLA V3X AT JUST $180usd MOTOROLA RAZOR V3 AT JUST $140usd MOTOROLA V171 AT JUST $60USD Nextel i960..$150.00USD NEXTEL i930 AT JUST $110usd NEXTEL i860 AT JUST $100usd SONY ERICSSON P910i AT JUST $150usd SONY ERICSSON K700i AT JUST $135usd SONY ERICSSON K750i AT JUST $140usd SONY ERICSSON P800 AT JUST $120usd SONY ERICSSON W800i AT JUST $1550usd SONY ERICSSON S700i AT JUST $140usd SONY ERICSSON S700i AT JUST $130usd NOKIA 1600 AT JUST $55usd NOKIA 2600 AT JUST $60USD NOKIA 6030 AT JUST $25USD NOKIA 6030 AT JUST $100usd NOKIA 9500 AT JUST $150usd NOKIA 9300 AT JUST $145usd NOKIA N92 AT JUST $220usd NOKIA N90 AT JUST $180usd NOKIA N91 AT JUST $210usd NOKIA 8800 AT JUST $165usd NOKIA 7200 AT JUST $130usd NOKIA 6260 AT JUST $130usd NOKIA 7210 AT JUST $135usd SAMSUNG D400 AT JUST $130usd SAMSUNG D600 AT JUST $190usd SAMSUNG D500 AT JUST $175usd SAMSUNG D415 AT JUST $145usd Sanyo MM-8300 ...$160.00USD Sanyo mm-9000$200.00USD ppc-6700 ,...$210.00USD Sidekick III$170.00USD SIDEKICK II AT JUST $110usd TREO 600 AT JUST $135usd TREO 650 AT JUST $150usd Verizon/Motorola E815 EvDO for just $110 Verizon/LG VX4500 Voice Recognition for just for $100 Verizon's World Phone for just $120 Verizon/Motorola V265 for just $110 Verizon XV6600 $130 Verizon/Samsung SCH-a890 EVDO Handset $140 Verizon CDM8940 3G EV-DO $140 Verizon LG VX8000 EVDO $110 Verizon/LG VX8100 $110 Verizon/Samsung a950 $110 PLAY STATION 1 AT JUST $100USD PLAY STATION 2 AT JUST $140USD PLAY STATION 3 AT JUST $160USD MICROSOFT XBOX 360 AT JUST $180usd Apple 20 GB iPod Nano..$60.00USD Apple 4 GB iPod Mini Pink M9435LL/A ..$70.00USD Apple 40 GB iPod photo..$80.00USD Apple 4 GB iPod Mini Silver M9160LL/A $70.00USD Apple 60 GB iPod Photo M9830LL/A..$100.00USD Apple 60 GB iPod photo .$55.00USD Apple 30 GB iPod Photo M9829LL/A...$95.00USD Apple 512 MB iPod Shuffle MP3 Player..$50.00USD Apple 4 GB iPod Mini Blue M9436LL/A...$70.00USD Apple 2 GB iPod Nano.$90.00USD Apple 60 GB iPod Vidoe$150.00USD Apple 30 GB iPod Vidoe..$110.00USD Apple 60 GB iPod Vidoe$150.00USD You can get in contact with us through our E-mail addresses: ([EMAIL PROTECTED]) ([EMAIL PROTECTED]) [2003-06-24 12:58:38] [EMAIL PROTECTED] Fixed -> closed. [2003-06-04 22:24:32] florianophoneltd at yahoo dot com I wrote a routine "postrawdata.php" for displaying HTTP raw request message. It works properly when using a socket program to post something to it. But submitting from a simple HTML below will make it dead, even http headers were not sent back, the behavior of brwoser is just waiting before timeout, I have tested it under IE 6.0 and Netscape 7.0 , any suggestion is appreciate. I think PHP does not send correct responding data to browser, or it does not disconnect the HTTP channel, that makes browsers to wait , whereas my socket client do disconnect when finished. Thanks, William Hong -- Edit this bug report at http://bugs.php.net/?id=24028&edit=1
#24028 [Csd->Opn]: Reading raw post message by php://input
ID: 24028 User updated by: florianophoneltd at yahoo dot com -Reported By: xiongwei at aerafront dot com +Reported By: florianophoneltd at yahoo dot com -Status: Closed +Status: Open -Bug Type: CGI related +Bug Type: FrontBase related Operating System: win32 only PHP Version: 4.3.2 New Comment: NOTE: ALL PHONES ARE IN FACTORY SEALED BOXES, WITH CHARGERS, ACCESSORIES, MANUALS INCLUDED. COULD BE NEGOTIATED ACCORDING TO YOUR ORDER QUANTITY. FOR SALE!!! ::: MOTOROLA MPX 220 AT JUST $135usd MOTOROLA MPX 300 AT JUST $165usd MOTOROLA V3X AT JUST $180usd MOTOROLA RAZOR V3 AT JUST $140usd MOTOROLA V171 AT JUST $60USD Nextel i960..$150.00USD NEXTEL i930 AT JUST $110usd NEXTEL i860 AT JUST $100usd SONY ERICSSON P910i AT JUST $150usd SONY ERICSSON K700i AT JUST $135usd SONY ERICSSON K750i AT JUST $140usd SONY ERICSSON P800 AT JUST $120usd SONY ERICSSON W800i AT JUST $1550usd SONY ERICSSON S700i AT JUST $140usd SONY ERICSSON S700i AT JUST $130usd NOKIA 1600 AT JUST $55usd NOKIA 2600 AT JUST $60USD NOKIA 6030 AT JUST $25USD NOKIA 6030 AT JUST $100usd NOKIA 9500 AT JUST $150usd NOKIA 9300 AT JUST $145usd NOKIA N92 AT JUST $220usd NOKIA N90 AT JUST $180usd NOKIA N91 AT JUST $210usd NOKIA 8800 AT JUST $165usd NOKIA 7200 AT JUST $130usd NOKIA 6260 AT JUST $130usd NOKIA 7210 AT JUST $135usd SAMSUNG D400 AT JUST $130usd SAMSUNG D600 AT JUST $190usd SAMSUNG D500 AT JUST $175usd SAMSUNG D415 AT JUST $145usd Sanyo MM-8300 ...$160.00USD Sanyo mm-9000$200.00USD ppc-6700 ,...$210.00USD Sidekick III$170.00USD SIDEKICK II AT JUST $110usd TREO 600 AT JUST $135usd TREO 650 AT JUST $150usd Verizon/Motorola E815 EvDO for just $110 Verizon/LG VX4500 Voice Recognition for just for $100 Verizon's World Phone for just $120 Verizon/Motorola V265 for just $110 Verizon XV6600 $130 Verizon/Samsung SCH-a890 EVDO Handset $140 Verizon CDM8940 3G EV-DO $140 Verizon LG VX8000 EVDO $110 Verizon/LG VX8100 $110 Verizon/Samsung a950 $110 PLAY STATION 1 AT JUST $100USD PLAY STATION 2 AT JUST $140USD PLAY STATION 3 AT JUST $160USD MICROSOFT XBOX 360 AT JUST $180usd Apple 20 GB iPod Nano..$60.00USD Apple 4 GB iPod Mini Pink M9435LL/A ..$70.00USD Apple 40 GB iPod photo..$80.00USD Apple 4 GB iPod Mini Silver M9160LL/A $70.00USD Apple 60 GB iPod Photo M9830LL/A..$100.00USD Apple 60 GB iPod photo .$55.00USD Apple 30 GB iPod Photo M9829LL/A...$95.00USD Apple 512 MB iPod Shuffle MP3 Player..$50.00USD Apple 4 GB iPod Mini Blue M9436LL/A...$70.00USD Apple 2 GB iPod Nano.$90.00USD Apple 60 GB iPod Vidoe$150.00USD Apple 30 GB iPod Vidoe..$110.00USD Apple 60 GB iPod Vidoe$150.00USD You can get in contact with us through our E-mail addresses: ([EMAIL PROTECTED]) ([EMAIL PROTECTED]) Previous Comments: [2003-06-24 12:58:38] [EMAIL PROTECTED] Fixed -> closed. [2003-06-04 22:24:32] florianophoneltd at yahoo dot com I wrote a routine "postrawdata.php" for displaying HTTP raw request message. It works properly when using a socket program to post something to it. But submitting from a simple HTML below will make it dead, even http headers were not sent back, the behavior of brwoser is just waiting before timeout, I have tested it under IE 6.0 and Netscape 7.0 , any suggestion is appreciate. I think PHP does not send correct responding data to browser, or it does not disconnect the HTTP channel, that makes browsers to wait , whereas my socket client do disconnect when finished. Thanks, William Hong -- Edit this bug report at http://bugs.php.net/?id=24028&edit=1
#36927 [NEW]: Fatal errors should return a 500, not 200
From: tac at smokescreen dot org Operating system: ALL PHP version: 5.1.2 PHP Bug Type: Compile Failure Bug description: Fatal errors should return a 500, not 200 Description: Fatal errors, including compile errors, return a status code 200, rather than a 500 (Server Error), which should be the default. It would make it easier to see problem pages in our logs if the pages returned a 500, since indeed there is a server error. I realize that in some cases the text has already been sent, but if buffering is on, then the behavior should be to return a 500. Reproduce code: --- Load the page, look at the header. It's a 200, should be a 500. -- Edit bug report at http://bugs.php.net/?id=36927&edit=1 -- Try a CVS snapshot (PHP 4.4): http://bugs.php.net/fix.php?id=36927&r=trysnapshot44 Try a CVS snapshot (PHP 5.1): http://bugs.php.net/fix.php?id=36927&r=trysnapshot51 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=36927&r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=36927&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=36927&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=36927&r=needtrace Need Reproduce Script:http://bugs.php.net/fix.php?id=36927&r=needscript Try newer version:http://bugs.php.net/fix.php?id=36927&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=36927&r=support Expected behavior:http://bugs.php.net/fix.php?id=36927&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=36927&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=36927&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=36927&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=36927&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=36927&r=dst IIS Stability:http://bugs.php.net/fix.php?id=36927&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=36927&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=36927&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=36927&r=nozend MySQL Configuration Error:http://bugs.php.net/fix.php?id=36927&r=mysqlcfg
#36925 [Fbk->Opn]: failed to open stream when trying to open remote file
ID: 36925 User updated by: igor at oleinikov dot ru Reported By: igor at oleinikov dot ru -Status: Feedback +Status: Open Bug Type: Streams related Operating System: Windows XP SP2 Build 2600 PHP Version: 5.1.2 New Comment: Windows Firewall is disabled. Any firewall is disabled. And "telnet domain 80" connects to host successfuly. I tryied to connect to localhost. The error still keep occuiring. Previous Comments: [2006-03-30 21:43:01] [EMAIL PROTECTED] Disable windows firewall and make sure you are able to connect to this host with `telnet host.com 80`. [2006-03-30 18:08:00] igor at oleinikov dot ru I use: $f = fopen($url, 'r'); In first post I was make a misprint. [2006-03-30 18:06:13] igor at oleinikov dot ru Socket error #10035: Resource temporarily unavailable. This error is returned from operations on nonblocking sockets that cannot be completed immediately. [2006-03-30 18:02:44] [EMAIL PROTECTED] Do you get the error when using fopen() correctly? [2006-03-30 17:48:28] igor at oleinikov dot ru On PHP 5.1.1 this error occuires too. 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/36925 -- Edit this bug report at http://bugs.php.net/?id=36925&edit=1
#36891 [Opn->Fbk]: Apache 2.0 with PHP 4.XX.XX crashes on different files
ID: 36891 Updated by: [EMAIL PROTECTED] Reported By: alexey at kovyrin dot net -Status: Open +Status: Feedback Bug Type: Reproducible crash Operating System: RHEL 4 on AMD64 PHP Version: 4.4.2 New Comment: A short but complete reproduce code would definitely help to understand and fix the issue. Previous Comments: [2006-03-30 18:51:15] alexey at kovyrin dot net I have tried last snapshot of php and now everything is ok. But last snapshot of php4 crashes as I described. How can I help to find this strange error in php4? [2006-03-28 16:59:21] [EMAIL PROTECTED] You said that it doesn't depend on the code. And you can always fire up another apache instance listening on different port. No, I don't have any other advices, because what you've told us is basically "we can see some crashes". Well, I'd say that's bad. But how to reproduce it? [2006-03-28 16:50:04] alexey at kovyrin dot net Unfortunately, I can not test php-5.1 now bacause our intensively used code is not compatible with php-5.1. If there are another advices, I'm ready to try them. P.S. PHP-5.1 I will be able to test somewhat later (when system load will be less then now). [2006-03-28 16:08:10] [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-03-28 14:20:00] alexey at kovyrin dot net Description: We have php 4.4.2.X (as for now now - last 4.4.2-dev) installed as apache2filter on apache 2.0.52. Server is not under high load (10-100 requests per minute). 5-10% of the requests are failing with following messages in apache error_log: [Tue Mar 28 06:53:46 2006] [notice] child pid 6805 exit signal Segmentation fault (11), possible coredump in /tmp or *** glibc detected *** corrupted double-linked list: 0x00552af37bf0 *** [Tue Mar 28 06:55:07 2006] [notice] child pid 6800 exit signal Aborted (6), possible coredump in /tmp Crashes are not related to contains of files or something else... it loks like they are random. Backtraces for described crashes are in Actual result section. Reproduce code: --- System info: Linux m5 2.6.9-22.0.1.ELsmp #1 SMP Tue Oct 18 18:39:02 EDT 2005 x86_64 x86_64 x86_64 GNU/Linux libc version: libc-2.3.4 Apache Server version: Apache/2.0.52 PHP Info: [PHP Modules] ctype domxml ftp mysql oci8 overload pcntl pcre posix session sockets standard tokenizer wddx xml xmlrpc zlib Actual result: -- First error (segfault): #0 0x002a9a0c8eab in zend_fetch_var_address ( opline=0x552af39a48, Ts=0x7fbfffab30, type=1) at /usr/src/php_snap/php4-STABLE-200603281036/Zend/zend_execute.c:624 624 Ts[opline->result.u.var].var.ptr_ptr = retval; (gdb) bt #0 0x002a9a0c8eab in zend_fetch_var_address (opline=0x552af39a48, Ts=0x7fbfffab30, type=1) at /usr/src/php_snap/php4-STABLE-200603281036/Zend/zend_execute.c:624 #1 0x002a9a0cc555 in execute (op_array=0x552afa5ab8) at /usr/src/php_snap/php4-STABLE-200603281036/Zend/zend_execute.c:1278 #2 0x002a9a0cebbc in execute (op_array=0x552ae71a08) at /usr/src/php_snap/php4-STABLE-200603281036/Zend/zend_execute.c:1719 #3 0x002a9a0bbdbe in zend_execute_scripts (type=8, retval=0x0, file_count=3) at /usr/src/php_snap/php4-STABLE-200603281036/Zend/zend.c:934 #4 0x002a9a08e443 in php_execute_script (primary_file=0x7fb2b0) at /usr/src/php_snap/php4-STABLE-200603281036/main/main.c:1753 #5 0x002a9a0d8dca in php_handler (r=0x552adc7f38) at /usr/src/php_snap/php4-STABLE-200603281036/sapi/apache2handler/sapi_apache2.c:581 #6 0x00552aac79e3 in ap_run_handler () from /usr/sbin/httpd #7 0x00552aac7ea1 in ap_invoke_handler () from /usr/sbin/httpd #8 0x00552aac4ca8 in ap_process_request () from /usr/sbin/httpd #9 0x00552aac0089 in _start () from /usr/sbin/httpd #10 0x00552aad1683 in ap_run_process_connection () from /usr/sbin/httpd #11 0x00552aac5b10 in ap_graceful_stop_signalled () from /usr/sbin/httpd #12 0x00552aac5dea in ap_graceful_stop_signalled () from /usr/sbin/httpd #13 0x00552aac5e94 in ap_graceful_stop_signalled () from /usr/sbin/httpd #14 0x00552aac65cb in ap_mpm_run () from /usr/sbin/httpd #15 0x00552aacccdf in main () from /usr/sbin/httpd -- Second error (glibc error): (gdb) bt #0 0x002a9662637d in raise () from /lib64/tls/libc.so.6 #1 0x002a96627aae in abort () from /lib64/tls/libc.so.6 #2 0x002a9665abe1 in __libc_message () from /lib64/tls/libc.
#36925 [Opn->Fbk]: failed to open stream when trying to open remote file
ID: 36925 Updated by: [EMAIL PROTECTED] Reported By: igor at oleinikov dot ru -Status: Open +Status: Feedback Bug Type: Streams related Operating System: Windows XP SP2 Build 2600 PHP Version: 5.1.2 New Comment: Disable windows firewall and make sure you are able to connect to this host with `telnet host.com 80`. Previous Comments: [2006-03-30 18:08:00] igor at oleinikov dot ru I use: $f = fopen($url, 'r'); In first post I was make a misprint. [2006-03-30 18:06:13] igor at oleinikov dot ru Socket error #10035: Resource temporarily unavailable. This error is returned from operations on nonblocking sockets that cannot be completed immediately. [2006-03-30 18:02:44] [EMAIL PROTECTED] Do you get the error when using fopen() correctly? [2006-03-30 17:48:28] igor at oleinikov dot ru On PHP 5.1.1 this error occuires too. [2006-03-30 17:43:23] igor at oleinikov dot ru Description: When trying to open remote file via HTTP protocol, PHP produces warning: failed to open stream: Resource temporarily unavailable My Windows system have russian locale, so actualy I have localized error message, but this error is Socket error #10035 "Resource temporarily unavailable". I have tested same code on FreeBSD system, and this error wasn't occuired. PHP info: System: Windows NT SCORP 5.1 build 2600 PHP API: 20041225 PHP Extension: 20050922 Zend Extension: 220051025 Debug Build: no Thread Safety: enabled Zend Memory Manager: enabled IPv6 Support: enabled Registered PHP Streams: php, file, http, ftp, compress.zlib, https, ftps Registered Stream Socket Transports: tcp, udp, ssl, sslv3, sslv2, tls allow_url_fopen: On safe_mode: Off Reproduce code: --- $f = fopen('http://domain/file'); //series of real URLs and IP addresses was tried $data = fread($f, 1024); print $data; Expected result: data of file http://domain/file Actual result: -- Warning: fopen(http://domain/file) [function.fopen]: failed to open stream: Resource temporarily unavailable. in X:\Path\file.php on line 1 Warning: fread(): supplied argument is not a valid stream resource in X:\Path\file.php on line 2 -- Edit this bug report at http://bugs.php.net/?id=36925&edit=1
#31037 [Com]: MySQLi - bind_param
ID: 31037 Comment by: droppse at wjh dot harvard dot edu Reported By: php at trafex dot nl Status: No Feedback Bug Type: MySQLi related Operating System: Fedora core 1 PHP Version: 5CVS-2005-04-26 Assigned To: georg New Comment: Updating the mysql client lib's resolved this problem on XP Pro, WAMP. Previous Comments: [2006-03-28 13:05:55] putu dot dondo at gmail dot com i get this error too! i use WAMP5 on windowsXP [2006-02-14 01:28:07] skotch at online dot stack dot net After a couple of nights I've found the solution. Upgrading to newest versions of PHP and MySQL don't solve the problem.Both PHP and MySQL have a lib named libmysql but those libs are not the same. Make PHP to use php/libmysql and everythig will be OK. For ensure the result just rename the libmysql library from MySQL install and execute your php script correct! [2006-02-13 07:09:06] [EMAIL PROTECTED] > Client version: 40107 Server version: 50018 Why don't upgrade your client version? Recompile your PHP extensions or download an actual version from http://dev.mysql.com/downloads/connector/php/ [2006-02-13 01:03:14] mczub at newcomo dot pl This script (with 1 variable): -- client_version); printf("Server version: %s\n", $mysql->server_version); $mysql->query("DROP TABLE IF EXISTS temp_table"); $mysql->query("CREATE TABLE temp_table(username varchar(20), user_id int)"); $mysql->query("INSERT INTO temp_table VALUES ('foo', 1)"); if ($stmt = $mysql->prepare("SELECT username FROM temp_table WHERE user_id = ?")) { $stmt->bind_param('i', $user_id); $user_id = 1; $stmt->execute(); $stmt->bind_result($name); $stmt->fetch(); printf("Name: %s\n", $name); $stmt->close(); } $mysql->close(); ?> Output: --- Client version: 40107 Server version: 50018 Name: This script (with 2 variables): -- client_version); printf("Server version: %s\n", $mysql->server_version); $mysql->query("DROP TABLE IF EXISTS temp_table"); $mysql->query("CREATE TABLE temp_table(username varchar(20), user_id int, user_id2 int)"); $mysql->query("INSERT INTO temp_table VALUES ('foo', 1, 2)"); if ($stmt = $mysql->prepare("SELECT username FROM temp_table WHERE user_id = ? AND user_id2 = ?")) { $stmt->bind_param('ii', $user_id, $user_id2); $user_id = 1; $user_id2 = 2; $stmt->execute(); $stmt->bind_result($name); $stmt->fetch(); printf("Name: %s\n", $name); $stmt->close(); } $mysql->close(); ?> Output: --- Client version: 40107 Server version: 50018 Warning: mysqli_stmt::bind_param() [function.bind-param]: Number of variables doesn't match number of parameters in prepared statement in C:\wamp\www\learn\mysql.php on line 12 Name: It's weird... [2006-02-07 13:56:31] joey at alegria dot co dot jp Upgraded PHP to 5.0.4-10.5 and that got the mysqli_stmt_bind_param() function working again with my scripts that only had INSERT SQL queries in them. The error still persisted when binding input parameters on SELECT queries, however this can be fixed by paying close attention to syntax. DO NOT use the same syntax you would for a normal query. When sending a prepared statement it is important to omit quotation marks ('?') around the placeholders. Prepared statement don't require them for strings. EXAMPLE: $username='foo'; $id=1; $prepare="SELECT * FROM test WHERE user='?' and id=?"; $sql->stmt=mysqli_stmt_init($sql->db); mysqli_stmt_prepare($sql->stmt,$prepare); echo mysqli_stmt_param_count($sql->stmt); // returns 0 mysqli_stmt_bind_param($sql->stmt,'si',$username,$id); // throws an error That throws an error however... $username='foo'; $id=1; $prepare='SELECT * FROM test WHERE user=? and id=?'; $sql->stmt=mysqli_stmt_init($sql->db); mysqli_stmt_prepare($sql->stmt,$prepare); echo mysqli_stmt_param_count($sql->stmt); // returns 2 mysqli_stmt_bind_param($sql->stmt,'si',$username,$id); // works OK The PHP documentation is not mistaken in the examples it gives for prepared statements but perhaps it could be a little more explicit in pointing out this easy-to-make syntax error. 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/31037 -- Edit this bug report at http://bugs.php.net/?id=31037&edit=1
#36921 [Bgs->Fbk]: ob_start("ob_gzhandler");
ID: 36921 Updated by: [EMAIL PROTECTED] Reported By: caio53 at gmail dot com -Status: Bogus +Status: Feedback Bug Type: Output Control Operating System: Windows, Linux PHP Version: 5.1.2 New Comment: 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 Works fine here. Previous Comments: [2006-03-30 19:53:40] caio53 at gmail dot com phpinfo(); ZLib Supportenabled Stream Wrapper support compress.zlib:// Stream Filter support zlib.inflate, zlib.deflate Compiled Version1.2.3 Linked Version 1.2.3 and function_exists('ob_gzhandler') returns true [2006-03-30 19:39:46] [EMAIL PROTECTED] ob_gzhandler is only available if PHP was compiled with --with-zlib [2006-03-30 19:32:19] caio53 at gmail dot com Description: ob_clean(); doesn't properly with ob_start("ob_gzhandler"); Reproduce code: --- Expected result: more content Actual result: -- *no output* Workaround: -- [2006-03-30 18:10:06] [EMAIL PROTECTED] 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. There's no gz_handler, ie. you didn't actually start any output buffer. [2006-03-30 10:58:45] caio53 at gmail dot com Description: ob_clean(); doesn't work when I use ob_start("gz_handler"); Reproduce code: --- Expected result: more content Actual result: -- content Notice: ob_clean() [ref.outcontrol]: failed to delete buffer. No buffer to delete. in D:\neatcode\test.php on line 6 more content -- Edit this bug report at http://bugs.php.net/?id=36921&edit=1
#36921 [Bgs]: ob_start("ob_gzhandler");
ID: 36921 User updated by: caio53 at gmail dot com Reported By: caio53 at gmail dot com Status: Bogus Bug Type: Output Control Operating System: Windows, Linux PHP Version: 5.1.2 New Comment: phpinfo(); ZLib Supportenabled Stream Wrapper support compress.zlib:// Stream Filter support zlib.inflate, zlib.deflate Compiled Version1.2.3 Linked Version 1.2.3 and function_exists('ob_gzhandler') returns true Previous Comments: [2006-03-30 19:39:46] [EMAIL PROTECTED] ob_gzhandler is only available if PHP was compiled with --with-zlib [2006-03-30 19:32:19] caio53 at gmail dot com Description: ob_clean(); doesn't properly with ob_start("ob_gzhandler"); Reproduce code: --- Expected result: more content Actual result: -- *no output* Workaround: -- [2006-03-30 18:10:06] [EMAIL PROTECTED] 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. There's no gz_handler, ie. you didn't actually start any output buffer. [2006-03-30 10:58:45] caio53 at gmail dot com Description: ob_clean(); doesn't work when I use ob_start("gz_handler"); Reproduce code: --- Expected result: more content Actual result: -- content Notice: ob_clean() [ref.outcontrol]: failed to delete buffer. No buffer to delete. in D:\neatcode\test.php on line 6 more content -- Edit this bug report at http://bugs.php.net/?id=36921&edit=1
#36921 [Opn->Bgs]: ob_start("ob_gzhandler");
ID: 36921 Updated by: [EMAIL PROTECTED] Reported By: caio53 at gmail dot com -Status: Open +Status: Bogus Bug Type: Output Control Operating System: Windows, Linux PHP Version: 5.1.2 New Comment: ob_gzhandler is only available if PHP was compiled with --with-zlib Previous Comments: [2006-03-30 19:32:19] caio53 at gmail dot com Description: ob_clean(); doesn't properly with ob_start("ob_gzhandler"); Reproduce code: --- Expected result: more content Actual result: -- *no output* Workaround: -- [2006-03-30 18:10:06] [EMAIL PROTECTED] 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. There's no gz_handler, ie. you didn't actually start any output buffer. [2006-03-30 10:58:45] caio53 at gmail dot com Description: ob_clean(); doesn't work when I use ob_start("gz_handler"); Reproduce code: --- Expected result: more content Actual result: -- content Notice: ob_clean() [ref.outcontrol]: failed to delete buffer. No buffer to delete. in D:\neatcode\test.php on line 6 more content -- Edit this bug report at http://bugs.php.net/?id=36921&edit=1
#36921 [Bgs->Opn]: ob_start("ob_gzhandler");
ID: 36921 User updated by: caio53 at gmail dot com -Summary: ob_start("gz_handler"); Reported By: caio53 at gmail dot com -Status: Bogus +Status: Open Bug Type: Output Control Operating System: Windows, Linux PHP Version: 5.1.2 New Comment: Description: ob_clean(); doesn't properly with ob_start("ob_gzhandler"); Reproduce code: --- Expected result: more content Actual result: -- *no output* Workaround: -- Previous Comments: [2006-03-30 18:10:06] [EMAIL PROTECTED] 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. There's no gz_handler, ie. you didn't actually start any output buffer. [2006-03-30 10:58:45] caio53 at gmail dot com Description: ob_clean(); doesn't work when I use ob_start("gz_handler"); Reproduce code: --- Expected result: more content Actual result: -- content Notice: ob_clean() [ref.outcontrol]: failed to delete buffer. No buffer to delete. in D:\neatcode\test.php on line 6 more content -- Edit this bug report at http://bugs.php.net/?id=36921&edit=1
#36891 [Fbk->Opn]: Apache 2.0 with PHP 4.XX.XX crashes on different files
ID: 36891 User updated by: alexey at kovyrin dot net Reported By: alexey at kovyrin dot net -Status: Feedback +Status: Open Bug Type: Reproducible crash Operating System: RHEL 4 on AMD64 PHP Version: 4.4.2 New Comment: I have tried last snapshot of php and now everything is ok. But last snapshot of php4 crashes as I described. How can I help to find this strange error in php4? Previous Comments: [2006-03-28 16:59:21] [EMAIL PROTECTED] You said that it doesn't depend on the code. And you can always fire up another apache instance listening on different port. No, I don't have any other advices, because what you've told us is basically "we can see some crashes". Well, I'd say that's bad. But how to reproduce it? [2006-03-28 16:50:04] alexey at kovyrin dot net Unfortunately, I can not test php-5.1 now bacause our intensively used code is not compatible with php-5.1. If there are another advices, I'm ready to try them. P.S. PHP-5.1 I will be able to test somewhat later (when system load will be less then now). [2006-03-28 16:08:10] [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-03-28 14:20:00] alexey at kovyrin dot net Description: We have php 4.4.2.X (as for now now - last 4.4.2-dev) installed as apache2filter on apache 2.0.52. Server is not under high load (10-100 requests per minute). 5-10% of the requests are failing with following messages in apache error_log: [Tue Mar 28 06:53:46 2006] [notice] child pid 6805 exit signal Segmentation fault (11), possible coredump in /tmp or *** glibc detected *** corrupted double-linked list: 0x00552af37bf0 *** [Tue Mar 28 06:55:07 2006] [notice] child pid 6800 exit signal Aborted (6), possible coredump in /tmp Crashes are not related to contains of files or something else... it loks like they are random. Backtraces for described crashes are in Actual result section. Reproduce code: --- System info: Linux m5 2.6.9-22.0.1.ELsmp #1 SMP Tue Oct 18 18:39:02 EDT 2005 x86_64 x86_64 x86_64 GNU/Linux libc version: libc-2.3.4 Apache Server version: Apache/2.0.52 PHP Info: [PHP Modules] ctype domxml ftp mysql oci8 overload pcntl pcre posix session sockets standard tokenizer wddx xml xmlrpc zlib Actual result: -- First error (segfault): #0 0x002a9a0c8eab in zend_fetch_var_address ( opline=0x552af39a48, Ts=0x7fbfffab30, type=1) at /usr/src/php_snap/php4-STABLE-200603281036/Zend/zend_execute.c:624 624 Ts[opline->result.u.var].var.ptr_ptr = retval; (gdb) bt #0 0x002a9a0c8eab in zend_fetch_var_address (opline=0x552af39a48, Ts=0x7fbfffab30, type=1) at /usr/src/php_snap/php4-STABLE-200603281036/Zend/zend_execute.c:624 #1 0x002a9a0cc555 in execute (op_array=0x552afa5ab8) at /usr/src/php_snap/php4-STABLE-200603281036/Zend/zend_execute.c:1278 #2 0x002a9a0cebbc in execute (op_array=0x552ae71a08) at /usr/src/php_snap/php4-STABLE-200603281036/Zend/zend_execute.c:1719 #3 0x002a9a0bbdbe in zend_execute_scripts (type=8, retval=0x0, file_count=3) at /usr/src/php_snap/php4-STABLE-200603281036/Zend/zend.c:934 #4 0x002a9a08e443 in php_execute_script (primary_file=0x7fb2b0) at /usr/src/php_snap/php4-STABLE-200603281036/main/main.c:1753 #5 0x002a9a0d8dca in php_handler (r=0x552adc7f38) at /usr/src/php_snap/php4-STABLE-200603281036/sapi/apache2handler/sapi_apache2.c:581 #6 0x00552aac79e3 in ap_run_handler () from /usr/sbin/httpd #7 0x00552aac7ea1 in ap_invoke_handler () from /usr/sbin/httpd #8 0x00552aac4ca8 in ap_process_request () from /usr/sbin/httpd #9 0x00552aac0089 in _start () from /usr/sbin/httpd #10 0x00552aad1683 in ap_run_process_connection () from /usr/sbin/httpd #11 0x00552aac5b10 in ap_graceful_stop_signalled () from /usr/sbin/httpd #12 0x00552aac5dea in ap_graceful_stop_signalled () from /usr/sbin/httpd #13 0x00552aac5e94 in ap_graceful_stop_signalled () from /usr/sbin/httpd #14 0x00552aac65cb in ap_mpm_run () from /usr/sbin/httpd #15 0x00552aacccdf in main () from /usr/sbin/httpd -- Second error (glibc error): (gdb) bt #0 0x002a9662637d in raise () from /lib64/tls/libc.so.6 #1 0x002a96627aae in abort () from /lib64/tls/libc.so.6 #2 0x002a9665abe1 in __libc_message () from /lib64/tls/libc.so.6 #3 0x002a96660782 in _int_free () from /lib64/tls/libc.so.6 #4 0x002a966609b6 in free () from /lib64/tls/libc.so.6 #5 0x002a9a0aa85e in _efree (ptr=Variable "ptr" is not available. ) at /
#36921 [Opn->Bgs]: ob_start("gz_handler");
ID: 36921 Updated by: [EMAIL PROTECTED] Reported By: caio53 at gmail dot com -Status: Open +Status: Bogus Bug Type: Output Control Operating System: Windows, Linux PHP Version: 5.1.2 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. There's no gz_handler, ie. you didn't actually start any output buffer. Previous Comments: [2006-03-30 10:58:45] caio53 at gmail dot com Description: ob_clean(); doesn't work when I use ob_start("gz_handler"); Reproduce code: --- Expected result: more content Actual result: -- content Notice: ob_clean() [ref.outcontrol]: failed to delete buffer. No buffer to delete. in D:\neatcode\test.php on line 6 more content -- Edit this bug report at http://bugs.php.net/?id=36921&edit=1
#36925 [Opn]: failed to open stream when trying to open remote file
ID: 36925 User updated by: igor at oleinikov dot ru Reported By: igor at oleinikov dot ru Status: Open Bug Type: Streams related Operating System: Windows XP SP2 Build 2600 PHP Version: 5.1.2 New Comment: I use: $f = fopen($url, 'r'); In first post I was make a misprint. Previous Comments: [2006-03-30 18:06:13] igor at oleinikov dot ru Socket error #10035: Resource temporarily unavailable. This error is returned from operations on nonblocking sockets that cannot be completed immediately. [2006-03-30 18:02:44] [EMAIL PROTECTED] Do you get the error when using fopen() correctly? [2006-03-30 17:48:28] igor at oleinikov dot ru On PHP 5.1.1 this error occuires too. [2006-03-30 17:43:23] igor at oleinikov dot ru Description: When trying to open remote file via HTTP protocol, PHP produces warning: failed to open stream: Resource temporarily unavailable My Windows system have russian locale, so actualy I have localized error message, but this error is Socket error #10035 "Resource temporarily unavailable". I have tested same code on FreeBSD system, and this error wasn't occuired. PHP info: System: Windows NT SCORP 5.1 build 2600 PHP API: 20041225 PHP Extension: 20050922 Zend Extension: 220051025 Debug Build: no Thread Safety: enabled Zend Memory Manager: enabled IPv6 Support: enabled Registered PHP Streams: php, file, http, ftp, compress.zlib, https, ftps Registered Stream Socket Transports: tcp, udp, ssl, sslv3, sslv2, tls allow_url_fopen: On safe_mode: Off Reproduce code: --- $f = fopen('http://domain/file'); //series of real URLs and IP addresses was tried $data = fread($f, 1024); print $data; Expected result: data of file http://domain/file Actual result: -- Warning: fopen(http://domain/file) [function.fopen]: failed to open stream: Resource temporarily unavailable. in X:\Path\file.php on line 1 Warning: fread(): supplied argument is not a valid stream resource in X:\Path\file.php on line 2 -- Edit this bug report at http://bugs.php.net/?id=36925&edit=1
#36925 [Fbk->Opn]: failed to open stream when trying to open remote file
ID: 36925 User updated by: igor at oleinikov dot ru Reported By: igor at oleinikov dot ru -Status: Feedback +Status: Open Bug Type: Streams related Operating System: Windows XP SP2 Build 2600 PHP Version: 5.1.2 New Comment: Socket error #10035: Resource temporarily unavailable. This error is returned from operations on nonblocking sockets that cannot be completed immediately. Previous Comments: [2006-03-30 18:02:44] [EMAIL PROTECTED] Do you get the error when using fopen() correctly? [2006-03-30 17:48:28] igor at oleinikov dot ru On PHP 5.1.1 this error occuires too. [2006-03-30 17:43:23] igor at oleinikov dot ru Description: When trying to open remote file via HTTP protocol, PHP produces warning: failed to open stream: Resource temporarily unavailable My Windows system have russian locale, so actualy I have localized error message, but this error is Socket error #10035 "Resource temporarily unavailable". I have tested same code on FreeBSD system, and this error wasn't occuired. PHP info: System: Windows NT SCORP 5.1 build 2600 PHP API: 20041225 PHP Extension: 20050922 Zend Extension: 220051025 Debug Build: no Thread Safety: enabled Zend Memory Manager: enabled IPv6 Support: enabled Registered PHP Streams: php, file, http, ftp, compress.zlib, https, ftps Registered Stream Socket Transports: tcp, udp, ssl, sslv3, sslv2, tls allow_url_fopen: On safe_mode: Off Reproduce code: --- $f = fopen('http://domain/file'); //series of real URLs and IP addresses was tried $data = fread($f, 1024); print $data; Expected result: data of file http://domain/file Actual result: -- Warning: fopen(http://domain/file) [function.fopen]: failed to open stream: Resource temporarily unavailable. in X:\Path\file.php on line 1 Warning: fread(): supplied argument is not a valid stream resource in X:\Path\file.php on line 2 -- Edit this bug report at http://bugs.php.net/?id=36925&edit=1
#36925 [Opn->Fbk]: failed to open stream when trying to open remote file
ID: 36925 Updated by: [EMAIL PROTECTED] Reported By: igor at oleinikov dot ru -Status: Open +Status: Feedback Bug Type: Streams related Operating System: Windows XP SP2 Build 2600 PHP Version: 5.1.2 New Comment: Do you get the error when using fopen() correctly? Previous Comments: [2006-03-30 17:48:28] igor at oleinikov dot ru On PHP 5.1.1 this error occuires too. [2006-03-30 17:43:23] igor at oleinikov dot ru Description: When trying to open remote file via HTTP protocol, PHP produces warning: failed to open stream: Resource temporarily unavailable My Windows system have russian locale, so actualy I have localized error message, but this error is Socket error #10035 "Resource temporarily unavailable". I have tested same code on FreeBSD system, and this error wasn't occuired. PHP info: System: Windows NT SCORP 5.1 build 2600 PHP API: 20041225 PHP Extension: 20050922 Zend Extension: 220051025 Debug Build: no Thread Safety: enabled Zend Memory Manager: enabled IPv6 Support: enabled Registered PHP Streams: php, file, http, ftp, compress.zlib, https, ftps Registered Stream Socket Transports: tcp, udp, ssl, sslv3, sslv2, tls allow_url_fopen: On safe_mode: Off Reproduce code: --- $f = fopen('http://domain/file'); //series of real URLs and IP addresses was tried $data = fread($f, 1024); print $data; Expected result: data of file http://domain/file Actual result: -- Warning: fopen(http://domain/file) [function.fopen]: failed to open stream: Resource temporarily unavailable. in X:\Path\file.php on line 1 Warning: fread(): supplied argument is not a valid stream resource in X:\Path\file.php on line 2 -- Edit this bug report at http://bugs.php.net/?id=36925&edit=1
#36925 [Opn]: failed to open stream when trying to open remote file
ID: 36925 User updated by: igor at oleinikov dot ru Reported By: igor at oleinikov dot ru Status: Open Bug Type: Streams related Operating System: Windows XP SP2 Build 2600 PHP Version: 5.1.2 New Comment: On PHP 5.1.1 this error occuires too. Previous Comments: [2006-03-30 17:43:23] igor at oleinikov dot ru Description: When trying to open remote file via HTTP protocol, PHP produces warning: failed to open stream: Resource temporarily unavailable My Windows system have russian locale, so actualy I have localized error message, but this error is Socket error #10035 "Resource temporarily unavailable". I have tested same code on FreeBSD system, and this error wasn't occuired. PHP info: System: Windows NT SCORP 5.1 build 2600 PHP API: 20041225 PHP Extension: 20050922 Zend Extension: 220051025 Debug Build: no Thread Safety: enabled Zend Memory Manager: enabled IPv6 Support: enabled Registered PHP Streams: php, file, http, ftp, compress.zlib, https, ftps Registered Stream Socket Transports: tcp, udp, ssl, sslv3, sslv2, tls allow_url_fopen: On safe_mode: Off Reproduce code: --- $f = fopen('http://domain/file'); //series of real URLs and IP addresses was tried $data = fread($f, 1024); print $data; Expected result: data of file http://domain/file Actual result: -- Warning: fopen(http://domain/file) [function.fopen]: failed to open stream: Resource temporarily unavailable. in X:\Path\file.php on line 1 Warning: fread(): supplied argument is not a valid stream resource in X:\Path\file.php on line 2 -- Edit this bug report at http://bugs.php.net/?id=36925&edit=1
#36925 [NEW]: failed to open stream when trying to open remote file
From: igor at oleinikov dot ru Operating system: Windows XP SP2 Build 2600 PHP version: 5.1.2 PHP Bug Type: Streams related Bug description: failed to open stream when trying to open remote file Description: When trying to open remote file via HTTP protocol, PHP produces warning: failed to open stream: Resource temporarily unavailable My Windows system have russian locale, so actualy I have localized error message, but this error is Socket error #10035 "Resource temporarily unavailable". I have tested same code on FreeBSD system, and this error wasn't occuired. PHP info: System: Windows NT SCORP 5.1 build 2600 PHP API: 20041225 PHP Extension: 20050922 Zend Extension: 220051025 Debug Build: no Thread Safety: enabled Zend Memory Manager: enabled IPv6 Support: enabled Registered PHP Streams: php, file, http, ftp, compress.zlib, https, ftps Registered Stream Socket Transports: tcp, udp, ssl, sslv3, sslv2, tls allow_url_fopen: On safe_mode: Off Reproduce code: --- $f = fopen('http://domain/file'); //series of real URLs and IP addresses was tried $data = fread($f, 1024); print $data; Expected result: data of file http://domain/file Actual result: -- Warning: fopen(http://domain/file) [function.fopen]: failed to open stream: Resource temporarily unavailable. in X:\Path\file.php on line 1 Warning: fread(): supplied argument is not a valid stream resource in X:\Path\file.php on line 2 -- Edit bug report at http://bugs.php.net/?id=36925&edit=1 -- Try a CVS snapshot (PHP 4.4): http://bugs.php.net/fix.php?id=36925&r=trysnapshot44 Try a CVS snapshot (PHP 5.1): http://bugs.php.net/fix.php?id=36925&r=trysnapshot51 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=36925&r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=36925&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=36925&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=36925&r=needtrace Need Reproduce Script:http://bugs.php.net/fix.php?id=36925&r=needscript Try newer version:http://bugs.php.net/fix.php?id=36925&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=36925&r=support Expected behavior:http://bugs.php.net/fix.php?id=36925&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=36925&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=36925&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=36925&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=36925&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=36925&r=dst IIS Stability:http://bugs.php.net/fix.php?id=36925&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=36925&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=36925&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=36925&r=nozend MySQL Configuration Error:http://bugs.php.net/fix.php?id=36925&r=mysqlcfg
#36924 [Bgs]: string concat
ID: 36924 User updated by: arnout at argeweb dot nl Reported By: arnout at argeweb dot nl Status: Bogus Bug Type: Scripting Engine problem Operating System: FreeBSD 5.4-RELEASE-p11 PHP Version: 5.1.2 New Comment: OK, I guess it's not a memory leak then. But nevermind the name: This problem makes it impossible to write a long running script, because it keeps growing until it dies of memory shortage. Is this suicide designed, or is it a bug? Previous Comments: [2006-03-30 16:07:00] [EMAIL PROTECTED] Leaks are reported by the engine. What you see is the way the engine works and this is not a bug/leak. [2006-03-30 15:56:43] arnout at argeweb dot nl "Using the following code leaks 32 bytes of memory." Cleaning up the demo-script while submitting this bug gave a clearer image. The demo says it all. Using unset() didn't change anything anywhere by the way. [2006-03-30 15:54:06] arnout at argeweb dot nl Description: Using the following code leaks 32 bytes of memory. $doe = 'yoyoyo'; echo "john $doe"; PHP 5.1.2 (cli) (built: Feb 22 2006 16:17:32) Copyright (c) 1997-2006 The PHP Group Zend Engine v2.1.0, Copyright (c) 1998-2006 Zend Technologies with Zend Extension Manager v1.0.10, Copyright (c) 2003-2006, by Zend Technologies with Zend Optimizer v3.0.0-Beta2, Copyright (c) 1998-2006, by Zend Technologies Reproduce code: --- function fake1"; for( $i = 0;$i < 10; $i++ ){ echo "Memory at ".$i.": ".memory_get_usage()."\n"; fake1( "string" ); echo "Memory at ".$i.": ".memory_get_usage()."\n"; } echo "function fake2"; for( $i = 0;$i < 10; $i++ ){ echo "Memory at ".$i.": ".memory_get_usage()."\n"; fake2( "string" ); echo "Memory at ".$i.": ".memory_get_usage()."\n"; } echo "function fake3"; for( $i = 0;$i < 10; $i++ ){ echo "Memory at ".$i.": ".memory_get_usage()."\n"; fake3( "string" ); echo "Memory at ".$i.": ".memory_get_usage()."\n"; } echo "function fake4"; for( $i = 0;$i < 10; $i++ ){ echo "Memory at ".$i.": ".memory_get_usage()."\n"; fake4( "string" ); echo "Memory at ".$i.": ".memory_get_usage()."\n"; } ?> Expected result: Hardly any change in memory usage. Actual result: -- function fake1 Memory at 0: 42920 kaas stringMemory at 0: 42984 Memory at 1: 42984 kaas stringMemory at 1: 42984 Memory at 2: 42984 kaas stringMemory at 2: 42984 Memory at 3: 42984 kaas stringMemory at 3: 42984 ...etcetera... +64 bytes, only once. function fake2 Memory at 0: 42984 kaas stringMemory at 0: 43000 Memory at 1: 43000 kaas stringMemory at 1: 43016 Memory at 2: 43016 kaas stringMemory at 2: 43032 Memory at 3: 43032 kaas stringMemory at 3: 43048 ...etcetera... +16 bytes function fake3 Memory at 0: 43144 Memory at 0: 43160 Memory at 1: 43160 Memory at 1: 43176 Memory at 2: 43176 Memory at 2: 43192 Memory at 3: 43192 Memory at 3: 43208 ...etcetera... +16 bytes function fake4 Memory at 0: 43304 kaas string asdfMemory at 0: 43328 Memory at 1: 43328 kaas string asdfMemory at 1: 43352 Memory at 2: 43352 kaas string asdfMemory at 2: 43376 ...etcetera... +24 bytes -- Edit this bug report at http://bugs.php.net/?id=36924&edit=1
#36924 [Opn->Bgs]: string concat
ID: 36924 Updated by: [EMAIL PROTECTED] Reported By: arnout at argeweb dot nl -Status: Open +Status: Bogus Bug Type: Scripting Engine problem Operating System: FreeBSD 5.4-RELEASE-p11 PHP Version: 5.1.2 New Comment: Leaks are reported by the engine. What you see is the way the engine works and this is not a bug/leak. Previous Comments: [2006-03-30 15:56:43] arnout at argeweb dot nl "Using the following code leaks 32 bytes of memory." Cleaning up the demo-script while submitting this bug gave a clearer image. The demo says it all. Using unset() didn't change anything anywhere by the way. [2006-03-30 15:54:06] arnout at argeweb dot nl Description: Using the following code leaks 32 bytes of memory. $doe = 'yoyoyo'; echo "john $doe"; PHP 5.1.2 (cli) (built: Feb 22 2006 16:17:32) Copyright (c) 1997-2006 The PHP Group Zend Engine v2.1.0, Copyright (c) 1998-2006 Zend Technologies with Zend Extension Manager v1.0.10, Copyright (c) 2003-2006, by Zend Technologies with Zend Optimizer v3.0.0-Beta2, Copyright (c) 1998-2006, by Zend Technologies Reproduce code: --- function fake1"; for( $i = 0;$i < 10; $i++ ){ echo "Memory at ".$i.": ".memory_get_usage()."\n"; fake1( "string" ); echo "Memory at ".$i.": ".memory_get_usage()."\n"; } echo "function fake2"; for( $i = 0;$i < 10; $i++ ){ echo "Memory at ".$i.": ".memory_get_usage()."\n"; fake2( "string" ); echo "Memory at ".$i.": ".memory_get_usage()."\n"; } echo "function fake3"; for( $i = 0;$i < 10; $i++ ){ echo "Memory at ".$i.": ".memory_get_usage()."\n"; fake3( "string" ); echo "Memory at ".$i.": ".memory_get_usage()."\n"; } echo "function fake4"; for( $i = 0;$i < 10; $i++ ){ echo "Memory at ".$i.": ".memory_get_usage()."\n"; fake4( "string" ); echo "Memory at ".$i.": ".memory_get_usage()."\n"; } ?> Expected result: Hardly any change in memory usage. Actual result: -- function fake1 Memory at 0: 42920 kaas stringMemory at 0: 42984 Memory at 1: 42984 kaas stringMemory at 1: 42984 Memory at 2: 42984 kaas stringMemory at 2: 42984 Memory at 3: 42984 kaas stringMemory at 3: 42984 ...etcetera... +64 bytes, only once. function fake2 Memory at 0: 42984 kaas stringMemory at 0: 43000 Memory at 1: 43000 kaas stringMemory at 1: 43016 Memory at 2: 43016 kaas stringMemory at 2: 43032 Memory at 3: 43032 kaas stringMemory at 3: 43048 ...etcetera... +16 bytes function fake3 Memory at 0: 43144 Memory at 0: 43160 Memory at 1: 43160 Memory at 1: 43176 Memory at 2: 43176 Memory at 2: 43192 Memory at 3: 43192 Memory at 3: 43208 ...etcetera... +16 bytes function fake4 Memory at 0: 43304 kaas string asdfMemory at 0: 43328 Memory at 1: 43328 kaas string asdfMemory at 1: 43352 Memory at 2: 43352 kaas string asdfMemory at 2: 43376 ...etcetera... +24 bytes -- Edit this bug report at http://bugs.php.net/?id=36924&edit=1
#36924 [Opn]: string concat
ID: 36924 User updated by: arnout at argeweb dot nl Reported By: arnout at argeweb dot nl Status: Open Bug Type: Scripting Engine problem Operating System: FreeBSD 5.4-RELEASE-p11 PHP Version: 5.1.2 New Comment: "Using the following code leaks 32 bytes of memory." Cleaning up the demo-script while submitting this bug gave a clearer image. The demo says it all. Using unset() didn't change anything anywhere by the way. Previous Comments: [2006-03-30 15:54:06] arnout at argeweb dot nl Description: Using the following code leaks 32 bytes of memory. $doe = 'yoyoyo'; echo "john $doe"; PHP 5.1.2 (cli) (built: Feb 22 2006 16:17:32) Copyright (c) 1997-2006 The PHP Group Zend Engine v2.1.0, Copyright (c) 1998-2006 Zend Technologies with Zend Extension Manager v1.0.10, Copyright (c) 2003-2006, by Zend Technologies with Zend Optimizer v3.0.0-Beta2, Copyright (c) 1998-2006, by Zend Technologies Reproduce code: --- function fake1"; for( $i = 0;$i < 10; $i++ ){ echo "Memory at ".$i.": ".memory_get_usage()."\n"; fake1( "string" ); echo "Memory at ".$i.": ".memory_get_usage()."\n"; } echo "function fake2"; for( $i = 0;$i < 10; $i++ ){ echo "Memory at ".$i.": ".memory_get_usage()."\n"; fake2( "string" ); echo "Memory at ".$i.": ".memory_get_usage()."\n"; } echo "function fake3"; for( $i = 0;$i < 10; $i++ ){ echo "Memory at ".$i.": ".memory_get_usage()."\n"; fake3( "string" ); echo "Memory at ".$i.": ".memory_get_usage()."\n"; } echo "function fake4"; for( $i = 0;$i < 10; $i++ ){ echo "Memory at ".$i.": ".memory_get_usage()."\n"; fake4( "string" ); echo "Memory at ".$i.": ".memory_get_usage()."\n"; } ?> Expected result: Hardly any change in memory usage. Actual result: -- function fake1 Memory at 0: 42920 kaas stringMemory at 0: 42984 Memory at 1: 42984 kaas stringMemory at 1: 42984 Memory at 2: 42984 kaas stringMemory at 2: 42984 Memory at 3: 42984 kaas stringMemory at 3: 42984 ...etcetera... +64 bytes, only once. function fake2 Memory at 0: 42984 kaas stringMemory at 0: 43000 Memory at 1: 43000 kaas stringMemory at 1: 43016 Memory at 2: 43016 kaas stringMemory at 2: 43032 Memory at 3: 43032 kaas stringMemory at 3: 43048 ...etcetera... +16 bytes function fake3 Memory at 0: 43144 Memory at 0: 43160 Memory at 1: 43160 Memory at 1: 43176 Memory at 2: 43176 Memory at 2: 43192 Memory at 3: 43192 Memory at 3: 43208 ...etcetera... +16 bytes function fake4 Memory at 0: 43304 kaas string asdfMemory at 0: 43328 Memory at 1: 43328 kaas string asdfMemory at 1: 43352 Memory at 2: 43352 kaas string asdfMemory at 2: 43376 ...etcetera... +24 bytes -- Edit this bug report at http://bugs.php.net/?id=36924&edit=1
#36924 [NEW]: string concat
From: arnout at argeweb dot nl Operating system: FreeBSD 5.4-RELEASE-p11 PHP version: 5.1.2 PHP Bug Type: Scripting Engine problem Bug description: string concat Description: Using the following code leaks 32 bytes of memory. $doe = 'yoyoyo'; echo "john $doe"; PHP 5.1.2 (cli) (built: Feb 22 2006 16:17:32) Copyright (c) 1997-2006 The PHP Group Zend Engine v2.1.0, Copyright (c) 1998-2006 Zend Technologies with Zend Extension Manager v1.0.10, Copyright (c) 2003-2006, by Zend Technologies with Zend Optimizer v3.0.0-Beta2, Copyright (c) 1998-2006, by Zend Technologies Reproduce code: --- function fake1"; for( $i = 0;$i < 10; $i++ ){ echo "Memory at ".$i.": ".memory_get_usage()."\n"; fake1( "string" ); echo "Memory at ".$i.": ".memory_get_usage()."\n"; } echo "function fake2"; for( $i = 0;$i < 10; $i++ ){ echo "Memory at ".$i.": ".memory_get_usage()."\n"; fake2( "string" ); echo "Memory at ".$i.": ".memory_get_usage()."\n"; } echo "function fake3"; for( $i = 0;$i < 10; $i++ ){ echo "Memory at ".$i.": ".memory_get_usage()."\n"; fake3( "string" ); echo "Memory at ".$i.": ".memory_get_usage()."\n"; } echo "function fake4"; for( $i = 0;$i < 10; $i++ ){ echo "Memory at ".$i.": ".memory_get_usage()."\n"; fake4( "string" ); echo "Memory at ".$i.": ".memory_get_usage()."\n"; } ?> Expected result: Hardly any change in memory usage. Actual result: -- function fake1 Memory at 0: 42920 kaas stringMemory at 0: 42984 Memory at 1: 42984 kaas stringMemory at 1: 42984 Memory at 2: 42984 kaas stringMemory at 2: 42984 Memory at 3: 42984 kaas stringMemory at 3: 42984 ...etcetera... +64 bytes, only once. function fake2 Memory at 0: 42984 kaas stringMemory at 0: 43000 Memory at 1: 43000 kaas stringMemory at 1: 43016 Memory at 2: 43016 kaas stringMemory at 2: 43032 Memory at 3: 43032 kaas stringMemory at 3: 43048 ...etcetera... +16 bytes function fake3 Memory at 0: 43144 Memory at 0: 43160 Memory at 1: 43160 Memory at 1: 43176 Memory at 2: 43176 Memory at 2: 43192 Memory at 3: 43192 Memory at 3: 43208 ...etcetera... +16 bytes function fake4 Memory at 0: 43304 kaas string asdfMemory at 0: 43328 Memory at 1: 43328 kaas string asdfMemory at 1: 43352 Memory at 2: 43352 kaas string asdfMemory at 2: 43376 ...etcetera... +24 bytes -- Edit bug report at http://bugs.php.net/?id=36924&edit=1 -- Try a CVS snapshot (PHP 4.4): http://bugs.php.net/fix.php?id=36924&r=trysnapshot44 Try a CVS snapshot (PHP 5.1): http://bugs.php.net/fix.php?id=36924&r=trysnapshot51 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=36924&r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=36924&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=36924&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=36924&r=needtrace Need Reproduce Script:http://bugs.php.net/fix.php?id=36924&r=needscript Try newer version:http://bugs.php.net/fix.php?id=36924&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=36924&r=support Expected behavior:http://bugs.php.net/fix.php?id=36924&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=36924&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=36924&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=36924&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=36924&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=36924&r=dst IIS Stability:http://bugs.php.net/fix.php?id=36924&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=36924&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=36924&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=36924&r=nozend MySQL Configuration Error:http://bugs.php.net/fix.php?id=36924&r=mysqlcfg
#36918 [Fbk->Opn]: stream_set_blocking doesn't work
ID: 36918 User updated by: brud5_99 at yahoo dot com Reported By: brud5_99 at yahoo dot com -Status: Feedback +Status: Open Bug Type: Streams related Operating System: linux (gentoo) PHP Version: 5.1.2 New Comment: Thank you for the quick reply. Unfortunately the latest version didn't fix the problem for me. It still only loops until a connection is made. Once the connection is established, it gets stuck on "loop1". Then it runs a whole loop once if you send input, and stops on loop1 again. If you disconnect it resumes looping. Previous Comments: [2006-03-30 11:36:38] [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 That's exactly what I get: lots of "keep looping" and notices. [2006-03-30 00:30:21] brud5_99 at yahoo dot com Description: stream_set_blocking seems to get ignored. There are no errors or warnings, but the socket behaves as if it was set to blocking. The same code works as expected with php 5.0.1 on a FreeBsd box, but not with 5.1.2 under gentoo linux. The piece of code sample included is all that's needed to see the problem. Php is configured as stand-alone, not as an apache module. Thanks a lot for any help you can provide! bernie ./configure --without-pear --without-apache --with-sockets --enable-sockets --with-mysql-sock=/tmp/mysql.sock --with- mysql=/usr/local/mysql --with-mysqli=/usr/local/mysql/bin/ mysql_config --enable-pcntl --enable-pcntl --enable-sysvshm --enable-sysvsem --enable-sigchild --with-config-file-path=/ usr/local/phpForCgi/conf --prefix=/usr/local/phpForCgi -- sysconfdir=/usr/local/phpForCgi/conf Reproduce code: --- Expected result: It should echo "keep looping" if there is no input Actual result: -- It keeps echoing "keep looping" until a connection is made. After input was received (made a telnet connection to port 7000 and sent some text thru), the trace stops at "loop1". Only about every 30sec(or so) it does a complete loop. I think that is after fread() times out intenally. Also, if the connction is closed, it keeps looping thru "keep looping" again. -- Edit this bug report at http://bugs.php.net/?id=36918&edit=1
#36923 [Opn->Fbk]: PDO::query fails when query contains special charactes
ID: 36923 Updated by: [EMAIL PROTECTED] Reported By: farin at refresh dot cz -Status: Open +Status: Feedback Bug Type: PDO related Operating System: Gentoo PHP Version: 5.1.2 New Comment: 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 Previous Comments: [2006-03-30 13:27:39] farin at refresh dot cz Description: When $query parameter for PDO::query contains ' :A and ? (as part of data) query fails with error Invalid parameter number: mixed named and positional parameters. This behavior is appear with PDO mysql driver. In PHP 5.1.1 is not this bug present. Reproduce code: --- $pdo->query("insert into foo (bar) values ('\\ ? :A')"); Expected result: SQL syntax is Ok so query should be proccessed without error. Actual result: -- Warning: PDO::query() [function.query]: SQLSTATE[HY093]: Invalid parameter number: mixed named and positional parameters in ... And query fails. -- Edit this bug report at http://bugs.php.net/?id=36923&edit=1
#36922 [Opn->Csd]: missing Constant
ID: 36922 Updated by: [EMAIL PROTECTED] Reported By: [EMAIL PROTECTED] -Status: Open +Status: Closed Bug Type: MySQLi related Operating System: CentOS 4 PHP Version: 5.1.2 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-03-30 13:07:32] [EMAIL PROTECTED] Description: Mysqli provides the possibility to throw an exception if an error occurs. This can be done with "mysqli_report(3)" 1 = MYSQLI_REPORT_ERROR 2 = MYSQLI_REPORT_STRICT However, the MYSQLI_REPORT_STRICT constant doesn´t exists in PHP-userland (defined in php_mysqli.h). A small patch which is adding this constant is available at http://www.phpschlampe.de/mysqli.patch Reproduce code: --- Expected result: PHP Fatal error: Uncaught exception 'mysqli_sql_exception' with message 'Access denied for user 'root'@'localhost' Actual result: -- PHP Notice: Use of undefined constant MYSQLI_REPORT_STRICT - assumed 'MYSQLI_REPORT_STRICT' in /home/traufeisen/mysqlitest.php on line 4 PHP Warning: mysqli::mysqli(): (28000/1045): Access denied for user 'root'@'localhost' (using password: YES) in /home/traufeisen/mysqlitest.php on line 5 -- Edit this bug report at http://bugs.php.net/?id=36922&edit=1
#36923 [NEW]: PDO::query fails when query contains special charactes
From: farin at refresh dot cz Operating system: Gentoo PHP version: 5.1.2 PHP Bug Type: PDO related Bug description: PDO::query fails when query contains special charactes Description: When $query parameter for PDO::query contains ' :A and ? (as part of data) query fails with error Invalid parameter number: mixed named and positional parameters. This behavior is appear with PDO mysql driver. In PHP 5.1.1 is not this bug present. Reproduce code: --- $pdo->query("insert into foo (bar) values ('\\ ? :A')"); Expected result: SQL syntax is Ok so query should be proccessed without error. Actual result: -- Warning: PDO::query() [function.query]: SQLSTATE[HY093]: Invalid parameter number: mixed named and positional parameters in ... And query fails. -- Edit bug report at http://bugs.php.net/?id=36923&edit=1 -- Try a CVS snapshot (PHP 4.4): http://bugs.php.net/fix.php?id=36923&r=trysnapshot44 Try a CVS snapshot (PHP 5.1): http://bugs.php.net/fix.php?id=36923&r=trysnapshot51 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=36923&r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=36923&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=36923&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=36923&r=needtrace Need Reproduce Script:http://bugs.php.net/fix.php?id=36923&r=needscript Try newer version:http://bugs.php.net/fix.php?id=36923&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=36923&r=support Expected behavior:http://bugs.php.net/fix.php?id=36923&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=36923&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=36923&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=36923&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=36923&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=36923&r=dst IIS Stability:http://bugs.php.net/fix.php?id=36923&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=36923&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=36923&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=36923&r=nozend MySQL Configuration Error:http://bugs.php.net/fix.php?id=36923&r=mysqlcfg
#36922 [NEW]: missing Constant
From: [EMAIL PROTECTED] Operating system: CentOS 4 PHP version: 5.1.2 PHP Bug Type: MySQLi related Bug description: missing Constant Description: Mysqli provides the possibility to throw an exception if an error occurs. This can be done with "mysqli_report(3)" 1 = MYSQLI_REPORT_ERROR 2 = MYSQLI_REPORT_STRICT However, the MYSQLI_REPORT_STRICT constant doesn´t exists in PHP-userland (defined in php_mysqli.h). A small patch which is adding this constant is available at http://www.phpschlampe.de/mysqli.patch Reproduce code: --- Expected result: PHP Fatal error: Uncaught exception 'mysqli_sql_exception' with message 'Access denied for user 'root'@'localhost' Actual result: -- PHP Notice: Use of undefined constant MYSQLI_REPORT_STRICT - assumed 'MYSQLI_REPORT_STRICT' in /home/traufeisen/mysqlitest.php on line 4 PHP Warning: mysqli::mysqli(): (28000/1045): Access denied for user 'root'@'localhost' (using password: YES) in /home/traufeisen/mysqlitest.php on line 5 -- Edit bug report at http://bugs.php.net/?id=36922&edit=1 -- Try a CVS snapshot (PHP 4.4): http://bugs.php.net/fix.php?id=36922&r=trysnapshot44 Try a CVS snapshot (PHP 5.1): http://bugs.php.net/fix.php?id=36922&r=trysnapshot51 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=36922&r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=36922&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=36922&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=36922&r=needtrace Need Reproduce Script:http://bugs.php.net/fix.php?id=36922&r=needscript Try newer version:http://bugs.php.net/fix.php?id=36922&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=36922&r=support Expected behavior:http://bugs.php.net/fix.php?id=36922&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=36922&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=36922&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=36922&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=36922&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=36922&r=dst IIS Stability:http://bugs.php.net/fix.php?id=36922&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=36922&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=36922&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=36922&r=nozend MySQL Configuration Error:http://bugs.php.net/fix.php?id=36922&r=mysqlcfg
#36920 [Opn->Fbk]: Segmentation fault on echo/print
ID: 36920 Updated by: [EMAIL PROTECTED] Reported By: ttmails at web dot de -Status: Open +Status: Feedback Bug Type: Reproducible crash Operating System: Linux/Gentoo 2.6.15-r7 PHP Version: 5.1.2 New Comment: Thank you for this bug report. To properly diagnose the problem, we need a short but complete example script to be able to reproduce this bug ourselves. A proper reproducing script starts with , is max. 10-20 lines long and does not require any external resources such as databases, etc. If possible, make the script source available online and provide an URL to it here. Try to avoid embedding huge scripts into the report. Previous Comments: [2006-03-30 12:11:09] ttmails at web dot de tried it.. still the same bug.. [2006-03-30 10:58:54] [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-03-30 10:51:10] ttmails at web dot de Description: hi! i have a problem with php-cgi segfaulting when calling an url. i am running apache2. this whole script is too big to paste it here and it consists of a lot of classes. i have a protected function, i wanted to add some debug code and apache said that the childs died. so php segfaulted. when i do an "echo" or "print" it segfaults. but not if i do a "printf"... sounds very confusing hope you can help! thanks in advance, tim Actual result: -- # normal debug (gdb) run -X -D PHP5 Starting program: /usr/sbin/apache2 -X -D PHP5 (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) [Thread debugging using libthread_db enabled] [New Thread 16384 (LWP 10992)] [Thu Mar 30 10:41:22 2006] [warn] NameVirtualHost *:80 has no VirtualHosts Program received signal SIGSEGV, Segmentation fault. [Switching to Thread 16384 (LWP 10992)] 0xb77c9b38 in zend_print_zval_r_ex () from /usr/lib/apache2/modules/libphp5.so # backtrace (gdb) bt #0 0xb77c9b38 in zend_print_zval_r_ex () from /usr/lib/apache2/modules/libphp5.so #1 0xb79be611 in php_tiff_bytes_per_format () from /usr/lib/apache2/modules/libphp5.so #2 0x0006 in ?? () #3 0x08218a08 in ?? () #4 0x082c07cc in ?? () #5 0xbf87d0ec in ?? () #6 0xbf87d2d0 in ?? () #7 0x08287b1c in ?? () #8 0xb77cbcbd in zend_parse_parameters () from /usr/lib/apache2/modules/libphp5.so #9 0x0001 in ?? () #10 0x082c07cc in ?? () #11 0xbf87d0ec in ?? () #12 0xb77c9a10 in zend_print_zval_r () from /usr/lib/apache2/modules/libphp5.so #13 0xb7790ab0 in php_request_shutdown () from /usr/lib/apache2/modules/libphp5.so #14 0x082c069c in ?? () #15 0x in ?? () -- Edit this bug report at http://bugs.php.net/?id=36920&edit=1
#36920 [Fbk->Opn]: Segmentation fault on echo/print
ID: 36920 User updated by: ttmails at web dot de Reported By: ttmails at web dot de -Status: Feedback +Status: Open Bug Type: Reproducible crash Operating System: Linux/Gentoo 2.6.15-r7 PHP Version: 5.1.2 New Comment: tried it.. still the same bug.. Previous Comments: [2006-03-30 10:58:54] [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-03-30 10:51:10] ttmails at web dot de Description: hi! i have a problem with php-cgi segfaulting when calling an url. i am running apache2. this whole script is too big to paste it here and it consists of a lot of classes. i have a protected function, i wanted to add some debug code and apache said that the childs died. so php segfaulted. when i do an "echo" or "print" it segfaults. but not if i do a "printf"... sounds very confusing hope you can help! thanks in advance, tim Actual result: -- # normal debug (gdb) run -X -D PHP5 Starting program: /usr/sbin/apache2 -X -D PHP5 (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) [Thread debugging using libthread_db enabled] [New Thread 16384 (LWP 10992)] [Thu Mar 30 10:41:22 2006] [warn] NameVirtualHost *:80 has no VirtualHosts Program received signal SIGSEGV, Segmentation fault. [Switching to Thread 16384 (LWP 10992)] 0xb77c9b38 in zend_print_zval_r_ex () from /usr/lib/apache2/modules/libphp5.so # backtrace (gdb) bt #0 0xb77c9b38 in zend_print_zval_r_ex () from /usr/lib/apache2/modules/libphp5.so #1 0xb79be611 in php_tiff_bytes_per_format () from /usr/lib/apache2/modules/libphp5.so #2 0x0006 in ?? () #3 0x08218a08 in ?? () #4 0x082c07cc in ?? () #5 0xbf87d0ec in ?? () #6 0xbf87d2d0 in ?? () #7 0x08287b1c in ?? () #8 0xb77cbcbd in zend_parse_parameters () from /usr/lib/apache2/modules/libphp5.so #9 0x0001 in ?? () #10 0x082c07cc in ?? () #11 0xbf87d0ec in ?? () #12 0xb77c9a10 in zend_print_zval_r () from /usr/lib/apache2/modules/libphp5.so #13 0xb7790ab0 in php_request_shutdown () from /usr/lib/apache2/modules/libphp5.so #14 0x082c069c in ?? () #15 0x in ?? () -- Edit this bug report at http://bugs.php.net/?id=36920&edit=1
#27654 [Com]: POST variables not set running under suexec
ID: 27654 Comment by: allanfemistoreinc at yahoo dot com Reported By: michaelkeeley at hotmail dot com Status: No Feedback Bug Type: CGI related Operating System: Linux PHP Version: 4.3.4 New Comment: Hello buyers. These is Allan femi of allanfemi store inc.I have a good news for you.I want you to buy your phones,ipod,mp3 player,laptop at a very cheap price .If you have interest mail me at ([EMAIL PROTECTED])or call us (+2348025623329).The goods price are place bellow thanks for you inquiry. Best regard allan femi mp3 player Mp3 Player Price List iRiver IFP-790T MP3 Player = $80 H10 6GB MP3 Player = $120 Sonic Impact Technologies 512MB MP3 Player w/ Flash Drive & Voice = $85 iriver H10 5GB MP3 Player, Gray = $110 YP-MT6X Yepp 512MB Portable Compact Digital Music MP3 Player = $70 Zen Micro 5 GB MP3 Player - Dark Blue [ Creative Labs = $100 iRiver 5 GB MP3 Player (Silver) = $110 Creative Labs NOMAD Jukebox Zen Xtra 30 GB MP3 Player = $90 Sony MZ-NH600D 1GB MP3 Player Hi-MD Walkman Digital Music Player = $90 Network Walkman NW-HD1 20GB MP3 Player = $150 Cowon iAudio X5 20GB MP3 Player = $110 Digital Audio Players from Motorola: Audio MP3 Players, Digital = $70 Gigabeat Meg-F60S 60GB MP3 Player - Gray = $155 Sony 1GB Personal MP3 Player, Network Walkman = $100 Creative Zen Micro 6GB MP3 Player (red) = $125 laptops SONY VAIO A217S-- 100GB-- 512MB RAM-- XP HOME-$300 SONY VAIO B1VP-- 40GB HD-- 512MB RAM-- XP PRO--$330 SONY VAIO T370P/L-- 60GB HD-- 512MB RAM-- XP$200 SONY VAIO A215Z 60GB HD-- 512MB RAM-- XP--$2450 SONY VAIO A397XP-- 80GB HD-- 512MB RAM-- XP$300 SONY VAIO B100B08 60GB HD-- 512MB RAM-- XP---$250 SONY VAIO B100B08 60GB HD-- 512MB RAM-- XP---$400 SONY VAIO FS295VP 80GB HD-- 512MB RAM-- XP---$350 SONY VAIO FS215Z 100GB HD-- 512MB RAM-- XP---$350 SONY VAIO A417M 80GB HD-- 512MB RAM-- XP-$450 SONY VAIO B1VP-- 40GB HD-- 512MB RAM-- XP PRO-$200 SONY VAIO T370P/L-- 60GB HD-- 512MB RAM-- XP PRO--$400 SONY VAIO LAPTOP-- VGN-A117S---$400 phones Nokia N91 220$ Nokia 6060 145$ Nokia 6111 132$ Nokia 6270 125$ Nokia 6270 115$ Nokia 6280 125$ Nokia N90 115$ Nokia N70 115$ Nokia Vertu 155$ Nokia 5140i 125$ Nokia 6230i 115$ Nokia 8800 105$ Nokia 6021 105$ Nokia 6030 115$ Nokia 6680 125$ Nokia 6681 120$ Nokia 6101 110$ Nokia 6822 110$ Nokia 7710 110$ Nokia 6170 145$ Nokia 6260 145$ Nokia 3510i 95$ Nokia 6630 120$ Nokia 9300 110$ Nokia 7260 120$ Nokia 7270 110$ Nokia 7280 120$ Nokia 6670 110$ Nokia 6020 120$ Nokia 3220 65$ Nokia N-GAGE QD 75$ Nokia 7610 120$ Nokia 9500 145$ Nokia 5140 85$ Nokia 6610i 120$ Nokia 7200 133$ Nokia 6230 145$ Nokia 6820 120$ Nokia 7600 105$ Nokia 6600 120$ Nokia 6800 105$ Nokia 6220 120$ Nokia 6620 120$ Nokia 7250i 65$ Nokia 8910i 120$ Nokia 6100 95$ SAMSUNG D600 155$ SAMSUNG P860 165$ SAMSUNG P850 sidekick 1 $110 sidekick 2 $100 Sony Ericsson K500i.130 USD Sony Ericsson P800..200 USD Sony Ericsson P900..260 USD Sony Ericsson P910i.270 USD Sony Ericsson T230..80 USD Sony Ericsson T310..80 USD Sony Ericsson T610..100 USD Sony Ericsson Z1010.180 USD Sony Ericsson Z200..90 USD Sony Ericsson Z600..130 USD Sony Ericssson T630.130 USD Sony Ericsson S700i.170 USD Sony Ericsson S750i.170 USD 9806LL/A) MP3 Player = USD$110 Motorola A388C..170 USD Motorola A760...250 USD Motorola A768...260 USD Motorola A768i..200 USD Motorola A780...290 USD Motorola C550...90 USD Motorola C650...100 USD Motorola E365...100 USD Motorola E398...120 USD Motorola E680...240 USD Motorola RAZR V3270 USD Motorola V220...170 USD Motorola V303...100 USD Motorola V400...150 USD Motorola V500...150 USD Motorola V501...200 USD Motorola V525...150 USD Motorola V600 (OEM) w/ Bluetooth Headset..260 USD Motorola V600 OEM...180 USD Motorola V690.170 USD Motorola V750.180 USD Motorola V80..200 USD Motorola V80 with Bluetooth...260 USD Motorola V872.200 USD Motorola V878180 USD Motorola V300150 USD Samsung D500...240 USD Samsung E600...140 USD Samsung E800...180 USD Samsung P510...120 USD Samsung SGH-D410.200 USD Samsung SGH-D500..270 USD Samsung SGH-E700..150 USD Samsung SGH-E715..170 USD Samsung SGH-P100..130 USD Samsung SGH-P400..95 USD Samsung SGH-P408..240 USD Samsung SGH-P730..150 USD Samsung SGH-S200..90 USD Samsung SGH-S300..70 USD Samsung SGH-S300M..100 USD Samsung SGH-S500...100 USD Samsung SGH-V200...110 USD Samsung SGH-X400...100 USD Samsung SGH-X430...100 USD Samsung SGH-X600...100 USD Samsung X450...100 USD ipods Apple iPod from hp 40GB = USD$150 Apple iPod from HP 20GB = USD$120 Apple iPod U2
#36918 [Opn->Fbk]: stream_set_blocking doesn't work
ID: 36918 Updated by: [EMAIL PROTECTED] Reported By: brud5_99 at yahoo dot com -Status: Open +Status: Feedback Bug Type: Streams related Operating System: linux (gentoo) PHP Version: 5.1.2 New Comment: 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 That's exactly what I get: lots of "keep looping" and notices. Previous Comments: [2006-03-30 00:30:21] brud5_99 at yahoo dot com Description: stream_set_blocking seems to get ignored. There are no errors or warnings, but the socket behaves as if it was set to blocking. The same code works as expected with php 5.0.1 on a FreeBsd box, but not with 5.1.2 under gentoo linux. The piece of code sample included is all that's needed to see the problem. Php is configured as stand-alone, not as an apache module. Thanks a lot for any help you can provide! bernie ./configure --without-pear --without-apache --with-sockets --enable-sockets --with-mysql-sock=/tmp/mysql.sock --with- mysql=/usr/local/mysql --with-mysqli=/usr/local/mysql/bin/ mysql_config --enable-pcntl --enable-pcntl --enable-sysvshm --enable-sysvsem --enable-sigchild --with-config-file-path=/ usr/local/phpForCgi/conf --prefix=/usr/local/phpForCgi -- sysconfdir=/usr/local/phpForCgi/conf Reproduce code: --- Expected result: It should echo "keep looping" if there is no input Actual result: -- It keeps echoing "keep looping" until a connection is made. After input was received (made a telnet connection to port 7000 and sent some text thru), the trace stops at "loop1". Only about every 30sec(or so) it does a complete loop. I think that is after fread() times out intenally. Also, if the connction is closed, it keeps looping thru "keep looping" again. -- Edit this bug report at http://bugs.php.net/?id=36918&edit=1
#36919 [Opn->Asn]: Strange MySQLi Behaviour
ID: 36919 Updated by: [EMAIL PROTECTED] Reported By: antimon at gmail dot com -Status: Open +Status: Assigned Bug Type: MySQLi related Operating System: Win32 PHP Version: 5.1.2 -Assigned To: +Assigned To: georg Previous Comments: [2006-03-30 10:59:59] antimon at gmail dot com Tried latest win32 snapshot. Same results. BTW, store_result() call crashes on TEXT fields i think. Not sure. [2006-03-30 10:22:47] [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-03-30 02:00:32] antimon at gmail dot com Description: Hi, I use apache 2.0.55 with php 5.1.2. And this is my simple php source: $m = mysqli_connect("localhost", "root", "253263", "dictsite"); $st = $m->prepare($sql); $p = "page ismi"; $st->bind_param("s", $p); $st->execute(); $st->bind_result($c1, $c2, $c3, $c4, $c5); while ($st->fetch()) { print_r($c1); } This runs ok. But if i add $sp->store_result(); after execute call, it causes apache to restart itself noting this: "[Thu Mar 30 02:53:15 2006] [notice] Parent: child process exited with status 0 -- Restarting." One other issue is the known multiple recordsets returned from stored procedure queries. So, i used the latest libmysql from mysql distro, it did not even pushed any variables to bind_result parameters. And i used mysqli and libmysql from "http://dev.mysql.com/downloads/connector/php/"; and eveything works fine. (http://bugs.mysql.com/bug.php?id=14993 is fixed too) -- Edit this bug report at http://bugs.php.net/?id=36919&edit=1
#36919 [Fbk->Opn]: Strange MySQLi Behaviour
ID: 36919 User updated by: antimon at gmail dot com Reported By: antimon at gmail dot com -Status: Feedback +Status: Open Bug Type: MySQLi related Operating System: Win32 PHP Version: 5.1.2 New Comment: Tried latest win32 snapshot. Same results. BTW, store_result() call crashes on TEXT fields i think. Not sure. Previous Comments: [2006-03-30 10:22:47] [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-03-30 02:00:32] antimon at gmail dot com Description: Hi, I use apache 2.0.55 with php 5.1.2. And this is my simple php source: $m = mysqli_connect("localhost", "root", "253263", "dictsite"); $st = $m->prepare($sql); $p = "page ismi"; $st->bind_param("s", $p); $st->execute(); $st->bind_result($c1, $c2, $c3, $c4, $c5); while ($st->fetch()) { print_r($c1); } This runs ok. But if i add $sp->store_result(); after execute call, it causes apache to restart itself noting this: "[Thu Mar 30 02:53:15 2006] [notice] Parent: child process exited with status 0 -- Restarting." One other issue is the known multiple recordsets returned from stored procedure queries. So, i used the latest libmysql from mysql distro, it did not even pushed any variables to bind_result parameters. And i used mysqli and libmysql from "http://dev.mysql.com/downloads/connector/php/"; and eveything works fine. (http://bugs.mysql.com/bug.php?id=14993 is fixed too) -- Edit this bug report at http://bugs.php.net/?id=36919&edit=1
#36920 [Opn->Fbk]: Segmentation fault on echo/print
ID: 36920 Updated by: [EMAIL PROTECTED] Reported By: ttmails at web dot de -Status: Open +Status: Feedback Bug Type: Reproducible crash Operating System: Linux/Gentoo 2.6.15-r7 PHP Version: 5.1.2 New Comment: 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 Previous Comments: [2006-03-30 10:51:10] ttmails at web dot de Description: hi! i have a problem with php-cgi segfaulting when calling an url. i am running apache2. this whole script is too big to paste it here and it consists of a lot of classes. i have a protected function, i wanted to add some debug code and apache said that the childs died. so php segfaulted. when i do an "echo" or "print" it segfaults. but not if i do a "printf"... sounds very confusing hope you can help! thanks in advance, tim Actual result: -- # normal debug (gdb) run -X -D PHP5 Starting program: /usr/sbin/apache2 -X -D PHP5 (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) [Thread debugging using libthread_db enabled] [New Thread 16384 (LWP 10992)] [Thu Mar 30 10:41:22 2006] [warn] NameVirtualHost *:80 has no VirtualHosts Program received signal SIGSEGV, Segmentation fault. [Switching to Thread 16384 (LWP 10992)] 0xb77c9b38 in zend_print_zval_r_ex () from /usr/lib/apache2/modules/libphp5.so # backtrace (gdb) bt #0 0xb77c9b38 in zend_print_zval_r_ex () from /usr/lib/apache2/modules/libphp5.so #1 0xb79be611 in php_tiff_bytes_per_format () from /usr/lib/apache2/modules/libphp5.so #2 0x0006 in ?? () #3 0x08218a08 in ?? () #4 0x082c07cc in ?? () #5 0xbf87d0ec in ?? () #6 0xbf87d2d0 in ?? () #7 0x08287b1c in ?? () #8 0xb77cbcbd in zend_parse_parameters () from /usr/lib/apache2/modules/libphp5.so #9 0x0001 in ?? () #10 0x082c07cc in ?? () #11 0xbf87d0ec in ?? () #12 0xb77c9a10 in zend_print_zval_r () from /usr/lib/apache2/modules/libphp5.so #13 0xb7790ab0 in php_request_shutdown () from /usr/lib/apache2/modules/libphp5.so #14 0x082c069c in ?? () #15 0x in ?? () -- Edit this bug report at http://bugs.php.net/?id=36920&edit=1
#36921 [NEW]: ob_start("gz_handler");
From: caio53 at gmail dot com Operating system: Windows, Linux PHP version: 5.1.2 PHP Bug Type: Output Control Bug description: ob_start("gz_handler"); Description: ob_clean(); doesn't work when I use ob_start("gz_handler"); Reproduce code: --- Expected result: more content Actual result: -- content Notice: ob_clean() [ref.outcontrol]: failed to delete buffer. No buffer to delete. in D:\neatcode\test.php on line 6 more content -- Edit bug report at http://bugs.php.net/?id=36921&edit=1 -- Try a CVS snapshot (PHP 4.4): http://bugs.php.net/fix.php?id=36921&r=trysnapshot44 Try a CVS snapshot (PHP 5.1): http://bugs.php.net/fix.php?id=36921&r=trysnapshot51 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=36921&r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=36921&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=36921&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=36921&r=needtrace Need Reproduce Script:http://bugs.php.net/fix.php?id=36921&r=needscript Try newer version:http://bugs.php.net/fix.php?id=36921&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=36921&r=support Expected behavior:http://bugs.php.net/fix.php?id=36921&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=36921&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=36921&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=36921&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=36921&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=36921&r=dst IIS Stability:http://bugs.php.net/fix.php?id=36921&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=36921&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=36921&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=36921&r=nozend MySQL Configuration Error:http://bugs.php.net/fix.php?id=36921&r=mysqlcfg
#36920 [NEW]: Segmentation fault on echo/print
From: ttmails at web dot de Operating system: Linux/Gentoo 2.6.15-r7 PHP version: 5.1.2 PHP Bug Type: Reproducible crash Bug description: Segmentation fault on echo/print Description: hi! i have a problem with php-cgi segfaulting when calling an url. i am running apache2. this whole script is too big to paste it here and it consists of a lot of classes. i have a protected function, i wanted to add some debug code and apache said that the childs died. so php segfaulted. when i do an "echo" or "print" it segfaults. but not if i do a "printf"... sounds very confusing hope you can help! thanks in advance, tim Actual result: -- # normal debug (gdb) run -X -D PHP5 Starting program: /usr/sbin/apache2 -X -D PHP5 (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) [Thread debugging using libthread_db enabled] [New Thread 16384 (LWP 10992)] [Thu Mar 30 10:41:22 2006] [warn] NameVirtualHost *:80 has no VirtualHosts Program received signal SIGSEGV, Segmentation fault. [Switching to Thread 16384 (LWP 10992)] 0xb77c9b38 in zend_print_zval_r_ex () from /usr/lib/apache2/modules/libphp5.so # backtrace (gdb) bt #0 0xb77c9b38 in zend_print_zval_r_ex () from /usr/lib/apache2/modules/libphp5.so #1 0xb79be611 in php_tiff_bytes_per_format () from /usr/lib/apache2/modules/libphp5.so #2 0x0006 in ?? () #3 0x08218a08 in ?? () #4 0x082c07cc in ?? () #5 0xbf87d0ec in ?? () #6 0xbf87d2d0 in ?? () #7 0x08287b1c in ?? () #8 0xb77cbcbd in zend_parse_parameters () from /usr/lib/apache2/modules/libphp5.so #9 0x0001 in ?? () #10 0x082c07cc in ?? () #11 0xbf87d0ec in ?? () #12 0xb77c9a10 in zend_print_zval_r () from /usr/lib/apache2/modules/libphp5.so #13 0xb7790ab0 in php_request_shutdown () from /usr/lib/apache2/modules/libphp5.so #14 0x082c069c in ?? () #15 0x in ?? () -- Edit bug report at http://bugs.php.net/?id=36920&edit=1 -- Try a CVS snapshot (PHP 4.4): http://bugs.php.net/fix.php?id=36920&r=trysnapshot44 Try a CVS snapshot (PHP 5.1): http://bugs.php.net/fix.php?id=36920&r=trysnapshot51 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=36920&r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=36920&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=36920&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=36920&r=needtrace Need Reproduce Script:http://bugs.php.net/fix.php?id=36920&r=needscript Try newer version:http://bugs.php.net/fix.php?id=36920&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=36920&r=support Expected behavior:http://bugs.php.net/fix.php?id=36920&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=36920&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=36920&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=36920&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=36920&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=36920&r=dst IIS Stability:http://bugs.php.net/fix.php?id=36920&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=36920&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=36920&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=36920&r=nozend MySQL Configuration Error:http://bugs.php.net/fix.php?id=36920&r=mysqlcfg
#36915 [Opn->Bgs]: PHP Warning: mime_magic: type regex invalid in Unknown
ID: 36915 Updated by: [EMAIL PROTECTED] Reported By: amos at treenetnz dot com -Status: Open +Status: Bogus Bug Type: Unknown/Other Function Operating System: Debian Linux PHP Version: 4.4.2 New Comment: Please report this problem to Debian package maintainers. Previous Comments: [2006-03-30 06:27:11] amos at treenetnz dot com I am not aware what the configure line was. This is for the pre-built Debian package install via the apt-get package system. [2006-03-29 17:20:02] [EMAIL PROTECTED] What was your configure line? [2006-03-29 17:00:20] amos at treenetnz dot com Description: PHP Logs a warning on startup from command line. --- LOG Extract --- PHP Warning: mime_magic: type regex BEGIN[[:space:]]*[{] application/x-awk invalid in Unknown on line 0 End --- This has only appeared in recent upgrade to PHP 4.4.2-1+b1 (cli) (built: Mar 20 2006 03:48:19) Reproduce code: --- #!/usr/bin/php -q -- Edit this bug report at http://bugs.php.net/?id=36915&edit=1
#36919 [Opn->Fbk]: Strange MySQLi Behaviour
ID: 36919 Updated by: [EMAIL PROTECTED] Reported By: antimon at gmail dot com -Status: Open +Status: Feedback Bug Type: MySQLi related Operating System: Win32 PHP Version: 5.1.2 New Comment: 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 Previous Comments: [2006-03-30 02:00:32] antimon at gmail dot com Description: Hi, I use apache 2.0.55 with php 5.1.2. And this is my simple php source: $m = mysqli_connect("localhost", "root", "253263", "dictsite"); $st = $m->prepare($sql); $p = "page ismi"; $st->bind_param("s", $p); $st->execute(); $st->bind_result($c1, $c2, $c3, $c4, $c5); while ($st->fetch()) { print_r($c1); } This runs ok. But if i add $sp->store_result(); after execute call, it causes apache to restart itself noting this: "[Thu Mar 30 02:53:15 2006] [notice] Parent: child process exited with status 0 -- Restarting." One other issue is the known multiple recordsets returned from stored procedure queries. So, i used the latest libmysql from mysql distro, it did not even pushed any variables to bind_result parameters. And i used mysqli and libmysql from "http://dev.mysql.com/downloads/connector/php/"; and eveything works fine. (http://bugs.mysql.com/bug.php?id=14993 is fixed too) -- Edit this bug report at http://bugs.php.net/?id=36919&edit=1