Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Entry Point Error when running PHP script from 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 runs the page and the results of the page process fine but it is poping up this message

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

I am not sure why this is happening. We are not using Zend at all on this. I have tried this on a few different pages and the same thing happens.

Any help on this would be great.

Thanks!

like image 723
Sequenzia Avatar asked Nov 16 '11 15:11

Sequenzia


2 Answers

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

In your php.ini find a line that looks like this:

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

and comment it out.

If you do need to use xdebug make sure you have downloaded the right version of xdebug for your php installation. I had Apache 2.2.17 with PHP 5.2.17 and I was trying to install xdebug for PHP 5.3 which gave me extactly this error message:

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

like image 189
Artur Kędzior Avatar answered Nov 06 '22 18:11

Artur Kędzior


I know it's been a while since this is solved but I run into problem with the same symptoms. I have Zend Server installed on a Windows server and was trying to configure scheduled task but it was not launching

the procedure entry point php_checkuid could not be located in the dynamic limk library php5.dll

Problem was that previously I had another PHP version (standalone, not with Zend Server) installed and in Windows Environment Variables PHPRC variable was pointing to that old version of PHP. I changed this variable so it pointed to Zend Srever's PHP and everything worked.

like image 36
Juris Vaiders Avatar answered Nov 06 '22 19:11

Juris Vaiders