php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #78224 __FILE__ is empty. When I nested require or include with zend_eval_string
Submitted: 2019-06-28 07:13 UTC Modified: -
From: arshidkv12 at gmail dot com Assigned:
Status: Open Package: *General Issues
PHP Version: 7.3.6 OS: Mac
Private report: No CVE-ID: None
Have you experienced this issue?
Rate the importance of this bug to you:

 [2019-06-28 07:13 UTC] 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.






Patches

Add a Patch

Pull Requests

Add a Pull Request

 
PHP Copyright © 2001-2019 The PHP Group
All rights reserved.
Last updated: Thu Sep 19 04:01:27 2019 UTC