|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2006-04-30 06:38 UTC] judas dot iscariote at gmail dot com
[2006-04-30 07:13 UTC] judas dot iscariote at gmail dot com
[2006-04-30 08:27 UTC] mike@php.net
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Thu Dec 04 10:00:01 2025 UTC |
Description: ------------ A warning is thrown when trying to use file_put_contents in the destructor of a class. It reports that permission was denied, but the directory and all children are chmod'd to 777. Additionally, I can write to the file any other time in the script. Reproduce code: --------------- class test { public function __destruct() { file_put_contents('somefile','somedata'); } } $foo = new test; Expected result: ---------------- somefile contain somedata Actual result: -------------- Warning with a permission error