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: 2021-02-01 13:18 UTC
From: arshidkv12 at gmail dot com Assigned: cmb (profile)
Status: Not a bug Package: *General Issues
PHP Version: 7.3.6 OS: Mac
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: arshidkv12 at gmail dot com
New email:
PHP Version: OS:

 

 [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

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2021-02-01 13:18 UTC] cmb@php.net
-Status: Open +Status: Not a bug -Assigned To: +Assigned To: cmb
 [2021-02-01 13:18 UTC] cmb@php.net
Then you should not pass an empty string as filename (3rd
parameter).
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sun Dec 22 01:01:30 2024 UTC