![]() Gabor Javorsky actually wrote a great article which includes how to ensure XDebug gets loaded correctly and it worked perfectly for me. Of course, $ php -ini showed errors, so I had to configure PHP properly. Once I confirmed that there was already a symlink there, I simply removed it:Īfter I did that, I ran the install again and it worked smoothly. If you have any doubt about your PHP version, it should be in the pecl installation log and listed right alongside the mkdir() errors. This was because there was already a pecl symlink in Homebrew's PHP directory.įirst I wanted to verify that, so I ran $ ls -al /usr/local/Cellar/php/ Since I installed the latest PHP version using Homebrew, the XDebug installation actually threw two mkdir() errors. This is a XDebug bug for PHP 7.3.x so you'll need to install XDebug 2.7.0beta1: Hannibal is correct, but his answer is a bit terse so I want to expand on it a bit. The endless documents I've read either seem to be for PC or for PHP 5. So the first error I see in the "make" command is "> error: too few arguments to function call, expected 6, have 5". > # define PHPAPI _attribute_ ((visibility("default"))) > /Applications/XAMPP/xamppfiles/include/php/main/php.h:72:18: note: > zend_string *samesite, int url_encode) ^ > zend_string *path, zend_string *domain, int secure, int httponly, ![]() > php_setcookie(zend_string *name, zend_string *value, time_t expires, > note: 'php_setcookie' declared here PHPAPI int > php_setcookie(name_s, value_s, expires, path_s, domain_s, secure, url_encode, httponly) > error: too few arguments to function call, expected 9, have 8 > # define ZEND_API _attribute_ ((visibility("default"))) > *zend_get_zval_ptr(const zend_op *opline, int op_type, const znode_op *node, const zend_execute_data *execute_data, zend_free_op *should_free, int type) ^ /Applications/XAMPP/xamppfiles/include/php/main/php_config.h:9:19: > note: 'zend_get_zval_ptr' declared here ZEND_API zval > /Applications/XAMPP/xamppfiles/include/php/Zend/zend_execute.h:330:1: > return zend_get_zval_ptr(op_type, node, zdata, &should_free, BP_VAR_R) **> error: too few arguments to function call, expected 6, have 5** libs/xdebug_compat.o /Applications/XAMPP/xamppfiles/xdebug-2.6.1/xdebug_compat.c:56:71: > -I/Applications/XAMPP/xamppfiles/xdebug-2.6.1 -DPHP_ATOM_INC -I/Applications/XAMPP/xamppfiles/xdebug-2.6.1/include -I/Applications/XAMPP/xamppfiles/xdebug-2.6.1/main -I/Applications/XAMPP/xamppfiles/xdebug-2.6.1 -I/Applications/XAMPP/xamppfiles/include/php -I/Applications/XAMPP/xamppfiles/include/php/main -I/Applications/XAMPP/xamppfiles/include/php/TSRM -I/Applications/XAMPP/xamppfiles/include/php/Zend -I/Applications/XAMPP/xamppfiles/include/php/ext -I/Applications/XAMPP/xamppfiles/include/php/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c /Applications/XAMPP/xamppfiles/xdebug-2.6.1/xdebug_compat.c I/Applications/XAMPP/xamppfiles/xdebug-2.6.1 -DPHP_ATOM_INC -I/Applications/XAMPP/xamppfiles/xdebug-2.6.1/include -I/Applications/XAMPP/xamppfiles/xdebug-2.6.1/main -I/Applications/XAMPP/xamppfiles/xdebug-2.6.1 -I/Applications/XAMPP/xamppfiles/include/php -I/Applications/XAMPP/xamppfiles/include/php/main -I/Applications/XAMPP/xamppfiles/include/php/TSRM -I/Applications/XAMPP/xamppfiles/include/php/Zend -I/Applications/XAMPP/xamppfiles/include/php/ext -I/Applications/XAMPP/xamppfiles/include/php/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c /Applications/XAMPP/xamppfiles/xdebug-2.6.1/xdebug_compat.c -o > /Applications/XAMPP/xamppfiles/xdebug-2.6.1/libtool -mode=compile cc Here is the output I got: > Terrys-MacBook-Pro:xdebug-2.6.1 terry$ make /bin/sh Everything seemed to run well with no perceived errors.īut then I got errors when I ran the "make" command. I changed to the /Applications/XAMPP/xamppfiles/xdebug-2.6.1 folder and ran phpize, then I ran. I changed my $PATH variable to have /Applications/XAMPP/xamppfiles/bin be the first path searched, so that the correct phpize would run. I did have to use homebrew to install autoconf first.īut then I was able to download and unpack the xdebug-2.6.1.tgz in the /Applications/XAMPP/xamppfiles/ folder. ![]() ![]() I have taken a copy of the PHPInfo and put it in the wizard at: The local Apache web server works and the PHPInfo() I get from the dashboard shows all the correct information for the php.ini file being the /Applications/XAMPP/xamppfiles/etc/php.ini. I have a Mac with a fresh OSX Mojave install. ![]()
0 Comments
Leave a Reply. |