Test the PHP Extension Class Library Added
Everything is normal when using the browser to test the method.
However, when using PHP xx.php under Linux to execute, an error is reported.
As follows
[root@node234 test]# php size.php
PHP Fatal error: Call to undefined function size() in /var/www/html/test/size.php on line 3
Another possibility is that your cli and cgi php are not loaded with the same php.ini file. you only loaded your extensions to cgi