Re: [PHP-DEV] using $this-> implicitly inside same class

2006-02-24 Thread Xuefer
> > > I was thinking of something more like this: > > > class Connection { > declare (implicit_this_properties) { >// use $this-> implicitly within this class only >ini_set('this.use_implicit', ON); > >protected $link; >private $server, $username, $password, $db; } > >public fu

[PHP-DEV] PHP and Recursion

2006-02-24 Thread Brian Moon
Hi guys, I am working on script that will assemble data to create a page and have come to an interesting conclusion. Its a perfect fit for recursion as part 1 of the doc will require additional parts and so on. I wrote it at first with two loops. The first loop gathered data and the second

Re: [PHP-DEV] using $this-> implicitly inside same class

2006-02-24 Thread php
Thanks to Marcus and everyone else for their comments. I note the valid points you raised. Keith On Fri, 24 Feb 2006, Marcus Boerger wrote: > To: [EMAIL PROTECTED] > From: Marcus Boerger <[EMAIL PROTECTED]> > Subject: Re: [PHP-DEV] using $this-> implicitly inside same class > > Hello php, >

[PHP-DEV] php5 posix gid, solaris 10, apache2, ldapclient

2006-02-24 Thread kjc
I posted this yesterday to the install group, but I think maybe it should be internals group. I am wondering if there is a problem with the getgid, getegid or set versions. How can I test this to find the problem? I've got a funny issue, and it has been narrowed down to something with PHP5 on

[PHP-DEV] Re: [PECL-CVS] cvs: pecl /pdo pdo_dbh.c pdo_stmt.c php_pdo_driver.h /pdo/tests bug_36428.phpt

2006-02-24 Thread Michael Wallner
Pierre wrote: On 2/24/06, Marcus Boerger <[EMAIL PROTECTED]> wrote: helly Fri Feb 24 16:04:14 2006 UTC Modified files: /pecl/pdo pdo_dbh.c pdo_stmt.c php_pdo_driver.h /pecl/pdo/tests bug_36428.phpt Log: - s/FETCH_PROPSLATE/FETCH_PROPS_LATE/ as per IRC discussion My

Re: [PHP-DEV] recover from a segfault

2006-02-24 Thread Michael Vergoz
Hi Jared, It's true, array_walk_recursive() used the php_array_walk() and it can cause some serious problem within the stack. The way to fix this bug is to prevent the "out-of stack limit". I'll send a patch if i can find a way to fix correctly this bug. -michael - Original Message -

Re: [PHP-DEV] using $this-> implicitly inside same class

2006-02-24 Thread Mike Lively
One of the things I have always really liked about php is that variable scope is always very explicit. You always know where a variable is coming from and you don't ever have to worry about where or not you are working with a variable in the right scope. If something like this were to ever creep i

[PHP-DEV] Re: [PECL-CVS] cvs: pecl /pdo pdo_dbh.c pdo_stmt.c php_pdo_driver.h /pdo/tests bug_36428.phpt

2006-02-24 Thread Pierre
On 2/24/06, Marcus Boerger <[EMAIL PROTECTED]> wrote: > helly Fri Feb 24 16:04:14 2006 UTC > > Modified files: > /pecl/pdo pdo_dbh.c pdo_stmt.c php_pdo_driver.h > /pecl/pdo/tests bug_36428.phpt > Log: > - s/FETCH_PROPSLATE/FETCH_PROPS_LATE/ as per IRC discussion My su

RE: [PHP-DEV] recover from a segfault

2006-02-24 Thread Jared Williams
> The problem is that setrlimit() need privilege to expand the > process stack. > I don't think it's a good idea to use this system call to fix > the too-high-function-stack bug. > There is no really way to fix correctly this bug. > However I think we should re-examined the execution flow of >

Re: [PHP-DEV] recover from a segfault

2006-02-24 Thread Michael Vergoz
Hi, The problem is that setrlimit() need privilege to expand the process stack. I don't think it's a good idea to use this system call to fix the too-high-function-stack bug. There is no really way to fix correctly this bug. However I think we should re-examined the execution flow of PECL funct

[PHP-DEV] Re: using $this-> implicitly inside same class

2006-02-24 Thread Christian Schneider
[EMAIL PROTECTED] wrote: I really do not see the need to keep telling php I'm refering to the properties and method of the class I'm already in, when php 5 should be able to deduce this from the context of the class I'm coding in. This would turn all local variables into global ones in regard

[PHP-DEV] Re: [PATCH] Late Static Binding

2006-02-24 Thread Lukas Smith
Mike Lively wrote: As far as current userland code impact, there is very little as far as I can tell. No keywords have been added, just another use for an existing one. No changes were made to self:: or parent:: so the change should be pretty transparent. The only thing that I see remotely causi

Re: [PHP-DEV] using $this-> implicitly inside same class

2006-02-24 Thread Marcus Boerger
Hello php, Friday, February 24, 2006, 3:05:11 PM, you wrote: > Hi all. > I'm using php 5.1.2 compiled from source, with Apache 2.2.0 > and MySQL 5.0.18 on SuSE Linux 9.2 pro. > I really do not see the need to keep telling php I'm > refering to the properties and method of the class I'm > alr

Re: [PHP-DEV] [PATCH] kill a few compiler warnings in 5_1 branch

2006-02-24 Thread Marcus Boerger
Hello Steph, a few minor corrections to your patch, can you send the full patch in one file? best regards marcus Friday, February 24, 2006, 3:05:15 PM, you wrote: > Index: Zend/zend_vm_execute.h > === > RCS file: /repository/Zend

[PHP-DEV] using $this-> implicitly inside same class

2006-02-24 Thread php
Hi all. I'm using php 5.1.2 compiled from source, with Apache 2.2.0 and MySQL 5.0.18 on SuSE Linux 9.2 pro. I really do not see the need to keep telling php I'm refering to the properties and method of the class I'm already in, when php 5 should be able to deduce this from the context of the

[PHP-DEV] [PATCH] kill a few compiler warnings in 5_1 branch

2006-02-24 Thread Steph Fox
Hi all, There are 174 compiler warnings in the PHP_5_1 branch under MSVC at present, so this is an attempt to get the number down a bit (like, by around 20%) by getting rid of the simpler ones. I've separated out those I'm really not sure about (warnings_php5_unsure.txt), the rest are all si

Re: [PHP-DEV] Anybody written a Java SAPI?

2006-02-24 Thread Wez Furlong
We used to have a servlet sapi in the core, but it now resides in CVS under pecl/servlet. I don't know what the status of that is, but it might be made workable with a little bit of effort. --Wez. On 2/21/06, Ben Trafford <[EMAIL PROTECTED]> wrote: > > Hello! > > And here I am, ba

Re: [PHP-DEV] extension and apache 2.x compatibility issue.

2006-02-24 Thread Wez Furlong
My suggestion is to download, compile and use valgrind and see what problems that highlights in your code. --Wez. On 2/23/06, D. Walsh <[EMAIL PROTECTED]> wrote: > Anyone have any ideas or see the problem here??? > > On Feb 22, 2006, at 24:48 , D. Walsh wrote: > > > I had an issue with an extensi