#25049 [NEW]: mysql functions don't exist
From: jmichae3 at yahoo dot com Operating system: Windows 95b PHP version: 5.0.0b1 (beta1) PHP Bug Type: MySQL related Bug description: mysql functions don't exist Description: mysql functions don't exist. -- Edit bug report at http://bugs.php.net/?id=25049&edit=1 -- Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=25049&r=trysnapshot4 Try a CVS snapshot (php5): http://bugs.php.net/fix.php?id=25049&r=trysnapshot5 Fixed in CVS: http://bugs.php.net/fix.php?id=25049&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=25049&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=25049&r=needtrace Try newer version: http://bugs.php.net/fix.php?id=25049&r=oldversion Not developer issue:http://bugs.php.net/fix.php?id=25049&r=support Expected behavior: http://bugs.php.net/fix.php?id=25049&r=notwrong Not enough info:http://bugs.php.net/fix.php?id=25049&r=notenoughinfo Submitted twice:http://bugs.php.net/fix.php?id=25049&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=25049&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=25049&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=25049&r=dst IIS Stability: http://bugs.php.net/fix.php?id=25049&r=isapi Install GNU Sed:http://bugs.php.net/fix.php?id=25049&r=gnused
#29006 [NEW]: Cannot remove module mod_php4.c: not found in module list
From: jmichae3 at yahoo dot com Operating system: Windows 95b PHP version: 4.3.7 PHP Bug Type: Apache related Bug description: Cannot remove module mod_php4.c: not found in module list Description: I get this on 4.3.3 and 4.3.7. 5.0rc3 gives me a different error. Using apache 1.3.31 and 2.0.49. default php.ini. Apache sends me my schedule.php file as a download (to open or save to disk). Inserted into httpd.conf the following, as per install.txt: LoadModule php4_module c:/php4.3.3/sapi/php4apache.dll # AddModule mod_php4.c AddType application/x-httpd-php .php (Apache complains about adding the module twice if I uncomment the middle line - still doesn't load the module) CGI configuration doesn't work. Expected result: I expected to see the PHP version text along with the apache version text. Actual result: -- C:\Program Files\Apache Group\Apache\logs>..\apache [Sat Jul 03 19:17:30 2004] [warn] (2)No such file or directory: exec() may not be safe Apache/1.3.31 (Win32) running... [break] C:\Program Files\Apache Group\Apache\logs>type error.log [Sat Jul 03 19:17:30 2004] [error] Cannot remove module mod_php4.c: not found in module list [Sat Jul 03 19:17:31 2004] [warn] exec() may not be safe [Sat Jul 03 19:17:31 2004] [warn] exec() may not be safe [Sat Jul 03 19:17:31 2004] [warn] exec() may not be safe [Sat Jul 03 19:17:32 2004] [warn] exec() may not be safe [Sat Jul 03 19:17:39 2004] [error] Cannot remove module mod_php4.c: not found in module list [Sat Jul 03 19:17:39 2004] [error] Cannot remove module mod_php4.c: not found in module list -- Edit bug report at http://bugs.php.net/?id=29006&edit=1 -- Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=29006&r=trysnapshot4 Try a CVS snapshot (php5): http://bugs.php.net/fix.php?id=29006&r=trysnapshot5 Fixed in CVS: http://bugs.php.net/fix.php?id=29006&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=29006&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=29006&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=29006&r=needscript Try newer version: http://bugs.php.net/fix.php?id=29006&r=oldversion Not developer issue:http://bugs.php.net/fix.php?id=29006&r=support Expected behavior: http://bugs.php.net/fix.php?id=29006&r=notwrong Not enough info:http://bugs.php.net/fix.php?id=29006&r=notenoughinfo Submitted twice:http://bugs.php.net/fix.php?id=29006&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=29006&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=29006&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=29006&r=dst IIS Stability: http://bugs.php.net/fix.php?id=29006&r=isapi Install GNU Sed:http://bugs.php.net/fix.php?id=29006&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=29006&r=float
#29438 [NEW]: files missing from src tarball
From: jmichae3 at yahoo dot com Operating system: win32 PHP version: 4.3.8 PHP Bug Type: *General Issues Bug description: files missing from src tarball Description: arpa/ directory isn't included in the source distribution tarball. This prevents VC++ compilation of things like arpa/inet.h, which is required by nearly everything. No documentation is included with the source dist that explains how to build the project (it doesn't compile out-of-the-box), or where to obtain the required extra libraries (such as zlib). fastcgi project is missing in v5.0.0 zend project isn't found properly in v5.0.0 Actual result: -- I also get the following errors trying to compile the project: c:\prj\php-4.3.8\ext\bz2\php_bz2.h(28) : fatal error C1083: Cannot open include file: 'bzlib.h': No such file or directory c:\prj\php-4.3.8\main\php_network.h(28) : fatal error C1083: Cannot open include file: 'arpa/inet.h': No such file or directory C:\prj\php-4.3.8\ext\curl\curl.c(40) : fatal error C1083: Cannot open include file: 'curl/curl.h': No such file or directory LINK : fatal error LNK1104: cannot open file "php4ts_debug.lib" c:\prj\php-4.3.8\ext\dba\dba_db3.c(35) : fatal error C1083: Cannot open include file: 'db.h': No such file or directory c:\prj\php-4.3.8\main\php_network.h(28) : fatal error C1083: Cannot open include file: 'arpa/inet.h': No such file or directory c:\prj\php-4.3.8\ext\domxml\php_domxml.h(25) : fatal error C1083: Cannot open include file: 'libxml/parser.h': No such file or directory C:\prj\php-4.3.8\ext\dotnet\dotnet.cpp(46) : fatal error C1083: Cannot open include file: 'Mscoree.h': No such file or directory C:\prj\php-4.3.8\ext\fbsql\php_fbsql.h(35) : fatal error C1083: Cannot open include file: 'FBCAccess/FBCAccess.h': No such file or directory c:\prj\php-4.3.8\ext\fdf\php_fdf.h(33) : fatal error C1083: Cannot open include file: 'FdfTk.h': No such file or directory c:\prj\php-4.3.8\ext\gd\libgd\gd_gd2.c(21) : fatal error C1083: Cannot open include file: 'zlib.h': No such file or directory c:\prj\php-4.3.8\ext\gd\libgd\gd_jpeg.c(42) : fatal error C1083: Cannot open include file: 'jpeglib.h': No such file or directory c:\prj\php-4.3.8\ext\gd\libgd\gd_png.c(10) : fatal error C1083: Cannot open include file: 'png.h': No such file or directory c:\prj\php-4.3.8\ext\gd\libgd\gdft.c(63) : fatal error C1083: Cannot open include file: 'ft2build.h': No such file or directory c:\prj\php-4.3.8\ext\gettext\gettext.c(30) : fatal error C1083: Cannot open include file: 'libintl.h': No such file or directory c:\prj\php-4.3.8\main\php_network.h(28) : fatal error C1083: Cannot open include file: 'arpa/inet.h': No such file or directory c:\prj\php-4.3.8\ext\iconv\iconv.c(42) : fatal error C1083: Cannot open include file: 'iconv.h': No such file or directory fatal error C1083: Cannot open source file: 'C:\prj\php-4.3.8\ext\informix\ifx.c': No such file or directory C:\prj\php-4.3.8\ext\imap\php_imap.h(39) : fatal error C1083: Cannot open include file: 'c-client.h': No such file or directory c:\prj\php-4.3.8\ext\ingres_ii\ii.h(29) : fatal error C1083: Cannot open include file: 'iiapi.h': No such file or directory ..\..\main\php_network.h(28) : fatal error C1083: Cannot open include file: 'arpa/inet.h': No such file or directory c:\prj\php-4.3.8\ext\ldap\php_ldap.h(27) : fatal error C1083: Cannot open include file: 'lber.h': No such file or directory C:\prj\php-4.3.8\ext\mcrypt\mcrypt.c(34) : fatal error C1083: Cannot open include file: 'mcrypt.h': No such file or directory c:\prj\php-4.3.8\main\php_network.h(28) : fatal error C1083: Cannot open include file: 'arpa/inet.h': No such file or directory c:\prj\php-4.3.8\main\php_network.h(28) : fatal error C1083: Cannot open include file: 'arpa/inet.h': No such file or directory C:\prj\php-4.3.8\ext\notes\php_notes.c(29) : fatal error C1083: Cannot open include file: 'php.h': No such file or directory c:\prj\php-4.3.8\ext\oci8\php_oci8.h(52) : fatal error C1083: Cannot open include file: 'oci.h': No such file or directory c:\prj\php-4.3.8\ext\openssl\php_openssl.h(82) : fatal error C1083: Cannot open include file: 'openssl/ssl.h': No such file or directory C:\prj\php-4.3.8\ext\oracle\php_oracle.h(22) : fatal error C1083: Cannot open include file: 'oratypes.h': No such file or directory c:\prj\php-4.3.8\ext\pdf\php_pdf.h(26) : fatal error C1083: Cannot open include file: 'pdflib.h': No such file or directory C:\prj\php-4.3.8\ext\snmp\snmp.c(85) : fatal error C1083: Cannot open include file: 'asn1.h': No such file or directory C:\prj\php-4.3.8\ext\sybase_ct\php_sybase_ct.h(62) : fatal error C1083: Cannot open i
Req #45080 [Com]: PDOStatement - Mysql Driver - rowCount
Edit report at https://bugs.php.net/bug.php?id=45080&edit=1 ID: 45080 Comment by: jmichae3 at yahoo dot com Reported by:paul dot cocei at gmail dot com Summary:PDOStatement - Mysql Driver - rowCount Status: Not a bug Type: Feature/Change Request Package:Feature/Change Request Operating System: CentOS 5.1 PHP Version:5.2.6 Block user comment: N Private report: N New Comment: I am having this problem too, and so are other people on the net. getting 0 always from rowCount() on SELECT. Previous Comments: [2008-08-20 22:46:30] ka...@php.net This is expected behavior, the manual also says that the rowCount will return affected rows. [2008-05-23 13:10:24] paul dot cocei at gmail dot com Description: Because libmysql contains a method named mysql_stmt_num_rows, it is possible in the mysql PDO driver to return correctly the total count of rows selected by a SELECT statement. Right now, the source code for mysql PDOStatement uses mysql_stmt_affected_rows, which evidentely returns "0" for SELECT queries. Localization: php-5.2.6/ext/pdo_mysql.c, line 202. Reproduce code: --- row_count = mysql_stmt_affected_rows(S->stmt); -- Edit this bug report at https://bugs.php.net/bug.php?id=45080&edit=1
Req #45080 [Com]: PDOStatement - Mysql Driver - rowCount
Edit report at https://bugs.php.net/bug.php?id=45080&edit=1 ID: 45080 Comment by: jmichae3 at yahoo dot com Reported by:paul dot cocei at gmail dot com Summary:PDOStatement - Mysql Driver - rowCount Status: Not a bug Type: Feature/Change Request Package:Feature/Change Request Operating System: CentOS 5.1 PHP Version:5.2.6 Block user comment: N Private report: N New Comment: since it's not defined in the manual, to me, "affected rows" simply means the rows in question. are you speaking of UPDATE and DELETE? please put in better documentation on this function that explains the definition of "affected rows", thanks. if rowCount doesn't always return the row count, what are we supposed to use to get the row count? Previous Comments: ---- [2013-08-22 01:17:08] jmichae3 at yahoo dot com I am having this problem too, and so are other people on the net. getting 0 always from rowCount() on SELECT. [2008-08-20 22:46:30] ka...@php.net This is expected behavior, the manual also says that the rowCount will return affected rows. [2008-05-23 13:10:24] paul dot cocei at gmail dot com Description: Because libmysql contains a method named mysql_stmt_num_rows, it is possible in the mysql PDO driver to return correctly the total count of rows selected by a SELECT statement. Right now, the source code for mysql PDOStatement uses mysql_stmt_affected_rows, which evidentely returns "0" for SELECT queries. Localization: php-5.2.6/ext/pdo_mysql.c, line 202. Reproduce code: --- row_count = mysql_stmt_affected_rows(S->stmt); -- Edit this bug report at https://bugs.php.net/bug.php?id=45080&edit=1
Bug #21696 [Com]: Checkbox is strange in POST event
Edit report at https://bugs.php.net/bug.php?id=21696&edit=1 ID: 21696 Comment by: jmichae3 at yahoo dot com Reported by:ivanpisa at dfm dot ffclrp dot usp dot br Summary:Checkbox is strange in POST event Status: No Feedback Type: Bug Package:*General Issues Operating System: Windows 2000 PHP Version:4.3.0 Block user comment: N Private report: N New Comment: browser, client side only gives the same results (somename=on for checked, nonexistent for unchecked), even if using DHTML to access the control's arguments from GET (examine the URL) in chrome, IE10, opera, safari (ff buggy, checkboxes don't work for GET in ff23, submitted bug report). my test case is my DHTML code which uses submit to .html file http://JesusnJim.com/calculators/finances/calculator-with-estimator-to-save-up-for-item.html try with and without checkbox checked. I put in a w3c bug report to this effect for a change to have consistency of operation. something may or may not change in HTML5. Previous Comments: [2009-05-19 04:25:40] mj at ungesundleben dot org Same problem with PHP 5.1.4, Windows XP and Xampp 1.5.3a. The problem is especially: How to create a CSV file from post data without explicitely handling checkbox fields by their names if some checkbox fields "vanish"? You will get an unusable CSV file, because the order of the fields gets mismatched. Workaround: Inside the form, create checkboxes, which always are checked, but hidden for the user (using CSS), like this: Within a loop foreach ($_POST as $key=>$value) through the post data, you then can do sth. like this: if (strpos($key,"_chk")) { if (isset($_POST[$key][1])) {$v='TRUE';} else {$v='FALSE';}; } Regards, Maike [2008-09-21 11:12:33] jeff at powerupmobile dot com Same problem with me: Solaris 10 PHP 5.2.5 Apache 2.2.8 Seems like a simple problem to me, PHP doesn't seem to recognise when a form checkbox is submitted with no value. I guess there are several ways to work around it but would be nice if it recognised it like it recognises and empty text field. [2003-01-31 13:50:10] sni...@php.net No feedback was provided. The bug is being suspended because we assume that you are no longer experiencing the problem. If this is not the case and you are able to provide the information that was requested earlier, please do so and change the status of the bug back to "Open". Thank you. [2003-01-17 20:17:34] sni...@php.net If you're really using Apache2, consider moving to Apache 1.3.27 which actually works. [2003-01-17 09:10:07] hholz...@php.net are you sure that your error_reporting settings are really the same on both boxes? (pleas check in phpinfo() output) the message you see is only produced if E_NOTICE reporting is enabled ... 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 https://bugs.php.net/bug.php?id=21696 -- Edit this bug report at https://bugs.php.net/bug.php?id=21696&edit=1
[PHP-BUG] Bug #61424 [NEW]: 8 dll error messages during start of win php
From: Operating system: XP Pro SP3 32-bit PHP version: 5.4.0 Package: Dynamic loading Bug Type: Bug Bug description:8 dll error messages during start of win php Description: I just ran "php" and I get 8 errors: php.ini looks to be configured correctly. this has been happening for several versions such as 5.3.10. Test script: --- php Expected result: php to load with no errors and wait for code on stdin. Actual result: -- php.exe: unable to locate component: the application has failed to start because OCI.dll was not found. Re-installing the application may fix the problem. warning:php startup: unable to load dynamic library 'c:\php-5.4.0\ext\php_oci8.dll' php.exe: unable to locate component: the application has failed to start because OCI.dll was not found. Re-installing the application may fix the problem. warning:php startup: unable to load dynamic library 'c:\php-5.4.0\ext\php_oci8_11g.dll' php.exe: unable to locate component: the application has failed to start because fbclient.dll was not found. Re-installing the application may fix the problem. warning:php startup: unable to load dynamic library 'c:\php-5.4.0\ext\php_pdo_firebird.dll' warning:php startup: unable to load dynamic library 'c:\php-5.4.0\ext\php_sqlite.dll' warning:php startup: unable to load dynamic library 'c:\php-5.4.0\ext\php_zip.dll' -- Edit bug report at https://bugs.php.net/bug.php?id=61424&edit=1 -- Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=61424&r=trysnapshot54 Try a snapshot (PHP 5.3): https://bugs.php.net/fix.php?id=61424&r=trysnapshot53 Try a snapshot (trunk): https://bugs.php.net/fix.php?id=61424&r=trysnapshottrunk Fixed in SVN: https://bugs.php.net/fix.php?id=61424&r=fixed Fixed in SVN and need be documented: https://bugs.php.net/fix.php?id=61424&r=needdocs Fixed in release: https://bugs.php.net/fix.php?id=61424&r=alreadyfixed Need backtrace: https://bugs.php.net/fix.php?id=61424&r=needtrace Need Reproduce Script: https://bugs.php.net/fix.php?id=61424&r=needscript Try newer version: https://bugs.php.net/fix.php?id=61424&r=oldversion Not developer issue: https://bugs.php.net/fix.php?id=61424&r=support Expected behavior: https://bugs.php.net/fix.php?id=61424&r=notwrong Not enough info: https://bugs.php.net/fix.php?id=61424&r=notenoughinfo Submitted twice: https://bugs.php.net/fix.php?id=61424&r=submittedtwice register_globals: https://bugs.php.net/fix.php?id=61424&r=globals PHP 4 support discontinued: https://bugs.php.net/fix.php?id=61424&r=php4 Daylight Savings:https://bugs.php.net/fix.php?id=61424&r=dst IIS Stability: https://bugs.php.net/fix.php?id=61424&r=isapi Install GNU Sed: https://bugs.php.net/fix.php?id=61424&r=gnused Floating point limitations: https://bugs.php.net/fix.php?id=61424&r=float No Zend Extensions: https://bugs.php.net/fix.php?id=61424&r=nozend MySQL Configuration Error: https://bugs.php.net/fix.php?id=61424&r=mysqlcfg
Bug #61424 [Opn]: 8 dll error messages during start of win php
Edit report at https://bugs.php.net/bug.php?id=61424&edit=1 ID: 61424 User updated by:jmichae3 at yahoo dot com Reported by:jmichae3 at yahoo dot com Summary:8 dll error messages during start of win php Status: Open Type: Bug Package:Dynamic loading Operating System: XP Pro SP3 32-bit PHP Version:5.4.0 Block user comment: N Private report: N New Comment: I am using developer ini with all error messages turned on, and the extensions I have enabled are everything in the ext directory except snmp. I just added SNMP and I got this dialog 19 times: Windows - No Disk: Exception Processing Message c013 Parameters 75b6bf7c 4 75b6bf7c 75b6bf7c I also get the following errors from php (this includes the stuff with E_ALL turned on): Fri 03/16/2012 20:54:37.67|C:\Documents and Settings\Jim Michaels|>php PHP Warning: PHP Startup: Unable to load dynamic library 'c:/php-5.4.0/ext/php_oci8.dll' - The specified module could not be found. in Unknown on line 0 Warning: PHP Startup: Unable to load dynamic library 'c:/php-5.4.0/ext/php_oci8.dll' - The specified module could not be found. in Unknown on line 0 PHP Warning: PHP Startup: Unable to load dynamic library 'c:/php-5.4.0/ext/php_oci8_11g.dll' - The specified module could not be fo und. in Unknown on line 0 Warning: PHP Startup: Unable to load dynamic library 'c:/php-5.4.0/ext/php_oci8_11g.dll' - The specified module could not be found. in Unknown on line 0 PHP Warning: PHP Startup: Unable to load dynamic library 'c:/php-5.4.0/ext/php_pdo_firebird.dll' - The specified module could not b e found. in Unknown on line 0 Warning: PHP Startup: Unable to load dynamic library 'c:/php-5.4.0/ext/php_pdo_firebird.dll' - The specified module could not be fou nd. in Unknown on line 0 PHP Warning: PHP Startup: Unable to load dynamic library 'c:/php-5.4.0/ext/php_sqlite.dll' - The specified module could not be foun d. in Unknown on line 0 Warning: PHP Startup: Unable to load dynamic library 'c:/php-5.4.0/ext/php_sqlite.dll' - The specified module could not be found. in Unknown on line 0 PHP Warning: PHP Startup: Unable to load dynamic library 'c:/php-5.4.0/ext/php_zip.dll' - The specified module could not be found. in Unknown on line 0 Warning: PHP Startup: Unable to load dynamic library 'c:/php-5.4.0/ext/php_zip.dll' - The specified module could not be found. in Unknown on line 0 No log handling enabled - turning on stderr logging Cannot find module (IP-MIB): At line 0 in (none) Cannot find module (IF-MIB): At line 0 in (none) Cannot find module (TCP-MIB): At line 0 in (none) Cannot find module (UDP-MIB): At line 0 in (none) Cannot find module (HOST-RESOURCES-MIB): At line 0 in (none) Cannot find module (SNMPv2-MIB): At line 0 in (none) Cannot find module (SNMPv2-SMI): At line 0 in (none) Cannot find module (NOTIFICATION-LOG-MIB): At line 0 in (none) Cannot find module (UCD-SNMP-MIB): At line 0 in (none) Cannot find module (UCD-DEMO-MIB): At line 0 in (none) Cannot find module (SNMP-TARGET-MIB): At line 0 in (none) Cannot find module (NET-SNMP-AGENT-MIB): At line 0 in (none) Cannot find module (DISMAN-EVENT-MIB): At line 0 in (none) Cannot find module (SNMP-VIEW-BASED-ACM-MIB): At line 0 in (none) Cannot find module (SNMP-COMMUNITY-MIB): At line 0 in (none) Cannot find module (UCD-DLMOD-MIB): At line 0 in (none) Cannot find module (SNMP-FRAMEWORK-MIB): At line 0 in (none) Cannot find module (SNMP-MPD-MIB): At line 0 in (none) Cannot find module (SNMP-USER-BASED-SM-MIB): At line 0 in (none) Cannot find module (SNMP-NOTIFICATION-MIB): At line 0 in (none) Cannot find module (SNMPv2-TM): At line 0 in (none) ^C Fri 03/16/2012 21:15:26.12|C:\Documents and Settings\Jim Michaels|> Previous Comments: ------------ [2012-03-17 04:07:31] jmichae3 at yahoo dot com Description: I just ran "php" and I get 8 errors: php.ini looks to be configured correctly. this has been happening for several versions such as 5.3.10. Test script: --- php Expected result: php to load with no errors and wait for code on stdin. Actual result: -- php.exe: unable to locate component: the application has failed to start because OCI.dll was not found. Re-installing the application may fix the problem. warning:php startup: unable to load dynamic library 'c:\php-5.4.0\ext\php_oci8.dll' php.exe: unable to locate component: the application has failed to start because OCI.dll was not found. Re-installing the application may fix the problem. warning:php startup: unable to load dynamic library 'c:\php-5.4.0\ext\php_oci8_11g.dll' php.exe: unable to locate component: the application has failed to start because fbclient.d
Bug #61424 [Com]: 8 dll error messages during start of win php
Edit report at https://bugs.php.net/bug.php?id=61424&edit=1 ID: 61424 Comment by: jmichae3 at yahoo dot com Reported by:jmichae3 at yahoo dot com Summary:8 dll error messages during start of win php Status: Open Type: Bug Package:Dynamic loading Operating System: XP Pro SP3 32-bit PHP Version:5.4.0 Block user comment: N Private report: N New Comment: several of the extension entries in the developer ini point to dll's that are not there. making a list of the real ones would be as easy as doing dir/b ext copy and paste into notepad++(at the cmd shell do alt-space ek and then mark out the section you want to copy with the mouse then hit Enter), and alt-drag the cursor down the left of the list to make a long cursor and type ;extension= and you have ;extension=php_bz2.dll ;extension=php_curl.dll ;extension=php_enchant.dll ;extension=php_exif.dll ;extension=php_fileinfo.dll ;extension=php_gd2.dll ;extension=php_gettext.dll ;extension=php_gmp.dll ;extension=php_imap.dll ;extension=php_interbase.dll ;extension=php_intl.dll ;extension=php_ldap.dll ;extension=php_mbstring.dll ;extension=php_mysql.dll ;extension=php_mysqli.dll ;extension=php_oci8.dll ;extension=php_oci8_11g.dll ;extension=php_openssl.dll ;extension=php_pdo_firebird.dll ;extension=php_pdo_mysql.dll ;extension=php_pdo_oci.dll ;extension=php_pdo_odbc.dll ;extension=php_pdo_pgsql.dll ;extension=php_pdo_sqlite.dll ;extension=php_pgsql.dll ;extension=php_shmop.dll ;extension=php_snmp.dll ;extension=php_soap.dll ;extension=php_sockets.dll ;extension=php_sqlite3.dll ;extension=php_sybase_ct.dll ;extension=php_tidy.dll ;extension=php_xmlrpc.dll ;extension=php_xsl.dll the list you SHOULD have. easy. Previous Comments: [2012-03-17 04:30:39] jmicahe3 at yahoo dot com I didn't add extension=php_interbase.dll either, and it also gives an error message. PLEASE TEST your releases! [2012-03-17 04:20:26] jmichae3 at yahoo dot com I am using developer ini with all error messages turned on, and the extensions I have enabled are everything in the ext directory except snmp. I just added SNMP and I got this dialog 19 times: Windows - No Disk: Exception Processing Message c013 Parameters 75b6bf7c 4 75b6bf7c 75b6bf7c I also get the following errors from php (this includes the stuff with E_ALL turned on): Fri 03/16/2012 20:54:37.67|C:\Documents and Settings\Jim Michaels|>php PHP Warning: PHP Startup: Unable to load dynamic library 'c:/php-5.4.0/ext/php_oci8.dll' - The specified module could not be found. in Unknown on line 0 Warning: PHP Startup: Unable to load dynamic library 'c:/php-5.4.0/ext/php_oci8.dll' - The specified module could not be found. in Unknown on line 0 PHP Warning: PHP Startup: Unable to load dynamic library 'c:/php-5.4.0/ext/php_oci8_11g.dll' - The specified module could not be fo und. in Unknown on line 0 Warning: PHP Startup: Unable to load dynamic library 'c:/php-5.4.0/ext/php_oci8_11g.dll' - The specified module could not be found. in Unknown on line 0 PHP Warning: PHP Startup: Unable to load dynamic library 'c:/php-5.4.0/ext/php_pdo_firebird.dll' - The specified module could not b e found. in Unknown on line 0 Warning: PHP Startup: Unable to load dynamic library 'c:/php-5.4.0/ext/php_pdo_firebird.dll' - The specified module could not be fou nd. in Unknown on line 0 PHP Warning: PHP Startup: Unable to load dynamic library 'c:/php-5.4.0/ext/php_sqlite.dll' - The specified module could not be foun d. in Unknown on line 0 Warning: PHP Startup: Unable to load dynamic library 'c:/php-5.4.0/ext/php_sqlite.dll' - The specified module could not be found. in Unknown on line 0 PHP Warning: PHP Startup: Unable to load dynamic library 'c:/php-5.4.0/ext/php_zip.dll' - The specified module could not be found. in Unknown on line 0 Warning: PHP Startup: Unable to load dynamic library 'c:/php-5.4.0/ext/php_zip.dll' - The specified module could not be found. in Unknown on line 0 No log handling enabled - turning on stderr logging Cannot find module (IP-MIB): At line 0 in (none) Cannot find module (IF-MIB): At line 0 in (none) Cannot find module (TCP-MIB): At line 0 in (none) Cannot find module (UDP-MIB): At line 0 in (none) Cannot find module (HOST-RESOURCES-MIB): At line 0 in (none) Cannot find module (SNMPv2-MIB): At line 0 in (none) Cannot find module (SNMPv2-SMI): At line 0 in (none) Cannot find module (NOTIFICATION-LOG-MIB): At line 0 in (none) Cannot find module (UCD-SNMP-MIB): At line 0 in (none) Cannot find module (UCD-DEMO-MIB): At line 0 in (none) Cannot find module (SNMP-TARGET-MIB): At line 0 in (none) Cannot find module (NET-SNMP-AGE
Bug #61424 [Com]: 8 dll error messages during start of win php
Edit report at https://bugs.php.net/bug.php?id=61424&edit=1 ID: 61424 Comment by: jmichae3 at yahoo dot com Reported by:jmichae3 at yahoo dot com Summary:8 dll error messages during start of win php Status: Closed Type: Bug Package:Dynamic loading Operating System: XP Pro SP3 32-bit PHP Version:5.4.0 Assigned To:pajoye Block user comment: N Private report: N New Comment: all these dll's that were listed in php_bz2.dll php_curl.dll php_enchant.dll php_exif.dll php_fileinfo.dll php_gd2.dll php_gettext.dll php_gmp.dll php_imap.dll php_interbase.dll php_intl.dll php_ldap.dll php_mbstring.dll php_mysql.dll php_mysqli.dll php_oci8.dll php_oci8_11g.dll php_openssl.dll php_pdo_firebird.dll php_pdo_mysql.dll php_pdo_oci.dll php_pdo_odbc.dll php_pdo_pgsql.dll php_pdo_sqlite.dll php_pgsql.dll php_shmop.dll php_snmp.dll php_soap.dll php_sockets.dll php_sqlite3.dll php_sybase_ct.dll php_tidy.dll php_xmlrpc.dll php_xsl.dll came with this installation of php. not sure why you are removing sqlite3 rather than fixing it. I can't remember whether I still have firefird DB installed or not. I know I don't have oracle or sybase or interbase installed. I only have pgsql and mysql installed. any sqlite functionality will have to be provided by PHP since it does not have its own engine that I know of. Previous Comments: [2012-03-17 08:52:46] paj...@php.net About sqlite, there is no such module but php_sqlite3.dll. I have now removed it from the released php.ini. For the other extensions, you have to install the respective dependencies. Firebird client, oracle client, etc. [2012-03-17 08:52:15] paj...@php.net Automatic comment from SVN on behalf of pajoye Revision: http://svn.php.net/viewvc/?view=revision&revision=324317 Log: - Fix bug #61424, ext/sqlite is not bundled anymore, remove it from php.ini [2012-03-17 04:46:40] jmichae3 at yahoo dot com several of the extension entries in the developer ini point to dll's that are not there. making a list of the real ones would be as easy as doing dir/b ext copy and paste into notepad++(at the cmd shell do alt-space ek and then mark out the section you want to copy with the mouse then hit Enter), and alt-drag the cursor down the left of the list to make a long cursor and type ;extension= and you have ;extension=php_bz2.dll ;extension=php_curl.dll ;extension=php_enchant.dll ;extension=php_exif.dll ;extension=php_fileinfo.dll ;extension=php_gd2.dll ;extension=php_gettext.dll ;extension=php_gmp.dll ;extension=php_imap.dll ;extension=php_interbase.dll ;extension=php_intl.dll ;extension=php_ldap.dll ;extension=php_mbstring.dll ;extension=php_mysql.dll ;extension=php_mysqli.dll ;extension=php_oci8.dll ;extension=php_oci8_11g.dll ;extension=php_openssl.dll ;extension=php_pdo_firebird.dll ;extension=php_pdo_mysql.dll ;extension=php_pdo_oci.dll ;extension=php_pdo_odbc.dll ;extension=php_pdo_pgsql.dll ;extension=php_pdo_sqlite.dll ;extension=php_pgsql.dll ;extension=php_shmop.dll ;extension=php_snmp.dll ;extension=php_soap.dll ;extension=php_sockets.dll ;extension=php_sqlite3.dll ;extension=php_sybase_ct.dll ;extension=php_tidy.dll ;extension=php_xmlrpc.dll ;extension=php_xsl.dll the list you SHOULD have. easy. [2012-03-17 04:30:39] jmicahe3 at yahoo dot com I didn't add extension=php_interbase.dll either, and it also gives an error message. PLEASE TEST your releases! ---- [2012-03-17 04:20:26] jmichae3 at yahoo dot com I am using developer ini with all error messages turned on, and the extensions I have enabled are everything in the ext directory except snmp. I just added SNMP and I got this dialog 19 times: Windows - No Disk: Exception Processing Message c013 Parameters 75b6bf7c 4 75b6bf7c 75b6bf7c I also get the following errors from php (this includes the stuff with E_ALL turned on): Fri 03/16/2012 20:54:37.67|C:\Documents and Settings\Jim Michaels|>php PHP Warning: PHP Startup: Unable to load dynamic library 'c:/php-5.4.0/ext/php_oci8.dll' - The specified module could not be found. in Unknown on line 0 Warning: PHP Startup: Unable to load dynamic library 'c:/php-5.4.0/ext/php_oci8.dll' - The specified module could not be found. in Unknown on line 0 PHP Warning: PHP Startup: Unable to load dynamic library 'c:/php-5.4.0/ext/php_oci8_11g.dll' - The specified module could not be fo und. in Unknown on line 0 Warning: PHP Startup: Unable to load dynamic library 'c:/php-5.4.0/ext/php_oci8_11g.dll'
Bug #61424 [Com]: 8 dll error messages during start of win php
Edit report at https://bugs.php.net/bug.php?id=61424&edit=1 ID: 61424 Comment by: jmichae3 at yahoo dot com Reported by:jmichae3 at yahoo dot com Summary:8 dll error messages during start of win php Status: Closed Type: Bug Package:Dynamic loading Operating System: XP Pro SP3 32-bit PHP Version:5.4.0 Assigned To:pajoye Block user comment: N Private report: N New Comment: I get no errors with the following: extension=php_bz2.dll extension=php_curl.dll extension=php_enchant.dll extension=php_exif.dll extension=php_fileinfo.dll extension=php_gd2.dll extension=php_gettext.dll extension=php_gmp.dll ;extension=php_imap.dll ;extension=php_interbase.dll extension=php_intl.dll ;extension=php_ldap.dll extension=php_mbstring.dll extension=php_mysql.dll extension=php_mysqli.dll ;extension=php_oci8.dll ;extension=php_oci8_11g.dll extension=php_openssl.dll ;extension=php_pdo_firebird.dll extension=php_pdo_mysql.dll ;extension=php_pdo_oci.dll extension=php_pdo_odbc.dll extension=php_pdo_pgsql.dll extension=php_pdo_sqlite.dll extension=php_pgsql.dll extension=php_shmop.dll ;extension=php_snmp.dll extension=php_soap.dll extension=php_sockets.dll extension=php_sqlite3.dll ;extension=php_sybase_ct.dll extension=php_tidy.dll extension=php_xmlrpc.dll extension=php_xsl.dll Previous Comments: [2012-03-23 17:55:02] paj...@php.net I removed php_sqlite.dll which is not available anymore. [2012-03-23 17:51:48] jmichae3 at yahoo dot com all these dll's that were listed in php_bz2.dll php_curl.dll php_enchant.dll php_exif.dll php_fileinfo.dll php_gd2.dll php_gettext.dll php_gmp.dll php_imap.dll php_interbase.dll php_intl.dll php_ldap.dll php_mbstring.dll php_mysql.dll php_mysqli.dll php_oci8.dll php_oci8_11g.dll php_openssl.dll php_pdo_firebird.dll php_pdo_mysql.dll php_pdo_oci.dll php_pdo_odbc.dll php_pdo_pgsql.dll php_pdo_sqlite.dll php_pgsql.dll php_shmop.dll php_snmp.dll php_soap.dll php_sockets.dll php_sqlite3.dll php_sybase_ct.dll php_tidy.dll php_xmlrpc.dll php_xsl.dll came with this installation of php. not sure why you are removing sqlite3 rather than fixing it. I can't remember whether I still have firefird DB installed or not. I know I don't have oracle or sybase or interbase installed. I only have pgsql and mysql installed. any sqlite functionality will have to be provided by PHP since it does not have its own engine that I know of. [2012-03-17 08:52:46] paj...@php.net About sqlite, there is no such module but php_sqlite3.dll. I have now removed it from the released php.ini. For the other extensions, you have to install the respective dependencies. Firebird client, oracle client, etc. [2012-03-17 08:52:15] paj...@php.net Automatic comment from SVN on behalf of pajoye Revision: http://svn.php.net/viewvc/?view=revision&revision=324317 Log: - Fix bug #61424, ext/sqlite is not bundled anymore, remove it from php.ini [2012-03-17 04:46:40] jmichae3 at yahoo dot com several of the extension entries in the developer ini point to dll's that are not there. making a list of the real ones would be as easy as doing dir/b ext copy and paste into notepad++(at the cmd shell do alt-space ek and then mark out the section you want to copy with the mouse then hit Enter), and alt-drag the cursor down the left of the list to make a long cursor and type ;extension= and you have ;extension=php_bz2.dll ;extension=php_curl.dll ;extension=php_enchant.dll ;extension=php_exif.dll ;extension=php_fileinfo.dll ;extension=php_gd2.dll ;extension=php_gettext.dll ;extension=php_gmp.dll ;extension=php_imap.dll ;extension=php_interbase.dll ;extension=php_intl.dll ;extension=php_ldap.dll ;extension=php_mbstring.dll ;extension=php_mysql.dll ;extension=php_mysqli.dll ;extension=php_oci8.dll ;extension=php_oci8_11g.dll ;extension=php_openssl.dll ;extension=php_pdo_firebird.dll ;extension=php_pdo_mysql.dll ;extension=php_pdo_oci.dll ;extension=php_pdo_odbc.dll ;extension=php_pdo_pgsql.dll ;extension=php_pdo_sqlite.dll ;extension=php_pgsql.dll ;extension=php_shmop.dll ;extension=php_snmp.dll ;extension=php_soap.dll ;extension=php_sockets.dll ;extension=php_sqlite3.dll ;extension=php_sybase_ct.dll ;extension=php_tidy.dll ;extension=php_xmlrpc.dll ;extension=php_xsl.dll the list you SHOULD have. easy. 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 https://bugs.php.net/bug.
Bug #61424 [Com]: 8 dll error messages during start of win php
Edit report at https://bugs.php.net/bug.php?id=61424&edit=1 ID: 61424 Comment by: jmichae3 at yahoo dot com Reported by:jmichae3 at yahoo dot com Summary:8 dll error messages during start of win php Status: Closed Type: Bug Package:Dynamic loading Operating System: XP Pro SP3 32-bit PHP Version:5.4.0 Assigned To:pajoye Block user comment: N Private report: N New Comment: ahh - I got it... wasn't checking very well... you are right, it's not there anymore. Previous Comments: [2012-03-23 20:25:21] jmichae3 at yahoo dot com I get no errors with the following: extension=php_bz2.dll extension=php_curl.dll extension=php_enchant.dll extension=php_exif.dll extension=php_fileinfo.dll extension=php_gd2.dll extension=php_gettext.dll extension=php_gmp.dll ;extension=php_imap.dll ;extension=php_interbase.dll extension=php_intl.dll ;extension=php_ldap.dll extension=php_mbstring.dll extension=php_mysql.dll extension=php_mysqli.dll ;extension=php_oci8.dll ;extension=php_oci8_11g.dll extension=php_openssl.dll ;extension=php_pdo_firebird.dll extension=php_pdo_mysql.dll ;extension=php_pdo_oci.dll extension=php_pdo_odbc.dll extension=php_pdo_pgsql.dll extension=php_pdo_sqlite.dll extension=php_pgsql.dll extension=php_shmop.dll ;extension=php_snmp.dll extension=php_soap.dll extension=php_sockets.dll extension=php_sqlite3.dll ;extension=php_sybase_ct.dll extension=php_tidy.dll extension=php_xmlrpc.dll extension=php_xsl.dll [2012-03-23 17:55:02] paj...@php.net I removed php_sqlite.dll which is not available anymore. [2012-03-23 17:51:48] jmichae3 at yahoo dot com all these dll's that were listed in php_bz2.dll php_curl.dll php_enchant.dll php_exif.dll php_fileinfo.dll php_gd2.dll php_gettext.dll php_gmp.dll php_imap.dll php_interbase.dll php_intl.dll php_ldap.dll php_mbstring.dll php_mysql.dll php_mysqli.dll php_oci8.dll php_oci8_11g.dll php_openssl.dll php_pdo_firebird.dll php_pdo_mysql.dll php_pdo_oci.dll php_pdo_odbc.dll php_pdo_pgsql.dll php_pdo_sqlite.dll php_pgsql.dll php_shmop.dll php_snmp.dll php_soap.dll php_sockets.dll php_sqlite3.dll php_sybase_ct.dll php_tidy.dll php_xmlrpc.dll php_xsl.dll came with this installation of php. not sure why you are removing sqlite3 rather than fixing it. I can't remember whether I still have firefird DB installed or not. I know I don't have oracle or sybase or interbase installed. I only have pgsql and mysql installed. any sqlite functionality will have to be provided by PHP since it does not have its own engine that I know of. [2012-03-17 08:52:46] paj...@php.net About sqlite, there is no such module but php_sqlite3.dll. I have now removed it from the released php.ini. For the other extensions, you have to install the respective dependencies. Firebird client, oracle client, etc. [2012-03-17 08:52:15] paj...@php.net Automatic comment from SVN on behalf of pajoye Revision: http://svn.php.net/viewvc/?view=revision&revision=324317 Log: - Fix bug #61424, ext/sqlite is not bundled anymore, remove it from php.ini 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 https://bugs.php.net/bug.php?id=61424 -- Edit this bug report at https://bugs.php.net/bug.php?id=61424&edit=1
#44224 [NEW]: ftp_put() Connection timed out
From: jmichae3 at yahoo dot com Operating system: Windows XP Pro PHP version: 5.2.5 PHP Bug Type: FTP related Bug description: ftp_put() Connection timed out Description: expect ftp_put() and ftp_chdir() to work 100% of the time on a broadband cable connection. there are 421 web pages to upload, averaging 32k minimum/file. total upload time is about 3 minutes, so it shouldn't fail. Reproduce code: --- function upload($conn_id, $dest_file, $src_file) { global $remote_public_html_dir, $current_dir; if ($current_dir != $remote_public_html_dir . dirname($src_file)) { // change directory first if (ftp_chdir($conn_id, $remote_public_html_dir . dirname($src_file))) { $current_dir=$remote_public_html_dir . dirname($src_file); //only do this if chdir was successful. if (ftp_alloc($conn_id, filesize($src_file), $result)) { ftp_put($conn_id, basename($dest_file), $src_file, FTP_BINARY); } } } else { //directory hasn't changed. don't chdir. //since change directory was not needed, upload file ftp_put($conn_id, basename($dest_file), $src_file, FTP_BINARY); } } } //I don't have all the file parts to demonstrate. Expected result: successful upload of entire web site in 3 minutes over cable internet connection with no errors. Actual result: -- have to try upload script to upload site up to 12 times sometimes with version 5.2.5 because there is always at least 1 error. Resource id #7 dest=index.html src=./lockdown/index.html PHP Warning: ftp_put(): Could not open data connection to port 3389: Connection timed out in C:\www\jimm\ftp5.php on line 101 !FTP upload has failed!-- retry: success: dest=index.html src=./lockdown/index.html workaround: retry up to 50 times on failure. If you want that code, I can supply, but it is 74 lines long and is 2 functions. In version 5.2.3 it could not properly find an open port to use (sometimes fail 10 times in a row with different errors). it just increments. I *think* this got fixed in 5.2.5. However, I still get at least 1 timeout in 5.2.5. from the user's perspective, ftp_put() should just work. maybe it should try, say 20 or 100 times (?), and if it doesn't succeed, give up. then again this function should not be timing out in the first place. maybe there is a design flaw - I have no troubles uploading using filezilla ftp client. At least put a note in the documentation that you should retry on failure up to n times if you are not going to fix the code? -- Edit bug report at http://bugs.php.net/?id=44224&edit=1 -- Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=44224&r=trysnapshot52 Try a CVS snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=44224&r=trysnapshot53 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=44224&r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=44224&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=44224&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=44224&r=needtrace Need Reproduce Script:http://bugs.php.net/fix.php?id=44224&r=needscript Try newer version:http://bugs.php.net/fix.php?id=44224&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=44224&r=support Expected behavior:http://bugs.php.net/fix.php?id=44224&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=44224&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=44224&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=44224&r=globals PHP 4 support discontinued: http://bugs.php.net/fix.php?id=44224&r=php4 Daylight Savings: http://bugs.php.net/fix.php?id=44224&r=dst IIS Stability:http://bugs.php.net/fix.php?id=44224&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=44224&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=44224&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=44224&r=nozend MySQL Configuration Error:http://bugs.php.net/fix.php?id=44224&r=mysqlcfg
#44224 [Bgs]: ftp_put() Connection timed out
ID: 44224 User updated by: jmichae3 at yahoo dot com Reported By: jmichae3 at yahoo dot com Status: Bogus Bug Type: FTP related Operating System: Windows XP Pro PHP Version: 5.2.5 New Comment: Resource id #7 dest=pwdgen-perl.html src=./code/pwdgen-perl.html PHP Warning: ftp_put(): php_connect_nonb() failed: Bad file descriptor (9) in C:\www\jimm\ftp5.php on line 101 PHP Warning: ftp_put(): Entering Passive Mode (69,65,26,137,81,228) in C:\www\jimm\ftp5.php on line 101 !FTP upload has failed!-- retry: success: dest=pwdgen-perl.html src=./code/pwdgen-perl.html my retry code is still needed, despite ftp_pasv. by the way, it doesn't do it on this file every time. random freak error, as usual. Previous Comments: [2008-02-24 00:58:33] [EMAIL PROTECTED] The manual is amazing thing, especially the friendly notes: "If you are having timeouts uploading a file, even very small files, you might have a look at ftp_pasv() And don't forget to do it after your ftp_login();" [2008-02-23 01:35:08] jmichae3 at yahoo dot com Description: expect ftp_put() and ftp_chdir() to work 100% of the time on a broadband cable connection. there are 421 web pages to upload, averaging 32k minimum/file. total upload time is about 3 minutes, so it shouldn't fail. Reproduce code: --- function upload($conn_id, $dest_file, $src_file) { global $remote_public_html_dir, $current_dir; if ($current_dir != $remote_public_html_dir . dirname($src_file)) { // change directory first if (ftp_chdir($conn_id, $remote_public_html_dir . dirname($src_file))) { $current_dir=$remote_public_html_dir . dirname($src_file); //only do this if chdir was successful. if (ftp_alloc($conn_id, filesize($src_file), $result)) { ftp_put($conn_id, basename($dest_file), $src_file, FTP_BINARY); } } } else { //directory hasn't changed. don't chdir. //since change directory was not needed, upload file ftp_put($conn_id, basename($dest_file), $src_file, FTP_BINARY); } } } //I don't have all the file parts to demonstrate. Expected result: successful upload of entire web site in 3 minutes over cable internet connection with no errors. Actual result: -- have to try upload script to upload site up to 12 times sometimes with version 5.2.5 because there is always at least 1 error. Resource id #7 dest=index.html src=./lockdown/index.html PHP Warning: ftp_put(): Could not open data connection to port 3389: Connection timed out in C:\www\jimm\ftp5.php on line 101 !FTP upload has failed!-- retry: success: dest=index.html src=./lockdown/index.html workaround: retry up to 50 times on failure. If you want that code, I can supply, but it is 74 lines long and is 2 functions. In version 5.2.3 it could not properly find an open port to use (sometimes fail 10 times in a row with different errors). it just increments. I *think* this got fixed in 5.2.5. However, I still get at least 1 timeout in 5.2.5. from the user's perspective, ftp_put() should just work. maybe it should try, say 20 or 100 times (?), and if it doesn't succeed, give up. then again this function should not be timing out in the first place. maybe there is a design flaw - I have no troubles uploading using filezilla ftp client. At least put a note in the documentation that you should retry on failure up to n times if you are not going to fix the code? -- Edit this bug report at http://bugs.php.net/?id=44224&edit=1
#46531 [NEW]: ftp_put returns error on Accepted data connection
From: jmichae3 at yahoo dot com Operating system: XP Pro SP3 PHP version: 5.2.6 PHP Bug Type: FTP related Bug description: ftp_put returns error on Accepted data connection Description: PHP Warning: ftp_put(): Accepted data connection in C:\www\jimm\ftp6.php on line 122 is this really an error state for ftp_put? I would think it would be a success! PHP is returning an error on this. I think this is a bug. Reproduce code: --- if (ftp_put($conn_id, basename($dest_file), $src_file, FTP_BINARY)) { echo "success\n"; } else { echo "error\n"; } Expected result: success Actual result: -- the server I am working with is having problems. lately it is really slow, and I get about 6 successful files uploaded, and the rest (about 450+ files) are PHP Warning: ftp_put(): Accepted data connection in C:\www\jimm\ftp6.php on line 122 error also, subsequent attempts at a ftp_mkdir also fail. -- Edit bug report at http://bugs.php.net/?id=46531&edit=1 -- Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=46531&r=trysnapshot52 Try a CVS snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=46531&r=trysnapshot53 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=46531&r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=46531&r=fixedcvs Fixed in CVS and need be documented: http://bugs.php.net/fix.php?id=46531&r=needdocs Fixed in release: http://bugs.php.net/fix.php?id=46531&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=46531&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=46531&r=needscript Try newer version: http://bugs.php.net/fix.php?id=46531&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=46531&r=support Expected behavior: http://bugs.php.net/fix.php?id=46531&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=46531&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=46531&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=46531&r=globals PHP 4 support discontinued: http://bugs.php.net/fix.php?id=46531&r=php4 Daylight Savings:http://bugs.php.net/fix.php?id=46531&r=dst IIS Stability: http://bugs.php.net/fix.php?id=46531&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=46531&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=46531&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=46531&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=46531&r=mysqlcfg
#46531 [Com]: ftp_put returns error on Accepted data connection
ID: 46531 Comment by: jmichae3 at yahoo dot com Reported By: jmichae3 at yahoo dot com Status: Feedback Bug Type: FTP related Operating System: XP Pro SP3 PHP Version: 5.2.6 New Comment: I will not be able to reproduce this bug until something on the network goes nuts again. in my case, it was my cable modem configuration combined with an ISP network upgrade. after persistently trying to get an internet connection again (and many calls to tech support), I did. All is well now with my connection so I can't test the Accepted data connection error, but I did test mkdir and it appears to be working. //ftp mkdir test function mk($conn_id) { echo "chdir\n"; if (!ftp_chdir($conn_id, "/public_html/")) { echo "chdir failed\n"; return; } echo "mkdir test\n"; if (!ftp_mkdir($conn_id, "/public_html/test")) { echo "mkdir failed\n"; return; } echo "chdir test\n"; if (!ftp_chdir($conn_id, "/public_html/test")) { echo "chdir failed\n"; return; } } // set up basic connection $conn_id = ftp_connect($host); // login with username and password $login_result = ftp_login($conn_id, $uid, $pwd); // check connection if ((!$conn_id) || (!$login_result)) { echo "FTP connection has failed!\n"; echo "Attempted to connect to $host for user $uid\n"; exit; } else { echo "Connected to $host, for user $uid\n"; } ftp_pasv($conn_id, true); mk($conn_id); // close the FTP stream ftp_close($conn_id); Previous Comments: [2008-11-10 11:24:25] [EMAIL PROTECTED] Please try using this CVS snapshot: http://snaps.php.net/php5.2-latest.tar.gz For Windows: http://windows.php.net/snapshots/ [2008-11-10 06:20:28] jmichae3 at yahoo dot com Description: PHP Warning: ftp_put(): Accepted data connection in C:\www\jimm\ftp6.php on line 122 is this really an error state for ftp_put? I would think it would be a success! PHP is returning an error on this. I think this is a bug. Reproduce code: --- if (ftp_put($conn_id, basename($dest_file), $src_file, FTP_BINARY)) { echo "success\n"; } else { echo "error\n"; } Expected result: success Actual result: -- the server I am working with is having problems. lately it is really slow, and I get about 6 successful files uploaded, and the rest (about 450+ files) are PHP Warning: ftp_put(): Accepted data connection in C:\www\jimm\ftp6.php on line 122 error also, subsequent attempts at a ftp_mkdir also fail. -- Edit this bug report at http://bugs.php.net/?id=46531&edit=1
#41880 [NEW]: php.exe - unable to locate component (after install)
From: jmichae3 at yahoo dot com Operating system: XP pro PHP version: 5.2.3 PHP Bug Type: Unknown/Other Function Bug description: php.exe - unable to locate component (after install) Description: after installation of nearly everything, executing a script causes a number of "unable to locate component" errors and dialog boxes to occur. The CVS snapshot doesn't have these problems (no installer, but then again fewer features) and can't completely reproduce problem becauuse feature set isn't complete on CVS. Windows installer 5.2.3 version on XP Pro. CLI only. no web server. Reproduce code: --- http://mmediap3.home.comcast.net/z/menu3.zip or you can try just executing php from the command line by itself Expected result: wanted to execute menu3.php like I did with 5.1.2 and have it process all my HTML files (making menus) and generate sitemap.xml based on menu2.xml and inserted tags in the html files. should redo all the navigation for the entire site. Actual result: -- "php.exe - unable to locate component This application has failed to start because php_mbstring.dll was not found. Re-installing the application may fix this problem" same with exif, gmp, ifx, aspell-15, pspell, shmop, nettools. same error with lcrzo.dll and promptly crashed when I uninstalled SAM & re-ran my script which does not use it. unhandled exception in php.exe (php5ts.dll):0xC005:Access Violation call stack: ->php5ts! 10099a7d() e877c120() reinstalling the application does not fix this problem. when I execute php by itself I get PHP Warning: PHP Startup: Unable to load dynamic library 'C:\Program Files\PHP\ ext\php_exif.dll' - The specified module could not be found. in Unknown on line 0 PHP Warning: PHP Startup: Unable to load dynamic library 'C:\Program Files\PHP\ ext\php_netools.dll' - The specified module could not be found. in Unknown on line 0 PHP Notice: Constant XML_ELEMENT_NODE already defined in Unknown on line 0 PHP Notice: Constant XML_ATTRIBUTE_NODE already defined in Unknown on line 0 PHP Notice: Constant XML_TEXT_NODE already defined in Unknown on line 0 PHP Notice: Constant XML_CDATA_SECTION_NODE already defined in Unknown on line 0 PHP Notice: Constant XML_ENTITY_REF_NODE already defined in Unknown on line 0 PHP Notice: Constant XML_ENTITY_NODE already defined in Unknown on line 0 PHP Notice: Constant XML_PI_NODE already defined in Unknown on line 0 PHP Notice: Constant XML_COMMENT_NODE already defined in Unknown on line 0 PHP Notice: Constant XML_DOCUMENT_NODE already defined in Unknown on line 0 PHP Notice: Constant XML_DOCUMENT_TYPE_NODE already defined in Unknown on line 0 PHP Notice: Constant XML_DOCUMENT_FRAG_NODE already defined in Unknown on line 0 PHP Notice: Constant XML_NOTATION_NODE already defined in Unknown on line 0 PHP Notice: Constant XML_HTML_DOCUMENT_NODE already defined in Unknown on line 0 PHP Notice: Constant XML_DTD_NODE already defined in Unknown on line 0 PHP Notice: Constant XML_ELEMENT_DECL_NODE already defined in Unknown on line 0 PHP Notice: Constant XML_ATTRIBUTE_DECL_NODE already defined in Unknown on line 0 PHP Notice: Constant XML_ENTITY_DECL_NODE already defined in Unknown on line 0 PHP Notice: Constant XML_NAMESPACE_DECL_NODE already defined in Unknown on line 0 PHP Notice: Constant XML_LOCAL_NAMESPACE already defined in Unknown on line 0 PHP Notice: Constant XML_ATTRIBUTE_CDATA already defined in Unknown on line 0 PHP Notice: Constant XML_ATTRIBUTE_ID already defined in Unknown on line 0 PHP Notice: Constant XML_ATTRIBUTE_IDREF already defined in Unknown on line 0 PHP Notice: Constant XML_ATTRIBUTE_IDREFS already defined in Unknown on line 0 PHP Notice: Constant XML_ATTRIBUTE_ENTITY already defined in Unknown on line 0 PHP Notice: Constant XML_ATTRIBUTE_NMTOKEN already defined in Unknown on line 0 PHP Notice: Constant XML_ATTRIBUTE_NMTOKENS already defined in Unknown on line 0 PHP Notice: Constant XML_ATTRIBUTE_ENUMERATION already defined in Unknown on li ne 0 PHP Notice: Constant XML_ATTRIBUTE_NOTATION already defined in Unknown on line 0 -- Edit bug report at http://bugs.php.net/?id=41880&edit=1 -- Try a CVS snapshot (PHP 4.4): http://bugs.php.net/fix.php?id=41880&r=trysnapshot44 Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=41880&r=trysnapshot52 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=41880&r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=41880&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=41880&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=41880&r=needtrace Need Reproduce Script:http://bugs.php.net/fix.php?id=41880&r=needscript Try newer version:http://bugs.php.net/fix.php?id=41880&r=oldversion Not developer
#36939 [NEW]: unexpected T_ELSE, T_CASE
From: jmichae3 at yahoo dot com Operating system: Windows XP Pro MP PHP version: 5.1.2 PHP Bug Type: Scripting Engine problem Bug description: unexpected T_ELSE, T_CASE Description: PHP gives "unexpected T_ELSE" and "unexpected T_CASE" errors on valid code. checked the code over with brace checker and dreamweaver 8 and older versions of PHP for correctness. maybe it has something to do with the structure of my if/else/switch statements and my weaving in and out of the PHP interpreter. The rest of my 40+ files are fine. just these 2 give me errors in the same place consistently. Reproduce code: --- http://mmediap3.home.comcast.net/z/phpprob.zip includes include files header.php and dbinc.php you may need to execute a short script with header.php in it and a line to set $_SESSION['tid']=1; for tareports.php to output XHTML. execute script from command-line. (executing this script just caused PHP to hang and not die this time (?!?)) Expected result: error messaged about $_SERVER[REMOTE_ADDR] not being defined. and maybe some messages about some session variables not being defined, ad a lot of XHTML. if $_SESSION[tid] is not defined, no XHTML. and if the tables aren't defined on your box (MySQL sql script included), probably mysql errors. Actual result: -- older versions of PHP output XHTML (or hang). C:\prj>php tareports.php PHP Parse error: parse error, unexpected T_ELSE in tareports.php on line 211 causes PHP crash with stack trace outlined below. When I comment this else block out, it complains about the next else. when I comment *that* out, it complains about the case statement that comes next. sounds to me like the parser's in an odd state, or some pointer or piece of memory got mangled. C:\prj>php userreports.php PHP Parse error: syntax error, unexpected T_CASE in userreports.php on line 285 which causes an Access Violation. Actually, all errors cause an Access Violation in this debug version. Stack trace: 014d1c80() tsrm_shutdown() line 180 + 4 bytes main(int, char * *) line 1258 -- Edit bug report at http://bugs.php.net/?id=36939&edit=1 -- Try a CVS snapshot (PHP 4.4): http://bugs.php.net/fix.php?id=36939&r=trysnapshot44 Try a CVS snapshot (PHP 5.1): http://bugs.php.net/fix.php?id=36939&r=trysnapshot51 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=36939&r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=36939&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=36939&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=36939&r=needtrace Need Reproduce Script:http://bugs.php.net/fix.php?id=36939&r=needscript Try newer version:http://bugs.php.net/fix.php?id=36939&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=36939&r=support Expected behavior:http://bugs.php.net/fix.php?id=36939&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=36939&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=36939&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=36939&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=36939&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=36939&r=dst IIS Stability:http://bugs.php.net/fix.php?id=36939&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=36939&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=36939&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=36939&r=nozend MySQL Configuration Error:http://bugs.php.net/fix.php?id=36939&r=mysqlcfg
[PHP-BUG] Bug #55044 [NEW]: web site bug, en lang code, shows Brazilian Portugese
From: Operating system: windows xp Pro sp3 32-bit PHP version: 5.3.6 Package: Other web server Bug Type: Bug Bug description:web site bug, en lang code, shows Brazilian Portugese Description: the php web site has a problem. http://us.php.net/manual/en/features.file-upload.multiple.php all over PHP site it says it is in Brazilian Portugese, yet the language code is en (English). My machine is US English. go figure. in the documentation selection boxes it does not list English as a language, but it lists Brazilian Portugese. I will bet that most people don't know what Brazilian Portugese is. but they know what English is. and that's what this language is in despite the title. please fix. Test script: --- install US English version of windows. http://us.php.net/manual/en/features.file-upload.multiple.php look at language dropdown box Expected result: the word English for en language code on web site anywhere language is mentioned Actual result: -- I find the words Brazilian Portugese all over web site anywhere language is mentioned. -- Edit bug report at http://bugs.php.net/bug.php?id=55044&edit=1 -- Try a snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=55044&r=trysnapshot52 Try a snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=55044&r=trysnapshot53 Try a snapshot (trunk): http://bugs.php.net/fix.php?id=55044&r=trysnapshottrunk Fixed in SVN: http://bugs.php.net/fix.php?id=55044&r=fixed Fixed in SVN and need be documented: http://bugs.php.net/fix.php?id=55044&r=needdocs Fixed in release: http://bugs.php.net/fix.php?id=55044&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=55044&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=55044&r=needscript Try newer version: http://bugs.php.net/fix.php?id=55044&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=55044&r=support Expected behavior: http://bugs.php.net/fix.php?id=55044&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=55044&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=55044&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=55044&r=globals PHP 4 support discontinued: http://bugs.php.net/fix.php?id=55044&r=php4 Daylight Savings:http://bugs.php.net/fix.php?id=55044&r=dst IIS Stability: http://bugs.php.net/fix.php?id=55044&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=55044&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=55044&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=55044&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=55044&r=mysqlcfg
Bug #55044 [Bgs]: web site bug, en lang code, shows Brazilian Portugese
Edit report at http://bugs.php.net/bug.php?id=55044&edit=1 ID: 55044 User updated by:jmichae3 at yahoo dot com Reported by:jmichae3 at yahoo dot com Summary:web site bug, en lang code, shows Brazilian Portugese Status: Bogus Type: Bug Package:Other web server Operating System: windows xp Pro sp3 32-bit PHP Version:5.3.6 Block user comment: N Private report: N New Comment: that is not how most web sites work. most web sites work by having a VERY SIMPLE dropdown listbox that shows you what language is selected and allows you to select a different language. at least knowing what language you are in would be helpful for people who work with multiple languages if you are not going to change the methodology. the way things are now is causing confusion with more than one person. Previous Comments: [2011-06-13 16:08:36] dtajchre...@php.net That drop down is to the view the page in another language... note the little text next to it "view this page in". If you change it to Brazilian Portugese and then click the drop down again, you'll notice you can view the page in English. [2011-06-13 12:12:18] jmichae3 at yahoo dot com Description: the php web site has a problem. http://us.php.net/manual/en/features.file-upload.multiple.php all over PHP site it says it is in Brazilian Portugese, yet the language code is en (English). My machine is US English. go figure. in the documentation selection boxes it does not list English as a language, but it lists Brazilian Portugese. I will bet that most people don't know what Brazilian Portugese is. but they know what English is. and that's what this language is in despite the title. please fix. Test script: --- install US English version of windows. http://us.php.net/manual/en/features.file-upload.multiple.php look at language dropdown box Expected result: the word English for en language code on web site anywhere language is mentioned Actual result: -- I find the words Brazilian Portugese all over web site anywhere language is mentioned. -- Edit this bug report at http://bugs.php.net/bug.php?id=55044&edit=1
Bug #4110 [Com]: getting arrays from a form
Edit report at https://bugs.php.net/bug.php?id=4110&edit=1 ID: 4110 Comment by: jmichae3 at yahoo dot com Reported by:fuf at fuf dot sh dot cvut dot cz Summary:getting arrays from a form Status: Closed Type: Bug Package:Other Operating System: linux-2.2.x PHP Version:3.0.13 Block user comment: N Private report: N New Comment: Michal - try putting a space in name="n_sas"size=10 Previous Comments: [2000-04-11 18:28:01] rasmus at cvs dot php dot net This is a FAQ - use the form elements numerical index instead of the full element name from Javascript. [2000-04-11 17:57:44] fuf at fuf dot sh dot cvut dot cz hello php developers! i've come across a rather debatable behaviour of PHP getting array variables from a form. let's have a html form with multiple selection list: form.html: option 1 option 2 etc. the php3 file could then be: process_form.php3: \n"; ?> this will print 1 ($n_sas is not an array according to php). okay, so i change the name of the variable in the form.html file to 'n_sas[]': ... ... in this case php will consider $n_sas as an array and all its items will be accessible. all is fine, BUT: 'document.aform.n_sas[]' is NOT accessible from javascript! if the name is 'n_sas', obviously the selection list is accessible from the javascript (via document.aform.n_sas) but PHP won't make it an array and the variable $n_sas will have the value of the last selected option. IMO, that's not a correct behaviour. thanks for your time, Michal -- Edit this bug report at https://bugs.php.net/bug.php?id=4110&edit=1
Bug #51563 [Com]: Incorrect result
Edit report at https://bugs.php.net/bug.php?id=51563&edit=1 ID: 51563 Comment by: jmichae3 at yahoo dot com Reported by:zdenis at free dot fr Summary:Incorrect result Status: Assigned Type: Bug Package:mbstring related Operating System: Windows PHP Version:5.3.2 Assigned To:moriyoshi Block user comment: N Private report: N New Comment: I am getting russian spam in my email forms. mb_detect_encoding() on my form mail content string shows as ASCII strangely enough! the characters are around the UNICODE Ѐ range. this prevents me from detecting foreign language characters in my form mail. please fix. my code is //detect foreign languages $arr[0] = "ASCII"; $arr[1] = "US-ASCII"; if (false===mb_detect_encoding($comment,$arr,true)) { echo "ERRORB:".mb_detect_encoding($comment).""; return true; //error } and using the string I generated from charmap ÐÏÐγÏÐÐÐЫЫÐÏÐÐÑмдп I get ASCII for a result from that last mb_detect_encoding($comment) Previous Comments: [2010-04-15 16:06:23] zdenis at free dot fr Description: When using mb_detect_encoding, depending on how many é characters - or any character above 127 - are present in the string, the detected charset is not consistent and then sometimes wrong. Test script: --- // little example php -r "echo mb_detect_encoding(\"é\", 'UTF-8,ISO-8859-1');" php -r "echo mb_detect_encoding(\"éé\", 'UTF-8,ISO-8859-1');" // real life example php -r "echo mb_detect_encoding(\"Produit commandé\", 'UTF-8,ISO-8859-1');" php -r "echo mb_detect_encoding(\"Société\", 'UTF-8,ISO-8859-1');" Expected result: ISO-8859-1 ISO-8859-1 ISO-8859-1 ISO-8859-1 Actual result: -- UTF-8 ISO-8859-1 UTF-8 ISO-8859-1 -- Edit this bug report at https://bugs.php.net/bug.php?id=51563&edit=1
[PHP-BUG] Bug #63732 [NEW]: unicode strings not handled correctly
From: jmichae3 at yahoo dot com Operating system: linux PHP version: 5.3.19 Package: Scripting Engine problem Bug Type: Bug Bug description:unicode strings not handled correctly Description: I am getting russian characters in my meail forms. I want to compare the characters to see if they are > '~' which is the last visible character in the ascii character set. this comparison does not work. in UNICODE, these characters are about 1024, and ~ is 126 according to ord(). ord() thinks EVERY character is ascii. this is far from true. there are mb characters from utf8. this is russian random characters from charmap: ÐÏÐγÏÐÐÐЫЫÐÐÐÑмдп in fact, I don't have any working way to detect whether a character is KOI8-R or ASCII, or cyrillic, or whether the character ordinal number is actually beyond 127 or not. because according to ord(), it's all within 0-255. Test script: --- 0) { echo "OK"; } else { echo "fail"; } if (ord($s[$i]) > 126) { echo "OK"; } else { echo "fail"; } if ($s[$i] > '~') { echo "OK"; } else { echo "fail"; } echo ord($s[$i]); } echo "\n"; $i=0; /* strangely enough, I get 2 outputs with only 1 character. Sat 12/08/2012 23:12:46.76||E:\www\jimm|>php t.php 1 OKOKOK208OKOKOK191 Sat 12/08/2012 23:14:27.34||E:\www\jimm|> */ ?> Expected result: whole characters as a single unit. 1 result. Actual result: -- got 2 results from 1 UNICODE russian character in a string. should only get 1. this file was encoded with utf8 without bom. php is splitting the utf8 characters into a byte stream when it gets to strlen(). or it just treats unicode and utf8 characters like ascii. this does not work well when trying to use mb_detect_encoding() - that breaks ability to detect encodings when it breaks up characters like that. nearly everything with strings actually. this also breaks ability to detect foreign spam. -- Edit bug report at https://bugs.php.net/bug.php?id=63732&edit=1 -- Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=63732&r=trysnapshot54 Try a snapshot (PHP 5.3): https://bugs.php.net/fix.php?id=63732&r=trysnapshot53 Try a snapshot (trunk): https://bugs.php.net/fix.php?id=63732&r=trysnapshottrunk Fixed in SVN: https://bugs.php.net/fix.php?id=63732&r=fixed Fixed in release: https://bugs.php.net/fix.php?id=63732&r=alreadyfixed Need backtrace: https://bugs.php.net/fix.php?id=63732&r=needtrace Need Reproduce Script: https://bugs.php.net/fix.php?id=63732&r=needscript Try newer version: https://bugs.php.net/fix.php?id=63732&r=oldversion Not developer issue:https://bugs.php.net/fix.php?id=63732&r=support Expected behavior: https://bugs.php.net/fix.php?id=63732&r=notwrong Not enough info: https://bugs.php.net/fix.php?id=63732&r=notenoughinfo Submitted twice: https://bugs.php.net/fix.php?id=63732&r=submittedtwice register_globals: https://bugs.php.net/fix.php?id=63732&r=globals PHP 4 support discontinued: https://bugs.php.net/fix.php?id=63732&r=php4 Daylight Savings: https://bugs.php.net/fix.php?id=63732&r=dst IIS Stability: https://bugs.php.net/fix.php?id=63732&r=isapi Install GNU Sed:https://bugs.php.net/fix.php?id=63732&r=gnused Floating point limitations: https://bugs.php.net/fix.php?id=63732&r=float No Zend Extensions: https://bugs.php.net/fix.php?id=63732&r=nozend MySQL Configuration Error: https://bugs.php.net/fix.php?id=63732&r=mysqlcfg
Bug #63732 [Nab]: unicode strings not handled correctly
Edit report at https://bugs.php.net/bug.php?id=63732&edit=1 ID: 63732 User updated by:jmichae3 at yahoo dot com Reported by:jmichae3 at yahoo dot com Summary:unicode strings not handled correctly Status: Not a bug Type: Bug Package:Scripting Engine problem Operating System: linux PHP Version:5.3.19 Block user comment: N Private report: N New Comment: it may be documented behavior, but it still doesn't provide a solution to the problem. Previous Comments: [2012-12-10 02:24:33] ahar...@php.net PHP strings are effectively byte arrays, and ord() only looks at the first byte. This is documented behaviour. [2012-12-09 07:38:05] jmichae3 at yahoo dot com Description: I am getting russian characters in my meail forms. I want to compare the characters to see if they are > '~' which is the last visible character in the ascii character set. this comparison does not work. in UNICODE, these characters are about 1024, and ~ is 126 according to ord(). ord() thinks EVERY character is ascii. this is far from true. there are mb characters from utf8. this is russian random characters from charmap: ÐÏÐγÏÐÐÐЫЫÐÐÐÑмдп in fact, I don't have any working way to detect whether a character is KOI8-R or ASCII, or cyrillic, or whether the character ordinal number is actually beyond 127 or not. because according to ord(), it's all within 0-255. Test script: --- 0) { echo "OK"; } else { echo "fail"; } if (ord($s[$i]) > 126) { echo "OK"; } else { echo "fail"; } if ($s[$i] > '~') { echo "OK"; } else { echo "fail"; } echo ord($s[$i]); } echo "\n"; $i=0; /* strangely enough, I get 2 outputs with only 1 character. Sat 12/08/2012 23:12:46.76||E:\www\jimm|>php t.php 1 OKOKOK208OKOKOK191 Sat 12/08/2012 23:14:27.34||E:\www\jimm|> */ ?> Expected result: whole characters as a single unit. 1 result. Actual result: -- got 2 results from 1 UNICODE russian character in a string. should only get 1. this file was encoded with utf8 without bom. php is splitting the utf8 characters into a byte stream when it gets to strlen(). or it just treats unicode and utf8 characters like ascii. this does not work well when trying to use mb_detect_encoding() - that breaks ability to detect encodings when it breaks up characters like that. nearly everything with strings actually. this also breaks ability to detect foreign spam. -- Edit this bug report at https://bugs.php.net/bug.php?id=63732&edit=1
Bug #63732 [Nab]: unicode strings not handled correctly
Edit report at https://bugs.php.net/bug.php?id=63732&edit=1 ID: 63732 User updated by:jmichae3 at yahoo dot com Reported by:jmichae3 at yahoo dot com Summary:unicode strings not handled correctly Status: Not a bug Type: Bug Package:Scripting Engine problem Operating System: linux PHP Version:5.3.19 Block user comment: N Private report: N New Comment: if you were to take the time to do the research, there is no function in PHP except ord() for converting a character [from a string] to a number. maybe strings need to be handled differently internally in php to handle UNICODE. or maybe ord simply needs to be rewritten so it works so matter what character encoding is thrown at it. it would be difficult, but extremely useful, since it is the only function. I took the time to look through the mb functions. there was nothing to help me. I tried looking through the mb functions, there wasn't a compare. there wasn't a way to compare. I consider a function like that to be crucial if relops are not safe or capable of doing it. if that is the case, please make one, and an mb function for returning the ordinal value of an mb char. the functionality is just not there. thanks. much appreciated. unicode/mb-related bug database stuff: https://bugs.php.net/bug.php?id=49439 https://bugs.php.net/bug.php?id=63732 just search the database for anything with mb_encode or unicode. there are a number of bugs related to this problem. Previous Comments: [2012-12-11 22:22:24] ras...@php.net This is a bug reporting system. You reported a bug on a function that is behaving as intended and as documented. This is not a support forum. There are plenty of ways to do what you need. Start by reading about the mbstring functions. [2012-12-11 17:22:40] jmichae3 at yahoo dot com it may be documented behavior, but it still doesn't provide a solution to the problem. [2012-12-10 02:24:33] ahar...@php.net PHP strings are effectively byte arrays, and ord() only looks at the first byte. This is documented behaviour. [2012-12-09 07:38:05] jmichae3 at yahoo dot com Description: I am getting russian characters in my meail forms. I want to compare the characters to see if they are > '~' which is the last visible character in the ascii character set. this comparison does not work. in UNICODE, these characters are about 1024, and ~ is 126 according to ord(). ord() thinks EVERY character is ascii. this is far from true. there are mb characters from utf8. this is russian random characters from charmap: ÐÏÐγÏÐÐÐЫЫÐÐÐÑмдп in fact, I don't have any working way to detect whether a character is KOI8-R or ASCII, or cyrillic, or whether the character ordinal number is actually beyond 127 or not. because according to ord(), it's all within 0-255. Test script: --- 0) { echo "OK"; } else { echo "fail"; } if (ord($s[$i]) > 126) { echo "OK"; } else { echo "fail"; } if ($s[$i] > '~') { echo "OK"; } else { echo "fail"; } echo ord($s[$i]); } echo "\n"; $i=0; /* strangely enough, I get 2 outputs with only 1 character. Sat 12/08/2012 23:12:46.76||E:\www\jimm|>php t.php 1 OKOKOK208OKOKOK191 Sat 12/08/2012 23:14:27.34||E:\www\jimm|> */ ?> Expected result: whole characters as a single unit. 1 result. Actual result: -- got 2 results from 1 UNICODE russian character in a string. should only get 1. this file was encoded with utf8 without bom. php is splitting the utf8 characters into a byte stream when it gets to strlen(). or it just treats unicode and utf8 characters like ascii. this does not work well when trying to use mb_detect_encoding() - that breaks ability to detect encodings when it breaks up characters like that. nearly everything with strings actually. this also breaks ability to detect foreign spam. -- Edit this bug report at https://bugs.php.net/bug.php?id=63732&edit=1
Bug #63732 [Nab]: unicode strings not handled correctly
Edit report at https://bugs.php.net/bug.php?id=63732&edit=1 ID: 63732 User updated by:jmichae3 at yahoo dot com Reported by:jmichae3 at yahoo dot com Summary:unicode strings not handled correctly Status: Not a bug Type: Bug Package:Scripting Engine problem Operating System: linux PHP Version:5.3.19 Block user comment: N Private report: N New Comment: this code might be moreuseful, I am going to give it to you. I know there is unicode-16 and unicode-32 and such. if the string can hanbdle stuff like that, there really should be an internal function for that which also handles this internally. because although this is useful and I can use it, it is a workaround rather than a real and complete solution for multiple encodings such as you would find listed with mb_list_encodings(). //returns ordinal value of character in string $str at $index //and increments $index past current utf-8 character. function utf8_ord_next_char($str, &$index) { $b0 = ord($str[$index + 0]); if ($b0 < 0x10) { $index++; return $b0; } $b1 = ord($str[$index + 1]); if ($b0 < 0xE0) { $index += 2; return (($b0 & 0x1F) << 6) + ($b1 & 0x3F); } $index += 3; return (($b0 & 0x0F) << 12) + (($b1 & 0x3F) << 6) + (ord($str[$index + 2]) & 0x3F); } so for detecting non-ascii languages, //detect foreign languages for ($i=0;$i < strlen($comment);) { if (utf8_ord_next_char($comment,$i) > 126) { echo "ERRORb"; return true; //error } } Previous Comments: [2012-12-12 02:38:50] ras...@php.net Personally I'd just convert from utf8 to iso-8959-1 or whichever encoding you are looking for here instead of checking each character. But if you really do want to do it, it isn't very hard. You just need to understand what UTF-8 looks like and it becomes a simple 5-line function in userspace: function utf8_ord($c) { $b0 = ord($c[0]); if($b0 < 0x10) return $b0; $b1 = ord($c[1]); if($b0 < 0xE0 )return (($b0 & 0x1F) << 6) + ($b1 & 0x3F); return (($b0 & 0x0F) << 12) + (($b1 & 0x3F) << 6) + (ord($c[2]) & 0x3F); } But you have to understand that there is absolutely no way to accurately detect the encoding of a short sequence of bytes. The above will work if you know the input is UTF-8. There is no way to write a magic function which will tell you the encoding from a couple of bytes of data which you seem to imply we should provide you. [2012-12-12 00:34:00] jmichae3 at yahoo dot com if you were to take the time to do the research, there is no function in PHP except ord() for converting a character [from a string] to a number. maybe strings need to be handled differently internally in php to handle UNICODE. or maybe ord simply needs to be rewritten so it works so matter what character encoding is thrown at it. it would be difficult, but extremely useful, since it is the only function. I took the time to look through the mb functions. there was nothing to help me. I tried looking through the mb functions, there wasn't a compare. there wasn't a way to compare. I consider a function like that to be crucial if relops are not safe or capable of doing it. if that is the case, please make one, and an mb function for returning the ordinal value of an mb char. the functionality is just not there. thanks. much appreciated. unicode/mb-related bug database stuff: https://bugs.php.net/bug.php?id=49439 https://bugs.php.net/bug.php?id=63732 just search the database for anything with mb_encode or unicode. there are a number of bugs related to this problem. [2012-12-11 22:22:24] ras...@php.net This is a bug reporting system. You reported a bug on a function that is behaving as intended and as documented. This is not a support forum. There are plenty of ways to do what you need. Start by reading about the mbstring functions. [2012-12-11 17:22:40] jmichae3 at yahoo dot com it may be documented behavior, but it still doesn't provide a solution to the problem. [2012-12-10 02:24:33] ahar...@php.net PHP strings are effectively byte arrays, and ord() only looks at the first byte. This is documented behaviour. The remainder of the comments for this report a
Bug #63732 [Com]: unicode strings not handled correctly
Edit report at https://bugs.php.net/bug.php?id=63732&edit=1 ID: 63732 Comment by: jmichae3 at yahoo dot com Reported by:jmichae3 at yahoo dot com Summary:unicode strings not handled correctly Status: Not a bug Type: Bug Package:Scripting Engine problem Operating System: linux PHP Version:5.3.19 Block user comment: N Private report: N New Comment: something is wrong with the code you gave me. it doesn't work. also, it doesn't follow Ken Thompson's table shown below in URL in comment. there are any other reference documents (wikipedia). one thing I discovered about this code is that: - the page must be encoded as UTF-8 without BOM (such as using notepad++, Encoding, Convert to utf8 without BOM. - you must also include a meta tag better coded utf-8 only version and one that actually works: (and by the way, this works with ascii too) //returns ordinal value of character in string $str at $index //and increments $index past current utf-8 character. //based on the table at http://doc.cat-v.org/bell_labs/utf-8_history function utf8_ord_next_char($str, &$index) { if ($index+1 <= strlen($str) && 0x80 == 0x80 & ord($str[$index + 0]) ) { $result = (ord($str[$index+0])&0x7f) ; $index += 1; return $result; } else if ($index+2 <= strlen($str) && 0xc0 == 0xe0 & ord($str[$index + 0]) && 0x80 == 0xc0 & ord($str[$index + 1]) ) { $result = (ord($str[$index+0])&0x1f) + (ord($str[$index+1])&0x3f) ; $index += 2; return $result; } else if ($index+3 <= strlen($str) && 0xe0 == 0xf0 & ord($str[$index + 0])) { && 0x80 == 0xc0 & ord($str[$index + 1]) && 0x80 == 0xc0 & ord($str[$index + 2]) ) { $result = (ord($str[$index+0])&0x0f) + (ord($str[$index+1])&0x3f) + (ord($str[$index+2])&0x3f) ; $index += 3; return $result; } else if ($index+4 <= strlen($str) && 0xf0 == 0xf8 & ord($str[$index + 0])) { && 0x80 == 0xc0 & ord($str[$index + 1]) && 0x80 == 0xc0 & ord($str[$index + 2]) && 0x80 == 0xc0 & ord($str[$index + 3]) ) { $result = (ord($str[$index+0])&0x07) + (ord($str[$index+1])&0x3f) + (ord($str[$index+2])&0x3f) + (ord($str[$index+3])&0x3f) ; $index += 4; return $result; } else if ($index+5 <= strlen($str) && 0xf8 == 0xfc & ord($str[$index + 0])) { && 0x80 == 0xc0 & ord($str[$index + 1]) && 0x80 == 0xc0 & ord($str[$index + 2]) && 0x80 == 0xc0 & ord($str[$index + 3]) && 0x80 == 0xc0 & ord($str[$index + 4]) ) { $result = (ord($str[$index+0])&0x03) + (ord($str[$index+1])&0x3f) + (ord($str[$index+2])&0x3f) + (ord($str[$index+3])&0x3f) + (ord($str[$index+4])&0x3f) ; $index += 5; return $result; } else if ($index+6 <= strlen($str) && 0xfc == 0xfe & ord($str[$index + 0])) { && 0x80 == 0xc0 & ord($str[$index + 1]) && 0x80 == 0xc0 & ord($str[$index + 2]) && 0x80 == 0xc0 & ord($str[$index + 3]) && 0x80 == 0xc0 & ord($str[$index + 4]) && 0x80 == 0xc0 & ord($str[$index + 5]) ) { $result = (ord($str[$index+0])&0x01) + (ord($str[$index+1])&0x3f) + (ord($str[$index+2])&0x3f) + (ord($str[$index+3])&0x3f) + (ord($str[$index+4])&0x3f) + (ord($str[$index+5])&0x3f) ; $index += 6; return $result; } //unknown case $result = ord($str[$index+0]); $index++; return $result; } Previous Comments: ---