#46687 [Opn]: pathinfo() returns unicode strings on Linux and non unicode strings on Windows
| From: | ant@php.net | Date: | Wed, 26 Nov 2008 18:06:28 +0000 |
| Subject: | #46687 [Opn]: pathinfo() returns unicode strings on Linux and non unicode strings on Windows | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-131373@lists.php.net to get a copy of this message | ||
ID: 46687
User updated by: ant@php.net
Reported By: ant@php.net
Status: Open
Bug Type: Filesystem function related
Operating System: Windows, Linux
PHP Version: 6CVS-2008-11-26 (snap)
New Comment:
Sorry, the example output was incorrect and should have shown a
unicode string for Linux (copy and paste error creating the bug!).
So when the test is run on Windows the following diff is produced:
013+ string(0) ""
013- unicode(%d) %s
Previous Comments:
------------------------------------------------------------------------
[2008-11-26 17:52:47] ant@php.net
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 this bug report at http://bugs.php.net/?id=46687&edit=1