Re: [PHP-DEV] 回复: [PHP-DEV] [rfc:direct-execution-opcode] Whether need __FILE__ the value of the file to replace the compiled opcode file path

2020-12-11 Thread Sara Golemon
On Thu, Dec 10, 2020 at 2:20 PM Morgan Breden wrote: > I'm not 100% certain but I believe what chopins is proposing is the > ability to require()/include() files generated by opcache, without > including the .php file. > > The reference to __FILE__ is I believe a warning to using relative paths,

Re: [PHP-DEV] [RFC] Measuring maximum execution time based on wall-time

2020-12-11 Thread Andreas Leathley
On 11.12.20 10:59, Máté Kocsis wrote: That's why I'd like to add support for measuring the execution timeout based on the wall-time. There are a couple of ways to approach the problem though: - by measuring wall-time on all platforms - by adding a new "max_execution_time_type" or so ini setting f

Re: [PHP-DEV] [RFC] Measuring maximum execution time based on wall-time

2020-12-11 Thread Rowan Tommins
On 11/12/2020 09:59, Máté Kocsis wrote: I would also be very curious if anyone is aware of the reasons why the CPU time metric was chosen back then? In my opinion, wall-time is much more useful, but maybe I'm just missing some technical limitations (?). For most users, the max execution time i

[PHP-DEV] [RFC] Measuring maximum execution time based on wall-time

2020-12-11 Thread Máté Kocsis
Dear Internals, Currently, our company is migrating away from HHVM to PHP, and we are experiencing some performance regressions due to the fact that the max_execution_time ini setting has different semantics in the two languages. By default, HHVM measures wall-time, but the behaviour can be contr