PHP致命错误:类';PhpAmqpLibConnectionAMQPStreamConnection&#


PHP Fatal error: Class 'PhpAmqpLibConnectionAMQPStreamConnection' not found

我用pecl install amqp安装了php-amqp扩展,并将extension=amqp.so添加到php.ini中。但在执行rabbitmq's教程中的代码时,我仍然会遇到错误。怎么了?

[root@VM_67_229_centos rabbit_mq_test]# php phpinfo.php  | grep amqp
PHP Warning:  phpinfo(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected the timezone 'UTC' for now, but please set date.timezone to select your timezone. in /data/roxma/rabbit_mq_test/phpinfo.php on line 2
amqp
amqp.auto_ack => 0 => 0
amqp.channel_max => 256 => 256
amqp.connect_timeout => 0 => 0
amqp.frame_max => 131072 => 131072
amqp.heartbeat => 0 => 0
amqp.host => localhost => localhost
amqp.login => guest => guest
amqp.password => guest => guest
amqp.port => 5672 => 5672
amqp.prefetch_count => 3 => 3
amqp.read_timeout => 0 => 0
amqp.timeout => no value => no value
amqp.vhost => / => /
amqp.write_timeout => 0 => 0
[root@VM_67_229_centos rabbit_mq_test]# php send.php 
PHP Fatal error:  Class 'PhpAmqpLib'Connection'AMQPStreamConnection' not found in /data/roxma/rabbit_mq_test/send.php on line 6

我很困惑,我只是混淆了php的amqplib和php的amqp扩展

AMQPStreamConnection不是php的amqp扩展的一部分:(

相关文章:
  • 没有找到相关文章