FAQ
Raised this 5 years ago..

http://marc.info/?l=php-internals&m=113998880315574&w=2

Jared
-----Original Message-----
From: Tom Boutell
Sent: 21 October 2011 20:40
To: PHP Internals
Subject: [PHP-DEV] fclose(), file_put_contents(), copy() all
fail to return false on error

It appears that all three of these functions do not return
false on error as they should if the stream is not flushed
successfully. Yipes!

https://bugs.php.net/bug.php?id=60110

Am I missing something here?

It's especially bad with, say, an S3 stream wrapper that
wants to write the whole thing as one HTTP request, but it
could bite you with plain old files too.

--
Tom Boutell
P'unk Avenue
215 755 1330
punkave.com
window.punkave.com

--
PHP Internals - PHP Runtime Development Mailing List To
unsubscribe, visit: http://www.php.net/unsub.php

Search Discussions

Discussion Posts

Previous

Follow ups

Related Discussions

Discussion Navigation
viewthread | post
posts ‹ prev | 2 of 3 | next ›
Discussion Overview
groupphp-internals @
categoriesphp
postedOct 21, '11 at 7:40p
activeOct 23, '11 at 1:46p
posts3
users2
websitephp.net

2 users in discussion

Tom Boutell: 2 posts Jared Williams: 1 post

People

Translate

site design / logo © 2022 Grokbase