# allow_call_time_pass_reference

- Thread: https://externals.io/message/5604
- Original archive: https://news-web.php.net/php.internals/5604
- Started by Andi Gutmans on 2003-11-20T07:23:35+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

---

## #5604 — Andi Gutmans — 2003-11-20T07:23:35+00:00

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

I think it should stay the way it is (except for the bug). It should print 
a warning when people use it and the default allow_call_time_pass_reference 
directive is off.

Andi

At 07:52 AM 11/20/2003 +0100, Sebastian Bergmann wrote:
>   I am wondering what should happen to the
>
>     allow_call_time_pass_reference
>
>   php.ini directive.
>
>   The following code, for instance, prints no warning with PHP 5 but with
>   PHP 4.
>
>    <?php
>    error_reporting(E_ALL);
>
>    class Foo {
>      function bar($foobar) {}
>    }
>
>    $a = new Foo;
>    $b = new Foo;
>
>    $a->bar(&$b);
>    ?>
>
>   I think the allow_call_time_pass_reference directive should be
>   removed as it is no longer needed.
>
>--
>Sebastian Bergmann
>http://sebastian-bergmann.de/                   http://phpOpenTracker.de/
>
>Das Buch zu PHP 5: http://professionelle-softwareentwicklung-mit-php5.de/
