#36956 [NEW]: dirname returns \ for root /
From: e dot vandeoudeweetering at marcanti dot esprit-sg dot nl Operating system: Windows 2000 (5.00.2195) SP4 PHP version: 5.1.2 PHP Bug Type: Directory function related Bug description: dirname returns \ for root / Description: When using the function dirname, \ is returned for the root directory / This is what the documentation says: //after PHP 4.3.0 dirname('c:/'); // returns 'c:' Reproduce code: --- print dirname('/'); print dirname('C:/'); print dirname('C:\\'); //this function works Expected result: / C: C:\ Actual result: -- \ C:\ C:\ -- Edit bug report at http://bugs.php.net/?id=36956&edit=1 -- Try a CVS snapshot (PHP 4.4): http://bugs.php.net/fix.php?id=36956&r=trysnapshot44 Try a CVS snapshot (PHP 5.1): http://bugs.php.net/fix.php?id=36956&r=trysnapshot51 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=36956&r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=36956&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=36956&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=36956&r=needtrace Need Reproduce Script:http://bugs.php.net/fix.php?id=36956&r=needscript Try newer version:http://bugs.php.net/fix.php?id=36956&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=36956&r=support Expected behavior:http://bugs.php.net/fix.php?id=36956&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=36956&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=36956&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=36956&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=36956&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=36956&r=dst IIS Stability:http://bugs.php.net/fix.php?id=36956&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=36956&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=36956&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=36956&r=nozend MySQL Configuration Error:http://bugs.php.net/fix.php?id=36956&r=mysqlcfg
#36588 [NEW]: COM can't handle out parameter in function call
From: e dot vandeoudeweetering at marcanti dot esprit-sg dot nl Operating system: Windows 2000 (5.00.2195) SP4 PHP version: 5.1.2 PHP Bug Type: COM related Bug description: COM can't handle out parameter in function call Description: When COM is used to retrieve an out parameters value in a function call, the value remains empty. See: http://msdn.microsoft.com/library/default.asp?url=/library/en-us/wmisdk/wmi/getstringvalue_method_in_class_stdregprov.asp Reproduce code: --- $com_reg = new COM("winmgmts:{impersonationLevel=impersonate}!.\\root\\default:StdRegProv"); $value = 'old_value'; $com_reg -> getStringValue('subtree', "key\\subkey", 'entryName', $value); print $value; Expected result: The value from the registry key 'subtree\key\subkey\entryName' should be printed. Actual result: -- The value 'old_value' that is declared earlier in the code is printed. -- Edit bug report at http://bugs.php.net/?id=36588&edit=1 -- Try a CVS snapshot (PHP 4.4): http://bugs.php.net/fix.php?id=36588&r=trysnapshot44 Try a CVS snapshot (PHP 5.1): http://bugs.php.net/fix.php?id=36588&r=trysnapshot51 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=36588&r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=36588&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=36588&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=36588&r=needtrace Need Reproduce Script:http://bugs.php.net/fix.php?id=36588&r=needscript Try newer version:http://bugs.php.net/fix.php?id=36588&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=36588&r=support Expected behavior:http://bugs.php.net/fix.php?id=36588&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=36588&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=36588&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=36588&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=36588&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=36588&r=dst IIS Stability:http://bugs.php.net/fix.php?id=36588&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=36588&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=36588&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=36588&r=nozend MySQL Configuration Error:http://bugs.php.net/fix.php?id=36588&r=mysqlcfg
#30178 [NEW]: COM Object EnumNetworkDrives
From: e dot vandeoudeweetering at marcanti dot esprit-sg dot nl Operating system: Windows 2000 SP4 5.00.2195 PHP version: 5.0.1 PHP Bug Type: COM related Bug description: COM Object EnumNetworkDrives Description: To enumerate network drives or printer connections, a COM function 'EnumNetworkDrives()' or 'EnumPrinterConnections()'is used. When I run my script with 'EnumNetworkDrives()' as an example, an exception is thrown. This exception is also thrown when using the function 'EnumPrinterConnections()'. Reproduce code: --- EnumNetworkDrives(); for($i = 0; $nd -> Count(); $i += 2) { print $nd -> Item($i) . " " . $nd -> Item($i +1) . "\n"; } ?> Expected result: G: \\%SERVER%\%SHARE% I: \\%SERVER%\%SHARE% J: \\%SERVER%\%SHARE% K: \\%SERVER%\%SHARE% L: \\%SERVER%\%SHARE% M: \\%SERVER%\%SHARE% Actual result: -- G: \\%SERVER%\%SHARE% I: \\%SERVER%\%SHARE% J: \\%SERVER%\%SHARE% K: \\%SERVER%\%SHARE% L: \\%SERVER%\%SHARE% M: \\%SERVER%\%SHARE% PHP Fatal error: Uncaught exception 'com_exception' with message 'Source: Unknown Description: Unknown' in C:\Scripts\php\drives.php:6 Stack trace: #0 {main} thrown in C:\Scripts\php\drives.php on line 6 -- Edit bug report at http://bugs.php.net/?id=30178&edit=1 -- Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=30178&r=trysnapshot4 Try a CVS snapshot (php5.0): http://bugs.php.net/fix.php?id=30178&r=trysnapshot50 Try a CVS snapshot (php5.1): http://bugs.php.net/fix.php?id=30178&r=trysnapshot51 Fixed in CVS:http://bugs.php.net/fix.php?id=30178&r=fixedcvs Fixed in release:http://bugs.php.net/fix.php?id=30178&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=30178&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=30178&r=needscript Try newer version: http://bugs.php.net/fix.php?id=30178&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=30178&r=support Expected behavior: http://bugs.php.net/fix.php?id=30178&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=30178&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=30178&r=submittedtwice register_globals:http://bugs.php.net/fix.php?id=30178&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=30178&r=php3 Daylight Savings:http://bugs.php.net/fix.php?id=30178&r=dst IIS Stability: http://bugs.php.net/fix.php?id=30178&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=30178&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=30178&r=float MySQL Configuration Error: http://bugs.php.net/fix.php?id=30178&r=mysqlcfg
#28005 [NEW]: use of per class constants
From: e dot vandeoudeweetering at marcanti dot esprit-sg dot nl Operating system: windows2000 (5.00.2195) sp4 PHP version: 5.0.0RC1 PHP Bug Type: Class/Object related Bug description: use of per class constants Description: This bug is related to: Bug #27523 It is not possible to use a class constant, without a reference to its OWN class! see reproduce code: Another problem is that the function returns the name of the constant instead of it's value! Reproduce code: --- printConst(); ?> Expected result: The following output should be printed: const Test::TEMP = hi const TEMP = hi Actual result: -- const Test::TEMP = hi PHP Notice: Use of undefined constant TEMP - assumed 'TEMP' in C:\Temp\test.php on line 8 const TEMP = TEMP -- Edit bug report at http://bugs.php.net/?id=28005&edit=1 -- Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=28005&r=trysnapshot4 Try a CVS snapshot (php5): http://bugs.php.net/fix.php?id=28005&r=trysnapshot5 Fixed in CVS: http://bugs.php.net/fix.php?id=28005&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=28005&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=28005&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=28005&r=needscript Try newer version: http://bugs.php.net/fix.php?id=28005&r=oldversion Not developer issue:http://bugs.php.net/fix.php?id=28005&r=support Expected behavior: http://bugs.php.net/fix.php?id=28005&r=notwrong Not enough info:http://bugs.php.net/fix.php?id=28005&r=notenoughinfo Submitted twice:http://bugs.php.net/fix.php?id=28005&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=28005&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=28005&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=28005&r=dst IIS Stability: http://bugs.php.net/fix.php?id=28005&r=isapi Install GNU Sed:http://bugs.php.net/fix.php?id=28005&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=28005&r=float
#27974 [NEW]: COM object and arrays
From: e dot vandeoudeweetering at marcanti dot esprit-sg dot nl Operating system: windows2000 (5.00.2185) sp4 PHP version: 5.0.0RC1 PHP Bug Type: COM related Bug description: COM object and arrays Description: I try to update a multi valued Active Directory attribute. The (COM) function expects an array as the third parameter. When the function is called, PHP produces an error. (See Reproduce code :) I tried the same on my second server that's running: PHP 4.3.4 (cli) (built: Nov 2 2003 23:47:34) The code is executed without any problems. Did something changed in the way PHP treats arrays, or did COM changed? Reproduce code: --- LDAP://"; . $adsi); $user -> PutEx(APPEND, "otherHomePhone", array("123", "456", "789")); $user -> SetInfo(); ?> Expected result: Active Directory should update the multi-valued attribute 'otherHomePhone' with the values specified in the array. Actual result: -- Exception thrown File: C:\php\includes\test.php Line: 6 Message : Source: Active Directory Description: Unspecified error Code: -2147352567 TraceString : #0 {main} Array ( ) Trace : 1 -- Edit bug report at http://bugs.php.net/?id=27974&edit=1 -- Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=27974&r=trysnapshot4 Try a CVS snapshot (php5): http://bugs.php.net/fix.php?id=27974&r=trysnapshot5 Fixed in CVS: http://bugs.php.net/fix.php?id=27974&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=27974&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=27974&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=27974&r=needscript Try newer version: http://bugs.php.net/fix.php?id=27974&r=oldversion Not developer issue:http://bugs.php.net/fix.php?id=27974&r=support Expected behavior: http://bugs.php.net/fix.php?id=27974&r=notwrong Not enough info:http://bugs.php.net/fix.php?id=27974&r=notenoughinfo Submitted twice:http://bugs.php.net/fix.php?id=27974&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=27974&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=27974&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=27974&r=dst IIS Stability: http://bugs.php.net/fix.php?id=27974&r=isapi Install GNU Sed:http://bugs.php.net/fix.php?id=27974&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=27974&r=float