note 100549 added to class.streamwrapper

From: Date: Fri, 22 Oct 2010 16:12:57 +0000
Subject: note 100549 added to class.streamwrapper
Groups: php.notes 
Request: Send a blank email to php-notes+get-173380@lists.php.net to get a copy of this message
It's worth noting that the interface defined by yannick at gmail should not always be implemented by a stream wrapper class, as several of the methods should not be implemented if the class has no use for them (as per the manual). Specifically, mkdir, rename, rmdir, and unlink are methods that "should not be defined" if the wrapper has no use for them. The consequence is that the appropriate error message will not be returned. If the interface is implemented, you won't have the flexibility to not implement those methods. Not trying to be academic, but it was useful for me. ---- Server IP: 69.147.83.197 Probable Submitter: 96.239.95.34 ---- Manual Page -- http://www.php.net/manual/en/class.streamwrapper.php Edit -- https://master.php.net/note/edit/100549 Del: integrated -- https://master.php.net/note/delete/100549/integrated Del: useless -- https://master.php.net/note/delete/100549/useless Del: bad code -- https://master.php.net/note/delete/100549/bad+code Del: spam -- https://master.php.net/note/delete/100549/spam Del: non-english -- https://master.php.net/note/delete/100549/non-english Del: in docs -- https://master.php.net/note/delete/100549/in+docs Del: other reasons-- https://master.php.net/note/delete/100549 Reject -- https://master.php.net/note/reject/100549 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#173380) next »