Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

I get “Notice: Only variable references should be returned by reference in “, whats wrong?

0
10 Posted

I get “Notice: Only variable references should be returned by reference in “, whats wrong?

0

Most probably you are running PHP 4.4.0+ and use the PHP Zend Optimizer (see phpinfo). This is a Zend Optimizer bug. See http://gallery.menalto.com/node/36605#comment-133101 for some explanations. Solution: Use a newer Zend Optimizer version, e.g. ZendOptimizer-2.6.2 or later versions. If you run PHP 4.4.0 but don’t use the Zend Optimizer, then most probably you’re using a G2 version which is older than G2 Beta 4. You should upgrade to the latest stable release of G 2.0. If you or your host is unwilling to disable or upgrade the Zend Optimizer to a fixed version or change the PHP version, there’s a workaround (solution discovered by Mark Scott, 13/10/2005, “I’ve found that removing optimization pass 1 removes the notices caused by optimizing away the variable that should be referenced and returned.”) In php.

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.