[PATCH] New function file_put_contents()

From: Date: Wed, 16 Oct 2002 01:57:21 +0000
Subject: [PATCH] New function file_put_contents()
References: 1 2  Groups: php.dev 
Request: Send a blank email to php-dev+get-89535@lists.php.net to get a copy of this message
Wez Furlong wrote: > It's just that there was a thread about this recently on php-dev, > and it's something to get right for new functions - we can fix the > old ones as we go :-) The README, the Zend API doc on zend.com and the implementation in zend_API.c all assume an int * for string length in zend_parse_parameters. So I guess that's the right thing to do for now. > Please re-submit the fixed version, and I'll probably commit it :-) Ok, I attached the new patch: a) renamed to file_put_contents (can I file minority report? :-)) b) now returns total length written if data is an array c) return value was changed to size_t to match php_stream_write() - Chris

« previous php.dev (#89535) next »