Bug #78224 [Opn->Nab]: __FILE__ is empty. When I nested require or include with zend_eval_string

From: Date: Mon, 01 Feb 2021 13:18:01 +0000
Subject: Bug #78224 [Opn->Nab]: __FILE__ is empty. When I nested require or include with zend_eval_string
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-231858@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=78224&edit=1 ID: 78224 Updated by: cmb@php.net Reported by: arshidkv12 at gmail dot com Summary: __FILE__ is empty. When I nested require or include with zend_eval_string -Status: Open +Status: Not a bug Type: Bug Package: *General Issues Operating System: Mac PHP Version: 7.3.6 -Assigned To: +Assigned To: cmb Block user comment: N Private report: N New Comment: Then you should not pass an empty string as filename (3rd parameter). Previous Comments: ------------------------------------------------------------------------ [2019-06-28 07:13:51] arshidkv12 at gmail dot com Description: ------------ char *code = "require('test.php');"; zend_eval_string(code, NULL, (char *)"" TSRMLS_CC); ======= Test.php ======= <?php require 'test2.php'; ==== test2.php ==== require 'test2.php'; Continue up to 5 times then __FILE__ is empty. ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=78224&edit=1

« previous php.bugs (#231858) next »