Hello,

I have two questions regarding PHP extensions:

1. Is there a way to call require or include with a string as input in an
extension? Golemon's book only mentions zend_eval_string(), but this is
like eval(), i.e., the string must not contain any HTML or must not contain
<?php and ?> tags. The reason for this is that allow_url_include is now
offensively marked as deprecated. I previously used
        require 'data:text/plain;base64,'.base64_encode($s);
to accomplish the same. Now I think I have to write an extension to create
something like require_str() or include_str().
2. What are the plans to include the current PECL libs in PIE (PHP
Installer for Extensions)? Is every PECL maintainer supposed to include his
extension separately as a separate vendor?

Thanks.

Elmar Klausmeier.

Reply via email to