[PHP-DEV] RE : [PHP-DEV] Simulating require_once within an extension

2007-02-26 Thread P
Sorry, I can't help with your C extension but I can give you a solution I implemented in PHP for the same needs. I did using two mechanisms : - A stream wrapper to allow require_once to reference a virtual path. Not required if you require 'real' files. In PHK, I need it because I impl

Re: [PHP-DEV] Simulating require_once within an extension

2007-02-24 Thread Mo McRoberts
Hi Jochem, On 24-Feb-2007, at 19:09, Jochem Maas wrote: I suspect you could implement the desired functionality using http://php.net/manual/en/function.stream-wrapper-register.php although I can't find any info on whether include/require actually work with registered stream wrappers .. maybe o

Re: [PHP-DEV] Simulating require_once within an extension

2007-02-24 Thread Jochem Maas
I suspect you could implement the desired functionality using http://php.net/manual/en/function.stream-wrapper-register.php although I can't find any info on whether include/require actually work with registered stream wrappers .. maybe one of the devs could confirm/deny whether this is possible.