From: pearcec at poss dot com Operating system: any PHP version: 5.0.0 PHP Bug Type: Zend Engine 2 problem Bug description: fwrite needs pass by reference for string
Description: ------------ It would be great to pass the string by reference in fwrite. Otherwise it makes a copy of the data. This is a problem for very large files. PHP Warning: Call-time pass-by-reference has been deprecated - argument passed by value; If you would like to pass it by reference, modify the declaration of fwrite(). If you would like to enable call-time pass-by-reference, you can set allow_call_time_pass_reference to true in your INI file. However, future versions may not support this any longer. in /home/pearcec/saturn/www/include/file/cnFileBlob.inc on line 156 Reproduce code: --------------- fwrite($fp, $inContents); -- Edit bug report at http://bugs.php.net/?id=29637&edit=1 -- Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=29637&r=trysnapshot4 Try a CVS snapshot (php5): http://bugs.php.net/fix.php?id=29637&r=trysnapshot5 Fixed in CVS: http://bugs.php.net/fix.php?id=29637&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=29637&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=29637&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=29637&r=needscript Try newer version: http://bugs.php.net/fix.php?id=29637&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=29637&r=support Expected behavior: http://bugs.php.net/fix.php?id=29637&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=29637&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=29637&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=29637&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=29637&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=29637&r=dst IIS Stability: http://bugs.php.net/fix.php?id=29637&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=29637&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=29637&r=float
