title: Class 'Stomp' not found
body: <p>I am using PHP 7.0 with Apache2 in Ubuntu trusty.</p>
  <p>I have installed the STOMP library doing</p>
  <pre><code>wget http://pecl.php.net/get/stomp-2.0.0.tgz
  pear install stomp-2.0.0.tgz
  </code></pre>
  <p>And adding extension=stomp.so to my php.ini.</p>
  <p>With phpinfo() I can see the Stomp installed correctly:</p>
  <p><a href="https://i.stack.imgur.com/hisZY.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/hisZY.png" alt="enter image description here" /></a></p>
  <p>But I have this script:</p>
  <pre><code>&lt;?php
  
  $foo = new Stomp('tcp://localhost:61613');
  </code></pre>
  <p>And When I run this error is shown:</p>
  <blockquote>
  <p>PHP Fatal error:  Uncaught Error: Class 'Stomp' not found in
  /vagrant/www/web/activemq-server.php:3 Stack trace:</p>
  <h1>0 {main}   thrown in /vagrant/www/web/activemq-server.php on line 3</h1>
  </blockquote>
  <p><strong>UPDATE:</strong></p>
  <p><strong>This problem happens only when the script is run from console</strong>. If the script is run from browser then it works correctly.</p>