Re: [PHP-DEV] Tie'ing variables

2003-03-03 Thread Jani Taskinen
Can't those long names be gone in PHP 5 anyway..? Having YASIO is not fun. :) --Jani On Sun, 2 Mar 2003, Zeev Suraski wrote: I wanted to do this for some time, but until recently, it wasn't very feasible, because the order of registration could be designated by the

Re: [PHP-DEV] Tie'ing variables

2003-03-02 Thread Zeev Suraski
I wanted to do this for some time, but until recently, it wasn't very feasible, because the order of registration could be designated by the user (gpc_order, variables_order, etc.). Now that register_globals is off by default, and that we have the auto-globals, it's much more feasible. I

Re: [PHP-DEV] Tie'ing variables

2003-03-02 Thread Shane Caraveo
So I'm not clear on how I am should expect this to work. A simple script: error_reporting(2047); print_r($_ENV); is now completely broken unless you turn on register_long_arrays. If that is expected behaviour, register_long_arrays must be on by default. Shane Zeev Suraski wrote: I wanted to

Re: [PHP-DEV] Tie'ing variables

2003-03-02 Thread Sterling Hughes
On Sun, 2003-03-02 at 14:22, Shane Caraveo wrote: So I'm not clear on how I am should expect this to work. A simple script: error_reporting(2047); print_r($_ENV); is now completely broken unless you turn on register_long_arrays. If that is expected behaviour, register_long_arrays must

[PHP-DEV] Tie'ing variables

2003-03-01 Thread Sterling Hughes
Hi, Analyzing PHP's routines a bit, it seems that the slowest part of a generic request is populating the special arrays, $_ENV, $_GET, etc. I was wondering if it might be possible to tie these arrays to a function (if you don't understand that, look at Perl for a definition). One could

Re: [PHP-DEV] Tie'ing variables

2003-03-01 Thread George Schlossnagle
Having this sort of functionaility in general would be great. I know you can affect this with objects via overload, but it is useful for scalars and arrays and streams as well. It is pretty 'magical' though. George On Saturday, March 1, 2003, at 11:26 AM, Sterling Hughes wrote: I was

Re: [PHP-DEV] Tie'ing variables

2003-03-01 Thread Sterling Hughes
On Sat, 2003-03-01 at 11:51, George Schlossnagle wrote: Having this sort of functionaility in general would be great. I know you can affect this with objects via overload, but it is useful for scalars and arrays and streams as well. It is pretty 'magical' though. Yeah - but just to be

Re: [PHP-DEV] Tie'ing variables

2003-03-01 Thread Moriyoshi Koizumi
George Schlossnagle [EMAIL PROTECTED] wrote: Having this sort of functionaility in general would be great. I know you can affect this with objects via overload, but it is useful for scalars and arrays and streams as well. It is pretty 'magical' though. Then how about allowing access to

Re: [PHP-DEV] Tie'ing variables

2003-03-01 Thread Derick Rethans
On Sat, 1 Mar 2003, Sterling Hughes wrote: Analyzing PHP's routines a bit, it seems that the slowest part of a generic request is populating the special arrays, $_ENV, $_GET, etc. I was wondering if it might be possible to tie these arrays to a function (if you don't understand that, look

Re: [PHP-DEV] Tie'ing variables

2003-03-01 Thread Sterling Hughes
On Sat, 2003-03-01 at 12:11, Derick Rethans wrote: On Sat, 1 Mar 2003, Sterling Hughes wrote: Analyzing PHP's routines a bit, it seems that the slowest part of a generic request is populating the special arrays, $_ENV, $_GET, etc. I was wondering if it might be possible to tie these

Re: [PHP-DEV] Tie'ing variables

2003-03-01 Thread Marcus Börger
At 18:11 01.03.2003, Derick Rethans wrote: On Sat, 1 Mar 2003, Sterling Hughes wrote: Analyzing PHP's routines a bit, it seems that the slowest part of a generic request is populating the special arrays, $_ENV, $_GET, etc. I was wondering if it might be possible to tie these arrays to a

Re: [PHP-DEV] Tie'ing variables

2003-03-01 Thread Rasmus Lerdorf
Analyzing PHP's routines a bit, it seems that the slowest part of a generic request is populating the special arrays, $_ENV, $_GET, etc. Do you have any profiling evidence of this? Everything I have looked at points squarely at the parts of PHP that requires a system call. Reducing system