관리-도구
편집 파일: bug_62354.phpt
--TEST-- Constructing AMQPQueue with AMQPConnection segfaults --SKIPIF-- <?php if (!extension_loaded("amqp")) print "skip AMQP extension is not loaded"; ?> --FILE-- <?php class Amqptest { public $conn = NULL; }; $o = new Amqptest(); $o->conn = new AMQPConnection(); $funcs = array( 'getHost', 'getLogin', 'getPassword', 'getPort', 'getVHost', 'isConnected' ); foreach ($funcs as $func) { printf("%s => %s\n", $func, var_export($o->conn->$func(), true)); }; ?> --EXPECT-- getHost => 'localhost' getLogin => 'guest' getPassword => 'guest' getPort => 5672 getVHost => '/' isConnected => false