Re: Re: cvs: ZendEngine2(PHP_5_3) / zend.c zend.h zend_vm_def.h zend_vm_execute.h php-src NEWS php-src/main fopen_wrappers.c fopen_wrappers.h main.c

From: Date: Wed, 05 Mar 2008 20:28:17 +0000
Subject: Re: Re: cvs: ZendEngine2(PHP_5_3) / zend.c zend.h zend_vm_def.h zend_vm_execute.h php-src NEWS php-src/main fopen_wrappers.c fopen_wrappers.h main.c
References: 1 2  Groups: php.internals 
Request: Send a blank email to internals+get-35981@lists.php.net to get a copy of this message
Hi!
This is a very nice addition - I wonder if you might be interested in a patch to enable stream wrappers in include_path? There are a couple of ways this could be done, but the one I think would be best is checking for "//" immediately following ":" and then attempting to locate a stream wrapper, and if not found then shunt to the current realpath/fopen behavior. I'm already implementing this kind of thing already inside pecl/phar, it would be trivial to provide a patch and a few tests.
I think if we can do it generic without any performance loss then it's better than just doing it in phar. -- Stanislav Malyshev, Zend Software Architect stas@zend.com http://www.zend.com/ (408)253-8829 MSN: stas@zend.com

« previous php.internals (#35981) next »