Not able to install STOMP extension in XAMPP
Solution :
Current stable version of stomp is 2.0 which supports php 7.0,
if we run
pecl install stomp
or
/opt/lampp/bin/pecl install stomp
it installs stomp-2.0 by default which needs php 7.0 so we need to install stomp which supports php 5.x,
Run :
pecl install stomp-1.0.9
or
/opt/lampp/bin/pecl install stomp-1.0.9
Stomp 1.0.9 is for php 5.x versions.
Now you should not get php version error.
Solution :
Current stable version of stomp is 2.0 which supports php 7.0,
if we run
pecl install stomp
or
/opt/lampp/bin/pecl install stomp
it installs stomp-2.0 by default which needs php 7.0 so we need to install stomp which supports php 5.x,
Run :
pecl install stomp-1.0.9
or
/opt/lampp/bin/pecl install stomp-1.0.9
Stomp 1.0.9 is for php 5.x versions.
Now you should not get php version error.