#46020 [Com]: With Sun Java System Web Server 7.0 on HPUX, #define HPUX
ID: 46020 Comment by: rkl at connect dot org dot uk Reported By: river at wikimedia dot org Status: Assigned Bug Type: Compile Failure Operating System: HP-UX 11.11 PHP Version: 5.2.6 Assigned To: thetaphi New Comment: Just a note that #ifndef HPUX is technically the wrong check for HP-UX when compiling C/C++, it should be: #ifndef __hpux ..Do non-HP-UX code #endif __hpux is defined in all C/C++ compilers (both gcc/g++ and HP's C/C++) in all releases of HP-UX. So the blame here is with Sun's nsapi.h and not PHP, but until Sun fix it, -DHPUX is the obvious workaround. Previous Comments: [2008-10-02 17:33:43] theta...@php.net In my opinion, this is not a bug in PHP, as the compile failure happens in nsapi.h. I think you should also ask this question on the SJSWS discussion on Sun's homepage. Or maybe this is a GCC bug. In principle, it would be possible to add a compile option to PHP that is only set on HPUX, but this would not help others to compile other NSAPI components with GCC. Did you try the HP-UX compiler, does it set -DHPUX? I have no HP-UX machine, so I cannot test any of your configurations. Maybe you send me a fragment to detect HP-UX in configure scripts or what the auto-defines of GCC are for HP-UX. With this a simple workaround would be to do: #ifdef GCC_SPECIAL_HPUX_DEFINE #define HPUX #endif include nsapi.h in the nsapi module (I think nsapi.h is used nowhere else in PHP). [2008-10-01 00:49:51] krish dot v at gmail dot com This happened for my Sun one webserver 6.1 running in HP UX 11.11. I tried your work around and it worked fine. Thanks for the help. This is really a useful one. Krish. [2008-09-08 08:41:04] river at wikimedia dot org Description: When compiling --with-nsapi on HP-UX 11.11 using Sun Java System Web Server 7.0 Update 3, compilation fails inside nsapi.h because HPUX is not #defined. A workaround is to build with 'CPPFLAGS=-DHPUX'. I suggest detecting HP-UX at compile time and defining HPUX if the NSAPI module is being built. Reproduce code: --- I compiled PHP like this: CPPFLAGS='-I/usr/local/include' LDFLAGS='-L/usr/local/lib -Wl,+b,/usr/local/mysql/lib:/usr/local/lib' CC=gcc CXX=g++ ./configure --prefix=/opt/php --with-mysql=/usr/local/mysql --enable-mbstring --enable-fastcgi --with-nsapi=/opt/webserver7 Expected result: I expected PHP to compile. Actual result: -- PHP didn't compile, with the following error: In file included from /home/river/php/php-5.2.6/sapi/nsapi/nsapi.c:62: /opt/webserver7/include/nsapi.h:315:24: error: sys/select.h: No such file or directory (This include is wrapped in #ifndef HPUX, which HP's GCC doesn't define by default.) -- Edit this bug report at http://bugs.php.net/?id=46020edit=1
#46020 [Com]: With Sun Java System Web Server 7.0 on HPUX, #define HPUX
ID: 46020 Comment by: river at wikimedia dot org Reported By: river at wikimedia dot org Status: Assigned Bug Type: Compile Failure Operating System: HP-UX 11.11 PHP Version: 5.2.6 Assigned To: thetaphi New Comment: I agree the problem seems to be inside the NSAPI headers, but the response from Sun about this was 'define HPUX yourself', so it seems they're not interested in fixing it. Previous Comments: [2009-01-12 09:21:26] rkl at connect dot org dot uk Just a note that #ifndef HPUX is technically the wrong check for HP-UX when compiling C/C++, it should be: #ifndef __hpux ..Do non-HP-UX code #endif __hpux is defined in all C/C++ compilers (both gcc/g++ and HP's C/C++) in all releases of HP-UX. So the blame here is with Sun's nsapi.h and not PHP, but until Sun fix it, -DHPUX is the obvious workaround. [2008-10-02 17:33:43] theta...@php.net In my opinion, this is not a bug in PHP, as the compile failure happens in nsapi.h. I think you should also ask this question on the SJSWS discussion on Sun's homepage. Or maybe this is a GCC bug. In principle, it would be possible to add a compile option to PHP that is only set on HPUX, but this would not help others to compile other NSAPI components with GCC. Did you try the HP-UX compiler, does it set -DHPUX? I have no HP-UX machine, so I cannot test any of your configurations. Maybe you send me a fragment to detect HP-UX in configure scripts or what the auto-defines of GCC are for HP-UX. With this a simple workaround would be to do: #ifdef GCC_SPECIAL_HPUX_DEFINE #define HPUX #endif include nsapi.h in the nsapi module (I think nsapi.h is used nowhere else in PHP). [2008-10-01 00:49:51] krish dot v at gmail dot com This happened for my Sun one webserver 6.1 running in HP UX 11.11. I tried your work around and it worked fine. Thanks for the help. This is really a useful one. Krish. [2008-09-08 08:41:04] river at wikimedia dot org Description: When compiling --with-nsapi on HP-UX 11.11 using Sun Java System Web Server 7.0 Update 3, compilation fails inside nsapi.h because HPUX is not #defined. A workaround is to build with 'CPPFLAGS=-DHPUX'. I suggest detecting HP-UX at compile time and defining HPUX if the NSAPI module is being built. Reproduce code: --- I compiled PHP like this: CPPFLAGS='-I/usr/local/include' LDFLAGS='-L/usr/local/lib -Wl,+b,/usr/local/mysql/lib:/usr/local/lib' CC=gcc CXX=g++ ./configure --prefix=/opt/php --with-mysql=/usr/local/mysql --enable-mbstring --enable-fastcgi --with-nsapi=/opt/webserver7 Expected result: I expected PHP to compile. Actual result: -- PHP didn't compile, with the following error: In file included from /home/river/php/php-5.2.6/sapi/nsapi/nsapi.c:62: /opt/webserver7/include/nsapi.h:315:24: error: sys/select.h: No such file or directory (This include is wrapped in #ifndef HPUX, which HP's GCC doesn't define by default.) -- Edit this bug report at http://bugs.php.net/?id=46020edit=1
#47050 [Bgs-Opn]: mysqli_poll() modifies improper variables
ID: 47050 Updated by: vr...@php.net Reported By: vr...@php.net -Status: Bogus +Status: Open Bug Type: MySQLi related Operating System: Windows PHP Version: 5.3.0alpha4-dev New Comment: The modification of $links is not the problem, it works as expected. The problem is in modification of $all_links which was not passed to mysqli_poll() at all. Previous Comments: [2009-01-11 00:14:41] fel...@php.net It's looks expected, Jakub. See the prototype: public int mysqli::poll ( array $read , array $error , array $reject , int $sec [, int $usec ] ) int mysqli_poll ( array $read , array $error , array $reject , int $sec [, int $usec ] ) [2009-01-09 13:06:50] vr...@php.net Description: mysqli_poll() modifies the variable which was assigned to variables passed to mysqli_poll(). The reason probably is that mysqli_poll() doesn't copy zvals on write as it should. Reproduce code: --- ?php $link1 = mysqli_connect(); $link1-query(SELECT 'test', MYSQLI_ASYNC); $all_links = array($link1); $links = $errors = $reject = $all_links; mysqli_poll($links, $errors, $reject, 1); print_r($all_links); Expected result: Array ( [0] = mysqli Object ) Actual result: -- Array ( ) -- Edit this bug report at http://bugs.php.net/?id=47050edit=1
#47023 [Fbk-Csd]: ZipArchive fails under certain circumstances
ID: 47023 Updated by: paj...@php.net Reported By: cristi at imagis dot ro -Status: Feedback +Status: Closed Bug Type: Zip Related Operating System: Windows XP SP3 PHP Version: 5.2.8 Previous Comments: [2009-01-07 09:36:17] paj...@php.net Seems to be the same problem than #46985, which is fixed now. Please try a snapshot (http://windows.php.net/snapshots/) [2009-01-07 09:24:44] cristi at imagis dot ro Description: I am experiencing some problems with ZipArchive, using PHP 5.2.8, with php_zip supplied with this distribution. I am trying to archive couple of folders and files using ZipArchive. If i am replacing php_zip.dll with php_zip.dll from PHP 5.2.6 it works without problems. Testing same code using a PHP 5.2.7 installation (with php_zip.dll of 5.2.7) crashes archive also (see Expected Results section). Reproduce code: --- class My_ZipArchive extends ZipArchive { public function addDir($filename, $localname) { // Adds a directory recursivelly, keeping the same structure. // @param string $filename The path to the file to add. // @param string $localname Local name inside ZIP archive. if($localname == NULL || empty($localname)) $localpath = ; else { $localpath = $localname . '/'; $this-addEmptyDir($localname); } $iter = new DirectoryIterator($filename); foreach($iter as $file) { // Only zip real files: no dots, no links. if ($file-isDot() || (!$file-isFile() !$file-isDir())) { continue; } $method = $file-isFile() ? 'addFile' : 'addDir'; echo $file-getPathname().' - '.$method.'br /'; $this-$method($file-getPathname(), $localpath.$file-getFilename()); } } } try { //create output archive $zip = new My_ZipArchive(); $zip-open( 'archive.zip', ZIPARCHIVE::CREATE); $zip-addDir( 'd:\_Work\test\output', ''); $result = $zip-close(); //finish create output archive } catch(Exception $e) { echo 'Caught exception: ', $e-getMessage(), \n; } exit($result.'finished'); Expected result: This code should make a zip with my files. Actual result: -- If i have 3 .php files to add them to zip i got a corrupted archive. If i remove one of them i got a good zip archive. If i am opening corrupted archive with a zip utility archive doesn't seems to have any files within or is reported directly as corrupted. If i am using a repair tool i got a working archive. -- Edit this bug report at http://bugs.php.net/?id=47023edit=1
#47072 [NEW]: php crash when mssql_connect to remote MSSQLSERVER 2005 Standart Edition
From: bloodjazman at gmail dot com Operating system: Windows XP SP2 PHP version: 5.2.8 PHP Bug Type: Reproducible crash Bug description: php crash when mssql_connect to remote MSSQLSERVER 2005 Standart Edition Description: i read all comments on http://php.net/manual/en/function.mssql-connect.php i have developers machine Windows XP SP2 (5.1.2600) + php 5.2.8 (and reproduce under php-5.2-win32-VC6-x86-latest.zip, php-5.3-win32-VC9-x86-latest.zip) ntwdblib.dll 2000.80.194.0 (and reproduce under ntwdblib.dll 2000.2.8.0) and remote machine Windows 2003 SP1 + MSSQLServer 2005 Standart Edition (version 9.0.1339) - php.ini mssql.secure_connection=off php.exe -i | grep mssql mssql mssql.allow_persistent = On = On mssql.batchsize = 0 = 0 mssql.compatability_mode = Off = Off mssql.connect_timeout = 5 = 5 mssql.datetimeconvert = On = On mssql.max_links = 50 = 50 mssql.max_persistent = 10 = 10 mssql.max_procs = 25 = 25 mssql.min_error_severity = 0 = 0 mssql.min_message_severity = 1 = 1 mssql.secure_connection = Off = Off mssql.textlimit = Server default = Server default mssql.textsize = Server default = Server default mssql.timeout = 60 = 60 when try running reproduction code (see below) i have Unhandled exception at 0x7333f179 (ntwdblib.dll) in php.exe: 0xC005: Access violation reading location 0x003e. Reproduce code: --- ? /** // this code working fine, but i'm need connect to remote MSSQL 2005 Standart Server (not Express) $mssql=mssql_connect('.\SQLEXPRESS','sa','sysdba') or die('Error MSSQL Connect '.mssql_get_last_message()); var_dump($mssql); */ $mssql=mssql_connect('192.168.x.x','sa','sysdba') or die('Error MSSQL Connect '.mssql_get_last_message()); var_dump($mssql); ? Expected result: resource(4) of type (mssql link) Actual result: -- crash php.exe with debug backtrace ntwdblib.dll!_changen...@8() + 0x2a bytes ntwdblib.dll!_printmess...@12() + 0x2a5 bytes ntwdblib.dll!_handleinfoto...@8() + 0x112 bytes ntwdblib.dll!_dbresults() + 0x341 bytes ntwdblib.dll!_dbopen() + 0xdfe bytes php_mssql.dll!php_mssql_do_connect(int ht=17745128, _zval_struct * return_value=0x010ec4d0, _zval_struct * * return_value_ptr=0x, _zval_struct * this_ptr=0x, int return_value_used=1, void * * * tsrm_ls=0x00222450, int persistent=0) Line 661 + 0xb bytes C php_mssql.dll!zif_mssql_connect(int ht=3, _zval_struct * return_value=0x010ec4d0, _zval_struct * * return_value_ptr=0x, _zval_struct * this_ptr=0x, int return_value_used=1, void * * * tsrm_ls=0x00222450) Line 724 + 0x25 bytes C php5ts.dll!zend_do_fcall_common_helper_SPEC(_zend_execute_data * execute_data=0x00c0fbd0, void * * * tsrm_ls=0x00222450) Line 200 + 0x3d bytes C php5ts.dll!ZEND_DO_FCALL_SPEC_CONST_HANDLER(_zend_execute_data * execute_data=0x, void * * * tsrm_ls=0x00222450) Line 1729 + 0xe bytes C php5ts.dll!execute(_zend_op_array * op_array=0x0008, void * * * tsrm_ls=0x00222450) Line 92 + 0xc bytesC php5ts.dll!php_execute_script(_zend_file_handle * primary_file=0x00c0fec8, void * * * tsrm_ls=0x00222450) Line 2023 + 0x12 bytes C php.exe!main(int argc=5, char * * argv=0x00223f70) Line 1134 C php.exe!_mainCRTStartup() + 0xe3 bytes kernel32.dll!7c816d4f() -- when i change settings php.ini mssql.secure_connection = On i have other errors when php_mssql.dll try using NT Authorization Warning: mssql_connect(): message: Login failed for user 'westltp'. The user is not associated with a trusted SQL Server connection. (Microsoft SQL Server, error: 18452) (severity 14) in C:\usr\local\apache\htdocs\test\mssql_connect.php on line 6 Warning: mssql_connect(): Login incorrect. (severity 2) in C:\usr\local\apache\htdocs\test\mssql_connect.php on line 6 Warning: mssql_connect(): Unable to connect to server: 192.168.x.x in C:\usr\local\apache\htdocs\test\mssql_connect.p hp on line 6 Error MSSQL Connect Login failed for user 'westltp'. The user is not associated with a trusted SQL Server connection. (Microsoft SQL Server, error: 18452) -- Edit bug report at http://bugs.php.net/?id=47072edit=1 -- Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=47072r=trysnapshot52 Try a CVS snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=47072r=trysnapshot53 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=47072r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=47072r=fixedcvs Fixed in CVS and need be documented: http://bugs.php.net/fix.php?id=47072r=needdocs Fixed in release: http://bugs.php.net/fix.php?id=47072r=alreadyfixed Need backtrace:
#47073 [NEW]: don�t connect to mssql
From: joao dot rebelo at pchouse dot pt Operating system: Windows XP SP3 PHP version: 5.2.8 PHP Bug Type: MSSQL related Bug description: don´t connect to mssql Description: Upgrading from PHP 5.2.6 to PHP 5.2.8 and had stopping the connection with MSSQL, with the message 'no driver installed' even after installing the driver from Microsoft web site and installing and configure php.ini to load the drive when I rollback to PHP 5.2.6 everything works fine. -- Edit bug report at http://bugs.php.net/?id=47073edit=1 -- Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=47073r=trysnapshot52 Try a CVS snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=47073r=trysnapshot53 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=47073r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=47073r=fixedcvs Fixed in CVS and need be documented: http://bugs.php.net/fix.php?id=47073r=needdocs Fixed in release: http://bugs.php.net/fix.php?id=47073r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=47073r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=47073r=needscript Try newer version: http://bugs.php.net/fix.php?id=47073r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=47073r=support Expected behavior: http://bugs.php.net/fix.php?id=47073r=notwrong Not enough info: http://bugs.php.net/fix.php?id=47073r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=47073r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=47073r=globals PHP 4 support discontinued: http://bugs.php.net/fix.php?id=47073r=php4 Daylight Savings:http://bugs.php.net/fix.php?id=47073r=dst IIS Stability: http://bugs.php.net/fix.php?id=47073r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=47073r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=47073r=float No Zend Extensions: http://bugs.php.net/fix.php?id=47073r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=47073r=mysqlcfg
#47073 [Opn-Fbk]: don�t connect to mssql
ID: 47073 Updated by: paj...@php.net Reported By: joao dot rebelo at pchouse dot pt -Status: Open +Status: Feedback Bug Type: MSSQL related Operating System: Windows XP SP3 PHP Version: 5.2.8 New Comment: Please show us some script. Also the driver from Microsoft is not compatible with PHP's mssql drivers. They use differenet APIs. Previous Comments: [2009-01-12 10:15:23] joao dot rebelo at pchouse dot pt Description: Upgrading from PHP 5.2.6 to PHP 5.2.8 and had stopping the connection with MSSQL, with the message 'no driver installed' even after installing the driver from Microsoft web site and installing and configure php.ini to load the drive when I rollback to PHP 5.2.6 everything works fine. -- Edit this bug report at http://bugs.php.net/?id=47073edit=1
#47050 [Opn-Asn]: mysqli_poll() modifies improper variables
ID: 47050 Updated by: johan...@php.net Reported By: vr...@php.net -Status: Open +Status: Assigned Bug Type: MySQLi related Operating System: Windows PHP Version: 5.3.0alpha4-dev -Assigned To: +Assigned To: mysql New Comment: mysqli_poll is missing arginfo telling it needs a reference so the engine can't properly separate the zvals. Will fix that when done with my current fix. Previous Comments: [2009-01-12 09:32:50] vr...@php.net The modification of $links is not the problem, it works as expected. The problem is in modification of $all_links which was not passed to mysqli_poll() at all. [2009-01-11 00:14:41] fel...@php.net It's looks expected, Jakub. See the prototype: public int mysqli::poll ( array $read , array $error , array $reject , int $sec [, int $usec ] ) int mysqli_poll ( array $read , array $error , array $reject , int $sec [, int $usec ] ) [2009-01-09 13:06:50] vr...@php.net Description: mysqli_poll() modifies the variable which was assigned to variables passed to mysqli_poll(). The reason probably is that mysqli_poll() doesn't copy zvals on write as it should. Reproduce code: --- ?php $link1 = mysqli_connect(); $link1-query(SELECT 'test', MYSQLI_ASYNC); $all_links = array($link1); $links = $errors = $reject = $all_links; mysqli_poll($links, $errors, $reject, 1); print_r($all_links); Expected result: Array ( [0] = mysqli Object ) Actual result: -- Array ( ) -- Edit this bug report at http://bugs.php.net/?id=47050edit=1
#47074 [NEW]: phpinfo() reports On as 1 for the some extensions
From: RQuadling at GMail dot com Operating system: Windows XP Pro SP3 PHP version: 5.3CVS-2009-01-12 (CVS) PHP Bug Type: *Configuration Issues Bug description: phpinfo() reports On as 1 for the some extensions Description: Hi. Most like just a cosmetic issue. Many of extensions report On when the ini value is a boolean. Some of the settings are reported as 1. It would be nice, where appropriate, to have On/Off for booleans, rather than 1/0. The modules I see as being affected by this are ... com_dotnet gd soap standard Others may exist. -- Edit bug report at http://bugs.php.net/?id=47074edit=1 -- Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=47074r=trysnapshot52 Try a CVS snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=47074r=trysnapshot53 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=47074r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=47074r=fixedcvs Fixed in CVS and need be documented: http://bugs.php.net/fix.php?id=47074r=needdocs Fixed in release: http://bugs.php.net/fix.php?id=47074r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=47074r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=47074r=needscript Try newer version: http://bugs.php.net/fix.php?id=47074r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=47074r=support Expected behavior: http://bugs.php.net/fix.php?id=47074r=notwrong Not enough info: http://bugs.php.net/fix.php?id=47074r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=47074r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=47074r=globals PHP 4 support discontinued: http://bugs.php.net/fix.php?id=47074r=php4 Daylight Savings:http://bugs.php.net/fix.php?id=47074r=dst IIS Stability: http://bugs.php.net/fix.php?id=47074r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=47074r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=47074r=float No Zend Extensions: http://bugs.php.net/fix.php?id=47074r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=47074r=mysqlcfg
#28038 [Com]: Sent incorrect RCPT TO commands to SMTP server
ID: 28038 Comment by: julioworld at hotmail dot com Reported By: jordi at jcanals dot net Status: Open Bug Type: Mail related Operating System: win32 only PHP Version: 5CVS, 6CVS (2008-10-24) New Comment: I also had this problem and I solved it by adding this line in the php.ini in the section [mail function]: [mail function] sendmail_from = em...@domain.com Previous Comments: [2009-01-06 19:41:42] ghooey at gmail dot com Unlike with a linux server the email address in ini_set('sendmail_from', 'm...@domain.com); has to be a valid email address [2008-12-10 19:46:45] jordi at jcanals dot net You did not understand where the bug is (or was). We pass the proper headers exactly the same in any platform. PHP mail layer change them to the wrong format, by adding extra signs. What you say we have to consider, Is what we are doing. Read carefully the bug description, the headers sent to PHP mail function, and the headers sent by the mail layer to the mail server. [2008-12-10 18:02:32] webmaster at cjr3 dot com This so-called bug isn't so much a bug considering you should pass the headers correctly (as you always should). Consider the following: Content-Type: text/html From: Someone some...@somewhere.tld Reply-To: Someone some...@somewhere.tld As Windows (and other Microsoft products do) follows standards so strict that at times can aggravate developers who are used to using libraries fixing their mistakes for them, you'll need to pass proper information for it to work properly. The work around shouldn't be used because you're still modifying PHP's intentions, which you shouldn't be doing unless absolutely necessary. Furthermore, you do not have to use Namen...@whatever.here or Name n...@whatever.there for it to work (in fact, this does work, but it does cut off after the first '' and makes your name look stupid in the from for the email. [2008-10-17 08:01:56] morgue1 at free dot fr David, your fix doesn't work. It still Foof...@bar.com. I also tried Foo f...@bar.com without success. I only can send mail without give name for sender or receiver. [2008-09-16 15:38:01] david at thedatabridge dot com I had the same problem until I changed the format of my headers. I had this problem with this style: From: Foo Bar f...@bar.net fixed by using this style: From: Foo Barf...@bar.net Don't include space between Name and email and you should be ok! :P 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/28038 -- Edit this bug report at http://bugs.php.net/?id=28038edit=1
#47075 [NEW]: catch doesn't allow for an empty statement
From: p at nic dot com dot pl Operating system: linux PHP version: 5.2.8 PHP Bug Type: Feature/Change Request Bug description: catch doesn't allow for an empty statement Description: catch requires empty {} and not just ; Reproduce code: --- try { statement } catch (exception); is not allowed: PHP Parse error: syntax error, unexpected ';', expecting '{' Expected result: try { statement } catch (exception); should work (catch exception, do nothing) exactly like try { statement } catch (exception) {}; does. -- Edit bug report at http://bugs.php.net/?id=47075edit=1 -- Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=47075r=trysnapshot52 Try a CVS snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=47075r=trysnapshot53 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=47075r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=47075r=fixedcvs Fixed in CVS and need be documented: http://bugs.php.net/fix.php?id=47075r=needdocs Fixed in release: http://bugs.php.net/fix.php?id=47075r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=47075r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=47075r=needscript Try newer version: http://bugs.php.net/fix.php?id=47075r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=47075r=support Expected behavior: http://bugs.php.net/fix.php?id=47075r=notwrong Not enough info: http://bugs.php.net/fix.php?id=47075r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=47075r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=47075r=globals PHP 4 support discontinued: http://bugs.php.net/fix.php?id=47075r=php4 Daylight Savings:http://bugs.php.net/fix.php?id=47075r=dst IIS Stability: http://bugs.php.net/fix.php?id=47075r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=47075r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=47075r=float No Zend Extensions: http://bugs.php.net/fix.php?id=47075r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=47075r=mysqlcfg
#47076 [NEW]: binary representation of unicode
From: lunter at interia dot pl Operating system: all PHP version: 6CVS-2009-01-12 (CVS) PHP Bug Type: Unicode Engine related Bug description: binary representation of unicode Description: converting binary-string without charset translating for view binary representation of unicode or generate unicode from valid binary consists unicode sequenses note that: unicode_encode/unicode_decode using charset translating, see Reproduce code Example 1: You have (binary)$b. It consists two bytes: 11001110 10110010 Its length in binary representation is two. It is also valid one-length UTF-8 char(946) (greek small letter beta) How to conver it ($b) into one-char UTF-8 string?? When we try $u=(string)$b, it gives two-char UTF-8 string. Example 2: You have (string)$u UTF-8 one-char string. It consists chr(946) (greek small letter beta) Now You have to see two bytes binary representation of this (11001110 10110010). There is no way to convert it without charset translation... Reproduce code: --- ? $s=chr(946); print(strlen($s)); print('br'); $b=unicode_encode($s,'iso-8859-1'); print(strlen($b)); ? Expected result: 1 (unicode 1 char) 2 (binary 2 bytes) [11001110 10110010] Actual result: -- 1 1 no way to converting binary-string without charset translating in binary we have length = 1 but it is 2 bytes -- Edit bug report at http://bugs.php.net/?id=47076edit=1 -- Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=47076r=trysnapshot52 Try a CVS snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=47076r=trysnapshot53 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=47076r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=47076r=fixedcvs Fixed in CVS and need be documented: http://bugs.php.net/fix.php?id=47076r=needdocs Fixed in release: http://bugs.php.net/fix.php?id=47076r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=47076r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=47076r=needscript Try newer version: http://bugs.php.net/fix.php?id=47076r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=47076r=support Expected behavior: http://bugs.php.net/fix.php?id=47076r=notwrong Not enough info: http://bugs.php.net/fix.php?id=47076r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=47076r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=47076r=globals PHP 4 support discontinued: http://bugs.php.net/fix.php?id=47076r=php4 Daylight Savings:http://bugs.php.net/fix.php?id=47076r=dst IIS Stability: http://bugs.php.net/fix.php?id=47076r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=47076r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=47076r=float No Zend Extensions: http://bugs.php.net/fix.php?id=47076r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=47076r=mysqlcfg
#47077 [NEW]: mysql + PHP crashes IIS worker process and application pool
From: w dot purrer at lenzing dot com Operating system: Windows 2008 sp1 PHP version: 5.2.8 PHP Bug Type: Reproducible crash Bug description: mysql + PHP crashes IIS worker process and application pool Description: Faulting application w3wp.exe, version 7.0.6001.18000, time stamp 0x47919413, faulting module ntdll.dll, version 6.0.6001.18000, time stamp 0x4791a7a6, exception code 0xc374, fault offset 0x000b015d, process id 0xde8, application start time 0x01c974ae53feda42. (i also has some kind of crashes within apache but this crash is with iis) = maybe mysql 5.1.30 has something to do with this problem Reproduce code: --- its a connect to mysql server (5.1.30) Actual result: -- Report for w3wp__PID__3616__Date__01_12_2009__Time_12_54_01PM__868__First chance exception 0XC374.dmp Type of Analysis Performed Crash Analysis Machine Name RGSPSM1 Operating System Windows Vista Service Pack 1 Number Of Processors 2 Process ID 3616 Process Image c:\Windows\System32\inetsrv\w3wp.exe System Up-Time 44 day(s) 20:58:07 Process Up-Time 00:00:07 Thread 7 - System ID 3628 Entry point w3tp!THREAD_MANAGER::ThreadManagerThread Create time 12.01.2009 12:53:54 Time spent in user mode 0 Days 0:0:0.15 Time spent in kernel mode 0 Days 0:0:0.0 Function Arg 1 Arg 2 Arg 3 Source ntdll!RtlReportCriticalFailure+5b c374 77a5c030 0132ec60 ntdll!RtlpReportHeapFailure+21 0002 9180d41e 0006 ntdll!RtlpLogHeapFailure+a1 0003 0006 02467c08 ntdll!RtlpAnalyzeHeapFailure+25a 0006 02467c08 ntdll!RtlpCoalesceFreeBlocks+60 0006 0246cfe0 0132ed1c ntdll!RtlpExtendHeap+40 0006 03c8 9180d672 ntdll!RtlpAllocateHeap+7db 03c0 03c8 00060544 ntdll!RtlAllocateHeap+1e3 0006 03c0 msvcrt!malloc+8d 03c0 02256288 02256288 php_mysql!php_mysql_do_connect+358 02253eb0 02253f90 php_mysql!zif_mysql_pconnect+25 0003 02253f90 php5ts!zend_do_fcall_common_helper_SPEC+869 0132efa8 023e7520 0224d0e8 php5ts!ZEND_DO_FCALL_SPEC_CONST_HANDLER+e5 023e7520 0132f05c php5ts!zend_do_fcall_common_helper_SPEC+5 0224d0e8 023e7520 0224acb6 php5ts!ZEND_INCLUDE_OR_EVAL_SPEC_CONST_HANDLER+320 0224bcf8 023e7520 php5ts!zend_do_fcall_common_helper_SPEC+5 0224bcf8 023e7520 php5ts!zend_execute_scripts+107 0008 023e7520 php5ts!php_execute_script+7d 0132f750 023e7520 1000 php5isapi!HttpExtensionProc+f0 00e5709c 2000 isapi!ProcessIsapiRequest+ed 10001de0 00e56f0c 003938c8 isapi!W3_ISAPI_HANDLER::DoWork+20a isapi!RequestDoWork+329 0080 00e56ee8 isapi!CIISHttpModule::OnExecuteRequestHandler+19 00e564b0 00e56508 00e564b4 iiscore!NOTIFICATION_CONTEXT::RequestDoWork+128 00d24e2c 00e564b0 iiscore!NOTIFICATION_CONTEXT::CallModulesInternal+2ec iiscore!NOTIFICATION_CONTEXT::CallModules+28 iiscore!W3_CONTEXT::DoStateRequestExecuteHandler+36 iiscore!W3_CONTEXT::DoWork+d7 iiscore!W3_MAIN_CONTEXT::StartNotificationLoop+49 00e564b4 00d25208 iiscore!W3_MAIN_CONTEXT::OnNewRequest+4c 00e55a58 00e55a58 74291330 w3dt!UL_NATIVE_REQUEST::DoStateProcess+26 7642bdd4 0132fc00 742911da w3dt!UL_NATIVE_REQUEST::DoWork+60 051d 00e55a5c w3dt!OverlappedCompletionRoutine+1a 051d 00e55a5c w3tp!THREAD_POOL_DATA::ThreadPoolThread+89 00d11218 74a0 w3tp!THREAD_POOL_DATA::ThreadPoolThread+24 00d25208 w3tp!THREAD_MANAGER::ThreadManagerThread+39 00d11218 0132fcb0 779ce4b6 kernel32!BaseThreadInitThunk+e 00d11218 9180c4ce ntdll!__RtlUserThreadStart+23 74a01e4c 00d11218 ntdll!_RtlUserThreadStart+1b 74a01e4c 00d11218 In w3wp__PID__3616__Date__01_12_2009__Time_12_54_01PM__868__First chance exception 0XC374.dmp the assembly instruction at ntdll!RtlReportCriticalFailure+5b in C:\Windows\System32\ntdll.dll from Microsoft Corporation has caused an unknown exception (0xc374) on thread 7 Module Information Image Name: C:\Windows\System32\ntdll.dll Symbol Type: PDB Base address: 0x7799 Time Stamp: Sat Jan 19 08:32:54 2008 Checksum: 0x00135d86 Comments: COM DLL: False Company
#47033 [Bgs]: converting binary-string without charset translating
ID: 47033 User updated by: lunter at interia dot pl Reported By: lunter at interia dot pl Status: Bogus Bug Type: Unicode Engine related Operating System: all PHP Version: 6CVS-2009-01-08 (snap) New Comment: Johannes, false. Try this: ? $s=chr(946); print(strlen($s)); print('br'); $b=unicode_encode($s,'iso-8859-1'); print(strlen($b)); ? unicode chr(946) in binary encoding has len = 2 bytes, not 1 Previous Comments: [2009-01-11 22:13:45] johan...@php.net We have unicode_encode() / unicode_decode(). [2009-01-08 07:42:45] lunter at interia dot pl Description: converting binary-string without charset translating Two functions for converting binary-string without translating charset needed. It is very usefull because binary data can consists utf-8 substring, you need to convert to string type. Also when you have to see binary representation of utf-8 string, or operating on it as binaries. Example 1: You have (binary)$b. It consists two bytes: 11001110 10110010 Its length in binary representation is two. It is also valid one-length UTF-8 char(946) (greek small letter beta) How to conver it ($b) into one-char UTF-8 string?? When we try $u=(string)$b, it gives two-char UTF-8 string. Example 2: You have (string)$u UTF-8 one-char string. It consists chr(946) (greek small letter beta) Now You have to see two bytes binary representation of this (11001110 10110010). There is no way to convert it without charset translation... Reproduce code: --- ; Unicode settings ; unicode.semantics = off unicode.runtime_encoding = iso-8859-1 unicode.script_encoding = utf-8 unicode.output_encoding = utf-8 unicode.from_error_mode = U_INVALID_SUBSTITUTE unicode.from_error_subst_char = 3f Expected result: way to converting binary-string without charset translating Actual result: -- no way to converting binary-string without charset translating -- Edit this bug report at http://bugs.php.net/?id=47033edit=1
#47076 [Opn]: binary representation of unicode
ID: 47076 User updated by: lunter at interia dot pl Reported By: lunter at interia dot pl Status: Open Bug Type: Unicode Engine related Operating System: all PHP Version: 6CVS-2009-01-12 (CVS) New Comment: Two new functions needed: (binary) uni2bin( (string) unicode data ) (string) bin2uni( (binary) binary data ) diference beetwen unicode_(en|de)code is: convert WITHOUT using charser translation Previous Comments: [2009-01-12 12:15:17] lunter at interia dot pl Description: converting binary-string without charset translating for view binary representation of unicode or generate unicode from valid binary consists unicode sequenses note that: unicode_encode/unicode_decode using charset translating, see Reproduce code Example 1: You have (binary)$b. It consists two bytes: 11001110 10110010 Its length in binary representation is two. It is also valid one-length UTF-8 char(946) (greek small letter beta) How to conver it ($b) into one-char UTF-8 string?? When we try $u=(string)$b, it gives two-char UTF-8 string. Example 2: You have (string)$u UTF-8 one-char string. It consists chr(946) (greek small letter beta) Now You have to see two bytes binary representation of this (11001110 10110010). There is no way to convert it without charset translation... Reproduce code: --- ? $s=chr(946); print(strlen($s)); print('br'); $b=unicode_encode($s,'iso-8859-1'); print(strlen($b)); ? Expected result: 1 (unicode 1 char) 2 (binary 2 bytes) [11001110 10110010] Actual result: -- 1 1 no way to converting binary-string without charset translating in binary we have length = 1 but it is 2 bytes -- Edit this bug report at http://bugs.php.net/?id=47076edit=1
#47078 [NEW]: xmlparser does not return entities
From: jan dot matousek at skype dot net Operating system: Mac OS X 10.5 PHP version: 5.2.8 PHP Bug Type: XML related Bug description: xmlparser does not return entities Description: XML parser does not return entities (amp; gt; lt; quot;). The problem occurs only when running PHP as apache2 module, and does not occur with PHP apache2 module supplied with Mac OS (PHP 5.2.6 built: Jul 15 2008 23:16:51). Having compiled php-5.2.8 and httpd-2.2.10. Configure command is ./configure --with-apxs2=/usr/local/apache2/bin/apxs Also happens with compiled php-5.2.6, I have not tried other versions. I am prepared to provide more details when necessary. Reproduce code: --- ?php function char_data($p, $data) { echo [[$data]]\n; } $p = xml_parser_create(); xml_set_character_data_handler($p, 'char_data'); xml_parse($p, '?xml version=1.0?rootcamp;a/root', true); Expected result: [[c]] [[]] [[a]] Actual result: -- [[c]] [[a]] -- Edit bug report at http://bugs.php.net/?id=47078edit=1 -- Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=47078r=trysnapshot52 Try a CVS snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=47078r=trysnapshot53 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=47078r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=47078r=fixedcvs Fixed in CVS and need be documented: http://bugs.php.net/fix.php?id=47078r=needdocs Fixed in release: http://bugs.php.net/fix.php?id=47078r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=47078r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=47078r=needscript Try newer version: http://bugs.php.net/fix.php?id=47078r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=47078r=support Expected behavior: http://bugs.php.net/fix.php?id=47078r=notwrong Not enough info: http://bugs.php.net/fix.php?id=47078r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=47078r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=47078r=globals PHP 4 support discontinued: http://bugs.php.net/fix.php?id=47078r=php4 Daylight Savings:http://bugs.php.net/fix.php?id=47078r=dst IIS Stability: http://bugs.php.net/fix.php?id=47078r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=47078r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=47078r=float No Zend Extensions: http://bugs.php.net/fix.php?id=47078r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=47078r=mysqlcfg
#47077 [Com]: mysql + PHP crashes IIS worker process and application pool
ID: 47077 Comment by: w dot purrer at lenzing dot com Reported By: w dot purrer at lenzing dot com Status: Open Bug Type: Reproducible crash Operating System: Windows 2008 sp1 PHP Version: 5.2.8 New Comment: The same failure with apache. But as a apache module the error happnes only the first few reqeuest after a restart of the http - server, then it works = with the iis the failure occours at every request (with a few expceptions). = i have the same combination (php Version, mysql Version) active at a windows 2003 Server and there is no problem. httpd__PID__3676__Date__01_12_2009__Time_01_28_45PM__206__Second_Chance_Exception_C005.dmp Type of Analysis Performed Crash Analysis Machine Name RGSPSM1 Operating System Windows Vista Service Pack 1 Number Of Processors 2 Process ID 3676 Process Image C:\Program Files\Apache Software Foundation\Apache2.2\bin\httpd.exe System Up-Time 44 day(s) 21:32:50 Process Up-Time 00:00:50 Thread 2 - System ID 5220 Entry point msvcrt!_endthreadex+6f Create time 12.01.2009 13:27:55 Time spent in user mode 0 Days 0:0:0.0 Time spent in kernel mode 0 Days 0:0:0.0 Function Arg 1 Arg 2 Arg 3 Source ntdll!RtlpCoalesceFreeBlocks+6ef 0018 01be63e0 0147f838 ntdll!RtlpExtendHeap+40 0018 03c8 91d4233e ntdll!RtlpAllocateHeap+7db 03c0 03c8 01be53e0 ntdll!RtlAllocateHeap+1e3 0018 03c0 msvcrt!malloc+8d 03c0 02c07d20 02c07d20 php_mysql!php_mysql_do_connect+358 02bfe478 02bfe598 php_mysql!zif_mysql_pconnect+25 0003 02bfe598 php5ts!zend_do_fcall_common_helper_SPEC+7d9 0147fac4 01b6d978 02bfdb00 php5ts!ZEND_DO_FCALL_SPEC_CONST_HANDLER+e5 01b6d978 0147fb78 php5ts!execute+1c5 02bfdb00 01b6d978 02bfbcd6 php5ts!ZEND_INCLUDE_OR_EVAL_SPEC_CONST_HANDLER+330 02bfbc18 01b6d978 php5ts!execute+1c5 02bfbc18 01b6d978 php5ts!zend_execute_scripts+107 0008 01b6d978 php5ts!php_execute_script+20d 0147fe68 01b6d978 0005 php5apache2_2!php_handler+5cd 00e147f8 00dc7cd0 00e147f8 libhttpd!ap_run_handler+21 00e147f8 00e147f8 00e147f8 libhttpd!ap_invoke_handler+ae 01b82a68 0147ff00 libhttpd!ap_die+24e 00e147f8 00e010d0 libhttpd!ap_get_request_note+1c9c 01b82a68 01b82a68 01b82a68 libhttpd!ap_run_process_connection+21 01b82a68 00d44e58 0147ff48 libhttpd!ap_process_connection+33 01b82a68 00e0c7e8 libhttpd!ap_regkey_value_remove+c7c 01b82a60 35450e04 msvcrt!_endthreadex+44 0147ff94 76424911 01b75a00 msvcrt!_endthreadex+ce 01b75a00 0147ffd4 779ce4b6 kernel32!BaseThreadInitThunk+e 01b75a00 91d425c2 ntdll!__RtlUserThreadStart+23 76952da8 01b75a00 ntdll!_RtlUserThreadStart+1b 76952da8 01b75a00 NTDLL!RTLPCOALESCEFREEBLOCKS+6EF Detailed Info For Corrupt Heap Heap 1 - 0x0023 Heap Name Default process heap Heap Description This heap is created by default and shared by all modules in the process Reserved memory 5.244.720,03 TBytes Committed memory 5.243.920,02 TBytes (99,98% of reserved) Uncommitted memory 800,01 TBytes (0,02% of reserved) Number of heap segments 1 segments Number of uncommitted ranges 108 range(s) Size of largest uncommitted range 29.440,41 TBytes Calculated heap fragmentation -3.579,99% Segment Information Base Address Reserved Size Committed Size Uncommitted Size Number of uncommitted ranges Largest uncommitted block Calculated heap fragmentation 0x4a802e05 105.908.016,03 TBytes 105.907.216,02 TBytes 800,01 TBytes 108 29.440,41 TBytes -3.579,99% Back to Top In httpd__PID__3676__Date__01_12_2009__Time_01_28_45PM__206__Second_Chance_Exception_C005.dmp the assembly instruction at ntdll!RtlpCoalesceFreeBlocks+6ef in C:\Windows\System32\ntdll.dll from Microsoft Corporation has caused an access violation exception (0xC005) when trying to read from memory location 0x0004 on thread 2 Heap corruption was detected in heap 0x0023, however pageheap was not enabled in this dump. Please follow the instructions in the recommendation section for troubleshooting heap corruption issues. Current NTGlobalFlags value: 0x0 Module Information Image Name: C:\Windows\System32\ntdll.dll Symbol Type: PDB Base address: 0x7799 Time Stamp: Sat Jan 19 08:32:54 2008 Checksum: 0x00135d86 Comments: COM DLL: False Company Name: Microsoft Corporation ISAPIExtension: False File Description: NT Layer DLL ISAPIFilter: False File
#47076 [Opn]: binary representation of unicode
ID: 47076 User updated by: lunter at interia dot pl Reported By: lunter at interia dot pl Status: Open Bug Type: Unicode Engine related Operating System: all PHP Version: 6CVS-2009-01-12 (CVS) New Comment: Example 3: ? print('You have to calculate base64 of unicode chr(946)br'); print('regular base64 of unicode chr(946) (\uceb2) is: zrI='.'brbr'); $unicode=chr(946); print(base64_encode((binary)$unicode)); print('br'); print(base64_encode(unicode_encode($unicode,'iso-8859-1'))); print('br'); // print(base64_encode(uni2bin($unicode))); // zrI= ? Previous Comments: [2009-01-12 12:25:21] lunter at interia dot pl Two new functions needed: (binary) uni2bin( (string) unicode data ) (string) bin2uni( (binary) binary data ) diference beetwen unicode_(en|de)code is: convert WITHOUT using charser translation [2009-01-12 12:15:17] lunter at interia dot pl Description: converting binary-string without charset translating for view binary representation of unicode or generate unicode from valid binary consists unicode sequenses note that: unicode_encode/unicode_decode using charset translating, see Reproduce code Example 1: You have (binary)$b. It consists two bytes: 11001110 10110010 Its length in binary representation is two. It is also valid one-length UTF-8 char(946) (greek small letter beta) How to conver it ($b) into one-char UTF-8 string?? When we try $u=(string)$b, it gives two-char UTF-8 string. Example 2: You have (string)$u UTF-8 one-char string. It consists chr(946) (greek small letter beta) Now You have to see two bytes binary representation of this (11001110 10110010). There is no way to convert it without charset translation... Reproduce code: --- ? $s=chr(946); print(strlen($s)); print('br'); $b=unicode_encode($s,'iso-8859-1'); print(strlen($b)); ? Expected result: 1 (unicode 1 char) 2 (binary 2 bytes) [11001110 10110010] Actual result: -- 1 1 no way to converting binary-string without charset translating in binary we have length = 1 but it is 2 bytes -- Edit this bug report at http://bugs.php.net/?id=47076edit=1
#47002 [Com]: Fields truncated
ID: 47002 Comment by: typoon at gmail dot com Reported By: victorjavierss at live dot com dot mx Status: Open Bug Type: dBase related Operating System: Windows PHP Version: 5.2CVS-2009-01-04 (snap) New Comment: I tried to access that URL and got this error: That item seems to be missing Someone may have deleted or moved the item, or you may not have permission to view it. If you have questions about this item, contact the person who created it. Previous Comments: [2009-01-11 18:59:51] victorjavierss at live dot com dot mx Here is one of the DBF's that i'm using: http://cid-d95738776c6cf0d0.skydrive.live.com/self.aspx/.Public/USAERF07.DBF as I said it retrieves me 1024 fild instead of 1625 [2009-01-11 18:50:14] typoon at gmail dot com I was unable to find a free version of dBase so I can't really create the file here to simulate the issue. Could you please post a link to a .dbf file with more than 1024 fields for me please? Put like 3 or 4 records as examples on it, just so I can do all tests. Thanks! Henrique [2009-01-04 22:17:20] victorjavierss at live dot com dot mx Description: I'm executing the code belong, and it supose to retrieve me 1625 fields, but it doesn't, it give me 1024 fields, also i tried with other dbf's bigger than 1024 and the problem stills there Reproduce code: --- ?php if ($db = dbase_open('C:\SIDEC\SIDEC-I\ARCHIVOS\USAERI07.dbf', 0)) { $rn = dbase_numfields($db); echo($rn); dbase_close($db); } ? Expected result: 1625 Actual result: -- 1024 -- Edit this bug report at http://bugs.php.net/?id=47002edit=1
#47076 [Opn]: binary representation of unicode
ID: 47076 User updated by: lunter at interia dot pl Reported By: lunter at interia dot pl Status: Open Bug Type: Unicode Engine related Operating System: all PHP Version: 6CVS-2009-01-12 (CVS) New Comment: Example 4: ? print('You have to calculate sha1 of unicode chr(946)br'); print('regular sha1 of unicode chr(946) (\uceb2) is: 25b9b2c8a851851c7e0f1cff29a93a6aa6895f34'.'brbr'); $unicode=chr(946); print(sha1((binary)$unicode)); print('br'); print(sha1(unicode_encode($unicode,'iso-8859-1'))); print('br'); // print(sha1(uni2bin($unicode))); // 25b9b2c8a851851c7e0f1cff29a93a6aa6895f34 ? Previous Comments: [2009-01-12 12:40:48] lunter at interia dot pl Example 3: ? print('You have to calculate base64 of unicode chr(946)br'); print('regular base64 of unicode chr(946) (\uceb2) is: zrI='.'brbr'); $unicode=chr(946); print(base64_encode((binary)$unicode)); print('br'); print(base64_encode(unicode_encode($unicode,'iso-8859-1'))); print('br'); // print(base64_encode(uni2bin($unicode))); // zrI= ? [2009-01-12 12:25:21] lunter at interia dot pl Two new functions needed: (binary) uni2bin( (string) unicode data ) (string) bin2uni( (binary) binary data ) diference beetwen unicode_(en|de)code is: convert WITHOUT using charser translation [2009-01-12 12:15:17] lunter at interia dot pl Description: converting binary-string without charset translating for view binary representation of unicode or generate unicode from valid binary consists unicode sequenses note that: unicode_encode/unicode_decode using charset translating, see Reproduce code Example 1: You have (binary)$b. It consists two bytes: 11001110 10110010 Its length in binary representation is two. It is also valid one-length UTF-8 char(946) (greek small letter beta) How to conver it ($b) into one-char UTF-8 string?? When we try $u=(string)$b, it gives two-char UTF-8 string. Example 2: You have (string)$u UTF-8 one-char string. It consists chr(946) (greek small letter beta) Now You have to see two bytes binary representation of this (11001110 10110010). There is no way to convert it without charset translation... Reproduce code: --- ? $s=chr(946); print(strlen($s)); print('br'); $b=unicode_encode($s,'iso-8859-1'); print(strlen($b)); ? Expected result: 1 (unicode 1 char) 2 (binary 2 bytes) [11001110 10110010] Actual result: -- 1 1 no way to converting binary-string without charset translating in binary we have length = 1 but it is 2 bytes -- Edit this bug report at http://bugs.php.net/?id=47076edit=1
#47078 [Opn-Bgs]: xmlparser does not return entities
ID: 47078 Updated by: scott...@php.net Reported By: jan dot matousek at skype dot net -Status: Open +Status: Bogus Bug Type: XML related Operating System: Mac OS X 10.5 PHP Version: 5.2.8 New Comment: Duplicate of bug #45996 Previous Comments: [2009-01-12 12:32:42] jan dot matousek at skype dot net Description: XML parser does not return entities (amp; gt; lt; quot;). The problem occurs only when running PHP as apache2 module, and does not occur with PHP apache2 module supplied with Mac OS (PHP 5.2.6 built: Jul 15 2008 23:16:51). Having compiled php-5.2.8 and httpd-2.2.10. Configure command is ./configure --with-apxs2=/usr/local/apache2/bin/apxs Also happens with compiled php-5.2.6, I have not tried other versions. I am prepared to provide more details when necessary. Reproduce code: --- ?php function char_data($p, $data) { echo [[$data]]\n; } $p = xml_parser_create(); xml_set_character_data_handler($p, 'char_data'); xml_parse($p, '?xml version=1.0?rootcamp;a/root', true); Expected result: [[c]] [[]] [[a]] Actual result: -- [[c]] [[a]] -- Edit this bug report at http://bugs.php.net/?id=47078edit=1
#47076 [Opn]: binary representation of unicode
ID: 47076 User updated by: lunter at interia dot pl Reported By: lunter at interia dot pl Status: Open Bug Type: Unicode Engine related Operating System: all PHP Version: 6CVS-2009-01-12 (CVS) New Comment: Please imagine that unicode chr(946) in binary have two bytes [11001110 10110010]. Previous Comments: [2009-01-12 12:45:36] lunter at interia dot pl Example 4: ? print('You have to calculate sha1 of unicode chr(946)br'); print('regular sha1 of unicode chr(946) (\uceb2) is: 25b9b2c8a851851c7e0f1cff29a93a6aa6895f34'.'brbr'); $unicode=chr(946); print(sha1((binary)$unicode)); print('br'); print(sha1(unicode_encode($unicode,'iso-8859-1'))); print('br'); // print(sha1(uni2bin($unicode))); // 25b9b2c8a851851c7e0f1cff29a93a6aa6895f34 ? [2009-01-12 12:40:48] lunter at interia dot pl Example 3: ? print('You have to calculate base64 of unicode chr(946)br'); print('regular base64 of unicode chr(946) (\uceb2) is: zrI='.'brbr'); $unicode=chr(946); print(base64_encode((binary)$unicode)); print('br'); print(base64_encode(unicode_encode($unicode,'iso-8859-1'))); print('br'); // print(base64_encode(uni2bin($unicode))); // zrI= ? [2009-01-12 12:25:21] lunter at interia dot pl Two new functions needed: (binary) uni2bin( (string) unicode data ) (string) bin2uni( (binary) binary data ) diference beetwen unicode_(en|de)code is: convert WITHOUT using charser translation [2009-01-12 12:15:17] lunter at interia dot pl Description: converting binary-string without charset translating for view binary representation of unicode or generate unicode from valid binary consists unicode sequenses note that: unicode_encode/unicode_decode using charset translating, see Reproduce code Example 1: You have (binary)$b. It consists two bytes: 11001110 10110010 Its length in binary representation is two. It is also valid one-length UTF-8 char(946) (greek small letter beta) How to conver it ($b) into one-char UTF-8 string?? When we try $u=(string)$b, it gives two-char UTF-8 string. Example 2: You have (string)$u UTF-8 one-char string. It consists chr(946) (greek small letter beta) Now You have to see two bytes binary representation of this (11001110 10110010). There is no way to convert it without charset translation... Reproduce code: --- ? $s=chr(946); print(strlen($s)); print('br'); $b=unicode_encode($s,'iso-8859-1'); print(strlen($b)); ? Expected result: 1 (unicode 1 char) 2 (binary 2 bytes) [11001110 10110010] Actual result: -- 1 1 no way to converting binary-string without charset translating in binary we have length = 1 but it is 2 bytes -- Edit this bug report at http://bugs.php.net/?id=47076edit=1
#47002 [Com]: Fields truncated
ID: 47002 Comment by: typoon at gmail dot com Reported By: victorjavierss at live dot com dot mx Status: Open Bug Type: dBase related Operating System: Windows PHP Version: 5.2CVS-2009-01-04 (snap) New Comment: My bad, the url was truncated and i did notice. Downloaded the file, checking the issue right now. Thanks! Previous Comments: [2009-01-12 12:40:54] typoon at gmail dot com I tried to access that URL and got this error: That item seems to be missing Someone may have deleted or moved the item, or you may not have permission to view it. If you have questions about this item, contact the person who created it. [2009-01-11 18:59:51] victorjavierss at live dot com dot mx Here is one of the DBF's that i'm using: http://cid-d95738776c6cf0d0.skydrive.live.com/self.aspx/.Public/USAERF07.DBF as I said it retrieves me 1024 fild instead of 1625 [2009-01-11 18:50:14] typoon at gmail dot com I was unable to find a free version of dBase so I can't really create the file here to simulate the issue. Could you please post a link to a .dbf file with more than 1024 fields for me please? Put like 3 or 4 records as examples on it, just so I can do all tests. Thanks! Henrique [2009-01-04 22:17:20] victorjavierss at live dot com dot mx Description: I'm executing the code belong, and it supose to retrieve me 1625 fields, but it doesn't, it give me 1024 fields, also i tried with other dbf's bigger than 1024 and the problem stills there Reproduce code: --- ?php if ($db = dbase_open('C:\SIDEC\SIDEC-I\ARCHIVOS\USAERI07.dbf', 0)) { $rn = dbase_numfields($db); echo($rn); dbase_close($db); } ? Expected result: 1625 Actual result: -- 1024 -- Edit this bug report at http://bugs.php.net/?id=47002edit=1
#47076 [Opn]: binary representation of unicode
ID: 47076 User updated by: lunter at interia dot pl Reported By: lunter at interia dot pl Status: Open Bug Type: Unicode Engine related Operating System: all PHP Version: 6CVS-2009-01-12 (CVS) New Comment: All examples above in utf-8 Imagine that using utf-16, sha1 and base64 will be not the same. Previous Comments: [2009-01-12 12:50:23] lunter at interia dot pl Please imagine that unicode chr(946) in binary have two bytes [11001110 10110010]. [2009-01-12 12:45:36] lunter at interia dot pl Example 4: ? print('You have to calculate sha1 of unicode chr(946)br'); print('regular sha1 of unicode chr(946) (\uceb2) is: 25b9b2c8a851851c7e0f1cff29a93a6aa6895f34'.'brbr'); $unicode=chr(946); print(sha1((binary)$unicode)); print('br'); print(sha1(unicode_encode($unicode,'iso-8859-1'))); print('br'); // print(sha1(uni2bin($unicode))); // 25b9b2c8a851851c7e0f1cff29a93a6aa6895f34 ? [2009-01-12 12:40:48] lunter at interia dot pl Example 3: ? print('You have to calculate base64 of unicode chr(946)br'); print('regular base64 of unicode chr(946) (\uceb2) is: zrI='.'brbr'); $unicode=chr(946); print(base64_encode((binary)$unicode)); print('br'); print(base64_encode(unicode_encode($unicode,'iso-8859-1'))); print('br'); // print(base64_encode(uni2bin($unicode))); // zrI= ? [2009-01-12 12:25:21] lunter at interia dot pl Two new functions needed: (binary) uni2bin( (string) unicode data ) (string) bin2uni( (binary) binary data ) diference beetwen unicode_(en|de)code is: convert WITHOUT using charser translation [2009-01-12 12:15:17] lunter at interia dot pl Description: converting binary-string without charset translating for view binary representation of unicode or generate unicode from valid binary consists unicode sequenses note that: unicode_encode/unicode_decode using charset translating, see Reproduce code Example 1: You have (binary)$b. It consists two bytes: 11001110 10110010 Its length in binary representation is two. It is also valid one-length UTF-8 char(946) (greek small letter beta) How to conver it ($b) into one-char UTF-8 string?? When we try $u=(string)$b, it gives two-char UTF-8 string. Example 2: You have (string)$u UTF-8 one-char string. It consists chr(946) (greek small letter beta) Now You have to see two bytes binary representation of this (11001110 10110010). There is no way to convert it without charset translation... Reproduce code: --- ? $s=chr(946); print(strlen($s)); print('br'); $b=unicode_encode($s,'iso-8859-1'); print(strlen($b)); ? Expected result: 1 (unicode 1 char) 2 (binary 2 bytes) [11001110 10110010] Actual result: -- 1 1 no way to converting binary-string without charset translating in binary we have length = 1 but it is 2 bytes -- Edit this bug report at http://bugs.php.net/?id=47076edit=1
#45940 [Asn-Csd]: MySQLI OO does not populate connect_error property on failed connect
ID: 45940 Updated by: johan...@php.net Reported By: talmage dot news at gmail dot com -Status: Assigned +Status: Closed Bug Type: MySQLi related Operating System: Centos 5 PHP Version: 5.2.6 Assigned To: mysql 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: [2009-01-10 10:23:30] nullhility at gmail dot com Getting the same error with the following version: PHP 5.2.4-2ubuntu5.4 with Suhosin-Patch 0.9.6.2 I was attempting to suppress errors so I could control output/formatting etc. Thought i'd just re-iterate this for version related purposes. ?php //a forced username/password mismatch $dbo = @new mysqli('localhost', 'r00t', 'pass', 'my_db'); var_dump($dbo-connect_error); var_dump(mysqli_connect_error()); ? output: Warning: main(): Couldn't fetch mysqli in /home/default/php/mysqli.php on line 4 NULL string(63) Access denied for user 'r00t'@'localhost' (using password: YES) [2008-12-25 21:17:22] ws at develtheory dot com Was able to reproduce the error in the same method on php 5.2.8, both with purposeful incorrect passwords and nonexistent host/port combos. the object is created, connect_error returns NULL on var_dump, error log dumps: Dec 25 15:12:18 dev01 httpd: PHP Warning: dbo::__construct() [a href='dbo.--construct'dbo.--construct/a]: Couldn't fetch mysqli in /nfs/beta/www/classes/dbo-new.inc.php on line 88 [2008-12-01 13:39:16] dannyrjohnston at msn dot com Forget my previous comment. I found some code between the new mysqli statement in the example I was using which was setting the $dbObj to false if mysql_connect_error was returning a value. [2008-12-01 13:17:14] dannyrjohnston at msn dot com I have duplicated this issue. According to the manual mysqli::__construct should always return a object, but the function is returning a false value on error. I have tried three different possible error conditions and have the following results: Bad user/password combo: mysqli_connect_error() returns Access denied for user 'xxx'@'xxx' (using password: YES), return value is false. User does not have access to the db selected: mysqli_connect_error()returns Access denied for user 'xxx'@'xxx' to database 'xxx', return value is false. Bad port number: mysqli_connect_error() returns Can't connect to MySQL server on 'localhost' (10061), return value is false. I have not checked any other cases such as bad socked name, but in each of the above conditions I received a false value not an object. test code: ?php $dbObj = new mysqli( localhost, user, pass, db, 3306); echo dbObj=; var_dump($dbObj); ? error result: dbObj=bool(false) sucess result: dbObj==object(mysqli)#1 (0) { } [2008-11-29 00:22:45] valentin71 at gmail dot com Not quite sure that mudroeb is right. According to manual the right call format must be following: mysqli mysqli_connect ( [string host [, string username [, string passwd [, string dbname [, int port [, string socket]] ) However conn=new mysqli('localhost','user','password','my_db',3306); works as expected. 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/45940 -- Edit this bug report at http://bugs.php.net/?id=45940edit=1
#47076 [Opn]: binary representation of unicode
ID: 47076 User updated by: lunter at interia dot pl Reported By: lunter at interia dot pl Status: Open Bug Type: Unicode Engine related Operating System: all PHP Version: 6CVS-2009-01-12 (CVS) New Comment: USE OLD PHP 5.x valids values of UTF-8 char(946) base64 / sha1 ? print('UTF-8 char(946):br'); print('base64: '.base64_encode(chr(206).chr(178)).'br'); print('sha1: '.sha1(chr(206).chr(178)).'br'); ? Previous Comments: [2009-01-12 12:54:41] lunter at interia dot pl All examples above in utf-8 Imagine that using utf-16, sha1 and base64 will be not the same. [2009-01-12 12:50:23] lunter at interia dot pl Please imagine that unicode chr(946) in binary have two bytes [11001110 10110010]. [2009-01-12 12:45:36] lunter at interia dot pl Example 4: ? print('You have to calculate sha1 of unicode chr(946)br'); print('regular sha1 of unicode chr(946) (\uceb2) is: 25b9b2c8a851851c7e0f1cff29a93a6aa6895f34'.'brbr'); $unicode=chr(946); print(sha1((binary)$unicode)); print('br'); print(sha1(unicode_encode($unicode,'iso-8859-1'))); print('br'); // print(sha1(uni2bin($unicode))); // 25b9b2c8a851851c7e0f1cff29a93a6aa6895f34 ? [2009-01-12 12:40:48] lunter at interia dot pl Example 3: ? print('You have to calculate base64 of unicode chr(946)br'); print('regular base64 of unicode chr(946) (\uceb2) is: zrI='.'brbr'); $unicode=chr(946); print(base64_encode((binary)$unicode)); print('br'); print(base64_encode(unicode_encode($unicode,'iso-8859-1'))); print('br'); // print(base64_encode(uni2bin($unicode))); // zrI= ? [2009-01-12 12:25:21] lunter at interia dot pl Two new functions needed: (binary) uni2bin( (string) unicode data ) (string) bin2uni( (binary) binary data ) diference beetwen unicode_(en|de)code is: convert WITHOUT using charser translation 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/47076 -- Edit this bug report at http://bugs.php.net/?id=47076edit=1
#47076 [Opn]: binary representation of unicode
ID: 47076 User updated by: lunter at interia dot pl Reported By: lunter at interia dot pl Status: Open Bug Type: Unicode Engine related Operating System: all PHP Version: 6CVS-2009-01-12 (CVS) New Comment: USE OLD PHP 5.x // --- valids values of UTF-16LE char(946) base64 / sha1 ? print('UTF-16LE char(946):br'); print('base64: '.base64_encode(chr(178).chr(3)).'br'); print('sha1: '.sha1(chr(178).chr(3)).'br'); ? // --- valids values of UTF-16BE char(946) base64 / sha1 ? print('UTF-16BE char(946):br'); print('base64: '.base64_encode(chr(3).chr(178)).'br'); print('sha1: '.sha1(chr(3).chr(178)).'br'); ? Previous Comments: [2009-01-12 13:25:01] lunter at interia dot pl USE OLD PHP 5.x valids values of UTF-8 char(946) base64 / sha1 ? print('UTF-8 char(946):br'); print('base64: '.base64_encode(chr(206).chr(178)).'br'); print('sha1: '.sha1(chr(206).chr(178)).'br'); ? [2009-01-12 12:54:41] lunter at interia dot pl All examples above in utf-8 Imagine that using utf-16, sha1 and base64 will be not the same. [2009-01-12 12:50:23] lunter at interia dot pl Please imagine that unicode chr(946) in binary have two bytes [11001110 10110010]. [2009-01-12 12:45:36] lunter at interia dot pl Example 4: ? print('You have to calculate sha1 of unicode chr(946)br'); print('regular sha1 of unicode chr(946) (\uceb2) is: 25b9b2c8a851851c7e0f1cff29a93a6aa6895f34'.'brbr'); $unicode=chr(946); print(sha1((binary)$unicode)); print('br'); print(sha1(unicode_encode($unicode,'iso-8859-1'))); print('br'); // print(sha1(uni2bin($unicode))); // 25b9b2c8a851851c7e0f1cff29a93a6aa6895f34 ? [2009-01-12 12:40:48] lunter at interia dot pl Example 3: ? print('You have to calculate base64 of unicode chr(946)br'); print('regular base64 of unicode chr(946) (\uceb2) is: zrI='.'brbr'); $unicode=chr(946); print(base64_encode((binary)$unicode)); print('br'); print(base64_encode(unicode_encode($unicode,'iso-8859-1'))); print('br'); // print(base64_encode(uni2bin($unicode))); // zrI= ? 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/47076 -- Edit this bug report at http://bugs.php.net/?id=47076edit=1
#47079 [NEW]: make test - Tests failed and warned
From: it at kristar dot ua Operating system: Linux 2.6.14 PHP version: 5.2.8 PHP Bug Type: *Compile Issues Bug description: make test - Tests failed and warned Description: Tests borked:1 ( 0.0%) Tests warned:3 ( 0.0%) ( 0.1%) Tests failed: 13 ( 0.2%) ( 0.3%) Expected fail :4 ( 0.1%) ( 0.1%) Reproduce code: --- all in http://kristar.ua/maketest.html Expected result: All tests passed or skiped :) -- Edit bug report at http://bugs.php.net/?id=47079edit=1 -- Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=47079r=trysnapshot52 Try a CVS snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=47079r=trysnapshot53 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=47079r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=47079r=fixedcvs Fixed in CVS and need be documented: http://bugs.php.net/fix.php?id=47079r=needdocs Fixed in release: http://bugs.php.net/fix.php?id=47079r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=47079r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=47079r=needscript Try newer version: http://bugs.php.net/fix.php?id=47079r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=47079r=support Expected behavior: http://bugs.php.net/fix.php?id=47079r=notwrong Not enough info: http://bugs.php.net/fix.php?id=47079r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=47079r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=47079r=globals PHP 4 support discontinued: http://bugs.php.net/fix.php?id=47079r=php4 Daylight Savings:http://bugs.php.net/fix.php?id=47079r=dst IIS Stability: http://bugs.php.net/fix.php?id=47079r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=47079r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=47079r=float No Zend Extensions: http://bugs.php.net/fix.php?id=47079r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=47079r=mysqlcfg
#47077 [Opn-Fbk]: mysql + PHP crashes IIS worker process and application pool
ID: 47077 Updated by: paj...@php.net Reported By: w dot purrer at lenzing dot com -Status: Open +Status: Feedback -Bug Type: Reproducible crash +Bug Type: MySQL related Operating System: Windows 2008 sp1 PHP Version: 5.2.8 New Comment: Which libmysql.dll do you use? Did you install mysql 5.1 after php for example? Previous Comments: [2009-01-12 12:37:01] w dot purrer at lenzing dot com The same failure with apache. But as a apache module the error happnes only the first few reqeuest after a restart of the http - server, then it works = with the iis the failure occours at every request (with a few expceptions). = i have the same combination (php Version, mysql Version) active at a windows 2003 Server and there is no problem. httpd__PID__3676__Date__01_12_2009__Time_01_28_45PM__206__Second_Chance_Exception_C005.dmp Type of Analysis Performed Crash Analysis Machine Name RGSPSM1 Operating System Windows Vista Service Pack 1 Number Of Processors 2 Process ID 3676 Process Image C:\Program Files\Apache Software Foundation\Apache2.2\bin\httpd.exe System Up-Time 44 day(s) 21:32:50 Process Up-Time 00:00:50 Thread 2 - System ID 5220 Entry point msvcrt!_endthreadex+6f Create time 12.01.2009 13:27:55 Time spent in user mode 0 Days 0:0:0.0 Time spent in kernel mode 0 Days 0:0:0.0 Function Arg 1 Arg 2 Arg 3 Source ntdll!RtlpCoalesceFreeBlocks+6ef 0018 01be63e0 0147f838 ntdll!RtlpExtendHeap+40 0018 03c8 91d4233e ntdll!RtlpAllocateHeap+7db 03c0 03c8 01be53e0 ntdll!RtlAllocateHeap+1e3 0018 03c0 msvcrt!malloc+8d 03c0 02c07d20 02c07d20 php_mysql!php_mysql_do_connect+358 02bfe478 02bfe598 php_mysql!zif_mysql_pconnect+25 0003 02bfe598 php5ts!zend_do_fcall_common_helper_SPEC+7d9 0147fac4 01b6d978 02bfdb00 php5ts!ZEND_DO_FCALL_SPEC_CONST_HANDLER+e5 01b6d978 0147fb78 php5ts!execute+1c5 02bfdb00 01b6d978 02bfbcd6 php5ts!ZEND_INCLUDE_OR_EVAL_SPEC_CONST_HANDLER+330 02bfbc18 01b6d978 php5ts!execute+1c5 02bfbc18 01b6d978 php5ts!zend_execute_scripts+107 0008 01b6d978 php5ts!php_execute_script+20d 0147fe68 01b6d978 0005 php5apache2_2!php_handler+5cd 00e147f8 00dc7cd0 00e147f8 libhttpd!ap_run_handler+21 00e147f8 00e147f8 00e147f8 libhttpd!ap_invoke_handler+ae 01b82a68 0147ff00 libhttpd!ap_die+24e 00e147f8 00e010d0 libhttpd!ap_get_request_note+1c9c 01b82a68 01b82a68 01b82a68 libhttpd!ap_run_process_connection+21 01b82a68 00d44e58 0147ff48 libhttpd!ap_process_connection+33 01b82a68 00e0c7e8 libhttpd!ap_regkey_value_remove+c7c 01b82a60 35450e04 msvcrt!_endthreadex+44 0147ff94 76424911 01b75a00 msvcrt!_endthreadex+ce 01b75a00 0147ffd4 779ce4b6 kernel32!BaseThreadInitThunk+e 01b75a00 91d425c2 ntdll!__RtlUserThreadStart+23 76952da8 01b75a00 ntdll!_RtlUserThreadStart+1b 76952da8 01b75a00 NTDLL!RTLPCOALESCEFREEBLOCKS+6EF Detailed Info For Corrupt Heap Heap 1 - 0x0023 Heap Name Default process heap Heap Description This heap is created by default and shared by all modules in the process Reserved memory 5.244.720,03 TBytes Committed memory 5.243.920,02 TBytes (99,98% of reserved) Uncommitted memory 800,01 TBytes (0,02% of reserved) Number of heap segments 1 segments Number of uncommitted ranges 108 range(s) Size of largest uncommitted range 29.440,41 TBytes Calculated heap fragmentation -3.579,99% Segment Information Base Address Reserved Size Committed Size Uncommitted Size Number of uncommitted ranges Largest uncommitted block Calculated heap fragmentation 0x4a802e05 105.908.016,03 TBytes 105.907.216,02 TBytes 800,01 TBytes 108 29.440,41 TBytes -3.579,99% Back to Top In httpd__PID__3676__Date__01_12_2009__Time_01_28_45PM__206__Second_Chance_Exception_C005.dmp the assembly instruction at ntdll!RtlpCoalesceFreeBlocks+6ef in C:\Windows\System32\ntdll.dll from Microsoft Corporation has caused an access violation exception (0xC005) when trying to read from memory location 0x0004 on thread 2 Heap corruption was detected in heap 0x0023, however pageheap was not enabled in this dump. Please follow the instructions in the recommendation section for troubleshooting heap corruption issues. Current NTGlobalFlags value: 0x0 Module Information Image Name:
#47076 [Opn]: binary representation of unicode
ID: 47076 User updated by: lunter at interia dot pl Reported By: lunter at interia dot pl Status: Open Bug Type: Unicode Engine related Operating System: all PHP Version: 6CVS-2009-01-12 (CVS) New Comment: There is no way to calculate base64, sha1 from unicode string (unicode.script_encoding = UTF-8 [or UTF-16LE,UTF-16BE]) starting from $unicode=chr(946) because we don't have method to convert mutli-byte character sets to it's binary representation $unicode=chr(946) When stript encoding UTF-8, chr(946) base64($unicode) is zrI= sha1($unicode) is 25b9b2c8a851851c7e0f1cff29a93a6aa6895f34 When stript encoding UTF-16LE, chr(946) base64($unicode) is sgM= sha1($unicode) is e84c936ce61a692fcc5a402b3b9b733592ba0b67 When stript encoding UTF-16BE, chr(946) base64($unicode) is A7I= sha1($unicode) is 2403f70ce33aeec4e21a519ffebb2864afc89fda Previous Comments: [2009-01-12 13:39:02] lunter at interia dot pl USE OLD PHP 5.x // --- valids values of UTF-16LE char(946) base64 / sha1 ? print('UTF-16LE char(946):br'); print('base64: '.base64_encode(chr(178).chr(3)).'br'); print('sha1: '.sha1(chr(178).chr(3)).'br'); ? // --- valids values of UTF-16BE char(946) base64 / sha1 ? print('UTF-16BE char(946):br'); print('base64: '.base64_encode(chr(3).chr(178)).'br'); print('sha1: '.sha1(chr(3).chr(178)).'br'); ? [2009-01-12 13:25:01] lunter at interia dot pl USE OLD PHP 5.x valids values of UTF-8 char(946) base64 / sha1 ? print('UTF-8 char(946):br'); print('base64: '.base64_encode(chr(206).chr(178)).'br'); print('sha1: '.sha1(chr(206).chr(178)).'br'); ? [2009-01-12 12:54:41] lunter at interia dot pl All examples above in utf-8 Imagine that using utf-16, sha1 and base64 will be not the same. [2009-01-12 12:50:23] lunter at interia dot pl Please imagine that unicode chr(946) in binary have two bytes [11001110 10110010]. [2009-01-12 12:45:36] lunter at interia dot pl Example 4: ? print('You have to calculate sha1 of unicode chr(946)br'); print('regular sha1 of unicode chr(946) (\uceb2) is: 25b9b2c8a851851c7e0f1cff29a93a6aa6895f34'.'brbr'); $unicode=chr(946); print(sha1((binary)$unicode)); print('br'); print(sha1(unicode_encode($unicode,'iso-8859-1'))); print('br'); // print(sha1(uni2bin($unicode))); // 25b9b2c8a851851c7e0f1cff29a93a6aa6895f34 ? 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/47076 -- Edit this bug report at http://bugs.php.net/?id=47076edit=1
#47079 [Opn-Bgs]: make test - Tests failed and warned
ID: 47079 Updated by: scott...@php.net Reported By: it at kristar dot ua -Status: Open +Status: Bogus Bug Type: *Compile Issues Operating System: Linux 2.6.14 PHP Version: 5.2.8 New Comment: you should use make test and then submit it to the QA list. Previous Comments: [2009-01-12 13:42:19] it at kristar dot ua Description: Tests borked:1 ( 0.0%) Tests warned:3 ( 0.0%) ( 0.1%) Tests failed: 13 ( 0.2%) ( 0.3%) Expected fail :4 ( 0.1%) ( 0.1%) Reproduce code: --- all in http://kristar.ua/maketest.html Expected result: All tests passed or skiped :) -- Edit this bug report at http://bugs.php.net/?id=47079edit=1
#47077 [Fbk-Opn]: mysql + PHP crashes IIS worker process and application pool
ID: 47077 User updated by: w dot purrer at lenzing dot com Reported By: w dot purrer at lenzing dot com -Status: Feedback +Status: Open Bug Type: MySQL related Operating System: Windows 2008 sp1 PHP Version: 5.2.8 New Comment: In the C:\Mysql - Directory is the one which is deliviered with mysql in the c:\php - Directory is the one which is deliviviered with php In the phpinfo.php = is the following! MySQL Support enabled Active Persistent Links 0 Active Links 0 Client API version 5.1.30 I didn't remember if I install php or mysql first, but a week a go i installed mysql 5.1.30 with copy / paste Deployment into the c:\mysql directory. And today i upgraded from 5.2.6 = 5.2.8 (also with copy and paste deployment) The Problem exist since End of November (thats why i installed the apache webserver on the iis) = but now I'd like to solve this problem without apache! Previous Comments: [2009-01-12 13:42:46] paj...@php.net Which libmysql.dll do you use? Did you install mysql 5.1 after php for example? [2009-01-12 12:37:01] w dot purrer at lenzing dot com The same failure with apache. But as a apache module the error happnes only the first few reqeuest after a restart of the http - server, then it works = with the iis the failure occours at every request (with a few expceptions). = i have the same combination (php Version, mysql Version) active at a windows 2003 Server and there is no problem. httpd__PID__3676__Date__01_12_2009__Time_01_28_45PM__206__Second_Chance_Exception_C005.dmp Type of Analysis Performed Crash Analysis Machine Name RGSPSM1 Operating System Windows Vista Service Pack 1 Number Of Processors 2 Process ID 3676 Process Image C:\Program Files\Apache Software Foundation\Apache2.2\bin\httpd.exe System Up-Time 44 day(s) 21:32:50 Process Up-Time 00:00:50 Thread 2 - System ID 5220 Entry point msvcrt!_endthreadex+6f Create time 12.01.2009 13:27:55 Time spent in user mode 0 Days 0:0:0.0 Time spent in kernel mode 0 Days 0:0:0.0 Function Arg 1 Arg 2 Arg 3 Source ntdll!RtlpCoalesceFreeBlocks+6ef 0018 01be63e0 0147f838 ntdll!RtlpExtendHeap+40 0018 03c8 91d4233e ntdll!RtlpAllocateHeap+7db 03c0 03c8 01be53e0 ntdll!RtlAllocateHeap+1e3 0018 03c0 msvcrt!malloc+8d 03c0 02c07d20 02c07d20 php_mysql!php_mysql_do_connect+358 02bfe478 02bfe598 php_mysql!zif_mysql_pconnect+25 0003 02bfe598 php5ts!zend_do_fcall_common_helper_SPEC+7d9 0147fac4 01b6d978 02bfdb00 php5ts!ZEND_DO_FCALL_SPEC_CONST_HANDLER+e5 01b6d978 0147fb78 php5ts!execute+1c5 02bfdb00 01b6d978 02bfbcd6 php5ts!ZEND_INCLUDE_OR_EVAL_SPEC_CONST_HANDLER+330 02bfbc18 01b6d978 php5ts!execute+1c5 02bfbc18 01b6d978 php5ts!zend_execute_scripts+107 0008 01b6d978 php5ts!php_execute_script+20d 0147fe68 01b6d978 0005 php5apache2_2!php_handler+5cd 00e147f8 00dc7cd0 00e147f8 libhttpd!ap_run_handler+21 00e147f8 00e147f8 00e147f8 libhttpd!ap_invoke_handler+ae 01b82a68 0147ff00 libhttpd!ap_die+24e 00e147f8 00e010d0 libhttpd!ap_get_request_note+1c9c 01b82a68 01b82a68 01b82a68 libhttpd!ap_run_process_connection+21 01b82a68 00d44e58 0147ff48 libhttpd!ap_process_connection+33 01b82a68 00e0c7e8 libhttpd!ap_regkey_value_remove+c7c 01b82a60 35450e04 msvcrt!_endthreadex+44 0147ff94 76424911 01b75a00 msvcrt!_endthreadex+ce 01b75a00 0147ffd4 779ce4b6 kernel32!BaseThreadInitThunk+e 01b75a00 91d425c2 ntdll!__RtlUserThreadStart+23 76952da8 01b75a00 ntdll!_RtlUserThreadStart+1b 76952da8 01b75a00 NTDLL!RTLPCOALESCEFREEBLOCKS+6EF Detailed Info For Corrupt Heap Heap 1 - 0x0023 Heap Name Default process heap Heap Description This heap is created by default and shared by all modules in the process Reserved memory 5.244.720,03 TBytes Committed memory 5.243.920,02 TBytes (99,98% of reserved) Uncommitted memory 800,01 TBytes (0,02% of reserved) Number of heap segments 1 segments Number of uncommitted ranges 108 range(s) Size of largest uncommitted range 29.440,41 TBytes Calculated heap fragmentation -3.579,99% Segment Information Base Address Reserved Size Committed Size Uncommitted Size Number of uncommitted ranges Largest uncommitted block Calculated heap fragmentation
#47050 [Asn-Csd]: mysqli_poll() modifies improper variables
ID: 47050 Updated by: johan...@php.net Reported By: vr...@php.net -Status: Assigned +Status: Closed Bug Type: MySQLi related Operating System: Windows PHP Version: 5.3.0alpha4-dev Assigned To: mysql 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: [2009-01-12 10:53:55] johan...@php.net mysqli_poll is missing arginfo telling it needs a reference so the engine can't properly separate the zvals. Will fix that when done with my current fix. [2009-01-12 09:32:50] vr...@php.net The modification of $links is not the problem, it works as expected. The problem is in modification of $all_links which was not passed to mysqli_poll() at all. [2009-01-11 00:14:41] fel...@php.net It's looks expected, Jakub. See the prototype: public int mysqli::poll ( array $read , array $error , array $reject , int $sec [, int $usec ] ) int mysqli_poll ( array $read , array $error , array $reject , int $sec [, int $usec ] ) [2009-01-09 13:06:50] vr...@php.net Description: mysqli_poll() modifies the variable which was assigned to variables passed to mysqli_poll(). The reason probably is that mysqli_poll() doesn't copy zvals on write as it should. Reproduce code: --- ?php $link1 = mysqli_connect(); $link1-query(SELECT 'test', MYSQLI_ASYNC); $all_links = array($link1); $links = $errors = $reject = $all_links; mysqli_poll($links, $errors, $reject, 1); print_r($all_links); Expected result: Array ( [0] = mysqli Object ) Actual result: -- Array ( ) -- Edit this bug report at http://bugs.php.net/?id=47050edit=1
#47002 [Com]: Fields truncated
ID: 47002 Comment by: typoon at gmail dot com Reported By: victorjavierss at live dot com dot mx Status: Open Bug Type: dBase related Operating System: Windows PHP Version: 5.2CVS-2009-01-04 (snap) New Comment: Victor, Are you sure this file has 1625 fields? I opened the file with DBF Viewer and I only see 1100 fields. Also I changed the logic a little bit to calculate the number of fields based on the header length and I also obtain 1100 fields. Can you please confirm the number of fields in the file? Also, what is the version of dbase you are using? Thanks! Previous Comments: [2009-01-12 12:49:06] typoon at gmail dot com My bad, the url was truncated and i did notice. Downloaded the file, checking the issue right now. Thanks! [2009-01-12 12:40:54] typoon at gmail dot com I tried to access that URL and got this error: That item seems to be missing Someone may have deleted or moved the item, or you may not have permission to view it. If you have questions about this item, contact the person who created it. [2009-01-11 18:59:51] victorjavierss at live dot com dot mx Here is one of the DBF's that i'm using: http://cid-d95738776c6cf0d0.skydrive.live.com/self.aspx/.Public/USAERF07.DBF as I said it retrieves me 1024 fild instead of 1625 [2009-01-11 18:50:14] typoon at gmail dot com I was unable to find a free version of dBase so I can't really create the file here to simulate the issue. Could you please post a link to a .dbf file with more than 1024 fields for me please? Put like 3 or 4 records as examples on it, just so I can do all tests. Thanks! Henrique [2009-01-04 22:17:20] victorjavierss at live dot com dot mx Description: I'm executing the code belong, and it supose to retrieve me 1625 fields, but it doesn't, it give me 1024 fields, also i tried with other dbf's bigger than 1024 and the problem stills there Reproduce code: --- ?php if ($db = dbase_open('C:\SIDEC\SIDEC-I\ARCHIVOS\USAERI07.dbf', 0)) { $rn = dbase_numfields($db); echo($rn); dbase_close($db); } ? Expected result: 1625 Actual result: -- 1024 -- Edit this bug report at http://bugs.php.net/?id=47002edit=1
#47077 [Opn-Bgs]: mysql + PHP crashes IIS worker process and application pool
ID: 47077 Updated by: paj...@php.net Reported By: w dot purrer at lenzing dot com -Status: Open +Status: Bogus Bug Type: MySQL related Operating System: Windows 2008 sp1 PHP Version: 5.2.8 New Comment: Never use mysql's library (even not 5.1) with php. We bundle a libmysql client and it has to be used. NB: 5.3+ does not rely anymore on libmysql. Not a php issue bogus Previous Comments: [2009-01-12 14:00:50] w dot purrer at lenzing dot com In the C:\Mysql - Directory is the one which is deliviered with mysql in the c:\php - Directory is the one which is deliviviered with php In the phpinfo.php = is the following! MySQL Support enabled Active Persistent Links 0 Active Links 0 Client API version 5.1.30 I didn't remember if I install php or mysql first, but a week a go i installed mysql 5.1.30 with copy / paste Deployment into the c:\mysql directory. And today i upgraded from 5.2.6 = 5.2.8 (also with copy and paste deployment) The Problem exist since End of November (thats why i installed the apache webserver on the iis) = but now I'd like to solve this problem without apache! [2009-01-12 13:42:46] paj...@php.net Which libmysql.dll do you use? Did you install mysql 5.1 after php for example? [2009-01-12 12:37:01] w dot purrer at lenzing dot com The same failure with apache. But as a apache module the error happnes only the first few reqeuest after a restart of the http - server, then it works = with the iis the failure occours at every request (with a few expceptions). = i have the same combination (php Version, mysql Version) active at a windows 2003 Server and there is no problem. httpd__PID__3676__Date__01_12_2009__Time_01_28_45PM__206__Second_Chance_Exception_C005.dmp Type of Analysis Performed Crash Analysis Machine Name RGSPSM1 Operating System Windows Vista Service Pack 1 Number Of Processors 2 Process ID 3676 Process Image C:\Program Files\Apache Software Foundation\Apache2.2\bin\httpd.exe System Up-Time 44 day(s) 21:32:50 Process Up-Time 00:00:50 Thread 2 - System ID 5220 Entry point msvcrt!_endthreadex+6f Create time 12.01.2009 13:27:55 Time spent in user mode 0 Days 0:0:0.0 Time spent in kernel mode 0 Days 0:0:0.0 Function Arg 1 Arg 2 Arg 3 Source ntdll!RtlpCoalesceFreeBlocks+6ef 0018 01be63e0 0147f838 ntdll!RtlpExtendHeap+40 0018 03c8 91d4233e ntdll!RtlpAllocateHeap+7db 03c0 03c8 01be53e0 ntdll!RtlAllocateHeap+1e3 0018 03c0 msvcrt!malloc+8d 03c0 02c07d20 02c07d20 php_mysql!php_mysql_do_connect+358 02bfe478 02bfe598 php_mysql!zif_mysql_pconnect+25 0003 02bfe598 php5ts!zend_do_fcall_common_helper_SPEC+7d9 0147fac4 01b6d978 02bfdb00 php5ts!ZEND_DO_FCALL_SPEC_CONST_HANDLER+e5 01b6d978 0147fb78 php5ts!execute+1c5 02bfdb00 01b6d978 02bfbcd6 php5ts!ZEND_INCLUDE_OR_EVAL_SPEC_CONST_HANDLER+330 02bfbc18 01b6d978 php5ts!execute+1c5 02bfbc18 01b6d978 php5ts!zend_execute_scripts+107 0008 01b6d978 php5ts!php_execute_script+20d 0147fe68 01b6d978 0005 php5apache2_2!php_handler+5cd 00e147f8 00dc7cd0 00e147f8 libhttpd!ap_run_handler+21 00e147f8 00e147f8 00e147f8 libhttpd!ap_invoke_handler+ae 01b82a68 0147ff00 libhttpd!ap_die+24e 00e147f8 00e010d0 libhttpd!ap_get_request_note+1c9c 01b82a68 01b82a68 01b82a68 libhttpd!ap_run_process_connection+21 01b82a68 00d44e58 0147ff48 libhttpd!ap_process_connection+33 01b82a68 00e0c7e8 libhttpd!ap_regkey_value_remove+c7c 01b82a60 35450e04 msvcrt!_endthreadex+44 0147ff94 76424911 01b75a00 msvcrt!_endthreadex+ce 01b75a00 0147ffd4 779ce4b6 kernel32!BaseThreadInitThunk+e 01b75a00 91d425c2 ntdll!__RtlUserThreadStart+23 76952da8 01b75a00 ntdll!_RtlUserThreadStart+1b 76952da8 01b75a00 NTDLL!RTLPCOALESCEFREEBLOCKS+6EF Detailed Info For Corrupt Heap Heap 1 - 0x0023 Heap Name Default process heap Heap Description This heap is created by default and shared by all modules in the process Reserved memory 5.244.720,03 TBytes Committed memory 5.243.920,02 TBytes (99,98% of reserved) Uncommitted memory 800,01 TBytes (0,02% of reserved) Number of heap segments 1 segments Number of uncommitted ranges
#47080 [NEW]: Type of variable changes after it has been returned by reference
From: foddex at foddex dot net Operating system: Linux Fedora 9 PHP version: 5.2.8 PHP Bug Type: Unknown/Other Function Bug description: Type of variable changes after it has been returned by reference Description: When a class member variable gets returned by reference, the member variable itself turns into a reference. See the URL below for more detailed information (it contains a lot of comments). The basic idea is: class A { var $foo; function get() { return $this-foo; } } If we clone an instance of A when get() hasn't been returned yet, the value of $foo gets cloned. If we call get(), and then clone the instance of A, the cloned object references the same data as the original! This might be logical because it had become a reference, but this behavior is not documented and thus pretty unexpected, IMHO. Reproduce code: --- http://pastebin.be/16008 Expected result: object(A)#1 (1) { [foo]= int(42) } int(42) int(43) int(42) object(A)#1 (1) { [foo]= int(43) } Actual result: -- object(A)#1 (1) { [foo]= int(42) } int(42) int(43) int(43) object(A)#1 (1) { [foo]= int(43) } -- Edit bug report at http://bugs.php.net/?id=47080edit=1 -- Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=47080r=trysnapshot52 Try a CVS snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=47080r=trysnapshot53 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=47080r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=47080r=fixedcvs Fixed in CVS and need be documented: http://bugs.php.net/fix.php?id=47080r=needdocs Fixed in release: http://bugs.php.net/fix.php?id=47080r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=47080r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=47080r=needscript Try newer version: http://bugs.php.net/fix.php?id=47080r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=47080r=support Expected behavior: http://bugs.php.net/fix.php?id=47080r=notwrong Not enough info: http://bugs.php.net/fix.php?id=47080r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=47080r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=47080r=globals PHP 4 support discontinued: http://bugs.php.net/fix.php?id=47080r=php4 Daylight Savings:http://bugs.php.net/fix.php?id=47080r=dst IIS Stability: http://bugs.php.net/fix.php?id=47080r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=47080r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=47080r=float No Zend Extensions: http://bugs.php.net/fix.php?id=47080r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=47080r=mysqlcfg
#47076 [Opn]: binary representation of unicode
ID: 47076 User updated by: lunter at interia dot pl Reported By: lunter at interia dot pl Status: Open Bug Type: Unicode Engine related Operating System: all PHP Version: 6CVS-2009-01-12 (CVS) New Comment: Note that: chr(206).chr(178) is binary representation of UTF-8 char no. 946 chr(178).chr(3) is binary representation of UTF-16LE char no. 946 chr(3).chr(178) is binary representation of UTF-16BE char no. 946 Previous Comments: [2009-01-12 13:45:39] lunter at interia dot pl There is no way to calculate base64, sha1 from unicode string (unicode.script_encoding = UTF-8 [or UTF-16LE,UTF-16BE]) starting from $unicode=chr(946) because we don't have method to convert mutli-byte character sets to it's binary representation $unicode=chr(946) When stript encoding UTF-8, chr(946) base64($unicode) is zrI= sha1($unicode) is 25b9b2c8a851851c7e0f1cff29a93a6aa6895f34 When stript encoding UTF-16LE, chr(946) base64($unicode) is sgM= sha1($unicode) is e84c936ce61a692fcc5a402b3b9b733592ba0b67 When stript encoding UTF-16BE, chr(946) base64($unicode) is A7I= sha1($unicode) is 2403f70ce33aeec4e21a519ffebb2864afc89fda [2009-01-12 13:39:02] lunter at interia dot pl USE OLD PHP 5.x // --- valids values of UTF-16LE char(946) base64 / sha1 ? print('UTF-16LE char(946):br'); print('base64: '.base64_encode(chr(178).chr(3)).'br'); print('sha1: '.sha1(chr(178).chr(3)).'br'); ? // --- valids values of UTF-16BE char(946) base64 / sha1 ? print('UTF-16BE char(946):br'); print('base64: '.base64_encode(chr(3).chr(178)).'br'); print('sha1: '.sha1(chr(3).chr(178)).'br'); ? [2009-01-12 13:25:01] lunter at interia dot pl USE OLD PHP 5.x valids values of UTF-8 char(946) base64 / sha1 ? print('UTF-8 char(946):br'); print('base64: '.base64_encode(chr(206).chr(178)).'br'); print('sha1: '.sha1(chr(206).chr(178)).'br'); ? [2009-01-12 12:54:41] lunter at interia dot pl All examples above in utf-8 Imagine that using utf-16, sha1 and base64 will be not the same. [2009-01-12 12:50:23] lunter at interia dot pl Please imagine that unicode chr(946) in binary have two bytes [11001110 10110010]. 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/47076 -- Edit this bug report at http://bugs.php.net/?id=47076edit=1
#47073 [Fbk-Opn]: don�t connect to mssql
ID: 47073 User updated by: joao dot rebelo at pchouse dot pt Reported By: joao dot rebelo at pchouse dot pt -Status: Feedback +Status: Open Bug Type: MSSQL related Operating System: Windows XP SP3 PHP Version: 5.2.8 New Comment: function datamssql(){ if(!$mssqldb){ global $mssql_host, $mssql_user, $mssql_password, $mssql_database; $mssqldb = new Zend_Db_Adapter_Pdo_Mssql(array( 'host' = $mssql_host, 'username' = $mssql_user, 'password' = $mssql_password, 'dbname' = $mssql_database )); } return $mssqldb; } // end mssql connection Fatal error: Uncaught exception 'Zend_Db_Adapter_Exception' with message 'The mssql driver is not currently installed' in C:\wamp\virtualhost\pchousecms\cmsadmin\include\Zend\Db\Adapter\Pdo\Abstract.php:103 Stack trace: #0 C:\wamp\virtualhost\pchousecms\cmsadmin\include\Zend\Db\Adapter\Pdo\Mssql.php(135): Zend_Db_Adapter_Pdo_Abstract-_connect() #1 C:\wamp\virtualhost\pchousecms\cmsadmin\include\Zend\Db\Adapter\Abstract.php(389): Zend_Db_Adapter_Pdo_Mssql-_connect() #2 C:\wamp\virtualhost\pchousecms\cmsadmin\include\Zend\Db\Adapter\Pdo\Abstract.php(205): Zend_Db_Adapter_Abstract-query('SELECT COUNT(no...', Array) #3 C:\wamp\virtualhost\pchousecms\cmsadmin\include\connector\backoffice\wintouch\subfamilia.class.php(351): Zend_Db_Adapter_Pdo_Abstract-query('SELECT COUNT(no...') #4 C:\wamp\virtualhost\pchousecms\cmsadmin\include\connector\subfamilia\subfamilia.php(16): subfamilia-countrec() #5 {main} thrown in C:\wamp\virtualhost\pchousecms\cmsadmin\include\Zend\Db\Adapter\Pdo\Abstract.php on line 103 I also had copy the ntwdblib.dll as i did in on PHP 5.2.6 to work, but doesn´t work Previous Comments: [2009-01-12 10:35:39] paj...@php.net Please show us some script. Also the driver from Microsoft is not compatible with PHP's mssql drivers. They use differenet APIs. [2009-01-12 10:15:23] joao dot rebelo at pchouse dot pt Description: Upgrading from PHP 5.2.6 to PHP 5.2.8 and had stopping the connection with MSSQL, with the message 'no driver installed' even after installing the driver from Microsoft web site and installing and configure php.ini to load the drive when I rollback to PHP 5.2.6 everything works fine. -- Edit this bug report at http://bugs.php.net/?id=47073edit=1
#47073 [Opn-Bgs]: don�t connect to mssql
ID: 47073 Updated by: paj...@php.net -Summary: don´t connect to mssql Reported By: joao dot rebelo at pchouse dot pt -Status: Open +Status: Bogus Bug Type: MSSQL related Operating System: Windows XP SP3 PHP Version: 5.2.8 New Comment: Well, the error is clear. You did not install the mssql driver. But as we are not Zend and has little to do with the Zend framework, I would suggest to ask for some support there instead. Not a php bug bogus. Previous Comments: [2009-01-12 15:28:35] joao dot rebelo at pchouse dot pt function datamssql(){ if(!$mssqldb){ global $mssql_host, $mssql_user, $mssql_password, $mssql_database; $mssqldb = new Zend_Db_Adapter_Pdo_Mssql(array( 'host' = $mssql_host, 'username' = $mssql_user, 'password' = $mssql_password, 'dbname' = $mssql_database )); } return $mssqldb; } // end mssql connection Fatal error: Uncaught exception 'Zend_Db_Adapter_Exception' with message 'The mssql driver is not currently installed' in C:\wamp\virtualhost\pchousecms\cmsadmin\include\Zend\Db\Adapter\Pdo\Abstract.php:103 Stack trace: #0 C:\wamp\virtualhost\pchousecms\cmsadmin\include\Zend\Db\Adapter\Pdo\Mssql.php(135): Zend_Db_Adapter_Pdo_Abstract-_connect() #1 C:\wamp\virtualhost\pchousecms\cmsadmin\include\Zend\Db\Adapter\Abstract.php(389): Zend_Db_Adapter_Pdo_Mssql-_connect() #2 C:\wamp\virtualhost\pchousecms\cmsadmin\include\Zend\Db\Adapter\Pdo\Abstract.php(205): Zend_Db_Adapter_Abstract-query('SELECT COUNT(no...', Array) #3 C:\wamp\virtualhost\pchousecms\cmsadmin\include\connector\backoffice\wintouch\subfamilia.class.php(351): Zend_Db_Adapter_Pdo_Abstract-query('SELECT COUNT(no...') #4 C:\wamp\virtualhost\pchousecms\cmsadmin\include\connector\subfamilia\subfamilia.php(16): subfamilia-countrec() #5 {main} thrown in C:\wamp\virtualhost\pchousecms\cmsadmin\include\Zend\Db\Adapter\Pdo\Abstract.php on line 103 I also had copy the ntwdblib.dll as i did in on PHP 5.2.6 to work, but doesn´t work [2009-01-12 10:35:39] paj...@php.net Please show us some script. Also the driver from Microsoft is not compatible with PHP's mssql drivers. They use differenet APIs. [2009-01-12 10:15:23] joao dot rebelo at pchouse dot pt Description: Upgrading from PHP 5.2.6 to PHP 5.2.8 and had stopping the connection with MSSQL, with the message 'no driver installed' even after installing the driver from Microsoft web site and installing and configure php.ini to load the drive when I rollback to PHP 5.2.6 everything works fine. -- Edit this bug report at http://bugs.php.net/?id=47073edit=1
#47073 [Bgs]: don�t connect to mssql
ID: 47073 User updated by: joao dot rebelo at pchouse dot pt Reported By: joao dot rebelo at pchouse dot pt Status: Bogus Bug Type: MSSQL related Operating System: Windows XP SP3 PHP Version: 5.2.8 New Comment: Ok. Thanks, it was the php_pdo_mysql that was not loaded, only php_mssql was loaded. Now is working. Previous Comments: [2009-01-12 15:36:19] paj...@php.net Well, the error is clear. You did not install the mssql driver. But as we are not Zend and has little to do with the Zend framework, I would suggest to ask for some support there instead. Not a php bug bogus. [2009-01-12 15:28:35] joao dot rebelo at pchouse dot pt function datamssql(){ if(!$mssqldb){ global $mssql_host, $mssql_user, $mssql_password, $mssql_database; $mssqldb = new Zend_Db_Adapter_Pdo_Mssql(array( 'host' = $mssql_host, 'username' = $mssql_user, 'password' = $mssql_password, 'dbname' = $mssql_database )); } return $mssqldb; } // end mssql connection Fatal error: Uncaught exception 'Zend_Db_Adapter_Exception' with message 'The mssql driver is not currently installed' in C:\wamp\virtualhost\pchousecms\cmsadmin\include\Zend\Db\Adapter\Pdo\Abstract.php:103 Stack trace: #0 C:\wamp\virtualhost\pchousecms\cmsadmin\include\Zend\Db\Adapter\Pdo\Mssql.php(135): Zend_Db_Adapter_Pdo_Abstract-_connect() #1 C:\wamp\virtualhost\pchousecms\cmsadmin\include\Zend\Db\Adapter\Abstract.php(389): Zend_Db_Adapter_Pdo_Mssql-_connect() #2 C:\wamp\virtualhost\pchousecms\cmsadmin\include\Zend\Db\Adapter\Pdo\Abstract.php(205): Zend_Db_Adapter_Abstract-query('SELECT COUNT(no...', Array) #3 C:\wamp\virtualhost\pchousecms\cmsadmin\include\connector\backoffice\wintouch\subfamilia.class.php(351): Zend_Db_Adapter_Pdo_Abstract-query('SELECT COUNT(no...') #4 C:\wamp\virtualhost\pchousecms\cmsadmin\include\connector\subfamilia\subfamilia.php(16): subfamilia-countrec() #5 {main} thrown in C:\wamp\virtualhost\pchousecms\cmsadmin\include\Zend\Db\Adapter\Pdo\Abstract.php on line 103 I also had copy the ntwdblib.dll as i did in on PHP 5.2.6 to work, but doesn´t work [2009-01-12 10:35:39] paj...@php.net Please show us some script. Also the driver from Microsoft is not compatible with PHP's mssql drivers. They use differenet APIs. [2009-01-12 10:15:23] joao dot rebelo at pchouse dot pt Description: Upgrading from PHP 5.2.6 to PHP 5.2.8 and had stopping the connection with MSSQL, with the message 'no driver installed' even after installing the driver from Microsoft web site and installing and configure php.ini to load the drive when I rollback to PHP 5.2.6 everything works fine. -- Edit this bug report at http://bugs.php.net/?id=47073edit=1
#46682 [Asn]: touch() atime field returns different value
ID: 46682 Updated by: paj...@php.net Reported By: a...@php.net Status: Assigned Bug Type: Filesystem function related Operating System: win32 only PHP Version: 5.3CVS-2008-11-26 (snap) Assigned To: pajoye New Comment: I found the reason and I have a fix. However I'm not sure yet it does not break more than it should. See: http://news.php.net/php.qa/64596 Previous Comments: [2008-11-26 18:03:09] a...@php.net These tests are also now checked into 6.0. [2008-11-26 10:22:12] a...@php.net Description: The following test was ported from 5.2.X and does not behave the same on 5.3. It appears the atime stat field after running touch() returns a different value. Reproduce code: --- See the test now checked into CVS: ext/standard/tests/file/touch_basic-win32.phpt Expected result: 017- atime=20470 Actual result: -- 017+ atime=1 -- Edit this bug report at http://bugs.php.net/?id=46682edit=1
#47035 [Opn]: dns_get_record returns a garbage byte at the end of a TXT record
ID: 47035 Updated by: fel...@php.net Reported By: valli at icsurselva dot ch Status: Open Bug Type: Network related Operating System: gentoo PHP Version: 5.2.8 Assigned To: felipe New Comment: Sure, it's right to do. We add a new entry in the array returned, on 5.3+ we get: array(6) { [host]= string(35) 82.19.186.195.aspath.routeviews.org [type]= string(3) TXT [txt]= string(31) 13237 3303 44038195.186.0.017 [entries]= array(3) { [0]= string(16) 13237 3303 44038 [1]= string(11) 195.186.0.0 [2]= string(2) 17 } [class]= string(2) IN [ttl]= int(592) } Previous Comments: [2009-01-09 12:52:12] paj...@php.net I agree, it would be more logical to return an array of strings. Comments? [2009-01-09 11:36:01] valli at icsurselva dot ch Hello again, I just dicovered that the garbage chars not only appear at the end of a TXT record. Example: nslookup -type=TXT 82.19.186.195.aspath.routeviews.org Returns: text = 13237 3303 44038 195.186.0.0 17 This DNS request returns 3 Strings. If I do this with dns_get_record the strings are concatenated (containing a garbage char between the strings) BTW: Is it really a good idea to concatenate this strings? Wouldn't it better to return a array containing this strings? Example: the anwers from routeviews.org are really hard (if not impossible) to parse in this way: 13237 3303 44038195.186.0.017 it would be better in this way: array(13237 3303 44038,195.186.0.0,17) [2009-01-08 17:20:39] fel...@php.net 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. Thanks. [2009-01-08 10:45:05] paj...@php.net Felipe, can you give it a try please? http://cvs.php.net/viewvc.cgi/php-src/ext/standard/dns.c?r1=1.70.2.7r2=1.70.2.7.2.7pathrev=PHP_5_2 [2009-01-08 09:31:41] valli at icsurselva dot ch Here's my current workaround: $rt = @dns_get_record($lookuphost, DNS_ANY); // workaround for http://bugs.php.net/bug.php?id=47035 if (substr(PHP_VERSION,0,strpos(PHP_VERSION, '-')) == '5.2.8') { for($i = 0, $rts = sizeof($rt); $i $rts; ++$i) { if ($rt[$i]['type'] == 'TXT') { // remove last byte $rt[$i]['txt'] = substr($rt[$i]['txt'], 0, -1); } } } 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/47035 -- Edit this bug report at http://bugs.php.net/?id=47035edit=1
#46304 [Ctl-Csd]: Defining namespaced constant using define() defines CASE SENSITIVE namespace
ID: 46304 Updated by: s...@php.net Reported By: kenashkov at gmail dot com -Status: Critical +Status: Closed Bug Type: Scripting Engine problem Operating System: * PHP Version: 5.3CVS-2008-11-11 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. Thanks for reporting it. Previous Comments: [2008-11-11 10:37:05] j...@php.net This better be fixed before PHP 5.3.0 goes out - hence critical.. [2008-10-16 11:12:34] fel...@php.net Oh, sorry. I misread your report. Thanks Greg. [2008-10-16 04:04:44] cel...@php.net I think this is a valid bug - we store classes with lower-cased name, but store the original CaSeD name in the class. runtime define() should perform the same steps that compile-time define() does to ensure the namespaced constant is accessible in the same way. It's a bit slower, but more accurate. I'd say move this back to scripting engine, but I'll leave it up to felipe. [2008-10-15 16:08:05] kenashkov at gmail dot com I know it is during runtime, but instead of marking it as bogus, would be better to document it. I'm changing the category. This behaviour has to be documented, or fixed. Is it possible to remap to lowercase internally the result of the define('CaSe::Sensitive::const')? Or is undesirable from consistant POV? [2008-10-15 15:57:01] fel...@php.net 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 The define() works in runtime. 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/46304 -- Edit this bug report at http://bugs.php.net/?id=46304edit=1
#44686 [Com]: SOAP-ERROR: Parsing WSDL
ID: 44686 Comment by: simon at connexon dot com Reported By: dmittner at llnw dot com Status: No Feedback Bug Type: SOAP related Operating System: Gentoo PHP Version: 5.2.5 New Comment: Hi, I'm having the same problem... And it's a bit tough for me to troubleshoot because I'm using a file package provided by a website. http://www.nena.org/xml_schemas/NENAFiles/CurrentNENA/CurrentNENA.zip I'm trying to get the validateAddress to work (from the v7 interface) but so far no luck! I'm stuck on this undefined ref variable. Previous Comments: [2008-12-01 18:12:56] sergio dot aghemo at fiat dot com having the same problem. Urgent fix needed! follow extract of the WSDL s:element name=getLinkProfilesByTicketResponse s:complexType s:sequence s:element minOccurs=0 maxOccurs=1 ref=getLinkProfilesByTicketResult / /s:sequence /s:complexType /s:element . s:element name=getLinkProfilesByTicketResult type=LINKPROFILESRESPONSE / s:complexType name=LINKPROFILESRESPONSE s:sequence s:element minOccurs=0 maxOccurs=1 name=USER type=USER / /s:sequence s:attribute name=error type=s:string / /s:complexType s:complexType name=USER s:sequence s:element minOccurs=0 maxOccurs=1 name=CODMARKET type=s:string / s:element minOccurs=0 maxOccurs=1 name=USERNAME type=s:string / s:element minOccurs=0 maxOccurs=1 name=SINCOM type=s:string / s:element minOccurs=0 maxOccurs=1 name=LOGINNAME type=s:string / s:element minOccurs=0 maxOccurs=1 name=FIRSTNAME type=s:string / s:element minOccurs=0 maxOccurs=1 name=LASTNAME type=s:string / s:element minOccurs=0 maxOccurs=1 name=EMAIL type=s:string / s:element minOccurs=0 maxOccurs=1 name=TELEPHONE type=s:string / s:element minOccurs=0 maxOccurs=1 name=FAX type=s:string / s:element minOccurs=0 maxOccurs=1 name=USERTYPE type=s:integer / s:element minOccurs=0 maxOccurs=1 name=COMPANY type=s:string / s:element minOccurs=0 maxOccurs=1 name=SAPUSERID type=s:string / s:element minOccurs=0 maxOccurs=1 name=MAINSINCOM type=s:string / s:element minOccurs=0 maxOccurs=1 name=STATUS type=s:integer / s:element minOccurs=0 maxOccurs=1 name=LANGUAGE type=s:string / s:element minOccurs=0 maxOccurs=1 name=APPLICATIONS type=ArrayOfAPPLICATION / /s:sequence /s:complexType s:complexType name=ArrayOfAPPLICATION s:sequence s:element minOccurs=0 maxOccurs=unbounded name=APPLICATION type=APPLICATION / /s:sequence /s:complexType s:complexType name=APPLICATION s:sequence s:element minOccurs=0 maxOccurs=1 name=ROLE type=s:string / s:element minOccurs=0 maxOccurs=1 name=BRANDS type=s:string / /s:sequence s:attribute name=name type=s:string / s:attribute name=market type=s:string / s:attribute name=enabled type=s:integer / /s:complexType s:element name=LINKPROFILESRESPONSE type=LINKPROFILESRESPONSE / [2008-11-30 18:22:10] olivier at quatrain dot com Having the same problem happening with a valid WSDL on php 5.2.5 and 5.2.6, I tested it on the latest snapshot of PHP (5.2.7RC6) and got the same error. Hope it helps. [2008-10-29 01:00:02] 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. [2008-10-21 11:27:41] j...@php.net Please try using this CVS snapshot: http://snaps.php.net/php5.2-latest.tar.gz For Windows: http://windows.php.net/snapshots/ [2008-04-14 22:42:28] dmittner at llnw dot com I've narrowed it down, I think. Relevant excerpts from the WSDL: s:element name=ProvisionMonitors s:complexType s:sequence s:element minOccurs=0 maxOccurs=1 ref=ProvisioningOrder / /s:sequence /s:complexType /s:element s:element name=ProvisioningOrder type=ProvisioningOrder / s:complexType name=ProvisioningOrder s:complexContent mixed=false s:extension base=CServiceObject s:sequence s:element minOccurs=0 maxOccurs=1 name=MonitorOrders type=ArrayOfMonitorOrder / ... /s:sequence s:attribute name=name type=s:string / ... /s:extension /s:complexContent /s:complexType No name is specified in the upper block of XML, for the line with the
#47081 [NEW]: OCI-Collection returns null for object array
From: lan dot zhou at emagineinternational dot com Operating system: windows PHP version: 5.2.8 PHP Bug Type: OCI8 related Bug description: OCI-Collection returns null for object array Description: I have a procedure which returns an object array. When I call this procedure from PHP, and bind an OCI-Collection type object to that output parameter, the PHP object contains the right number of the elements after executing the procedure, but all the elements are NULL. Reproduce code: --- $nty = oci_new_collection($db, 'objectArray'); $stmt = oci_parse($db, 'BEGIN getObjectArray(output); END;'); oci_bind_by_name($stmt, 'output', $nty, -1, OCI_B_NTY); oci_execute($stmt, OCI_DEFAULT); for ($i = 0, $len = $nty-size(); $i $len; $i++) { var_dump($nty-getElem($i)); } $nty-free(); oci_commit($this-_db); Expected result: the content of the objects in the object array which is returned from the procedure ( the return array is not null when I executed the procedure in sql developer) Actual result: -- NULL -- Edit bug report at http://bugs.php.net/?id=47081edit=1 -- Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=47081r=trysnapshot52 Try a CVS snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=47081r=trysnapshot53 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=47081r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=47081r=fixedcvs Fixed in CVS and need be documented: http://bugs.php.net/fix.php?id=47081r=needdocs Fixed in release: http://bugs.php.net/fix.php?id=47081r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=47081r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=47081r=needscript Try newer version: http://bugs.php.net/fix.php?id=47081r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=47081r=support Expected behavior: http://bugs.php.net/fix.php?id=47081r=notwrong Not enough info: http://bugs.php.net/fix.php?id=47081r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=47081r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=47081r=globals PHP 4 support discontinued: http://bugs.php.net/fix.php?id=47081r=php4 Daylight Savings:http://bugs.php.net/fix.php?id=47081r=dst IIS Stability: http://bugs.php.net/fix.php?id=47081r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=47081r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=47081r=float No Zend Extensions: http://bugs.php.net/fix.php?id=47081r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=47081r=mysqlcfg
#42589 [Asn-Csd]: getColumnMeta() should also return table name
ID: 42589 Updated by: scott...@php.net Reported By: fabrizio dot balliano at crealabs dot it -Status: Assigned +Status: Closed Bug Type: PDO related Operating System: * PHP Version: 5.2.4 Assigned To: scottmac 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. Will be in 5.3.0 Previous Comments: [2009-01-08 10:40:24] paj...@php.net Scott, can you take a look at the patch please? [2008-11-30 11:47:12] m...@php.net MySQL has been supporting this for quite some time now. My patch for SQLite is still pending, I guess. [2007-10-13 09:59:58] m...@php.net I have suggested a first patch to implement this for MySQL and SQLite: http://news.php.net/php.internals/32742 [2007-09-07 16:07:43] fabrizio dot balliano at crealabs dot it Description: if you do select * from table1 join table2 on (table1.id=table2.id) how can you understand which fields are coming from table1 and which from table2? the only way is that getcolumnmeta() also returns the table name of every column -- Edit this bug report at http://bugs.php.net/?id=42589edit=1
#46581 [Com]: Error 1720: File not found Line 182, Column 9
ID: 46581 Comment by: sysplex at rocketmail dot com Reported By: artist at wavenet dot org Status: Open Bug Type: Windows Installer Operating System: Windows XP PHP Version: 5.2.6 New Comment: Have the same problem with 5.2.8 and the c:\Program files\PHP\ directory does not exist i.e. no php installation at all. Selected the IIS ISAPI module option. All other options used were the default. Event log... Product: PHP 5.2.8 -- Error 1720. There is a problem with this Windows Installer package. A script required for this install to complete could not be run. Contact your support personnel or package vendor. Custom action configIIS4 script error -2146828235, Microsoft VBScript runtime error: File not found Line 182, Column 9, For more information, see Help and Support Center at http://go.microsoft.com/fwlink/events.asp. Previous Comments: [2008-12-25 22:02:53] chingwen823 at gmail dot com Report same bug with php-5.2.8-win32-installer.msi The Log file == Action start 05:45:14: configIIS4. MSI (s) (80:24) [05:45:14:281]: Generating random cookie. MSI (s) (80:24) [05:45:14:281]: Created Custom Action Server with PID 3700 (0xE74). MSI (s) (80:70) [05:45:14:312]: Running as a service. MSI (s) (80:70) [05:45:14:312]: Hello, I'm your 32bit Impersonated custom action server. MSI (s) (80:EC) [05:45:14:359]: Note: 1: 2205 2: 3: Error MSI (s) (80:EC) [05:45:14:359]: Note: 1: 2228 2: 3: Error 4: SELECT `Message` FROM `Error` WHERE `Error` = 1720 MSI (s) (80:EC) [05:45:15:703]: Note: 1: 2205 2: 3: Error MSI (s) (80:EC) [05:45:15:703]: Note: 1: 2228 2: 3: Error 4: SELECT `Message` FROM `Error` WHERE `Error` = 1709 MSI (s) (80:EC) [05:45:15:703]: Product: PHP 5.2.8 -- Error 1720. There is a problem with this Windows Installer package. A script required for this install to complete could not be run. Contact your support personnel or package vendor. Custom action configIIS4 script error -2146828235, Microsoft VBScript °õ¦æ¶¥¬q¿ù»~: §ä¤£¨ìÀÉ®× Line 182, Column 9, [2008-11-15 19:27:05] artist at wavenet dot org Description: Right near the end of the insallation of: php-5.2.6-nts-win32-installer.msi I get an error message box on screen. Pasted below is information about this error from the Event Viewer: Product: PHP 5.2.6 -- Error 1720. There is a problem with this Windows Installer package. A script required for this install to complete could not be run. Contact your support personnel or package vendor. Custom action configIIS4 script error -2146828235, Microsoft VBScript runtime error: File not found Line 182, Column 9, For more information, see Help and Support Center at http://go.microsoft.com/fwlink/events.asp. I ran the installer from an administrative account. Starting vbscript.dll using the regsvr32 command did not make a difference. The language in effect is English (United States). The decimal separator was a decimal point. I am not using the MS Internet Information Server. I am using LightTPD instead. I did select the IIS FastCGI radio button in the Web Server Setup installation page because I needed the file php-cgi.exe for Fast CGI which it does not otherwise install. When I deselect this IIS option I get an error message box that the installation has failed, and there is no entry in the Event Viewer about what this failure is. Using the snapshot is not a good option because although this installation is for local development, and not a production server, I still need reliability so website development is not disrupted. If this can be fixed or worked around in 5.2.6 I need to know how. Expected result: A PHP installation Actual result: -- In spite of this error PHP did seem to install the files. But it seems I cannot make changes to the installation. I tried to change it to not install SNMP but on PHP startup I still get errors related to this package after deselecting its option in Add/Remove Programs. The output of my startup batch file: Starting LightTPD... LightTPD/1.4.20-1 (Win32) - with SSL Support A fast, secure and flexible webserver... This version is built for WLMP Webserver Package, http://en.wlmp-project.net/ The package is compiled with GCC under 'i686-pc-cygwin' platform. Build-Date: Oct 6 2008 17:30:39 Starting PHP FastCGI... 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 (SNMPv2-MIB): At line 0 in (none) Cannot find module (SNMPv2-SMI): 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
#47002 [Com]: Fields truncated
ID: 47002 Comment by: victorjavierss at live dot com dot mx Reported By: victorjavierss at live dot com dot mx Status: Open Bug Type: dBase related Operating System: Windows PHP Version: 5.2CVS-2009-01-04 (snap) New Comment: Ooops, i got confused with other dbf, that i'm using, but that file is over 1024 fields and y need all of them Previous Comments: [2009-01-12 14:09:25] typoon at gmail dot com Victor, Are you sure this file has 1625 fields? I opened the file with DBF Viewer and I only see 1100 fields. Also I changed the logic a little bit to calculate the number of fields based on the header length and I also obtain 1100 fields. Can you please confirm the number of fields in the file? Also, what is the version of dbase you are using? Thanks! [2009-01-12 12:49:06] typoon at gmail dot com My bad, the url was truncated and i did notice. Downloaded the file, checking the issue right now. Thanks! [2009-01-12 12:40:54] typoon at gmail dot com I tried to access that URL and got this error: That item seems to be missing Someone may have deleted or moved the item, or you may not have permission to view it. If you have questions about this item, contact the person who created it. [2009-01-11 18:59:51] victorjavierss at live dot com dot mx Here is one of the DBF's that i'm using: http://cid-d95738776c6cf0d0.skydrive.live.com/self.aspx/.Public/USAERF07.DBF as I said it retrieves me 1024 fild instead of 1625 [2009-01-11 18:50:14] typoon at gmail dot com I was unable to find a free version of dBase so I can't really create the file here to simulate the issue. Could you please post a link to a .dbf file with more than 1024 fields for me please? Put like 3 or 4 records as examples on it, just so I can do all tests. Thanks! Henrique 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/47002 -- Edit this bug report at http://bugs.php.net/?id=47002edit=1
#47002 [Opn]: Fields truncated
ID: 47002 User updated by: victorjavierss at live dot com dot mx Reported By: victorjavierss at live dot com dot mx Status: Open Bug Type: dBase related Operating System: Windows PHP Version: 5.2CVS-2009-01-04 (snap) New Comment: I'm guess is dBase IV Previous Comments: [2009-01-13 05:59:39] victorjavierss at live dot com dot mx Ooops, i got confused with other dbf, that i'm using, but that file is over 1024 fields and y need all of them [2009-01-12 14:09:25] typoon at gmail dot com Victor, Are you sure this file has 1625 fields? I opened the file with DBF Viewer and I only see 1100 fields. Also I changed the logic a little bit to calculate the number of fields based on the header length and I also obtain 1100 fields. Can you please confirm the number of fields in the file? Also, what is the version of dbase you are using? Thanks! [2009-01-12 12:49:06] typoon at gmail dot com My bad, the url was truncated and i did notice. Downloaded the file, checking the issue right now. Thanks! [2009-01-12 12:40:54] typoon at gmail dot com I tried to access that URL and got this error: That item seems to be missing Someone may have deleted or moved the item, or you may not have permission to view it. If you have questions about this item, contact the person who created it. [2009-01-11 18:59:51] victorjavierss at live dot com dot mx Here is one of the DBF's that i'm using: http://cid-d95738776c6cf0d0.skydrive.live.com/self.aspx/.Public/USAERF07.DBF as I said it retrieves me 1024 fild instead of 1625 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/47002 -- Edit this bug report at http://bugs.php.net/?id=47002edit=1