# Only variables or references can be returned by reference

- Thread: https://externals.io/message/6977
- Original archive: https://news-web.php.net/php.internals/6977
- Started by Andi Gutmans on 2004-01-11T19:06:59+00:00
- Messages: 1
- Reply by email to internals@lists.php.net
- More for agents: search with https://externals.io/search.md?q={query} · JSON API at https://externals.io/api · documentation at https://externals.io/llms.txt

---

## #6977 — Andi Gutmans — 2004-01-11T19:06:59+00:00

URL: https://externals.io/message/6977#6977

We very much hope we fixed it :)
Be sure to try your script in `E_STRICT` mode so that it can shout at you 
being a bad boy. You should really only return real references/variables by 
reference. Although it might not shout because we actually also fixed a bug :)
Confusing??? So was the bug...
Anyway, please try and remove your PHP 5 compatibility hacks and let us 
know how you're doing.
Thanks,
Andi

At 07:36 PM 1/11/2004 +0100, Lukas Smith wrote:
>Hi,
>
>I just want to make sure this is in fact true:
>http://bugs.php.net/bug.php?id=24687
>
>So does this mean we can all remove our php5 compatibility hacks that relate
>to the above bug report? I would hate to have to reapply all of those ugly
>php5 compatibility hacks I had to add after removing then now that the bug
>appears to be fixed.
>
>Regards,
>Lukas Smith
>smith@backendmedia.com
>_______________________________
>   BackendMedia
>   www.backendmedia.com
>   berlin@backendmedia.com
>
>   Linn Zwoch Smith GbR
>   Pariser Str. 44
>   D-10707 Berlin
>
>   Tel +49 30 83 22 50 00
>   Fax +49 30 83 22 50 07
