Re: [PHP-DEV] PDO Restriction ( was 5.2.4RC1 Released )

2007-08-08 Thread Lester Caine
Dan Scott wrote: Right. And Wez posted this (partially in reply to Lester's almost identical hysterics at that time) on this very list ages ago (http://news.php.net/php.internals/14937 - Feb 14, 2005, to be exact): BEGIN QUOTE: Drivers are free(*) to implement driver specific methods on the PDO

Re: [PHP-DEV] PDO Restriction ( was 5.2.4RC1 Released )

2007-08-08 Thread Lukas Kahwe Smith
Lester Caine wrote: Dan Scott wrote: Right. And Wez posted this (partially in reply to Lester's almost identical hysterics at that time) on this very list ages ago (http://news.php.net/php.internals/14937 - Feb 14, 2005, to be exact): BEGIN QUOTE: Drivers are free(*) to implement driver specifi

Re: [PHP-DEV] PDO Restriction ( was 5.2.4RC1 Released )

2007-08-08 Thread Lester Caine
Larry Garfield wrote: As a case in point, I recently tried to implement a PDO layer for Drupal as an alternative to the mysql_* implementation. Drupal currently implements its own prepared statements in user-space, using a printf()-like syntax and preg_replace_callback(). When I replaced tha

Re: [PHP-DEV] PDO Restriction ( was 5.2.4RC1 Released )

2007-08-08 Thread Lukas Kahwe Smith
Lester Caine wrote: The main thing I see there is 'raw' SQL. Loading the variables directly into the script, rather than simply binding them as params. I have yet to work out a way of converting some of my dynamically generated SQL into a format that will work with PDO - on any database. I've

Re: [PHP-DEV] PDO Restriction ( was 5.2.4RC1 Released )

2007-08-08 Thread Lester Caine
Lukas Kahwe Smith wrote: Lester Caine wrote: Dan Scott wrote: Right. And Wez posted this (partially in reply to Lester's almost identical hysterics at that time) on this very list ages ago (http://news.php.net/php.internals/14937 - Feb 14, 2005, to be exact): BEGIN QUOTE: Drivers are free(*) t

Re: [PHP-DEV] PDO Restriction ( was 5.2.4RC1 Released )

2007-08-08 Thread Lester Caine
Following on Lukas Kahwe Smith wrote: Lester Caine wrote: The main thing I see there is 'raw' SQL. Loading the variables directly into the script, rather than simply binding them as params. I have yet to work out a way of converting some of my dynamically generated SQL into a format tha

Re: [PHP-DEV] PDO Restriction ( was 5.2.4RC1 Released )

2007-08-08 Thread Lukas Kahwe Smith
Lester Caine wrote: Following on Lukas Kahwe Smith wrote: Lester Caine wrote: The main thing I see there is 'raw' SQL. Loading the variables directly into the script, rather than simply binding them as params. I have yet to work out a way of converting some of my dynamically generated

[PHP-DEV] CVS Account Request: mcbrown

2007-08-08 Thread Martin MC Brown
Update the MySQL portions of the documentation. Recommended by Georg Richter/Ulf Wendel/Andrey Hristov. -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

[PHP-DEV] tsrm in CLI

2007-08-08 Thread Stanislav Malyshev
Hi! I looked at CLI SAPI and found this code, around line 719: #ifdef ZTS compiler_globals = ts_resource(compiler_globals_id); executor_globals = ts_resource(executor_globals_id); core_globals = ts_resource(core_globals_id); sapi_globals = ts_resource(sapi_globals

Re: [PHP-DEV] tsrm in CLI

2007-08-08 Thread Stanislav Malyshev
The problem here is that compiler/executor globals are allocated in zend_startup, which is called from cli_sapi_module.startup. So what is actually in compiler_globals and executor_globals is either tsrm_ls if they are initialized to 0 or random crap if they aren't. Can anybody explain me where