php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #61666 ext\standard\tests\file\file_put_contents_variation8-win32.phpt fails
Submitted: 2012-04-08 10:23 UTC Modified: 2014-01-05 22:48 UTC
From: ab@php.net Assigned: ab (profile)
Status: Closed Package: Filesystem function related
PHP Version: 5.3.10 OS: Windows
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: ab@php.net
New email:
PHP Version: OS:

 

 [2012-04-08 10:23 UTC] ab@php.net
Description:
------------
Test diff:

030-
031- Warning: file_put_contents(): Filename cannot be empty in %s on line %d: file_put_contents(): Filename cannot be empty in %s on line %d

The test fails on PHP 5.3 only

Expected result:
----------------
test pass

Actual result:
--------------
test fail

Patches

61666.diff (last revision 2012-04-08 10:25 UTC by ab@php.net)

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2012-04-08 10:25 UTC] ab@php.net
The following patch has been added/updated:

Patch Name: 61666.diff
Revision:   1333880720
URL:        https://bugs.php.net/patch-display.php?bug=61666&patch=61666.diff&revision=1333880720
 [2012-04-08 10:28 UTC] ab@php.net
the warning for \0 isn't issued but an early return false is done, so just adopted the expected value
 [2012-04-10 02:02 UTC] mattficken@php.net
The patch works for me on Windows 7 and Gentoo Linux (x86 & x64) on php-5-3-r0f180a6.
 [2012-04-10 13:26 UTC] ab@php.net
Automatic comment on behalf of ab
Revision: http://git.php.net/?p=php-src.git;a=commit;h=fde96342e82a11ebeffd7385db1a3ae54663ef5f
Log: Fixed bug #61666 ext\standard\tests\file\file_put_contents_variation8-win32.phpt fails
 [2014-01-05 22:48 UTC] ab@php.net
-Status: Open +Status: Closed -Assigned To: +Assigned To: ab
 [2014-01-05 22:48 UTC] ab@php.net
fixed but not closed for some reason
 [2014-10-07 23:27 UTC] stas@php.net
Automatic comment on behalf of ab
Revision: http://git.php.net/?p=php-src-security.git;a=commit;h=fde96342e82a11ebeffd7385db1a3ae54663ef5f
Log: Fixed bug #61666 ext\standard\tests\file\file_put_contents_variation8-win32.phpt fails
 [2014-10-07 23:37 UTC] stas@php.net
Automatic comment on behalf of ab
Revision: http://git.php.net/?p=php-src-security.git;a=commit;h=fde96342e82a11ebeffd7385db1a3ae54663ef5f
Log: Fixed bug #61666 ext\standard\tests\file\file_put_contents_variation8-win32.phpt fails
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Tue May 06 06:01:29 2025 UTC