#46687 [NEW]: pathinfo() returns unicode strings on Linux and non unicode strings on Windows
| From: | ant@php.net | Date: | Wed, 26 Nov 2008 17:52:49 +0000 |
| Subject: | #46687 [NEW]: pathinfo() returns unicode strings on Linux and non unicode strings on Windows | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-131365@lists.php.net to get a copy of this message | ||
From: ant@php.net
Operating system: Windows, Linux
PHP version: 6CVS-2008-11-26 (snap)
PHP Bug Type: Filesystem function related
Bug description: pathinfo() returns unicode strings on Linux and non unicode strings on Windows
Description:
------------
The following test was ported from 5.3 and behaves differently:
ext/standard/tests/file/pathinfo_variation2.phpt
Reproduce code:
---------------
On Windows the test produces:
*** Testing pathinfo() : usage variation ***
--float 10.5--
unicode(6) "inet.h"
--float -10.5--
unicode(6) "inet.h"
--float 12.3456789000e10--
unicode(17) "/usr/include/arpa"
--float -12.3456789000e10--
string(0) ""
While on Linux it produces:
*** Testing pathinfo() : usage variation ***
--float 10.5--
unicode(6) "inet.h"
--float -10.5--
unicode(6) "inet.h"
--float 12.3456789000e10--
unicode(%d) %s
--float -12.3456789000e10--
unicode(%d) %s
--float .5--
string(0) ""
Notice the return type for the float 0.5 case.
--
Edit bug report at http://bugs.php.net/?id=46687&edit=1
--
Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=46687&r=trysnapshot52
Try a CVS snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=46687&r=trysnapshot53
Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=46687&r=trysnapshot60
Fixed in CVS: http://bugs.php.net/fix.php?id=46687&r=fixedcvs
Fixed in CVS and need be documented: http://bugs.php.net/fix.php?id=46687&r=needdocs
Fixed in release: http://bugs.php.net/fix.php?id=46687&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=46687&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=46687&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=46687&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=46687&r=support
Expected behavior: http://bugs.php.net/fix.php?id=46687&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=46687&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=46687&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=46687&r=globals
PHP 4 support discontinued: http://bugs.php.net/fix.php?id=46687&r=php4
Daylight Savings: http://bugs.php.net/fix.php?id=46687&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=46687&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=46687&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=46687&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=46687&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=46687&r=mysqlcfg