php module

最後更新: 2017-10-10

介紹

  • sysvsem, sysvshm , sysvmsg
  • GMP
  • recode

sysvsem, sysvshm , sysvmsg

 

Shared memory is the fastest form of IPC.
Synchronizing with the semaphore is necessary,
where locking and unlocking helps prevent corruption.

sysvsem (System V semaphore)

--enable-sysvsem

sysvshm (System V shared memory)

--enable-sysvshm

# A default size of the shared memory segment. (byte)

php.ini

sysvshm.init_mem 10000

sysvmsg (System V messages)

--enable-sysvmsg

 


GMP

 

These functions allow for arbitrary-length integers to be worked with using the GNU MP library.

 


recode

 

The GNU Recode library converts files between various coded character sets and surface encodings.

When this cannot be achieved exactly, it may get rid of the offending characters or fall back on approximations.

The library recognises or produces nearly 150 different character sets and is able to convert files between almost any pair.

 


pecl-igbinary

Igbinary is a drop in replacement for the standard php serializer.

Instead of time and space consuming textual representation,

igbinary stores php data structures in a compact binary form.

Savings are significant when using memcached or similar memory based storages for serialized data.

 

pecl-jsonc

Support for JSON (JavaScript Object Notation) serialization.

This is a drop-in alternative to PHP standard json extension.

 


pecl-pthreads

A compatible Threading API for PHP

 


pecl-oauth

 

OAuth is an authorization protocol built on top of HTTP

which allows applications to securely access data without having to store usernames and passwords.

Requirements: ext/hash (now a part of PHP core)