php basic modules

最後更新: 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)

 

Recode library

converts files between various coded character sets and surface encodings.

wddx

WDDX is an XML-based technology that enables the exchange of complex data between Web programming languages, creating what some refer to as 'Web syndicate networks'

http://php.net/manual/en/intro.wddx.php

SPL

The Standard PHP Library (SPL) is a collection of interfaces and classes that are meant to solve common problems.

No external libraries are needed to build this extension and it is available and compiled by default in PHP 5.0.0.

http://php.net/manual/en/intro.spl.php

sqlite

 

shmop

--enable-shmop

Shmop is an easy to use set of functions that allows PHP
to read, write, create and delete Unix shared memory segments.

http://php.net/manual/en/intro.shmop.php

calendar

--enable-calendar

http://php.net/manual/en/intro.calendar.php

Introduction

The calendar extension presents a series of functions to simplify converting between different calendar formats. The intermediary or standard it is based on is the Julian Day Count. The Julian Day Count is a count of days starting from January 1st, 4713 B.C. To convert between calendar systems, you must first convert to Julian Day Count, then to the calendar system of your choice. Julian Day Count is very different from the Julian Calendar! For more information on Julian Day Count, visit » http://www.hermetic.ch/cal_stud/jdn.htm. For more information on calendar systems visit » http://www.fourmilab.ch/documents/calendar/. Excerpts from this page are included in these instructions, and are in quotes.

gd

Supported image formats in GD (--with-gd)

xpm

--with-xpm-dir=DIR      GD: Set the path to libXpm install prefix

--with-jpeg-dir
--with-png-dir

 

 

 

 

 

 

Creative Commons license icon Creative Commons license icon