Two questions regarding PHP extensions: include/require + PIE

From: Date: Mon, 16 Dec 2024 20:55:56 +0000
Subject: Two questions regarding PHP extensions: include/require + PIE
Groups: php.pecl.dev 
Request: Send a blank email to pecl-dev+get-17652@lists.php.net to get a copy of this message
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.

« previous php.pecl.dev (#17652) next »