Re: [PHP-DEV] Re: hook cast_object handler in userspace

2003-08-03 Thread Cristiano Duarte
Hello Marcus, > CD> switch/case removed and patch attached. Is it ok? > CD> Should the method be named "to_string()", "tostring()" or "__tostring()" ? > CD> Do you commit it to CVS ? > > No. Last Problem i see is that even when to_string() is available the default > behavior can get called that se

Re: [PHP-DEV] Re: hook cast_object handler in userspace

2003-08-03 Thread Marcus Börger
Hello Cristiano, Monday, August 4, 2003, 12:34:23 AM, you wrote: CD> "Marcus BöRger" <[EMAIL PROTECTED]> escreveu na mensagem CD> news:[EMAIL PROTECTED] >> They are simply other types of function just don't care CD> call_user_function_ex() >> will take care of the differences. In other words you

Re: [PHP-DEV] Re: this causes a segfault cvs: php-src(PHP_4_3) /ext/pcreconfig.m4 php_pcre.c

2003-08-03 Thread Alan Knowles
He added a decleration for pcre_* in the wrappers eg. #define pcre_x php_pcre_ as apache2 uses pcre internally As far as I could tell though it still segfauts after that change... - although not had a chance to test it recently.. Regards Alan Andrei Zmievski wrote: On Thu, 10 Jul 20

Re: [PHP-DEV] Re: hook cast_object handler in userspace

2003-08-03 Thread Cristiano Duarte
"Marcus BöRger" <[EMAIL PROTECTED]> escreveu na mensagem news:[EMAIL PROTECTED] > They are simply other types of function just don't care call_user_function_ex() > will take care of the differences. In other words you won't need swicth/case. switch/case removed and patch attached. Is it ok? Shoul

Re: [PHP-DEV] Re: hook cast_object handler in userspace

2003-08-03 Thread Marcus Börger
Hello Cristiano, Monday, August 4, 2003, 12:10:26 AM, you wrote: CD> Hi Marcus, >> Not good enough it seems :-( CD> I'll get there... ;-) >> Some comments: >> - Please always start with tabs, you used spaces to begin lines. CD> done. seems like :-) >> - TSRMLS_FETCH() is a variable declaratio

Re: Re[2]: [PHP-DEV] Re: hook cast_object handler in userspace

2003-08-03 Thread Cristiano Duarte
Hi Marcus, > Not good enough it seems :-( I'll get there... ;-) > Some comments: > - Please always start with tabs, you used spaces to begin lines. done. > - TSRMLS_FETCH() is a variable declaration, so it cannot be used inside a > function. If I wipe TSRMLS_FETCH() out, I get this error: /usr

Re[2]: [PHP-DEV] Re: hook cast_object handler in userspace

2003-08-03 Thread Marcus Börger
Hello Cristiano, Sunday, August 3, 2003, 9:54:55 PM, you wrote: CD> I read README.SUBMITING_PATCH and attached the patch as specified. Not good enough it seems :-( Some comments: - Please always start with tabs, you used spaces to begin lines. - TSRMLS_FETCH() is a variable declaration, so it c

Re: [PHP-DEV] Re: hook cast_object handler in userspace

2003-08-03 Thread Cristiano Duarte
I read README.SUBMITING_PATCH and attached the patch as specified. Cristiano Duarte "Cristiano Duarte" <[EMAIL PROTECTED]> escreveu na mensagem news:[EMAIL PROTECTED] > >"Marcus BöRger" <[EMAIL PROTECTED]> escreveu na mensagem > news:[EMAIL PROTECTED] > > > > The patch doesn't compile (always use

Re: [PHP-DEV] Re: this causes a segfault cvs: php-src(PHP_4_3) /ext/pcre config.m4 php_pcre.c

2003-08-03 Thread Andrei Zmievski
On Thu, 10 Jul 2003, Jani Taskinen wrote: > > Fixed in CVS now. :) What did you fix exactly and where? I don't see it. -Andrei -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

Re: Re[2]: [PHP-DEV] Question: How do you get a zval** in a non-deprecated way?

2003-08-03 Thread Andrei Zmievski
On Tue, 08 Jul 2003, [EMAIL PROTECTED] wrote: > I had asked about this before, but I ran into some kind of confirmation thing > and the discussion stopped. > > This patch would add a 'Z' flag to zend_parse_parameters*(). > > Example: > > #typdef zvar zval** > > zvar a_zvar; > > ze

Re: [PHP-DEV] Re: hook cast_object handler in userspace

2003-08-03 Thread Cristiano Duarte
>"Marcus BöRger" <[EMAIL PROTECTED]> escreveu na mensagem news:[EMAIL PROTECTED] > > The patch doesn't compile (always use confugure --enable-maintainer-zts). > Then you assume that every class has a function to_string(), this is not what > we want. > > -- > Best regards, > Marcus

[PHP-DEV] [ext/interbase] Required changes to interface for handling multi-DB transactions

2003-08-03 Thread Ard Biesheuvel
Hello group, I was wondering what your policy is towards changing PHP's public interface in order to accomodate new features. I'm looking into extending the PHP InterBase extension to support multi-database (2-phase committed) transactions. This would result in the following implications: - a tr

Re: [PHP-DEV] Re: hook cast_object handler in userspace

2003-08-03 Thread Sterling Hughes
So, being the author of the C-level cast_object(), I thought about exposing this at one time. I decided against it mainly because I needed it for simplexml, and I didn't want an internals decision to be clouded by userspace discussions (how's my whitespace btw?) I really like the idea of PHP havi

Re: [PHP-DEV] Re: hook cast_object handler in userspace

2003-08-03 Thread Marcus Börger
Hello Cristiano, Sunday, August 3, 2003, 5:33:25 AM, you wrote: CD> I made a patch to the latest PHP5-CVS wich implements this hook. I think CD> it's useful to make a meaningful object stringfied value. CD> Can anyone verify it and maybe commit it to CVS ? CD> --- zend.c 2003-07-30 14:07:36.000

[PHP-DEV] Re: [ZEND-ENGINE-CVS] cvs: ZendEngine2 / zend_API.c

2003-08-03 Thread Sebastian Bergmann
Zeev Suraski wrote: > What next patch..? I think he meant the one he posted on the engine2@ list. -- Sebastian Bergmann http://sebastian-bergmann.de/ http://phpOpenTracker.de/ Das Buch zu PHP 5: http://professionelle-softwareentwicklung-mit-php5.de/ -- PHP Internals - PHP