Re: Re: "use strict" or similar in PHP?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Sat, 2009-02-28 at 18:57 -0600, Shawn McKenzie wrote:
> Stuart wrote:
> > 2009/2/28 Shawn McKenzie <nospam@xxxxxxxxxxxxx>
> > 
> >> Robert Cummings wrote:
> >>> On Sat, 2009-02-28 at 00:11 +0000, Ashley Sheridan wrote:
> >>>> On Fri, 2009-02-27 at 14:32 -0500, Robert Cummings wrote:
> >>>>> On Sat, 2009-02-28 at 00:02 +0600, 9el wrote:
> >> -----------------------------------------------------------------------
> >>>>>> Use FreeOpenSourceSoftwares, Stop piracy, Let the developers live. Get
> >>>>>> a Free CD of Ubuntu mailed to your door without any cost. Visit :
> >>>>>> www.ubuntu.com
> >>>>>> ----------------------------------------------------------------------
> >>>>>>
> >>>>>>
> >>>>>> On Fri, Feb 27, 2009 at 11:46 PM, Robert Cummings <
> >> robert@xxxxxxxxxxxxx>wrote:
> >>>>>>> On Fri, 2009-02-27 at 09:28 -0700, LuKreme wrote:
> >>>>>>>> On Feb 27, 2009, at 6:12, Hans Schultz <h.schultz78@xxxxxxxxx>
> >> wrote:
> >>>>>>>>> Hahahah,I was thinking the same thing
> >>>>>>>> The trouble is most people mean "compile a source file to an
> >>>>>>>> executable binary" when they sat compile. By this measure, PHP does
> >>>>>>>> not compile.
> >>>>>>> I add the following to the top of my PHP shell scripts:
> >>>>>>>
> >>>>>>>    #!/usr/bin/php -qC
> >>>>>>>
> >>>>>>> Then I do the following:
> >>>>>>>
> >>>>>>>    chmod 775 script.php
> >>>>>>>
> >>>>>>> Then I run it as follows:
> >>>>>>>
> >>>>>>>    ./script.php
> >>>>>>>
> >>>>>>> Look... and executable binary :) Don't say it's not binary. All data
> >> on
> >>>>>>> a hard disk is binary (although I do know what you mean ;)
> >>>>>> Well you are running shell script style execution its not example of
> >>>>>> Compiled code or Binary
> >>>>>>
> >>>>>> The data in the file is ASCII or UTF text :)
> >>>>> Which are subsets of binary representation ;)
> >>>>>
> >>>>>> Compilation happens when its zendOptimized or OpCoded. Its then is
> >> converted
> >>>>>> into binary content file.
> >>>>> But one could probably quite easily set up a system whereby
> >> eAccelerator
> >>>>> or APC or Zend Optimizer cache bytecodes are torn from a file run
> >>>>> similarly. As I said in an earlier post... the line between the
> >>>>> definition of interpreted language and compiled language is quite
> >> blurry
> >>>>> these days.
> >>>>>
> >>>>> Cheers,
> >>>>> Rob.
> >>>>> --
> >>>>> http://www.interjinn.com
> >>>>> Application and Templating Framework for PHP
> >>>>>
> >>>>>
> >>>> ASCII is only a subset of binary in a pedantic, literal sense. When
> >>>> people say binary file, they mean one that contains characters which are
> >>>> outside the normal display spectrum, such as chr(0), etc.
> >>> And the argument that PHP is not compiled requires a certain level of
> >>> pedantry and it is still an incorrect argument since it most certainly
> >>> is compiled to an intermediary virtual machine code.
> >>>
> >>> Cheers,
> >>> Rob.
> >> Still, in PHP $compile_time == $run_time.
> > 
> > 
> > I haven't been following this thread, but this caught my eye as being
> > completely wrong. There are distinct compile and execution phases when PHP
> > runs a script, and different rules apply to each. If you don't believe me
> > try defaulting the value of a class variable to the result of a function.
> > 
> > -Stuart
> > 
> Rob, I wasn't talking about time.  I was talking about they're pretty
> much the same as in when they execute.

They're not if you're using a compile cache.

Cheers,
Rob.
-- 
http://www.interjinn.com
Application and Templating Framework for PHP


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux