Re: New optimization idea; was: No runtime fetching of built-in global constants
| From: | Stanislav Malyshev | Date: | Mon, 28 Jul 2008 05:42:13 +0000 |
| Subject: | Re: New optimization idea; was: No runtime fetching of built-in global constants | ||
| References: | 1 2 3 4 5 6 7 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-39393@lists.php.net to get a copy of this message | ||
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 absolutely useless. In case PHP scanner will handle shebang lines itself, we will able to save this syscall.But for most cases you'd just do cgi.check_shebang_line=0 in php.ini and that should solve the problem, not? -- Stanislav Malyshev, Zend Software Architect stas@zend.com http://www.zend.com/ (408)253-8829 MSN: stas@zend.com