Re: [PHP-DEV] Re: [PHP] mod_php

2010-08-20 Thread Guillaume Rossolini
Hi, 1. What optimizations does PHP interpreter make? I guess it should be > able to check file modification time and cease to compile it again and > again. Is this correct? > > There is some bytecode form, right? > Core PHP does not optimize your code like a DBMS would rewrite your SQL. There are

[PHP-DEV] Re: [PHP] mod_php

2010-08-20 Thread Stanisław Findeisen
On 2010-08-20 17:10, Bostjan Skufca wrote: > Yes, this is correct. > > If you look at sapi/apache2handler/sapi_apache2.c in PHP sources, you will > find that PHP SAPI registers it's function php_handler() within apache. This > function gets called every time PHP is requested by some client (with >

RE: [PHP-DEV] inheritance check too strict?

2010-08-20 Thread Jonathan Bond-Caron
On Fri Aug 20 09:10 AM, Jonathan Bond-Caron wrote: > > Maybe Stas can comment but I can't reproduce the E_STRICT warning Is > this php HEAD? > > class ObjParent { > function set($param2 = '') {} > } > > class ObjChild extends ObjParent { > function set(){ echo "."; } > } > M

Re: [PHP-DEV] inheritance check too strict?

2010-08-20 Thread Reindl Harald
You can not reproduce as long your php is misconfigured error_reporting = E_ALL | E_STRICT We are using this setting on ALL our production servers to develop really clean applications Strict Standards: Declaration of ObjChild::set() should be compatible with that of ObjParent::set() in /home/harr

RE: [PHP-DEV] inheritance check too strict?

2010-08-20 Thread Jonathan Bond-Caron
On Fri Aug 20 08:24 AM, Nathan Rixham wrote: > Jonathan Bond-Caron wrote: > > On Fri Aug 20 06:54 AM, Jean-Sébastien H. wrote: > >> No it's wrong. > >> > >> A Child is a Parent so we must be able to pass a Parent to the > method > >> equals() defined on Child. > >> > >> The declaration of the par

Re: [PHP-DEV] back to 5.4 alpha

2010-08-20 Thread Wim Godden
Sebastian Bergmann wrote: Am 15.08.2010 15:42, schrieb Wim Godden: Looking forward to any feedback ! Have you looked at http://github.com/troelskn/php-tracer-weaver? It is similar to what you are doing (though not integrated with PHPUnit). First time I came across this. But there'

Re: [PHP-DEV] inheritance check too strict?

2010-08-20 Thread Nathan Rixham
Jonathan Bond-Caron wrote: On Fri Aug 20 06:54 AM, Jean-Sébastien H. wrote: No it's wrong. A Child is a Parent so we must be able to pass a Parent to the method equals() defined on Child. The declaration of the parent functions must always be valid in the children. Maybe my OO theory is

RE: [PHP-DEV] inheritance check too strict?

2010-08-20 Thread Jonathan Bond-Caron
On Fri Aug 20 06:54 AM, Jean-Sébastien H. wrote: > No it's wrong. > > A Child is a Parent so we must be able to pass a Parent to the method > equals() defined on Child. > > The declaration of the parent functions must always be valid in the > children. > Maybe my OO theory is wrong but I was

Re: [PHP-DEV] inheritance check too strict?

2010-08-20 Thread nrixham
You can.. --Original Message-- From: "Jean-Sébastien H." To: nrix...@gmail.com Cc: postmas...@colder.ch Cc: internals@lists.php.net Subject: Re: [PHP-DEV] inheritance check too strict? Sent: 20 Aug 2010 11:54 No it's wrong. A Child is a Parent so we must be able to pass a Parent to the m

Re: [PHP-DEV] inheritance check too strict?

2010-08-20 Thread Jean-Sébastien H.
No it's wrong. A Child is a Parent so we must be able to pass a Parent to the method equals() defined on Child. The declaration of the parent functions must always be valid in the children. On Thu, 19 Aug 2010 23:16:41 +0100, Nathan Rixham wrote: > lol, got it - confused myself for a bit ther