Assume that you installed PHP with yum in CentOS
·Which files do I go to see when I run the PHP program?
·Binary file (usr/bin/php?)?
·In which file is the PHP standard function definition defined?
· Does it exist as a single file while being compiled?
add
·What do you mean by the following command results below?
·Isn't it an alias if the result doesn't show alias as shown in This link ?
·Or is there a possibility of alias even if it is not clearly stated?
$which-aphp
/opt/remi/php70/root/usr/bin/php
/usr/bin/php
$type-aphp
php is /opt/remi/php70/root/usr/bin/php
phpis/usr/bin/php
Answer to 1, 2)
You can locate the PHP by entering the whereis command.
In my environment
[vagrant@local~]$whereis php
php: /usr/bin/php/usr/lib64/php/etc/php.d/etc/php.ini/usr/include/php/usr/share/php/usr/share/man1/php.1.gz
It looks like the above.It may be a symbolic link, but you can guess it's around /usr/bin/php, /usr/lib64/php.
Typically, /usr/bin has a path, so you can run php
3), 4)
A standard function is defined in a built-in, or binary.
For example, if it's a code story, but if it's an array series,
https://github.com/php/php-src/blob/6053987bc27e8dede37f437193a5cad448f99bce/ext/standard/php_array.h
Defined above.
© 2024 OneMinuteCode. All rights reserved.