Segmentation fault with Homebrew php56-xdebug - php

I've been running PHP 5.4 with xdebug on my Mac via Homebrew for a while, and yesterday I tried to upgrade to 5.6 with xdebug using the php56 and php56-xdebug formulas. I was able to get php56 working fine, but as soon as I install the php56-xdebug formula, Apache won't load, and I get a segmentation fault. If I remove php56-xdebug, everything works fine again. My php error log was showing that xdebug.so was trying to load twice, but I uninstalled everything php 5.4 (php54, php54-xdebug, etc.), so that went away. But for some reason, I can't get rid of my "Segmentation fault (11)" error message. I've triple checked my apache config settings and my xdebug.ini, and they are correct, as they always have been. I'm also not getting any errors in my PHP error log.
I've tried uninstalling php 5.6 itself, as well as the xdebug formula, all to no avail. Short of re-installing my OS, what do I need to do to get xdebug working?
Thanks.
Update: Per this issue, I installed php56-xdebug using --build-from-source, but the result is the same.

It looks like the problem was issues in the 2.3.x branch of xdebug. I ended up manually compiling xdebug 2.2.7 and got it to work that way.

Related

PhpStorm: Failed to parse validation script output PHP version not installed Debugger not Installed

I'm on Windows 10 x64 and today I wanted to install a new version of XAMPP. What I did was to uninstall my current one and then remove PHP from the environment variables. After that, I downloaded XAMPP as usual and installed it along with Xdebug, the same way that has worked for me during the past two years.
When I opened PhpStorm and went to set the CLI interpreter I noticed that it said "PHP version: Not installed" and "Debugger: Not installed" (although I have the PHP executable set to C:\xampp\php\php.exe).
What I did after that was to try reinstalling PhpStorm, both with my current settings and then other settings. It didn't help.
Upon checking the PHP version in the command line it does say that I have the new version installed. I am also able to do a simple echo 'hello'; and have it printed in the browser on my localhost. I'm not sure what to make of that. However, debugging inside PhpStorm does not work despite seeing on my PHPinfo that Xdebug is installed.
After googling around I don't see much that is relevant to what I'm doing. It seems like everyone who faces this issue is using a remote interpreter and a mac.
Does someone know what to do about it with my settings or have any suggestions on how to get this solved?
Setup:
Windows 10 Version 1903 for 64
xampp-windows-x64-7.4.1-0-VC15-installer
PhpStorm 2019.3.1
PHP 7.4.1
Zend Engine v3.4.0, with Xdebug v2.9.0
Error message:
Failed to parse validation script output
In my case Comodo Internet Security (CIS) was adding php.exe to blocked applications.
Unblocking it fixed the issue.
My config:
PHP 7.4.5 64 NTS
Windows 10 1909
PhpStorm 2020.1

Why is composer install giving an errror after mac catalina update?

So I have just cloned a Contao based project on my Mac, and as I am setting it up i ran ´composer install´, before I updated to macOSX Catalina i never have this issue but now I am getting the following error, any ideas on fixing this? I am lost!
As the error message already says, the PHP intl extension is not enabled for the PHP CLI environment that you used.
If you used the system's PHP and Apache packages, your previous configuration might have been deleted/overridden by the MacOS update. This is known to happen.
I had the same problem and i solve it by reinstalling the command line tools
open your Terminal
write the command below
$ xcode-select --install
so how i solve it

phpmyadmin only showing source code

I am trying to develop my own website on a ubuntu 16.04 machine with php7.
I have got everything working including php7, apache2, mysql but when I got to the installation of phpmyadmin, I hit a roadbump and was doing alot of googling and tried tons of suggestions I found but I still failed to get the installation complete.
After I did apt-get install phpmyadmin, the package got installed but when I went to 127.0.0.1/phpmyadmin/ I only see the source code.
I made sure I had all the extensions I needed and I also made sure php is running correctly on apache by doing a classic php.info()
P.S. I am installing from scratch and not doing and upgrade from an old system.
Many thanks!
source code for phpmyadmin

apache runs on a different version then shown and shows/uses a wrong version of php

I am having a strange problem with PHP on a raspberry Pi lately.
It occurred as i tried to run the "password_hash" function and wonderd why it didn't work. The script didn't even throw an error or something, it just didn't continue.
The specs first:
PC = Raspberry Pi I
OS = Raspbian
Installed Apache Version = 2.4.12
Installed PHP Version = 5.6.15
All these specs are coming from the console.
So it turned out, that the PHP version used by apache is different from the one i got from the console. Installed is PHP 5.6.15 but used is (acording to phpinfo() ) PHP 5.4.45. The php.ini is correctly located.
The more weird part is, that the apache version (also acording to phpinfo() ) seems to be Apache/2.2.22 (Debian) and i can't figure out why.
So intuitive i removed and reinstalled php and apache, checked the versions in the console, where it was correct (again), run another script with only phpinfo() and got the same sobering results. I also tried to install it manualy. And to get this out of the way, i did not upgrade the PHP version, it was a clean install on a clean, recently installed OS.
Had any of you ever run into something similar and knows a way to fixed it?

EasyPHP 5.3.9 - can't run php from windows console

I decided to upgrade my easyphp server, and after installing found that I can't run php from console anymore, for some reason when tried to install pear, I get an error box. The program can't start because php5.dll is missing from your computer. Try reinstalling the program to fix this problem.
Try uninstalling easyphp completely and delete all remaning files after uninstalling, sometimes they don't get deleted all, so you have to do it manually, then reinstall it and see if that works

Categories