Entry point error when starting a PHP script from the command line

I am trying to schedule a PHP script to run on Windows by writing a batch file. Here is the line that runs the script:

C:\Program Files (x86)\PHP>php.exe -f D:\Web\Sites\scriptPage.php 

This causes the page and page processing to be fine, but it displays this message

"The entry point of the zend_ini_string_ex procedure cannot be located in the php5.dll dynamic link library"

I do not know why this is happening. We do not use Zend at all. I tried this on several different pages, and the same thing happens.

Any help on this would be great.

Thanks!

+6
source share
4 answers

I had this problem when I installed xdebug under Apache and PHP.

In php.ini, find the line that looks like this:

 zend_extension_ts="c:/PHP/ext/php_xdebug-2.1.2-5.2-vc6.dll" 

and comment on it.

If you need to use xdebug, make sure you download the correct version of xdebug for your php installation. I had Apache 2.2.17 with PHP 5.2.17, and I tried to install xdebug for PHP 5.3, which gave me this error message:

* The entry point of the zend_ini_string_ex procedure cannot be located in the php5.dll dynamic link library *

+4
source

I know that some time has passed since this is a solution, but I ran into a problem with the same symptoms. I have Zend Server installed on a Windows server and tried to set up a scheduled task, but it did not start

php_checkuid procedure entry point cannot be located in limk php5.dll dynamic library

The problem was that I previously had a different version of PHP (stand-alone, not with Zend Server), and in the Windows environment variable, the PHPRC variable pointed to this old version of PHP. I changed this variable by pointing to Zend Srever PHP and it worked.

+4
source

I had a separate version of PHP, and then Zend Server was installed. As mentioned in Juris, the PHPRC variable pointed to a separate php5.dll. I changed the way, and all is well.

0
source

For future googlers: uncommenting permission opcache and opcache_cli seem to fix the issue for me.

However, I do not know what the error means

0
source

Source: https://habr.com/ru/post/901624/


All Articles