ASPN ActiveState Programmer Network
ActiveState
/ Home / Perl / PHP / Python / Tcl / XSLT /
/ Safari / My ASPN /
Cookbooks | Documentation | Mailing Lists | Modules | News Feeds | Products | User Groups


Recent Messages
List Archives
About the List
List Leaders
Subscription Options

View Subscriptions
Help

View by Topic
ActiveState
.NET Framework
Open Source
Perl
PHP
Python
Tcl
Web Services
XML & XSLT

View by Category
Database
General
SOAP
System Administration
Tools
User Interfaces
Web Programming
XML Programming


MyASPN >> Mail Archive >> php-dev
php-dev
Re: [PHP-DEV] allow_call_time_pass_reference
by Hannes Magnusson other posts by this author
May 8 2008 2:29PM messages near this date
Re: [PHP-DEV] allow_call_time_pass_reference | Re: [PHP-DEV] allow_call_time_pass_reference
On Thu, May 8, 2008 at 9:28 PM, Steph Fox <steph@[...].com>  wrote:
>  Does anyone have a good reason for keeping it switched on by default in PHP
>  5.3? Like, would switching it off by default break a lot of existing code,
>  given that most users are a bit beyond PHP 3 now?

I've never understood the warning that switch throws:
bjori@lindsay:~$ php -dallow_call_time_pass_reference=0 -r 'strpos(&$var, 0);'

Warning: Call-time pass-by-reference has been deprecated;  If you
would like to pass it by reference, modify the declaration of
strpos().  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.
in Command line code on line 1

However, turning it on will not throw any warning or deprecated notice, wtf?

I'd say throw the warning if the switch is on and someone does
call-time-pass-by-reference and turn that switch off by default.

-Hannes

-- 
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php
Thread:
Steph Fox
Hector Santos
Steph Fox
Steph Fox
Hector Santos
Hannes Magnusson
Todd Ruth
Hannes Magnusson
Todd Ruth
Steph Fox
Steph Fox
Stanislav Malyshev

Privacy Policy | Email Opt-out | Feedback | Syndication
© 2004 ActiveState, a division of Sophos All rights reserved