第5章PECL::ThePHPExtensionCommunityLibrary

玄學醬發表於2017-12-27

5.1. pecl 命令

5.1.1. version

# 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			
			

5.1.2. list

5.1.2.1. 檢視已經安裝的擴充套件

列出已經安裝的擴充套件

# pecl list
Installed packages, channel pecl.php.net:
=========================================
Package  Version State
pthreads 2.0.10  stable
				

5.1.2.2. 列出擴充套件檔案列表

# 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

				

5.1.3. install

安裝擴充套件

# pecl install pthreads			
			

5.1.4. search

# 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 系列 手札
本文作者:陳景峰
轉載請與作者聯絡,同時請務必標明文章原始出處和作者資訊及本宣告。


相關文章