#31737 [NEW]: COM crash when calling WinMgmts
From: jlim at natsoft dot com Operating system: Windows XP PHP version: 4.3.10 PHP Bug Type: COM related Bug description: COM crash when calling WinMgmts Description: Previously the following script to monitor CPU usage on Windows was working with PHP 4.3.8. The following script also fails with PHP 5.0.3. Thanks for looking into it. John Lim. Reproduce code: --- PercentProcessorTime; $info[1] = $c->TimeStamp_Sys100NS; print_r($info); ?> Expected result: TESTED ON PHP 4.3.8 works fine: C:\php4\php438>php -n c:\com.php Content-type: text/html X-Powered-By: PHP/4.3.8 Array ( [0] => 363738299988; [1] => 127513714771937472 ) Actual result: -- Crash with no output and windows crash manager dialog box appears. -- Edit bug report at http://bugs.php.net/?id=31737&edit=1 -- Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=31737&r=trysnapshot4 Try a CVS snapshot (php5.0): http://bugs.php.net/fix.php?id=31737&r=trysnapshot50 Try a CVS snapshot (php5.1): http://bugs.php.net/fix.php?id=31737&r=trysnapshot51 Fixed in CVS:http://bugs.php.net/fix.php?id=31737&r=fixedcvs Fixed in release:http://bugs.php.net/fix.php?id=31737&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=31737&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=31737&r=needscript Try newer version: http://bugs.php.net/fix.php?id=31737&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=31737&r=support Expected behavior: http://bugs.php.net/fix.php?id=31737&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=31737&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=31737&r=submittedtwice register_globals:http://bugs.php.net/fix.php?id=31737&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=31737&r=php3 Daylight Savings:http://bugs.php.net/fix.php?id=31737&r=dst IIS Stability: http://bugs.php.net/fix.php?id=31737&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=31737&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=31737&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=31737&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=31737&r=mysqlcfg
#31737 [Fbk->Csd]: COM crash when calling WinMgmts
ID: 31737 User updated by: jlim at natsoft dot com Reported By: jlim at natsoft dot com -Status: Feedback +Status: Closed Bug Type: COM related Operating System: Windows XP PHP Version: 4.3.10 New Comment: Verified fixed with latest snapshot. Thanks. Previous Comments: [2005-01-28 09:04:27] [EMAIL PROTECTED] Please try using this CVS snapshot: http://snaps.php.net/php4-STABLE-latest.tar.gz For Windows: http://snaps.php.net/win32/php4-win32-STABLE-latest.zip [2005-01-28 08:44:54] jlim at natsoft dot com Description: Previously the following script to monitor CPU usage on Windows was working with PHP 4.3.8. The following script also fails with PHP 5.0.3. Thanks for looking into it. John Lim. Reproduce code: --- PercentProcessorTime; $info[1] = $c->TimeStamp_Sys100NS; print_r($info); ?> Expected result: TESTED ON PHP 4.3.8 works fine: C:\php4\php438>php -n c:\com.php Content-type: text/html X-Powered-By: PHP/4.3.8 Array ( [0] => 363738299988; [1] => 127513714771937472 ) Actual result: -- Crash with no output and windows crash manager dialog box appears. -- Edit this bug report at http://bugs.php.net/?id=31737&edit=1
#31968 [NEW]: PDO getcolumnmeta returns no value when select returns not data
From: jlim at natsoft dot com Operating system: WinXP SP2 PHP version: 5CVS-2005-02-14 (dev) PHP Bug Type: *Database Functions Bug description: PDO getcolumnmeta returns no value when select returns not data Description: Hi, I think PDO should return the getColumnMeta info even if no data is returned, so long as SQL parses correctly and table exists. I believe that all of the non-PDO database extensions work like this. I don't know whether this is an SQLite issue or PDO issue. Thanks, John Lim Reproduce code: --- prepare("select * from hash "); $ok = $st2->execute(); echo "GetColumnMeta"; for ($i=0; $i<2; $i++) { $col = $st2->getColumnMeta($i); var_dump($col);echo ""; } } $db = new PDO('sqlite:' . getenv('HOME') . "/.web-watch.sql3"); $db->query('create table hash(url primary key, hash)'); $db->query('delete from hash'); GetColumnMeta($db); $db->query("insert into hash (url, hash) values ('http://yahoo.com/','100')"); GetColumnMeta($db); ?> Expected result: GetColumnMeta array(6) { ["native_type"]=> string(6) "string" ["flags"]=> array(0) { } ["name"]=> string(3) "url" ["len"]=> int(-1) ["precision"]=> int(0) ["pdo_type"]=> int(2) } array(6) { ["native_type"]=> string(6) "string" ["flags"]=> array(0) { } ["name"]=> string(4) "hash" ["len"]=> int(-1) ["precision"]=> int(0) ["pdo_type"]=> int(2) } GetColumnMeta array(6) { ["native_type"]=> string(6) "string" ["flags"]=> array(0) { } ["name"]=> string(3) "url" ["len"]=> int(-1) ["precision"]=> int(0) ["pdo_type"]=> int(2) } array(6) { ["native_type"]=> string(6) "string" ["flags"]=> array(0) { } ["name"]=> string(4) "hash" ["len"]=> int(-1) ["precision"]=> int(0) ["pdo_type"]=> int(2) } Actual result: -- GetColumnMeta bool(false) bool(false) GetColumnMeta array(6) { ["native_type"]=> string(6) "string" ["flags"]=> array(0) { } ["name"]=> string(3) "url" ["len"]=> int(-1) ["precision"]=> int(0) ["pdo_type"]=> int(2) } array(6) { ["native_type"]=> string(6) "string" ["flags"]=> array(0) { } ["name"]=> string(4) "hash" ["len"]=> int(-1) ["precision"]=> int(0) ["pdo_type"]=> int(2) } -- Edit bug report at http://bugs.php.net/?id=31968&edit=1 -- Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=31968&r=trysnapshot4 Try a CVS snapshot (php5.0): http://bugs.php.net/fix.php?id=31968&r=trysnapshot50 Try a CVS snapshot (php5.1): http://bugs.php.net/fix.php?id=31968&r=trysnapshot51 Fixed in CVS:http://bugs.php.net/fix.php?id=31968&r=fixedcvs Fixed in release:http://bugs.php.net/fix.php?id=31968&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=31968&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=31968&r=needscript Try newer version: http://bugs.php.net/fix.php?id=31968&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=31968&r=support Expected behavior: http://bugs.php.net/fix.php?id=31968&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=31968&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=31968&r=submittedtwice register_globals:http://bugs.php.net/fix.php?id=31968&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=31968&r=php3 Daylight Savings:http://bugs.php.net/fix.php?id=31968&r=dst IIS Stability: http://bugs.php.net/fix.php?id=31968&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=31968&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=31968&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=31968&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=31968&r=mysqlcfg
#31968 [Asn]: PDO getcolumnmeta returns no value when select returns not data
ID: 31968 User updated by: jlim at natsoft dot com Reported By: jlim at natsoft dot com Status: Assigned Bug Type: *Database Functions Operating System: WinXP SP2 PHP Version: 5CVS-2005-02-14 (dev) Assigned To: wez New Comment: Hi This is probably a problem with sqlite. I just tested with pdo's pgsql extension and getcolumnmeta worked fine under both cases. John Previous Comments: [2005-02-14 16:34:22] [EMAIL PROTECTED] I'll look into it. PS: John, can you submit PDO bugs via PECL instead in the future. I'd love to find out more about the OCI problems you mentioned. http://pecl.php.net/bugs/report.php?package=PDO http://pecl.php.net/bugs/report.php?package=PDO_OCI etc. thanks! [2005-02-14 12:09:33] jlim at natsoft dot com Description: Hi, I think PDO should return the getColumnMeta info even if no data is returned, so long as SQL parses correctly and table exists. I believe that all of the non-PDO database extensions work like this. I don't know whether this is an SQLite issue or PDO issue. Thanks, John Lim Reproduce code: --- prepare("select * from hash "); $ok = $st2->execute(); echo "GetColumnMeta"; for ($i=0; $i<2; $i++) { $col = $st2->getColumnMeta($i); var_dump($col);echo ""; } } $db = new PDO('sqlite:' . getenv('HOME') . "/.web-watch.sql3"); $db->query('create table hash(url primary key, hash)'); $db->query('delete from hash'); GetColumnMeta($db); $db->query("insert into hash (url, hash) values ('http://yahoo.com/','100')"); GetColumnMeta($db); ?> Expected result: GetColumnMeta array(6) { ["native_type"]=> string(6) "string" ["flags"]=> array(0) { } ["name"]=> string(3) "url" ["len"]=> int(-1) ["precision"]=> int(0) ["pdo_type"]=> int(2) } array(6) { ["native_type"]=> string(6) "string" ["flags"]=> array(0) { } ["name"]=> string(4) "hash" ["len"]=> int(-1) ["precision"]=> int(0) ["pdo_type"]=> int(2) } GetColumnMeta array(6) { ["native_type"]=> string(6) "string" ["flags"]=> array(0) { } ["name"]=> string(3) "url" ["len"]=> int(-1) ["precision"]=> int(0) ["pdo_type"]=> int(2) } array(6) { ["native_type"]=> string(6) "string" ["flags"]=> array(0) { } ["name"]=> string(4) "hash" ["len"]=> int(-1) ["precision"]=> int(0) ["pdo_type"]=> int(2) } Actual result: -- GetColumnMeta bool(false) bool(false) GetColumnMeta array(6) { ["native_type"]=> string(6) "string" ["flags"]=> array(0) { } ["name"]=> string(3) "url" ["len"]=> int(-1) ["precision"]=> int(0) ["pdo_type"]=> int(2) } array(6) { ["native_type"]=> string(6) "string" ["flags"]=> array(0) { } ["name"]=> string(4) "hash" ["len"]=> int(-1) ["precision"]=> int(0) ["pdo_type"]=> int(2) } -- Edit this bug report at http://bugs.php.net/?id=31968&edit=1
#24396 [NEW]: foreach ($k=>$v), the key $k is missing
From: jlim at natsoft dot com Operating system: Windows XP PHP version: 5.0.0b1 (beta1) PHP Bug Type: Scripting Engine problem Bug description: foreach ($k=>$v), the key $k is missing Description: The following script below fails (missing $k). Reproduce code: --- "; print_r($_GET); foreach($_GET as $k=>$v) { global $$k; print " ($k=>$v) "; $$k = $v; } ?> Expected result: 5.0.0b1 Array ( [a] => 1 [b] => 2 [c] => 3 ) (a=>1) (b=>2) (c=>3) Actual result: -- 5.0.0b1 Array ( [a] => 1 [b] => 2 [c] => 3 ) (=>1) (=>2) (=>3) -- Edit bug report at http://bugs.php.net/?id=24396&edit=1 -- Try a CVS snapshot: http://bugs.php.net/fix.php?id=24396&r=trysnapshot Fixed in CVS: http://bugs.php.net/fix.php?id=24396&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=24396&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=24396&r=needtrace Try newer version: http://bugs.php.net/fix.php?id=24396&r=oldversion Not developer issue:http://bugs.php.net/fix.php?id=24396&r=support Expected behavior: http://bugs.php.net/fix.php?id=24396&r=notwrong Not enough info:http://bugs.php.net/fix.php?id=24396&r=notenoughinfo Submitted twice:http://bugs.php.net/fix.php?id=24396&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=24396&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=24396&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=24396&r=dst IIS Stability: http://bugs.php.net/fix.php?id=24396&r=isapi Install GNU Sed:http://bugs.php.net/fix.php?id=24396&r=gnused
#24397 [NEW]: Apache 1.3.27 inconsistencies with PHP5
From: jlim at natsoft dot com Operating system: Windows XP PHP version: 5.0.0b1 (beta1) PHP Bug Type: *Web Server problem Bug description: Apache 1.3.27 inconsistencies with PHP5 Description: Note the funky inconsistency below in the httpd.conf script that i had to use: php4apache.dll but php5_module Also the search path for php.ini and other files is WINDOWS/WINNT directory first. Shouldn't the current directory be first, eg: .;C:\WINDOWS like in PHP 4.3.2? Lastly, although the extension directory is correctly set (checked in phpinfo()), extensions do not appear to load. Reproduce code: --- # from httpd.conf script: LoadModule php5_module c:\php5\php5b1\php4apache.dll AddModule mod_php5.c AddType application/x-httpd-php .php -- Edit bug report at http://bugs.php.net/?id=24397&edit=1 -- Try a CVS snapshot: http://bugs.php.net/fix.php?id=24397&r=trysnapshot Fixed in CVS: http://bugs.php.net/fix.php?id=24397&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=24397&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=24397&r=needtrace Try newer version: http://bugs.php.net/fix.php?id=24397&r=oldversion Not developer issue:http://bugs.php.net/fix.php?id=24397&r=support Expected behavior: http://bugs.php.net/fix.php?id=24397&r=notwrong Not enough info:http://bugs.php.net/fix.php?id=24397&r=notenoughinfo Submitted twice:http://bugs.php.net/fix.php?id=24397&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=24397&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=24397&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=24397&r=dst IIS Stability: http://bugs.php.net/fix.php?id=24397&r=isapi Install GNU Sed:http://bugs.php.net/fix.php?id=24397&r=gnused
#24397 [Opn]: Apache 1.3.27 inconsistencies with PHP5
ID: 24397 User updated by: jlim at natsoft dot com Reported By: jlim at natsoft dot com Status: Open Bug Type: Apache related Operating System: Windows XP PHP Version: 5.0.0b1 (beta1) New Comment: Sorry The extension directory problem is bogus. I confused the php4 php.ini with the php5 php.ini settings. The other bugs mentioned are still relevant. Previous Comments: [2003-06-29 23:56:56] jlim at natsoft dot com Description: Note the funky inconsistency below in the httpd.conf script that i had to use: php4apache.dll but php5_module Also the search path for php.ini and other files is WINDOWS/WINNT directory first. Shouldn't the current directory be first, eg: .;C:\WINDOWS like in PHP 4.3.2? Lastly, although the extension directory is correctly set (checked in phpinfo()), extensions do not appear to load. Reproduce code: --- # from httpd.conf script: LoadModule php5_module c:\php5\php5b1\php4apache.dll AddModule mod_php5.c AddType application/x-httpd-php .php -- Edit this bug report at http://bugs.php.net/?id=24397&edit=1
#24453 [NEW]: w32api registerfunction fails on 3rd call
From: jlim at natsoft dot com Operating system: Windows XP PHP version: 4.3.2 PHP Bug Type: Unknown/Other Function Bug description: w32api registerfunction fails on 3rd call Description: If the 3rd registerfunction (for messageboxa) is commented out, the code works properly. Tested with cli version of php. Reproduce code: --- registerfunction("long GetTickCount () From Kernel32.dll"); echo "Ticks=",$api->GetTickCount(),"\n"; $api->registerfunction("long GetUserName (string &a, int &b) From advapi32.dll"); $s1 = ""; $size = strlen($s1); $api->GetUsername($s1,$size); $s1 = substr($s1,0,$size); echo "u='$s1'\n"; print_r(get_class_methods($api)); $api->registerfunction("int MessageBoxA(long hWnd, string &title, string &lpCaption, int uType) from User32.dll"); ?> Expected result: Ticks=192755858 u='jlim ' Array ( [0] => registerfunction [1] => unregisterfunction [2] => registercallback [3] => definetype [4] => gettypesize [5] => inittype [6] => decref [7] => gettickcount [8] => getusername ) Actual result: -- Ticks=192755858 u='jlim ' Array ( [0] => registerfunction [1] => unregisterfunction [2] => registercallback [3] => definetype [4] => gettypesize [5] => inittype [6] => decref [7] => gettickcount [8] => getusername ) Fatal error: Call to undefined function: registerfunction() in d:\in etpub\wwwroot\php\w32.inc.php on line 18 -- Edit bug report at http://bugs.php.net/?id=24453&edit=1 -- Try a CVS snapshot: http://bugs.php.net/fix.php?id=24453&r=trysnapshot Fixed in CVS: http://bugs.php.net/fix.php?id=24453&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=24453&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=24453&r=needtrace Try newer version: http://bugs.php.net/fix.php?id=24453&r=oldversion Not developer issue:http://bugs.php.net/fix.php?id=24453&r=support Expected behavior: http://bugs.php.net/fix.php?id=24453&r=notwrong Not enough info:http://bugs.php.net/fix.php?id=24453&r=notenoughinfo Submitted twice:http://bugs.php.net/fix.php?id=24453&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=24453&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=24453&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=24453&r=dst IIS Stability: http://bugs.php.net/fix.php?id=24453&r=isapi Install GNU Sed:http://bugs.php.net/fix.php?id=24453&r=gnused
#21076 [Ver]: ODBC_TABLES and ODBC_COLUMNS cannot be called together
ID: 21076 User updated by: jlim at natsoft dot com -Reported By: heyjohnlim at yahoo dot com +Reported By: jlim at natsoft dot com Status: Verified Bug Type: ODBC related Operating System: Win2000, IIS-CGI PHP Version: 4.3.3RC2-dev New Comment: Tested with 4.3.3RC2-dev. Same problem with mssql odbc driver. I also tested with access and oracle odbc drivers and the problem never happens with these drivers, so it appears to be something specific to the way mssql does things. I also double-checked the MDAC using M'soft's ComCheck program(as i have changed PC's), and it is mdac 2.7 SP1. The mssql driver version is 2000.81.9031.14, 15/Nov/2002 Regards, John Previous Comments: [2003-06-29 22:45:57] [EMAIL PROTECTED] Yep it exists. [2003-06-29 21:43:47] [EMAIL PROTECTED] Please try using this CVS snapshot: http://snaps.php.net/php4-STABLE-latest.tar.gz For Windows: http://snaps.php.net/win32/php4-win32-STABLE-latest.zip [2003-02-19 23:35:38] [EMAIL PROTECTED] Well now that seems really odd. I guess I'll have to try to get access to a SQLServer machine for some testing... ugh... [2003-02-18 23:34:21] heyjohnlim at yahoo dot com Sorry I forgot to mention, i did test on access previously and it was ok. The mssql odbc driver is probably much more complex. [2003-02-18 12:05:58] [EMAIL PROTECTED] I looked into this a but more this past week... I still don't see anything outrageously wrong. Very odd... any chance I can get you to try this script with a lame DB like MS Access? I still am unable to reproduce this locally. 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/21076 -- Edit this bug report at http://bugs.php.net/?id=21076&edit=1
#24453 [Opn]: w32api registerfunction fails on 3rd call
ID: 24453 User updated by: jlim at natsoft dot com Reported By: jlim at natsoft dot com Status: Open Bug Type: Feature/Change Request Operating System: Windows XP PHP Version: 4.3.2 New Comment: OK, tested again with 4.3.3RC2-dev, Windows XP with the following results C:\php4\php43b>php d:\inetpub\wwwroot\php\w32.inc.php Content-type: text/html X-Powered-By: PHP/4.3.3RC2-dev Ticks=57669013 u='jlim ' Array ( [0] => registerfunction [1] => unregisterfunction [2] => registercallback [3] => definetype [4] => gettypesize [5] => inittype [6] => decref [7] => gettickcount [8] => getusername ) Fatal error: Call to undefined function: registerfunction() in d:\in etpub\wwwroot\php\w32.inc.php on line 18 Also tested on a 2nd windows 2000 server, with php 4.3.2. Same result. Previous Comments: [2003-07-02 15:04:25] [EMAIL PROTECTED] Works here as expected with 4.3.2 CLI and CGI on XP Pro. -------- [2003-07-02 01:11:52] jlim at natsoft dot com Description: If the 3rd registerfunction (for messageboxa) is commented out, the code works properly. Tested with cli version of php. Reproduce code: --- registerfunction("long GetTickCount () From Kernel32.dll"); echo "Ticks=",$api->GetTickCount(),"\n"; $api->registerfunction("long GetUserName (string &a, int &b) From advapi32.dll"); $s1 = ""; $size = strlen($s1); $api->GetUsername($s1,$size); $s1 = substr($s1,0,$size); echo "u='$s1'\n"; print_r(get_class_methods($api)); $api->registerfunction("int MessageBoxA(long hWnd, string &title, string &lpCaption, int uType) from User32.dll"); ?> Expected result: Ticks=192755858 u='jlim ' Array ( [0] => registerfunction [1] => unregisterfunction [2] => registercallback [3] => definetype [4] => gettypesize [5] => inittype [6] => decref [7] => gettickcount [8] => getusername ) Actual result: -- Ticks=192755858 u='jlim ' Array ( [0] => registerfunction [1] => unregisterfunction [2] => registercallback [3] => definetype [4] => gettypesize [5] => inittype [6] => decref [7] => gettickcount [8] => getusername ) Fatal error: Call to undefined function: registerfunction() in d:\in etpub\wwwroot\php\w32.inc.php on line 18 -- Edit this bug report at http://bugs.php.net/?id=24453&edit=1
#24453 [Opn]: w32api registerfunction fails on 3rd call
ID: 24453 User updated by: jlim at natsoft dot com Reported By: jlim at natsoft dot com Status: Open Bug Type: Feature/Change Request Operating System: Windows XP PHP Version: 4.3.3-RC2dev New Comment: Here is my phpinfo: Content-type: text/html X-Powered-By: PHP/4.3.3RC2-dev <!-- body {background-color: #ff; color: #00;} body, td, th, h1, h2 {font-family: sans-serif;} pre {margin: 0px; font-family: monospace;} a:link {color: #99; text-decoration: none; background-color: #ff;} a:hover {text-decoration: underline;} table {border-collapse: collapse;} .center {text-align: center;} .center table { margin-left: auto; margin-right: auto; text-align: left;} .center th { text-align: center !important; } td, th { border: 1px solid #00; font-size: 75%; vertical-align: baseline;} h1 {font-size: 150%;} h2 {font-size: 125%;} .p {text-align: left;} .e {background-color: #ff; font-weight: bold; color: #00;} .h {background-color: #cc; font-weight: bold; color: #00;} .v {background-color: #cc; color: #00;} i {color: #66; background-color: #cc;} img {float: right; border: 0px;} hr {width: 600px; background-color: #cc; border: 0px; height: 1px; color: #00;} //--> phpinfo() http://www.php.net/";>PHP Version 4.3.3RC2-dev System Windows NT TIGRESS 5.1 build 2600 Build Date Jul 2 2003 10:12:16 Server API CGI/FastCGI Virtual Directory Support enabled Configuration File (php.ini) Path C:\php4\php43b\php.ini PHP API 20020918 PHP Extension 20020429 Zend Extension 20021010 Debug Build no Thread Safety enabled Registered PHP Streams php, http, ftp, compress.zlib http://www.zend.com/";> This program makes use of the Zend Scripting Language Engine:Zend Engine v1.3.0, Copyright (c) 1998-2003 Zend Technologies PHP Credits Configuration PHP Core DirectiveLocal ValueMaster Value allow_call_time_pass_referenceOnOn allow_url_fopenOnOn always_populate_raw_post_dataOffOff arg_separator.input&& arg_separator.output&& asp_tagsOffOff auto_append_fileno valueno value auto_prepend_fileno valueno value browscapno valueno value default_charsetno valueno value default_mimetypetext/htmltext/html define_syslog_variablesOffOff disable_classesno valueno value disable_functionsno valueno value display_errorsOnOn display_startup_errorsOffOff doc_rootno valueno value docref_extno valueno value docref_rootno valueno value enable_dlOnOn error_append_stringno valueno value error_logno valueno value error_prepend_stringno valueno value error_reporting20392039 expose_phpOnOn extension_dirC:\php4\php43b\extensionsC:\php4\php43b\extensions file_uploadsOnOn gpc_orderGPCGPC highlight.bg#FF#FF highlight.comment#FF8000#FF8000 highlight.default#BB#BB highlight.html#00#00 highlight.keyword#007700#007700 highlight.string#DD#DD html_errorsOnOn ignore_repeated_errorsOffOff ignore_repeated_sourceOffOff ignore_user_abortOffOff implicit_flushOffOff include_path.;C:\php4\includes\pear.;C:\php4\includes\pear log_errorsOffOff log_errors_max_len10241024 magic_quotes_gpcOffOff magic_quotes_runtimeOffOff magic_quotes_sybaseOffOff max_execution_time3030 max_input_time6060 open_basedirno valueno value output_bufferingno valueno value output_handlerno valueno value post_max_size8M8M precision1212 register_argc_argvOnOn register_globalsOnOn report_memleaksOnOn safe_modeOffOff safe_mode_exec_dirno valueno value safe_mode_gidOffOff safe_mode_include_dirno valueno value sendmail_from[EMAIL PROTECTED][EMAIL PROTECTED] sendmail_pathno valueno value serialize_precision100100 short_open_tagOnOn SMTPlocalhostlocalhost smtp_port2525 sql.safe_modeOffOff track_errorsOffOff unserialize_callback_funcno valueno value upload_max_filesize2M2M upload_tmp_dirno valueno value user_dirno valueno value variables_orderEGPCSEGPCS xmlrpc_error_number00 xmlrpc_errorsOffOff y2k_complianceOnOn Win32 API Win32 API Support enabled bcmath BCMath support enabled calendar Calendar support enabled com DirectiveLocal ValueMaster Value com.allow_dcomOffOff com.autoregister_casesensitiveOnOn com.autoregister_typelibOffOff com.autoregister_verboseOffOff com.typelib_fileno valueno value ctype ctype functions enabled curl CURL support enabled CURL Information libcurl/7.10.5 OpenSSL/0.9.7b ftp FTP support enabled gd GD Support enabled GD Version bundled (2.0.15 compatible) FreeType Support enabled FreeType Linkage with freetype GIF Read Support enabled JPG Support enabled PNG Support enabled WBMP Support enabled XBM Support enabled interbase Interbase Support enabled Revision $Revision: 1.91.2.10 $ Dynamic Module yes Allow Persistent Links Yes Persistent Links 0/unlimited Total Links 0/unlimited Timestamp Format %m/%d/%Y %H:%M:%S Date Format %m/%d/%Y Time Format %H:%M:%S mssql MSSQL Supportenabled Active Persistent Links 0 Active Links 0 Library version 7
#45485 [NEW]: strip_tags and
From: jlim at natsoft dot com Operating system: Windows PHP version: 5.2.6 PHP Bug Type: Strings related Bug description: strip_tags and This Text disappears EOD; $s = strip_tags($s); echo htmlspecialchars($s),""; # WORKS $s =<<< EOD This text is shown This Text disappears EOD; $s = strip_tags($s); echo htmlspecialchars($s),""; ?> Expected result: This text is shown This Text disappears -- This text is shown This Text disappears Actual result: -- This text is shown -- This text is shown This Text disappears -- Edit bug report at http://bugs.php.net/?id=45485&edit=1 -- Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=45485&r=trysnapshot52 Try a CVS snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=45485&r=trysnapshot53 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=45485&r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=45485&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=45485&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=45485&r=needtrace Need Reproduce Script:http://bugs.php.net/fix.php?id=45485&r=needscript Try newer version:http://bugs.php.net/fix.php?id=45485&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=45485&r=support Expected behavior:http://bugs.php.net/fix.php?id=45485&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=45485&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=45485&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=45485&r=globals PHP 4 support discontinued: http://bugs.php.net/fix.php?id=45485&r=php4 Daylight Savings: http://bugs.php.net/fix.php?id=45485&r=dst IIS Stability:http://bugs.php.net/fix.php?id=45485&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=45485&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=45485&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=45485&r=nozend MySQL Configuration Error:http://bugs.php.net/fix.php?id=45485&r=mysqlcfg
#20048 [Com]: mktime() returns -1 for dates < 1970
ID: 20048 Comment by: jlim at natsoft dot com dot my Reported By: jamie at hometownsports dot ca Status: Wont fix Bug Type: Unknown/Other Function Operating System: RedHat Linux 7.3 PHP Version: 4.2.2 New Comment: As a workaround, you can use the adodb_time library, that uses PHP code to calculate negative timestamps. http://php.weblogs.com/adodb_date_time_library Previous Comments: [2002-10-23 15:18:40] [EMAIL PROTECTED] unix timestamp behavior for negative values is undefined it *may* map to pre-1970 dates but there is no guarantee whatsoever [2002-10-23 14:26:42] jamie at hometownsports dot ca glibc-2.2.5-34 and greater has been changed to return -1 for dates < 1970. This used to work. The problem exists with RedHat 7.3 and 8.0 echo (mktime(0, 0, 0, 1, 1, 1960)); // prints -1 [2002-10-23 14:23:48] jamie at hometownsports dot ca glibc-2.2.5-34 and greater has been changed to return -1 for dates < 1970. This used to work. The problem exists with RedHat 7.3 and 8.0 echo (mktime(0, 0, 0, 1, 1, 1960)); // prints -1 -- Edit this bug report at http://bugs.php.net/?id=20048&edit=1
#20953 [Com]: error when combing ?: and return by reference
ID: 20953 Comment by: jlim at natsoft dot com dot my Reported By: minakov at bas-net dot by Status: No Feedback Bug Type: Scripting Engine problem Operating System: Windows NT 5.1 build 2600 PHP Version: 4.4.0-dev New Comment: I also experienced this problem with the snapshot php4-win32-STABLE-200506132030.zip As to what practical use is it? I have lots of old code that is affected by this. Previous Comments: [2003-01-02 18:46:41] [EMAIL PROTECTED] No feedback was provided. The bug is being suspended because we assume that you are no longer experiencing the problem. If this is not the case and you are able to provide the information that was requested earlier, please do so and change the status of the bug back to "Open". Thank you. [2002-12-12 11:19:22] [EMAIL PROTECTED] Just curious..exactly what practical use has this?? Could you give us some real world example instead..? [2002-12-12 09:11:51] minakov at bas-net dot by I tried it - it does not work as well. [2002-12-12 05:52:17] [EMAIL PROTECTED] Please try using this CVS snapshot: http://snaps.php.net/php4-latest.tar.gz For Windows: http://snaps.php.net/win32/php4-win32-latest.zip [2002-12-12 04:29:28] minakov at bas-net dot by let the sample code say the problem '1'); $arr_bad =& Ref_Bad($arr); $arr_good =& Ref_Good($arr); $arr_bad['b'] = 2; $arr_good['c'] = 3; print_r($arr); ?> required result: Array ( [a] => 1 [b] => 2 [c] => 3 ) current result: Array ( [a] => 1 [c] => 3 ) -- Edit this bug report at http://bugs.php.net/?id=20953&edit=1