Re: PHP class files without <?php at the top
| From: | Deepak Balani | Date: | Mon, 09 Apr 2012 09:17:20 +0000 |
| Subject: | Re: PHP class files without <?php at the top | ||
| References: | 1 2 3 4 5 6 7 8 9 10 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-59490@lists.php.net to get a copy of this message | ||
The only benefit of '<?php' less class files is the feeling of programming
language rather than scripting language while coding in class files.
On Mon, Apr 9, 2012 at 2:05 PM, Yasuo Ohgaki <yohgaki@ohgaki.net> wrote:
> Hi,
>
> 2012/4/9 Arvids Godjuks <arvids.godjuks@gmail.com>:
> > And you get same issues that existed with magic quotes, register
> variables,
> > safe mode and other optional stuff that was required to run application
> when
> > set specificaly and it would break if something set differently. PHP just
> > got rid of it and you want to introduce a new optional feature that will
> > change how PHP behaves.
>
> Magic Quotes is broken by design.
> Register Globals may work but erroneous.
> Safe Mode was great for fail safe, but it was misunderstood.
> Therefore, they are removed.
>
> All of these are security related changes why not for
> mandatory embed mode?
>
> There were full of embedded PHP pages 10 years ago.
> Only template pages require embedded PHP script now.
>
> There is no compatibility issue for current code.
> New code that adopts non-embed scripting will enjoy
> better security than now.
>
> Embed w/o option would be the last existing PHP feature
> that other language programmers may call "PHP is insecure
> than my language" IMO
>
> Regards,
>
> --
> Yasuo Ohgaki
> yohgaki@ohgaki.net
>
> --
> PHP Internals - PHP Runtime Development Mailing List
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>