# pecl help version PEAR Version: 1.10.1 PHP Version: 5.6.16 Zend Engine Version: 2.6.0 Running on: Linux iZ62u09t59qZ 3.10.0-229.11.1.el7.x86_64 #1 SMP Thu Aug 6 01:06:18 UTC 2015 x86_64
查看模块版本
# php -dextension=pthreads.so --ri pthreads | grep Version Version => 2.0.10
列出已经安装的扩展
# pecl list Installed packages, channel pecl.php.net: ========================================= Package Version State pthreads 2.0.10 stable
# pecl list pthreads Installed Files For pthreads ============================ Type Install Path doc /srv/php-5.6.16/lib/php/doc/pthreads/examples/Benchmark.php doc /srv/php-5.6.16/lib/php/doc/pthreads/examples/CallAnyFunction.php doc /srv/php-5.6.16/lib/php/doc/pthreads/examples/Fetch.php doc /srv/php-5.6.16/lib/php/doc/pthreads/examples/KeepAliveSession.php doc /srv/php-5.6.16/lib/php/doc/pthreads/examples/Mutexes.php doc /srv/php-5.6.16/lib/php/doc/pthreads/examples/MySQLi.php doc /srv/php-5.6.16/lib/php/doc/pthreads/examples/NewSynchronization.php doc /srv/php-5.6.16/lib/php/doc/pthreads/examples/Notifications.php doc /srv/php-5.6.16/lib/php/doc/pthreads/examples/ObjectsAsParameters.php doc /srv/php-5.6.16/lib/php/doc/pthreads/examples/Objects.php doc /srv/php-5.6.16/lib/php/doc/pthreads/examples/Pooling.php doc /srv/php-5.6.16/lib/php/doc/pthreads/examples/Scope.php doc /srv/php-5.6.16/lib/php/doc/pthreads/examples/SelectiveInheritance.php doc /srv/php-5.6.16/lib/php/doc/pthreads/examples/SharingResources.php doc /srv/php-5.6.16/lib/php/doc/pthreads/examples/SimpleWebRequest.php doc /srv/php-5.6.16/lib/php/doc/pthreads/examples/Singleton.php doc /srv/php-5.6.16/lib/php/doc/pthreads/examples/SocketServer.php doc /srv/php-5.6.16/lib/php/doc/pthreads/examples/SQLWorker.php doc /srv/php-5.6.16/lib/php/doc/pthreads/examples/StackableArray.php doc /srv/php-5.6.16/lib/php/doc/pthreads/examples/Stacking.php doc /srv/php-5.6.16/lib/php/doc/pthreads/examples/stub.php test /srv/php-5.6.16/lib/php/test/pthreads/tests/binding.phpt test /srv/php-5.6.16/lib/php/test/pthreads/tests/callstatic-etc.phpt test /srv/php-5.6.16/lib/php/test/pthreads/tests/chunk.phpt test /srv/php-5.6.16/lib/php/test/pthreads/tests/class-defaults.phpt test /srv/php-5.6.16/lib/php/test/pthreads/tests/closures-as-members.phpt test /srv/php-5.6.16/lib/php/test/pthreads/tests/complex-statics.phpt test /srv/php-5.6.16/lib/php/test/pthreads/tests/complex-statics-set-null.phpt test /srv/php-5.6.16/lib/php/test/pthreads/tests/conditions.phpt test /srv/php-5.6.16/lib/php/test/pthreads/tests/constants.phpt test /srv/php-5.6.16/lib/php/test/pthreads/tests/corrupted-resources.phpt test /srv/php-5.6.16/lib/php/test/pthreads/tests/counting-members.phpt test /srv/php-5.6.16/lib/php/test/pthreads/tests/detach.phpt test /srv/php-5.6.16/lib/php/test/pthreads/tests/doc-comments.phpt test /srv/php-5.6.16/lib/php/test/pthreads/tests/exception-handler.phpt test /srv/php-5.6.16/lib/php/test/pthreads/tests/foreign-private-members.phpt test /srv/php-5.6.16/lib/php/test/pthreads/tests/functions.phpt test /srv/php-5.6.16/lib/php/test/pthreads/tests/global-constants.phpt test /srv/php-5.6.16/lib/php/test/pthreads/tests/globals.phpt test /srv/php-5.6.16/lib/php/test/pthreads/tests/global-voodoo.phpt test /srv/php-5.6.16/lib/php/test/pthreads/tests/gone.phpt test /srv/php-5.6.16/lib/php/test/pthreads/tests/graceful-fatalities.phpt test /srv/php-5.6.16/lib/php/test/pthreads/tests/included-files.phpt test /srv/php-5.6.16/lib/php/test/pthreads/tests/includeme.inc test /srv/php-5.6.16/lib/php/test/pthreads/tests/ini.phpt test /srv/php-5.6.16/lib/php/test/pthreads/tests/interface.phpt test /srv/php-5.6.16/lib/php/test/pthreads/tests/interfaces.phpt test /srv/php-5.6.16/lib/php/test/pthreads/tests/isset-empty-compat.phpt test /srv/php-5.6.16/lib/php/test/pthreads/tests/isset-unset.phpt test /srv/php-5.6.16/lib/php/test/pthreads/tests/killed-info.phpt test /srv/php-5.6.16/lib/php/test/pthreads/tests/legacy-ctor.phpt test /srv/php-5.6.16/lib/php/test/pthreads/tests/merging-members.phpt test /srv/php-5.6.16/lib/php/test/pthreads/tests/merging-range.phpt test /srv/php-5.6.16/lib/php/test/pthreads/tests/mutex.phpt test /srv/php-5.6.16/lib/php/test/pthreads/tests/norefs.phpt test /srv/php-5.6.16/lib/php/test/pthreads/tests/normalize-members.phpt test /srv/php-5.6.16/lib/php/test/pthreads/tests/normal-reads.phpt test /srv/php-5.6.16/lib/php/test/pthreads/tests/null-member-crash.phpt test /srv/php-5.6.16/lib/php/test/pthreads/tests/oomethods.phpt test /srv/php-5.6.16/lib/php/test/pthreads/tests/objects-from-closures.phpt test /srv/php-5.6.16/lib/php/test/pthreads/tests/pools-default.phpt test /srv/php-5.6.16/lib/php/test/pthreads/tests/pools.phpt test /srv/php-5.6.16/lib/php/test/pthreads/tests/runtime-inheritance.phpt test /srv/php-5.6.16/lib/php/test/pthreads/tests/selective-inheritance.phpt test /srv/php-5.6.16/lib/php/test/pthreads/tests/shift-pop.phpt test /srv/php-5.6.16/lib/php/test/pthreads/tests/shutdown-handler.phpt test /srv/php-5.6.16/lib/php/test/pthreads/tests/stack-by-reference-pass.phpt test /srv/php-5.6.16/lib/php/test/pthreads/tests/stack-by-reference.phpt test /srv/php-5.6.16/lib/php/test/pthreads/tests/stateful-fatalities.phpt test /srv/php-5.6.16/lib/php/test/pthreads/tests/staticmethods.phpt test /srv/php-5.6.16/lib/php/test/pthreads/tests/static-resolution.phpt test /srv/php-5.6.16/lib/php/test/pthreads/tests/statics.phpt test /srv/php-5.6.16/lib/php/test/pthreads/tests/statics-thorn-in-other-side.phpt test /srv/php-5.6.16/lib/php/test/pthreads/tests/synchronization.phpt test /srv/php-5.6.16/lib/php/test/pthreads/tests/thorn-in-side.phpt test /srv/php-5.6.16/lib/php/test/pthreads/tests/thread.phpt test /srv/php-5.6.16/lib/php/test/pthreads/tests/trait-aliases.phpt test /srv/php-5.6.16/lib/php/test/pthreads/tests/unset-defaults.phpt test /srv/php-5.6.16/lib/php/test/pthreads/tests/waiting-timeouts.phpt test /srv/php-5.6.16/lib/php/test/pthreads/tests/wait.phpt doc /srv/php-5.6.16/lib/php/doc/pthreads/LICENSE doc /srv/php-5.6.16/lib/php/doc/pthreads/README.md src /srv/php-5.6.16/lib/php/extensions/no-debug-zts-20131226/pthreads.so
# pecl search amqp Retrieving data...0% Matched packages, channel pecl.php.net: ======================================= Package Stable/(Latest) Local amqp 1.6.1 (stable) Communicate with any AMQP compliant server
原文出处:Netkiller 系列 手札
本文作者:陈景峯
转载请与作者联系,同时请务必标明文章原始出处和作者信息及本声明。