|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2006-02-12 14:22 UTC] johannes@php.net
[2006-02-12 16:51 UTC] rbro at hotmail dot com
[2006-02-12 21:32 UTC] derick@php.net
[2006-02-12 21:49 UTC] rbro at hotmail dot com
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Wed Nov 19 00:00:01 2025 UTC |
Description: ------------ If you include a file within a function, the constant __FUNCTION__ is not available from that include file. Reproduce code: --------------- <?php function test() { echo "1. Function is: ".__FUNCTION__."\n"; require('b.php'); } test(); ?> ------- File b.php contains: <?php echo "2. Function is: ".__FUNCTION__."\n"; ?> Expected result: ---------------- 1. Function is: test 2. Function is: test Actual result: -------------- 1. Function is: test 2. Function is: