Re: [PHP-DEV] Re: Before March 1st aka PHP 5.1 beta

2005-02-18 Thread Lukas Smith
Sebastian Bergmann wrote: Ron Korving wrote: is multiple inheritence something we might see appearing in 5.2 ? The concept of Multiple Inheritance should be left to programming languages that can properly deal with it (by letting the programmer influence how inheritance collision can be resolve

Re: [PHP-DEV] function proposal - php_check_syntax_string

2005-02-18 Thread Marcus Boerger
Hello Frédéric, do you have some c code you can post here as a .txt attachment or as a link? regards marcus Friday, February 18, 2005, 4:41:06 AM, you wrote: > hi all, > to check syntax of pieces of code and to avoid wild regular expressions, i > wrote this: > proto bool php_check_syntax_stri

Re: [PHP-DEV] Win32 builds are broken

2005-02-18 Thread Lester Caine
Frank M. Kromann wrote: I followed your commits and tested the latest code (had to compile a few times there) but it all seams to be working now. Thanks. I had seen a few niggles with the windows builds, and they seem stable now. Is there much to be done in the core before a beta, as I'd like to

Re: [PHP-DEV] function proposal - php_check_syntax_string

2005-02-18 Thread Frédéric LECOINTRE
Hello Marcus, Based on 5.0.3 source distribution, inspired of parsekit_compile_string fred - Original Message - From: "Marcus Boerger" <[EMAIL PROTECTED]> To: "Frédéric LECOINTRE" <[EMAIL PROTECTED]> Cc: Sent: Friday, February 18, 2005 9:25 AM Subject: Re: [PHP-DEV] function proposal - p

Re: [PHP-DEV] function proposal - php_check_syntax_string

2005-02-18 Thread Johannes Schlueter
Hi Fred, this patch doesn't just check wether the string has the right syntax but also compiles it and registers it's functions and classes in the relevant tables. $ sapi/cli/php -r "php_check_syntax_string('class foo {}'); var_dump(class_exists('foo'));" bool(true) johannes Unknown Sender wro

[PHP-DEV] PDO/MySQL connect broken for remote hosts

2005-02-18 Thread Timm Friebe
Hi, has anyone noticed PDO/MySQL will always try to connect locally regardless of what I put in the host=... DSN part? The statement: new PDO('mysql:host=php3.de', '', '***'); will only throw a PDOException: Fatal error: Uncaught exception 'PDOException' with message 'SQLSTATE[HY000] [

[PHP-DEV] [patch] bug #29210 is_callable - no support for private and protected classes

2005-02-18 Thread Antony Dovgal
Hi all! Any volunteers to review & commit patch for #29210 ? Fresh diff against latest HEAD: http://tony2001.phpclub.net/dev/tmp/is_callable_HEAD.diff The patch adds support of protected/private methods to is_callable(), taking care of the context. test file: http://tony2001.phpclub.net/dev/tmp

Re: [PHP-DEV] PDO/MySQL connect broken for remote hosts

2005-02-18 Thread Wez Furlong
Thanks; committed. --Wez. On Fri, 18 Feb 2005 11:16:34 +0100, Timm Friebe <[EMAIL PROTECTED]> wrote: > Hi, > has anyone noticed PDO/MySQL will always try to connect locally > regardless of what I put in the host=... DSN part? > > The statement: > new PDO('mysql:host=php3.de', '', '***

Re: [PHP-DEV] function proposal - php_check_syntax_string

2005-02-18 Thread Frédéric LECOINTRE
oups ... well. php_check_syntax works fine with zend_compile_file. so what's the difference? i read parse_kit extension and after compiling, attempt to remove class and function with "php_parsekit_common". Is there possibilty to run syntax check only with compil_string in zend_language_scanner.

Re[2]: [PHP-DEV] function proposal - php_check_syntax_string

2005-02-18 Thread val khokhlov
Hello Johannes, Friday, February 18, 2005, 2:17:12 PM, you wrote: JS> this patch doesn't just check wether the string has the right syntax but JS> also compiles it and registers it's functions and classes in the relevant JS> tables. well, they need to add this code to avoid it: n

[PHP-DEV] PHP 5.0.4

2005-02-18 Thread Andi Gutmans
Can I roll 5.0.4 next week? Lots of bug fixes. Ilia will probably want to do the same for 4.3.x. Andi -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DEV] [patch] bug #29210 is_callable - no support for private and protected classes

2005-02-18 Thread Marcus Boerger
Hello Antony, there is no need to fetch the instance (or create a temporairy one) since the function table is bound to the class rather then the instance. This is the major difference between real object oriented (sometimes referred to as prototype based like java script for instance) and class

Re: [PHP-DEV] [patch] bug #29210 is_callable - no support for private and protected classes

2005-02-18 Thread Andi Gutmans
Hi Antony, We have too many places that manually check access restrictions at this point. I would like to generalize it and use that in all places, and make it easier to fix problems like your patch does. Haven't had the time yet to dive deeply into it and see what the right way would be. For exa

Re: [PHP-DEV] function proposal - php_check_syntax_string

2005-02-18 Thread Andi Gutmans
I personally can't think of a good way to achieve this because some of the engine internals can be left in an unstable state after a fatal error. I suggest to either use parsekit or an external PHP (either CLI or make one more http request and parse the output). Andi At 05:11 PM 2/18/2005 +0100,

Re: [PHP-DEV] [patch] bug #29210 is_callable - no support for private and protected classes

2005-02-18 Thread Antony Dovgal
On Thu, 17 Feb 2005 10:15:10 -0800 Andi Gutmans <[EMAIL PROTECTED]> wrote: > Hi Antony, > > We have too many places that manually check access restrictions at > this point. I would like to generalize it and use that in all places, > and make it easier to fix problems like your patch does. Haven'

Re: [PHP-DEV] PHP 5.0.4

2005-02-18 Thread Derick Rethans
On Thu, 17 Feb 2005, Andi Gutmans wrote: > Can I roll 5.0.4 next week? Lots of bug fixes. Not without an RC I would say... Derick -- Derick Rethans http://derickrethans.nl | http://ez.no | http://xdebug.org -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http:/

Re: [PHP-DEV] PHP 5.0.4

2005-02-18 Thread Andi Gutmans
Yeah I meant RC. At 07:35 PM 2/18/2005 +0100, Derick Rethans wrote: On Thu, 17 Feb 2005, Andi Gutmans wrote: > Can I roll 5.0.4 next week? Lots of bug fixes. Not without an RC I would say... Derick -- Derick Rethans http://derickrethans.nl | http://ez.no | http://xdebug.org -- PHP Internals - PHP R

Re: [PHP-DEV] function proposal - php_check_syntax_string

2005-02-18 Thread Johannes Schlueter
Hi, FrÃdÃric LECOINTRE wrote: > oups ... well. > > php_check_syntax works fine with zend_compile_file. so what's the No, it doesn't work fine, too :-) http://bugs.php.net/bug.php?id=27406 But I didn't know the problem either when reading your patch where I stumbled over the compile_string() call

Re: [PHP-DEV] function proposal - php_check_syntax_string

2005-02-18 Thread Sara Golemon
>> Is there possibilty to run syntax check only with compil_string in >> zend_language_scanner.c (or something else) instead of removing the >> introduced code? > > No. At least I don't know a how (but I don't know everything about the > engine) The only thing I currently can think of is using t