I fixed it here https://github.com/StartupLabs/php-amqplib/commit/1cd04dfc7958fbcdc97ad0531a075a1394c4ddfe. Just call queue_declare without arguments is not enough IMO because I want queues to be exclusive.