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

From: Date: Mon, 28 Jul 2008 07:14:46 +0000
Subject: Re: New optimization idea; was: No runtime fetching of built-in global constants
References: 1 2 3 4 5 6 7 8  Groups: php.internals 
Request: Send a blank email to internals+get-39396@lists.php.net to get a copy of this message
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 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?


« previous php.internals (#39396) next »