[PHP-DEV] Using CPP for PHP [Was Re: [PHP-DEV] planning future BC Breaks - was Re: [PHP-DEV] fatal static call in php 6.0?]

2006-05-29 Thread Markus Fischer
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi, Christian Schneider wrote: > William Candillon wrote: >> I think that a macro will be a very nice and powerful solution to this >> problem but according to me it needs to be done by an external tool. > > That already exists ;-) > > Try > cpp -

[PHP-DEV] Ides of March [WAS: tsrm_shutdown() and the CLI SAPI]

2006-05-29 Thread Steph Fox
Hi all, I've spent a fun weekend debugging TSRM and bits of ZE2, having finally figured that the zend_compiler_globals dtor was the point of failure here. TSRM needs to mark resources as 'done' following a free and doesn't in most cases, but that's actually not the main problem we have in PHP

Re: [PHP-DEV] Ides of March [WAS: tsrm_shutdown() and the CLI SAPI]

2006-05-29 Thread Edin Kadribasic
Hi, Yes, something broke while we were at 5.1.3-dev. It would be really nice if Dmitry could have a look at this. We have many reports that things have gotten much more ustable on Windows since 5.1.2. Edin Steph Fox wrote: > Hi all, > > I've spent a fun weekend debugging TSRM and bits of ZE2,

[PHP-DEV] CVS Account Request: davis

2006-05-29 Thread Davis Zanetti Cabral
Helping in translating for pt-br. -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DEV] E_ALL changes in 5.2/6.0

2006-05-29 Thread Sebastian Mendel
Steph Fox schrieb: Marcus, FWIW I'm with you (unusually) over E_STRICT. Why would anyone have E_ALL switched on anywhere but a dev box? at least i, as no one on this mailing list is interested in me, but i have it on and it is logged only and not displayed. some bugs are really hard to fin

RE: [PHP-DEV] Ides of March [WAS: tsrm_shutdown() and the CLI SAPI]

2006-05-29 Thread Dmitry Stogov
Hi Steph, I have no idea what is wrong with optimized class/functions tables cleanup. In case if EG(full_tables_cleanup) is set, the behavior should be exactly the same as before patch. PHP uses EG(full_table_cleanup) only for dl(), but I do't know how php-gtk uses it. Thanks. Dmitry. > -Ori

Re: [PHP-DEV] Ides of March [WAS: tsrm_shutdown() and the CLI SAPI]

2006-05-29 Thread Marcus Boerger
Hello Steph, can it be that the return value of the dtor functions are wrong? They have always been wrong and during last months we tried to sort things out. Actually i was planning to have HEAD and 5.2 both respect the APPLY values correct. Should i wait with those changes now until someone fig

[PHP-DEV] Re: [PHP-GTK-DEV] Re: [PHP-DEV] Ides of March [WAS: tsrm_shutdown() and the CLI SAPI]

2006-05-29 Thread Steph Fox
I'm down to four possible changes - I'm just going back through them with a full build, one by one. (Takes ages here.) It could be anything at present... Dmitry, you're definitely off the hook over those optimizations though, promising though they seemed. /me was hoping for something relativ

[PHP-DEV] [PATCH] arg_info and friends

2006-05-29 Thread Hannes Magnusson
Hi all I've created a patch[1] that welcomes new friend into the zend_arg_info family, resource, and a new flag for ZEND_ME_MAPPING and pals, ZEND_ACC_INFO_MAP_TO_FUNCTION. The idea is to make it easier to define argument info for those extensions who map methods to functions which require some

Re: [PHP-DEV] Using CPP for PHP [Was Re: [PHP-DEV] planning future BC Breaks - was Re: [PHP-DEV] fatal static call in php 6.0?]

2006-05-29 Thread William Candillon
Try cpp -w -P -C out.php 2>/dev/null if you don't want to reinvent the wheel :-) It's very limited! It's not implementing #line macro for php by example. On 5/29/06, Markus Fischer <[EMAIL PROTECTED]> wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi, Christian Schneider wrote: > Wil

Re: [PHP-DEV] planning future BC Breaks - was Re: [PHP-DEV] fatal static call in php 6.0?

2006-05-29 Thread Marcus Boerger
Hello Christian, first of all c would be enough. Preprocessing has nothing to do with c++. Also a lot of compilers allow to use the pre-process stand alone. And then there is this one little disadvantage. A c compiler doesn't know that it is not supposed to deal with stuff outside and last but

Re: [PHP-DEV] RFC array functions

2006-05-29 Thread Kevin Waterson
This one time, at band camp, Marcus Boerger <[EMAIL PROTECTED]> wrote: > Hello Jared, > > > UPS i see my failure in writing. I meant array_valid($array) of course :-) > > i have always been better in writing patches then telling tales. I like the idea of an SPL feel to array functions Kevin

Re: [PHP-DEV] Recent PostgreSQL serious security hole

2006-05-29 Thread Marcus Boerger
Hello Christopher, there's an interesting detail in you patch i never used in the for you did: php_error_docref("function.pg-real-escape-bytea" ...) where the name you passed in is different from the name of the function. That works as expected? On the same thing, you say that the function is d

Re: [PHP-DEV] Recent PostgreSQL serious security hole

2006-05-29 Thread Lukas Smith
Marcus Boerger wrote: As a follow up I've attached my initial patch for this. Can people please review? Without having looked at the implementation: Does this implementation also deal with changes in the client encoding? http://ilia.ws/archives/103-mysql_real_escape_string-versus-Prepared-St

Re: [PHP-DEV] Ides of March [WAS: tsrm_shutdown() and the CLI SAPI]

2006-05-29 Thread Steph Fox
Hi Dmitry, Finally cracked it, and you're right it had nothing to do with the suspected optimizations. There was a win32 memory fix where you included the PHP win32 config file in the Zend one, confusing heck out of TSRM's totally independent (until it meets Zend) alloca definition, which is s

RE: [PHP-DEV] Ides of March [WAS: tsrm_shutdown() and the CLI SAPI]

2006-05-29 Thread Dmitry Stogov
Hi Steph, As I remember this patch modified "zend_config.w32.h". It made inclusion of "main/config.w32.h" in the same way as on all other systems. How it affects TSRM? May be I forgot something. Thanks. Dmitry. > -Original Message- > From: Steph Fox [mailto:[EMAIL PROTECTED] > Sent: Tue