Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added the initial version of the Github version.
- Loading branch information
David Coallier
committed
May 10, 2011
0 parents
commit 0546e5f
Showing
32 changed files
with
3,684 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
SPL_Types | ||
Marcus Boerger, David Coallier |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
dnl $Id: config.m4 250039 2008-01-06 20:40:26Z helly $ | ||
dnl config.m4 for extension SPL Types | ||
|
||
PHP_ARG_ENABLE(spl-types, enable SPL Types suppport, | ||
[ --disable-spl-types Disable SPL Types], yes) | ||
|
||
if test "$PHP_SPL_TYPES" != "no"; then | ||
AC_DEFINE(HAVE_SPL_TYPES, 1, [Whether you want SPL Types support]) | ||
PHP_NEW_EXTENSION(spl_types, php_spl_types.c spl_type.c, $ext_shared) | ||
PHP_ADD_EXTENSION_DEP(spl_types, spl) | ||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
// $Id: config.w32 255800 2008-03-22 17:59:53Z sfox $ | ||
// vim:ft=javascript | ||
|
||
ARG_ENABLE("spl_types", "SPL Types support", "no"); | ||
|
||
if (PHP_SPL_TYPES != "no") { | ||
EXTENSION("spl_types", "php_spl_types.c spl_type.c"); | ||
AC_DEFINE('HAVE_SPL_TYPES', 1); | ||
ADD_EXTENSION_DEP('spl_types', 'spl') | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,113 @@ | ||
<?xml version="1.0" encoding="ISO-8859-1" ?> | ||
<package xmlns="http://pear.php.net/dtd/package-2.0" xmlns:tasks="http://pear.php.net/dtd/tasks-1.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" packagerversion="1.4.7" version="2.0" xsi:schemaLocation="http://pear.php.net/dtd/tasks-1.0 http://pear.php.net/dtd/tasks-1.0.xsd http://pear.php.net/dtd/package-2.0 http://pear.php.net/dtd/package-2.0.xsd"> | ||
<name>SPL_Types</name> | ||
<channel>pecl.php.net</channel> | ||
<summary>Standard PHP Library, Types Addon</summary> | ||
<description>SPL Types is a collection of special typehandling classes.</description> | ||
<lead> | ||
<name>Marcus Boerger</name> | ||
<user>helly</user> | ||
<email>helly@php.net</email> | ||
<active>yes</active> | ||
</lead> | ||
<lead> | ||
<name>David Coallier</name> | ||
<user>davidc</user> | ||
<email>davidc@php.net</email> | ||
<active>yes</active> | ||
</lead> | ||
<date>2011-01-18</date> | ||
<version> | ||
<release>0.3.1</release> | ||
<api>1.0</api> | ||
</version> | ||
<stability> | ||
<release>beta</release> | ||
<api>beta</api> | ||
</stability> | ||
<license>PHP</license> | ||
<notes> | ||
- Support for 5.3.2 | ||
- Bug #17870: Fail to compile - spl_type.c:416: error: duplicate ‘static’ | ||
</notes> | ||
|
||
<contents> | ||
<dir name="/"> | ||
<file role="src" name="config.m4"/> | ||
<file role="src" name="config.w32"/> | ||
<file role="src" name="php_spl_types.c"/> | ||
<file role="src" name="php_spl_types.h"/> | ||
<file role="src" name="spl_type.c"/> | ||
<file role="src" name="spl_type.h"/> | ||
<file role="doc" name="CREDITS"/> | ||
<dir name="tests"> | ||
<file role="test" name="001.phpt"/> | ||
<file role="test" name="002.phpt"/> | ||
<file role="test" name="003.phpt"/> | ||
<file role="test" name="004.phpt"/> | ||
<file role="test" name="005.phpt"/> | ||
<file role="test" name="006.phpt"/> | ||
</dir> | ||
</dir> | ||
</contents> | ||
<dependencies> | ||
<required> | ||
<php> | ||
<min>5.1.0</min> | ||
</php> | ||
<pearinstaller> | ||
<min>1.4.0</min> | ||
</pearinstaller> | ||
</required> | ||
</dependencies> | ||
<providesextension>SPL_Types</providesextension> | ||
<extsrcrelease/> | ||
<changelog> | ||
<release> | ||
<date>2008-01-13</date> | ||
<version> | ||
<release>0.3.0</release> | ||
<api>1.0</api> | ||
</version> | ||
<stability> | ||
<release>stable</release> | ||
<api>stable</api> | ||
</stability> | ||
<license>PHP</license> | ||
<notes> | ||
- Support for 5.3 | ||
- Added new type (SplFloat) | ||
- Support for OSX | ||
</notes> | ||
</release> | ||
<release> | ||
<version> | ||
<release>0.2</release> | ||
<api>1.0</api> | ||
</version> | ||
<stability> | ||
<release>stable</release> | ||
<api>stable</api> | ||
</stability> | ||
<date>2006-05-25</date> | ||
<license>PHP</license> | ||
<notes>- Initial version</notes> | ||
</release> | ||
<release> | ||
<version> | ||
<release>0.1</release> | ||
<api>1.0</api> | ||
</version> | ||
<stability> | ||
<release>stable</release> | ||
<api>stable</api> | ||
</stability> | ||
<date>2006-05-25</date> | ||
<license>PHP</license> | ||
<notes>- Initial version</notes> | ||
</release> | ||
</changelog> | ||
</package> | ||
<!-- | ||
vim:et:ts=1:sw=1 | ||
--> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,88 @@ | ||
/* | ||
+----------------------------------------------------------------------+ | ||
| PHP Version 5 | | ||
+----------------------------------------------------------------------+ | ||
| Copyright (c) 1997-2008 The PHP Group | | ||
+----------------------------------------------------------------------+ | ||
| This source file is subject to version 3.01 of the PHP license, | | ||
| that is bundled with this package in the file LICENSE, and is | | ||
| available through the world-wide-web at the following url: | | ||
| http://www.php.net/license/3_01.txt | | ||
| If you did not receive a copy of the PHP license and are unable to | | ||
| obtain it through the world-wide-web, please send a note to | | ||
| license@php.net so we can mail you a copy immediately. | | ||
+----------------------------------------------------------------------+ | ||
| Authors: Marcus Boerger <helly@php.net> | | ||
+----------------------------------------------------------------------+ | ||
*/ | ||
|
||
/* $Id: php_spl_types.c 256509 2008-03-31 10:18:38Z sfox $ */ | ||
|
||
#ifdef HAVE_CONFIG_H | ||
#include "config.h" | ||
#endif | ||
|
||
#include "php.h" | ||
#include "php_ini.h" | ||
#include "ext/standard/info.h" | ||
#include "php_spl_types.h" | ||
#include "spl_type.h" | ||
|
||
#ifdef COMPILE_DL_SPL_TYPES | ||
ZEND_GET_MODULE(spl_types) | ||
#endif | ||
|
||
/* {{{ spl_functions_none | ||
*/ | ||
zend_function_entry spl_types_functions[] = { | ||
{NULL, NULL, NULL} | ||
}; | ||
/* }}} */ | ||
|
||
PHP_MINIT_FUNCTION(spl_types) /* {{{ */ | ||
{ | ||
PHP_MINIT(spl_type)(INIT_FUNC_ARGS_PASSTHRU); | ||
|
||
return SUCCESS; | ||
} | ||
/* }}} */ | ||
|
||
static zend_module_dep spl_types_deps[] = { | ||
ZEND_MOD_REQUIRED("spl") | ||
{NULL, NULL, NULL} | ||
}; | ||
|
||
zend_module_entry spl_types_module_entry = { /* {{{ */ | ||
STANDARD_MODULE_HEADER_EX, NULL, | ||
spl_types_deps, | ||
"SPL_Types", | ||
spl_types_functions, | ||
PHP_MINIT(spl_types), | ||
NULL, | ||
NULL, | ||
NULL, | ||
PHP_MINFO(spl_types), | ||
PHP_SPL_TYPES_VERSION, | ||
STANDARD_MODULE_PROPERTIES | ||
}; | ||
/* }}} */ | ||
|
||
/* {{{ PHP_MINFO(spl_types) | ||
*/ | ||
PHP_MINFO_FUNCTION(spl_types) | ||
{ | ||
php_info_print_table_start(); | ||
php_info_print_table_header(2, "SPL Types support", "enabled"); | ||
php_info_print_table_row(2, "Version", PHP_SPL_TYPES_VERSION); | ||
php_info_print_table_end(); | ||
} | ||
/* }}} */ | ||
|
||
/* | ||
* Local variables: | ||
* tab-width: 4 | ||
* c-basic-offset: 4 | ||
* End: | ||
* vim600: fdm=marker | ||
* vim: noet sw=4 ts=4 | ||
*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
/* | ||
+----------------------------------------------------------------------+ | ||
| PHP Version 5 | | ||
+----------------------------------------------------------------------+ | ||
| Copyright (c) 1997-2008 The PHP Group | | ||
+----------------------------------------------------------------------+ | ||
| This source file is subject to version 3.01 of the PHP license, | | ||
| that is bundled with this package in the file LICENSE, and is | | ||
| available through the world-wide-web at the following url: | | ||
| http://www.php.net/license/3_01.txt | | ||
| If you did not receive a copy of the PHP license and are unable to | | ||
| obtain it through the world-wide-web, please send a note to | | ||
| license@php.net so we can mail you a copy immediately. | | ||
+----------------------------------------------------------------------+ | ||
| Authors: Marcus Boerger <helly@php.net> | | ||
+----------------------------------------------------------------------+ | ||
*/ | ||
|
||
#ifndef PHP_SPL_TYPES_H | ||
#define PHP_SPL_TYPES_H | ||
|
||
#include "php.h" | ||
#include <stdarg.h> | ||
|
||
extern zend_module_entry spl_types_module_entry; | ||
#define phpext_spl_types_ptr &spl_types_module_entry | ||
|
||
#define PHP_SPL_TYPES_VERSION "0.4.0-dev" | ||
|
||
PHP_MINFO_FUNCTION(spl_types); | ||
|
||
#ifdef PHP_WIN32 | ||
# ifdef SPL_TYPES_EXPORTS | ||
# define SPL_TYPES_API __declspec(dllexport) | ||
# elif defined(COMPILE_DL_SPL) | ||
# define SPL_TYPES_API __declspec(dllimport) | ||
# else | ||
# define SPL_TYPES_API /* nothing */ | ||
# endif | ||
#else | ||
# define SPL_TYPES_API | ||
#endif | ||
|
||
#if defined(PHP_WIN32) && !defined(COMPILE_DL_SPL_TYPES) | ||
#undef phpext_spl_types | ||
#define phpext_spl_types NULL | ||
#endif | ||
|
||
#endif /* PHP_SPL_TYPES_H */ | ||
|
||
/* | ||
* Local Variables: | ||
* c-basic-offset: 4 | ||
* tab-width: 4 | ||
* End: | ||
* vim600: fdm=marker | ||
* vim: noet sw=4 ts=4 | ||
*/ |
Oops, something went wrong.