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 Steph Fox other posts by this author
May 8 2008 5:30PM messages near this date
Re: [PHP-DEV] allow_call_time_pass_reference | Re: [PHP-DEV] allow_call_time_pass_reference
Hi Hector,

>  As a new PHP extension author,  it was one the first things I had to make 
>  sure was enabled to avoid the warning.

<huge snip /> 

>  May I suggest to make it [Extension] INI ready?
> 
>  I explored this and it seem to work, but not sure if its really the case. 
>  It appears that adding it in my PHP.INI [extension_name] section appears 
>  to enabled the option only when the extension is loaded.

The more I look into this, the weirder it seems.

"The first issue that we raised was changing the E_NOTICE error for 
call-time-pass-by-reference to an E_ERROR, or simply throwing a parse error. 
We argued over this case and we decided to change this E_NOTICE to an 
E_STRICT instead as it was argued that there is nothing wrong with doing a 
call-time pass by reference."

http://php.net/~derick/meeting-notes.html#deprecated-behaviour

There's nothing wrong with it?

So why throw an error at all?

I have to say, I'm really confused over this. Either it's wrong, so you 
deliver a warning, or it's OK, so you don't. But what *really* bothers me is 
that the community seems to be under the impression that the rules changed 
with PHP 5, which is absolutely untrue. This threw an E_NOTICE under PHP 4.0 
which has been shifted, first to E_STRICT (I haven't checked this) and then 
to E_DEPRECATED in 5.3.

All I know is it's slower in most (not all) situations. So the real question 
is: should there be a warning at all? And if so, shouldn't it be there by 
default?

- Steph


-- 
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
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