[PHP-DEV] PDO questions

2005-09-22 Thread Ron Korving
After reading the php|architect article on PDO by Ilia I have a couple of questions: 1) Does unsetting $stmt trigger a closeCursor() as well? I assume so, but the article doesn't mention it. It only talks about the importance of calling that method. 2) Could it be a good idea (performance wise)

[PHP-DEV] Re: PDO questions

2005-09-22 Thread Lukas Smith
Ron Korving wrote: 1) Does unsetting $stmt trigger a closeCursor() as well? I assume so, but the article doesn't mention it. It only talks about the importance of calling that method. yes this is done automatically .. 2) Could it be a good idea (performance wise) and possible in the first

[PHP-DEV] Re: PDO questions

2005-09-22 Thread Lukas Smith
Lukas Smith wrote: 3) Wouldn't it be nice if you could do a $stmt-execute(foo, bar); (numeric parameters) instead of $stmt-execute(array(foo, bar)); ? I think this would severely hurt the extensibility of the API not only for PDO itself, but also for people who want to transparently extend

[PHP-DEV] Re: PDO questions

2005-09-22 Thread Ron Korving
Ron Korving wrote: 1) Does unsetting $stmt trigger a closeCursor() as well? I assume so, but the article doesn't mention it. It only talks about the importance of calling that method. yes this is done automatically .. Great :) 2) Could it be a good idea (performance wise) and

Re: [PHP-DEV] Re: PDO questions

2005-09-22 Thread Wez Furlong
I plan to add some kind of prepared statement caching in a (not too distant) future PDO release, however... You'd only benefit from prepared statement caching when the underlying driver supports it. Not only does it require support from the driver, but it also requires good, solid support for it

[PHP-DEV] Re: [PHP-CVS] cvs: php-src /win32/build config.w32

2005-09-22 Thread Derick Rethans
On Thu, 22 Sep 2005, Edin Kadribasic wrote: Derick Rethans wrote: On Thu, 22 Sep 2005, Edin Kadribasic wrote: edink Thu Sep 22 09:18:14 2005 EDT Modified files: /php-src/win32/buildconfig.w32 Log: MFB: Fix building of extensions that

[PHP-DEV] php version of GD lib

2005-09-22 Thread Erron Walker
I am using the version of GD packaged with php 4.3.x for windows and am having a problem with opening images and not being able to lock them. As soon as I have multiple users requiring the same dynamically generated image, the image sent to the browser is all distorted and blurred but only

[PHP-DEV] Re: [PHP-CVS] cvs: php-src /win32/build config.w32

2005-09-22 Thread Edin Kadribasic
Derick Rethans wrote: On Thu, 22 Sep 2005, Edin Kadribasic wrote: edink Thu Sep 22 09:18:14 2005 EDT Modified files: /php-src/win32/build config.w32 Log: MFB: Fix building of extensions that inlcude extname/header.h Wouldn't it be better to fix the

[PHP-DEV] Building extension for Mac OS X

2005-09-22 Thread Fredrik Olsson
I use the binary installation of PHP 5.0.4 from http://www.entropy.ch/software/macosx/php/ And a tiny test case trying to introduce the module hello, with the function hello_world() that simply returns a string. Actually I have just used copy and paste from this tutorial

[PHP-DEV] Extension silently fails

2005-09-22 Thread David Olsson
Hello all! Not really sure if this is posted in the correct newsgroup. If not, please just ignore my post... :-) Anyhow, I have a strange problem with a PHP extension I have written in C++. It builds fine and it also runs fine when I use it with the PHP CLI. When I use it from Apache 2, it

Re: [PHP-DEV] Building extension for Mac OS X

2005-09-22 Thread Rasmus Lerdorf
Fredrik Olsson wrote: I use the binary installation of PHP 5.0.4 from http://www.entropy.ch/software/macosx/php/ And a tiny test case trying to introduce the module hello, with the function hello_world() that simply returns a string. Actually I have just used copy and paste from this

Re: [PHP-DEV] Extension silently fails

2005-09-22 Thread Rasmus Lerdorf
David Olsson wrote: Hello all! Not really sure if this is posted in the correct newsgroup. If not, please just ignore my post... :-) Anyhow, I have a strange problem with a PHP extension I have written in C++. It builds fine and it also runs fine when I use it with the PHP CLI. When I

[PHP-DEV] [PATCH] imap_savebody()

2005-09-22 Thread Michael Wallner
Hi, Currently there is no way to fetch a big message/attachment through ext/imap if memory_limit is enabled. I'd like to kindly ask for consideration of the following patch: http://dev.iworks.at/PATCHES/imap_savebody.patch.txt The patch introduces a new function imap_savebody(rsrc

[PHP-DEV] on-the-fly changes to php.ini values?

2005-09-22 Thread Todd D. Esposito
Hello! I'm working on an Apache2 module which pulls vhost info from LDAP, and I've got it all knocked out save one really important feature: I need to be able to change the open_basedir on a per-vhost basis, but obviously, NOT via php_admin_value in the configuration file(s), since each vhost is

[PHP-DEV] Re: [PATCH] imap_savebody()

2005-09-22 Thread Sara Golemon
#define GETS_FETCH_SIZE 2048000 That size doesn't seem a bit excessive to you? I thought the whole point of dumping it to a file was to avoid huge memory chunks. Not to mention the fact that reserving 2MB of stack space makes me a little twitchy... /* {{{ proto bool imap_savebody(resource

Re: [PHP-DEV] Re: [PATCH] imap_savebody()

2005-09-22 Thread Ilia Alshanetsky
Sara Golemon wrote: #define GETS_FETCH_SIZE 2048000 That size doesn't seem a bit excessive to you? I thought the whole point of dumping it to a file was to avoid huge memory chunks. Not to mention the fact that reserving 2MB of stack space makes me a little twitchy... Indeed, 2 megs of

Re: [PHP-DEV] Re: [PATCH] imap_savebody()

2005-09-22 Thread Wez Furlong
Use 8192 chunk size; anything bigger than that is a complete waste of memory. --Wez. On 9/22/05, Ilia Alshanetsky [EMAIL PROTECTED] wrote: Sara Golemon wrote: #define GETS_FETCH_SIZE 2048000 That size doesn't seem a bit excessive to you? I thought the whole point of dumping it to a

[PHP-DEV] shutdown order changed again? broken dl()'d modules, again

2005-09-22 Thread Wez Furlong
I'm getting this on shutdown with PHP 5.1 when using persistent connections with a dl'd PDO. Dan mentioned something similar with the ibm_db2 extension: ==23982== ==23982== Jump to the invalid address stated on the next line ==23982==at 0x1BCE5C0B: ??? ==23982==by 0x81BB4BC:

Re: [PHP-DEV] shutdown order changed again? broken dl()'d modules, again

2005-09-22 Thread Andi Gutmans
Yep, we reverted to the previous state because we broke stuff. The real solution is to have a two phase shutdown. Is your script just for testing? (it's weird to have a persistent connection with a dl(), but that doesn't mean we shouldn't introduce another shutdown stage.) At 07:27 PM

Re: [PHP-DEV] shutdown order changed again? broken dl()'d modules, again

2005-09-22 Thread Wez Furlong
Actually, it's using php.ini to load pdo for the CLI, and not calling dl(). The script is just a test script, but this is still a PHP level bug that we should, IMO, fix before 5.1. --Wez. On 9/22/05, Andi Gutmans [EMAIL PROTECTED] wrote: Yep, we reverted to the previous state because we broke

[PHP-DEV] CVS Account Request: clockwerx

2005-09-22 Thread Daniel O'Connor
helgi (dufus) sez: helgi http://www.php.net/cvs-php.php ask for a CVS user and mention you need karma for pear/Validate, but I guess the pear group will give the karma but php group accept the user helgi Just mention that Helgi (cvs user dufuz) told you to get a user to maintain Validate_AU