RE: [PHP-DEV] Question regarding stream wrappers and op code cache

From: Date: Wed, 04 Feb 2015 07:19:09 +0000
Subject: RE: [PHP-DEV] Question regarding stream wrappers and op code cache
References: 1  Groups: php.internals 
Request: Send a blank email to internals+get-81775@lists.php.net to get a copy of this message
> De : Cesar Rodas [mailto:cesar@rodas.me] > I have a doubt, is it efficient include/require files from a source > different than the "real file system" a stream wrapper class? My > question is, would the op-code cache work as it would when reading a > file form the filesystem? I understand your question but, yes, the feature is essential to packages systems like phar and phk (and it is useless for most other stream wrappers). Package systems distribute a virtual file tree, handle stat(), and returning valid mtimes. So, the opcode cache must be able to work with these stream wrappers. Regards François

« previous php.internals (#81775) next »