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 f1().  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 E:\php\baby web\root\mysql.php on line 17

解决方案 »

  1.   

    4.2和4.3.2-rc4中好像一直有这个参数。当然它只是一种warn信息,你可以不管它,不会影响程序的执行。这不应该说是版本兼容性的问题。至少从我个人的实践上来说没有任何版本不兼容的问题,只能说某个函数或者某种方法调用的差异。在php5中将会大量采用类和继承,函数嘛,还不晓得php准备怎么办。所以也给大家一个信息:在写php程序的时候尽量采用类而不采用函数!