[PHP-DEV] Re: New optimization idea; was: No runtime fetching of built-in global constants

2008-07-28 Thread Dmitry Stogov
It is the thing I like to do. Dmitry. Stanislav Malyshev wrote: Hi! For now it solves the check code (read/seek) but not the open syscall. Hm... this looks wrong. Why one needs to open if scanner is perfectly capable of opening file by itself? -- PHP Internals - PHP Runtime Development

[PHP-DEV] Re: New optimization idea; was: No runtime fetching of built-in global constants

2008-07-28 Thread Stanislav Malyshev
Hi! For now it solves the check code (read/seek) but not the open syscall. Hm... this looks wrong. Why one needs to open if scanner is perfectly capable of opening file by itself? -- Stanislav Malyshev, Zend Software Architect [EMAIL PROTECTED] http://www.zend.com/ (408)253-8829 MSN: [E

[PHP-DEV] Re: New optimization idea; was: No runtime fetching of built-in global constants

2008-07-28 Thread Dmitry Stogov
For now it solves the check code (read/seek) but not the open syscall. Dmitry Stanislav Malyshev wrote: Hi! Probably for historical reason PHP supports shebang lines (#! /usr/bin/php) on top of php files. Especially to handle them PHP (CGI/FastCGI/CLI) opens file and check for it. So even wi

[PHP-DEV] Re: New optimization idea; was: No runtime fetching of built-in global constants

2008-07-27 Thread Stanislav Malyshev
Hi! Probably for historical reason PHP supports shebang lines (#! /usr/bin/php) on top of php files. Especially to handle them PHP (CGI/FastCGI/CLI) opens file and check for it. So even with opcode caches FastCGI PHP does open syscall for the requested script, however with opcode caches it's