What about testing, sometimes its good to wrap the PHP functions so you can mock them. Would be cool if there was a way to automatically wrap some functions like fopen.
----- Original Message ----- From: Matthew Weier O'Phinney <[EMAIL PROTECTED]> Sent: Wed, 8/13/2008 3:09pm To: [email protected] Subject: Re: [fw-general] writnig files -- peter fiksman <[EMAIL PROTECTED]> wrote (on Wednesday, 13 August 2008, 03:49 PM +0200): > then I can say that PHP provides just everything what you find in ZF, e.g. > Session etc. :-) why need ZF? Zend_Session is a layer over PHP's session support to provide something it _doesn't_ provide out-of-the-box: easy namespacing of session segments. It's hardly a justification for wrapping more PHP functionality. We will entertain the idea of a wrapper on the stream layer _if_ you can provide good uses cases that show significant value-add. Otherwise, there's really no reason to do so. > ----- Original Message ----- > From: "Ben Scholzen 'DASPRiD'" <[EMAIL PROTECTED]> > To: <[email protected]> > Sent: Wednesday, August 13, 2008 3:27 PM > Subject: Re: [fw-general] writnig files > > > > -----BEGIN PGP SIGNED MESSAGE----- > > Hash: SHA1 > > > > How about fopen() with fwrite() or file_put_contents(); ? > > > > peter fiksman schrieb: > > > > > > Hello all, > > > > > > why is there (apparently?) no simple stream writer in ZF? there is an > > > implementation in the Log package which uses a formatter but what if I > want > > > just to save a file? > > > > > > "A Writer is an object that inherits from Zend_Log_Writer_Abstract." > > > > > > -> why not e.g. Zend_Stream_Writer? > > > > > > cheers, > > > p.f. > > > > > > > - -- > > ................................... > > : ___ _ ___ ___ ___ _ ___ : > > : | \ /_\ / __| _ \ _ (_) \ : > > : | |) / _ \\__ \ _/ / | |) | : > > : |___/_/:\_\___/_| |_|_\_|___/ : > > :........:........................: > > : Web : http://www.dasprids.de : > > : E-mail : [EMAIL PROTECTED] : > > : Jabber : [EMAIL PROTECTED] : > > : ICQ : 105677955 : > > :........:........................: > > -----BEGIN PGP SIGNATURE----- > > Version: GnuPG v1.4.6 (GNU/Linux) > > Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org > > > > iD8DBQFIouFA0HfT5Ws789ARAlDaAJ9c53ec09lMEi1pubidYcSrPevcCgCfctUM > > 07XW0VjMYi4rUaReJt4ahjI= > > =VYXm > > -----END PGP SIGNATURE----- > -- Matthew Weier O'Phinney Software Architect | [EMAIL PROTECTED] Zend Framework | http://framework.zend.com/ -- allpay.net Limited, Fortis et Fides, Whitestone Business Park, Whitestone, Hereford, HR1 3SE. Registered in England No. 02933191. UK VAT Reg. No. 666 9148 88. Telephone: 0870 243 3434, Fax: 0870 243 6041. Website: www.allpay.net Email: [EMAIL PROTECTED] This email, and any files transmitted with it, is confidential and intended solely for the use of the individual or entity to whom it is addressed. If you have received this email in error please notify the allpay.net Information Security Manager at the number above.
