Re: [RFC] Remove PHP 4 Constructors
| From: | Arvids Godjuks | Date: | Thu, 22 Jan 2015 13:22:54 +0000 |
| Subject: | Re: [RFC] Remove PHP 4 Constructors | ||
| References: | 1 2 3 4 5 6 7 8 9 10 11 12 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-80973@lists.php.net to get a copy of this message | ||
2015-01-21 19:21 GMT+02:00 Tony Marston <TonyMarston@hotmail.com>:
> "Kristopher" wrote in message
> news:CAF9U7z_BLDusnq7c0mVToxyJpqOpa+
> tmATgqrb7YQeips11fxQ@mail.gmail.com...
>
>>
>> On Wed, Jan 21, 2015 at 9:50 AM, Tony Marston <TonyMarston@hotmail.com>
>> wrote:
>>
>>
>>> You are totally missing the point. It is the principle of having to spent
>>> unknown quantities of time in refactoring my code for nothing more than a
>>> frivolous and unnecessary break in BC. It does not fi a bug or a security
>>> issue, therefore it is frivolous and unnecessary
>>>
>>>
>>> Yet you seem to have no problem wasting loads of time arguing about it
>> on
>> the internet.
>>
>
> Because I would rather fight for valid principles than give in. To quote
> Emiliano Zapata "It is better to die on your feet than live on your knees".
>
>
> --
> Tony Marston
>
>
> --
> PHP Internals - PHP Runtime Development Mailing List
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
By this time, you could have opened your project/projects in any Regex
search and replace capable editor/IDE, wrote a pattern that matches class
name with a method name same as class name and replaces it with
__construct. Takes about 5-10 minutes for the first project to get it
right, ensures forward compatibility since 5.0.0 and saves your employer
all those hours that you just spend arguing.
Or just write a PHP script that does the same - even easier and faster...