John Davidson

c - Where can I find the function "require" in the PHP source?

0 comments
Message:


I have checked the PHP source code and can not find the "require" function.
I only found a piece code relatives to it on main/main.c from line 976


switch (EG(current_execute_data)->opline->extended_value) {
case ZEND_EVAL:
function = "eval";
is_function = 1;
break;
case ZEND_INCLUDE:
function = "include";
is_function = 1;
break;
case ZEND_INCLUDE_ONCE:
function = "include_once";
is_function = 1;
break;
case ZEND_REQUIRE:
function = "require";
is_function = 1;
break;
case ZEND_REQUIRE_ONCE:
function = "require_once";
is_function = 1;
break;
default:
function = "Unknown";
}

Do you know which file defines the "function"?



My Answer:
You can find the function in the code or documentation of the software or programming language you are using. If you are looking for a specific function in a programming language, you can search for it in the official documentation or online resources such as tutorials, forums, and community websites. If you are working with a specific software application, you can check the user manual or help documentation provided by the software developer.

Rate this post

5 of 5 based on 7271 votes

Comments




© 2024 Hayatsk.info - Personal Blogs Platform. All Rights Reserved.
Create blog  |  Privacy Policy  |  Terms & Conditions  |  Contact Us