I'm having an issue with PHP Code Sniffer plugin for Zend studio. I set up my php Executable to be my version of Zend 5.3.14. The PEAR library is also pointed to the executable in my zend directory. When I run code sniffer on a file it creates a new php.ini file in /tmp/zend_debug/session###########/php.ini. I get the following type of error
PHP Notice: Use of undefined constant T_CALLABLE - assumed 'T_CALLABLE'
If I replace the php.ini in that path with a copy of my current php.ini I can run Code Sniffer in Zend Studio. Anyone have any idea how I can stop this from being generated. Or maybe to change the include path that's being generated?
Thanks in advance!
I don't have any knowledge of Code Sniffer or Zend Studio. But T_CALLABLE did not exist prior to PHP 5.4. I suspect you are running php 5.3 and you plugin assumes php 5.4.
Related
When attempting to run 'create project' in Zend from command line using zf I get the following error:
In order to run the zf command, you need to ensure that Zend Framework
is inside your include_path
I'm using XAMPP and my php ini located at: C:\xampp\php\php.ini reads:
include_path = ".;C:\xampp\php\PEAR;C:\ZendFramework-2.1.1\library"
I'm running Windows 7 and my environment variables read:
C:\xampp\php;C:\ZendFramework-2.1.1\library;C:\ZendFramework-2.1.1\bin
So even though I'm referencing the framework in the php.ini it is still not recognized. Please help
Looks like a ZF1 vs. ZF2 issue.
The ZF2 command line tool ZFTool is a distinctly different creature from the ZF1 version.
Looks like you are trying to use a ZF1 tool invocation on a ZF2 installation.
I am getting this error thrown every time I run the PHP CLI and need some help fixing it. This occurs either from the native PHP CLI or when I run the CLI using Eclipse PDT.
The message seems to have no effect on operation other than as an irritant.
I am using Zend Server ZSCE 5.6.0 with its WAMP. This is on Windows 7 Ultimate 64bit. I am also using Eclipse PDT editor 3.0.2.
My searches have found no fix.
I suggest you check if you are actually loading zend debugger twice in php.ini if you haven't already done it. :) (Check which php.ini file is used with "php -i")
More specifically, I'm trying to make a PHP extension for WampServer, which I'm using to test PHP scripts on my PC. I know that a PHP extension requires a config.m4 file, and some C/C++ code to be created within PHP. How would I get these .c/.cpp and .m4 files into a .dll that's required to make a PHP extension?
Take a look at this : Getting Started with PHP Extension-Development
Generally you need C compiler (with or without IDE), I recommend MS Visual C++ Express.
Then follow this tutorial: http://blog.slickedit.com/2007/09/creating-a-php-5-extension-with-visual-c-2005/
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!
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*
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.
I had a standalone version of PHP installed and then installed Zend Server. Like Juris mentioned, the PHPRC variable was pointing to the stand alone php5.dll. I changed the path and all is good.
For future googlers: uncommenting the opcache enable and opcache_cli seemed to fix the problem for me.
That being said, I don't know what the error means
I want to use Eclipse IDE for PHP. I'm new to Eclipse and also to PHP. I installed Eclipse, PHP and Apache. For Eclipse i installed Zend debugger also. I configured Eclipse and set the paths to PHP exe. But when i try to run small PHP code as a script it shows a error message as bellow.
Error launching 'test'
The session could not be started.
In order to generate debug information, please make sure that the debugger is properly configured as a php.ini directive.
What shall i do for this. Please tell me how to configure Eclipse.
Thanks.
In Debug Configuration -> Installed PHP -> Add (or Edit)
Make sure that the Debugger is set correctly (in my case it should be Xdebug)