Re: [PHP-DEV] Overriding $DOCUMENT_ROOT in an Apache Module

2003-09-24 Thread Rasmus Lerdorf
On Wed, 24 Sep 2003, Mark Morley wrote: > > This doesn't really have anything to do with PHP. You are writing an > > Apache module. You simply have to change the doc_root before Apache gets > > to the content handling phase of the request_rec. And to change the > > doc_root I think you'd just fi

Re: [PHP-DEV] Overriding $DOCUMENT_ROOT in an Apache Module

2003-09-24 Thread Mark Morley
> This doesn't really have anything to do with PHP. You are writing an > Apache module. You simply have to change the doc_root before Apache gets > to the content handling phase of the request_rec. And to change the > doc_root I think you'd just fiddle with conf->ap_document_root and it > should

Re: [PHP-DEV] Overriding $DOCUMENT_ROOT in an Apache Module

2003-09-24 Thread Rasmus Lerdorf
On Wed, 24 Sep 2003, Mark Morley wrote: > I'm working on a custom mass hoting Apache module. > > I need to be able to set the $DOCUMENT_ROOT value on a per > request basis. That is, I'd like to be able to set it in my module before > the clients' scripts run (similar to how I use zend_alter_ini_e

[PHP-DEV] Overriding $DOCUMENT_ROOT in an Apache Module

2003-09-24 Thread Mark Morley
I'm working on a custom mass hoting Apache module. I need to be able to set the $DOCUMENT_ROOT value on a per request basis. That is, I'd like to be able to set it in my module before the clients' scripts run (similar to how I use zend_alter_ini_entry to alter ini values). I've tried using Apach

[PHP-DEV] pres2 hacking and refactoring

2003-09-24 Thread Adam Maccabee Trachtenberg
I posted this to the pres2 list, but either nobody read it, or nobody's interested. So, I'll try here. I've been futzing around with pres2 and I'd like to propose a change in how the objects are organized. I think this will make it easier for people to work on designing new formats and also reduce

Re: [PHP-DEV] Segfault in HEAD & PHP_4_3 (and possible patch)

2003-09-24 Thread Wez Furlong
The memory manager will deliberately segfault if an allocation fails in a debug build. Having said that, your patch seems ok anyway. --Wez. On Wed, 24 Sep 2003, Antony Dovgal wrote: > Hi, all! > > This script (you need to compile PHP with --enable-memory-limit first): > ini_set("memory_limit",

Re: [PHP-DEV] differences in the RDBMS ext API's

2003-09-24 Thread Dan Kalowsky
I don't have the time to answer this in more detail, but some of these calls are just not supported by ODBC (i.e. select_db). Some are, I just haven't had the time to commit the patches that create the functionality and fully test it. On Wed, 24 Sep 2003, Lukas Smith wrote: > Hi, > > ok while ta

[PHP-DEV] Segfault in HEAD & PHP_4_3 (and possible patch)

2003-09-24 Thread Antony Dovgal
Hi, all! This script (you need to compile PHP with --enable-memory-limit first): produces for me segfault with last HEAD and PHP_4_3 branch. Backtrace: Program received signal SIGSEGV, Segmentation fault. _efree (ptr=0x0) at /root/CVS/php-src/Zend/zend_alloc.c:257 257 CALCULATE_REAL

[PHP-DEV] Exception behavior question

2003-09-24 Thread Hans Lellelid
I apologize if this has been asked -- I couldn't find it, if it has. I am working on a couple os projects for PHP5, and have been building with beta1, given that it's a milestone that seems easy for most to install, etc. I have been informed that the Exception class has changed significantly i

[PHP-DEV] differences in the RDBMS ext API's

2003-09-24 Thread Lukas Smith
Hi, ok while talking to marcus about sqlite it came up again that some ext have different function names for similar things which is really unnecessary. Here is a list of some most used (just a guestimate) functions. I used the mysql extension as the basis for the most part. Some functions obviou

[PHP-DEV] Re: [PHP-CVS] cvs: php-src /ext/standard array.c basic_functions.c php_array.h

2003-09-24 Thread Andrey Hristov
Wez Furlong wrote: > Should these functions really go into the core? > Perhaps they are better off in an extension (pecl/array_utils ?) > > The names aren't really all that obvious to me either. > > --Wez. Hi Wez, well maybe array_udiff_uassoc() and array_diff_uassoc() are of little need but I add