From:             six at t0x dot net
Operating system: win2k
PHP version:      4.3.4RC3
PHP Bug Type:     Filesystem function related
Bug description:  filetype() returns wrong type for device drivers

Description:
------------
As the subject states, filetype() on windows (w2k at least) returns wrong
type for device drivers. Actually, it seems to always return the type
"file".



Reproduce code:
---------------
<?

// Of course this works with any device name with any extension

echo "type : ".filetype("c:\com1.xxx");

?>

Expected result:
----------------
type : char

Actual result:
--------------
type : file

-- 
Edit bug report at http://bugs.php.net/?id=26051&edit=1
-- 
Try a CVS snapshot (php4):  http://bugs.php.net/fix.php?id=26051&r=trysnapshot4
Try a CVS snapshot (php5):  http://bugs.php.net/fix.php?id=26051&r=trysnapshot5
Fixed in CVS:               http://bugs.php.net/fix.php?id=26051&r=fixedcvs
Fixed in release:           http://bugs.php.net/fix.php?id=26051&r=alreadyfixed
Need backtrace:             http://bugs.php.net/fix.php?id=26051&r=needtrace
Try newer version:          http://bugs.php.net/fix.php?id=26051&r=oldversion
Not developer issue:        http://bugs.php.net/fix.php?id=26051&r=support
Expected behavior:          http://bugs.php.net/fix.php?id=26051&r=notwrong
Not enough info:            http://bugs.php.net/fix.php?id=26051&r=notenoughinfo
Submitted twice:            http://bugs.php.net/fix.php?id=26051&r=submittedtwice
register_globals:           http://bugs.php.net/fix.php?id=26051&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=26051&r=php3
Daylight Savings:           http://bugs.php.net/fix.php?id=26051&r=dst
IIS Stability:              http://bugs.php.net/fix.php?id=26051&r=isapi
Install GNU Sed:            http://bugs.php.net/fix.php?id=26051&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=26051&r=float

Reply via email to