#46683 [Asn]: fopen() file name in warning is upper cased if the arguments are invalid

From: Date: Mon, 02 Mar 2009 20:28:06 +0000
Subject: #46683 [Asn]: fopen() file name in warning is upper cased if the arguments are invalid
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-134338@lists.php.net to get a copy of this message
 ID:               46683
 Updated by:       pajoye@php.net
 Reported By:      ant@php.net
 Status:           Assigned
 Bug Type:         Filesystem function related
 Operating System: win32 only
 PHP Version:      5.3CVS-2008-11-26 (snap)
 Assigned To:      pajoye
 New Comment:

Side note:

Please (PLEASE!!) try to create tests we can read. Like having an index
telling which iteration we are or other similar tricks to ease the
debugging. I already asked for cleaner tests many times on php-qa,
without much success :)


Previous Comments:
------------------------------------------------------------------------

[2008-11-26 18:03:22] ant@php.net

These tests are also now checked into 6.0.

------------------------------------------------------------------------

[2008-11-26 10:24:26] ant@php.net

Description:
------------
The following test was ported from 5.2.X and behaves differently on 
5.3. In particular the file name in the warning message is upper 
cased for no apparent reason?

ext/standard/tests/file/fopen_variation11-win32.phpt




Reproduce code:
---------------
See the test now checked into CVS:

ext/standard/tests/file/fopen_variation11-win32.phpt



Expected result:
----------------
Warning: fopen(\\fopen_variation11.tmp): failed to open stream: 
Invalid argument in %s on line %d




Actual result:
--------------
Warning: fopen(\\FOPEN_VARIATION11.TMP): failed to open stream: 
Invalid argument in %s on line %d





------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=46683&edit=1



Thread (10 messages)

« previous php.bugs (#134338) next »