[PHP-DEV] Possible RFC: $_SERVER['REQUEST_TIME_FLOAT']

2023-04-12 Thread Herbert Groot Jebbink
Hello, With this mail I want to do the first step of a RFC: "1. Email internals@lists.php.net to measure reaction to your intended proposal." I'm in the process of using hrtime(true) instead of microtime(true), for this it would be great if REQUEST_TIME_HR would also exist next to REQUEST_TIME an

[PHP-DEV] Re: Possible RFC: $_SERVER['REQUEST_TIME_FLOAT']

2023-04-12 Thread Herbert Groot Jebbink
On Wed, Apr 12, 2023 at 12:01 PM Herbert Groot Jebbink < herb...@groot.jebbink.nl> wrote: > Hello, > > With this mail I want to do the first step of a RFC: "1. Email > internals@lists.php.net to measure reaction to your intended proposal." > > I'm in the p

[PHP-DEV] Re: Possible RFC: $_SERVER['REQUEST_TIME_FLOAT']

2023-04-12 Thread Herbert Groot Jebbink
On Wed, 12 Apr 2023 at 11:53, Rowan Tommins wrote: > Should the same approach happen here? e.g. should all three > values be based on hrtime fallback for REQUEST_TIME and REQUEST_TIME_FLOAT to hrtime seems not possible, hrtime is not based on the actual time, hrtime can be used to calculate a du

Re: [PHP-DEV] Re: Possible RFC: $_SERVER['REQUEST_TIME_FLOAT']

2023-04-12 Thread Herbert Groot Jebbink
Op wo 12 apr. 2023 16:04 schreef Rowan Tommins : > On Wed, 12 Apr 2023 at 13:25, Herbert Groot Jebbink < > herb...@groot.jebbink.nl> wrote: > >> fallback for REQUEST_TIME and REQUEST_TIME_FLOAT to hrtime seems not >> possible, hrtime is not based on the actual

Re: [PHP-DEV] Re: Possible RFC: $_SERVER['REQUEST_TIME_FLOAT']

2023-05-12 Thread Herbert Groot Jebbink
On Wed, Apr 12, 2023 at 4:04 PM Rowan Tommins wrote: > On Wed, 12 Apr 2023 at 13:25, Herbert Groot Jebbink < > herb...@groot.jebbink.nl> wrote: > >> fallback for REQUEST_TIME and REQUEST_TIME_FLOAT to hrtime seems not >> possible, hrtime is not based on the actual

[PHP-DEV] New function request - Variable parsing a string

2004-08-31 Thread Herbert Groot Jebbink
Hi, To speed up a homebuild PHP framework I would like to have a new function that expands a string with the PHP variables in it, just like how variable parsing is done for a double-quotes string. string VariableParsingString ( string string ) Currently I do it with the next eval statement. eva

Re: [PHP-DEV] New function request - Variable parsing a string

2004-09-01 Thread Herbert Groot Jebbink
lm[\'klm\']} * {$xyz->xyz} *'; $result = parseVarsIntoString ($string); echo $result; function parseVarsIntoString ($string) { extract($GLOBALS); eval('$result = "' . str_replace('"', '\\"', $string) . '"

Re: [PHP-DEV] New function request - Variable parsing a string

2004-09-02 Thread Herbert Groot Jebbink
Sara Golemon wrote: >> $string = "* {$abc} * {$klm['klm']} * {$xyz->xyz} *"; >> echo $string; >> > He wants to store an UNinterpolated string somewhere (like a DB or text > file), then interpolate it at run-time. indeed, and it's usage is in a driver that calls include files for the business