Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- diff --git a/sapi/null/CREDITS b/sapi/null/CREDITS
- new file mode 100644
- index 0000000..47ab44a
- --- /dev/null
- +++ b/sapi/null/CREDITS
- @@ -0,0 +1,4 @@
- +The null SAPI was created by copying the embed SAPI, renaming it, and
- +removing everything that didn't break the build. As such, Edin Kadribasic
- +deserves the credit.
- +
- diff --git a/sapi/null/config.m4 b/sapi/null/config.m4
- new file mode 100644
- index 0000000..ed96a15
- --- /dev/null
- +++ b/sapi/null/config.m4
- @@ -0,0 +1,29 @@
- +dnl
- +dnl $Id$
- +dnl
- +
- +PHP_ARG_ENABLE(null,,
- +[ --enable-null EXPERIMENTAL: Enable building of null SAPI shared
- + library], no, no)
- +
- +AC_MSG_CHECKING([for null SAPI library support])
- +
- +if test "$PHP_NULL" != "no"; then
- + case "$PHP_NULL" in
- + yes|shared)
- + PHP_NULL_TYPE=shared
- + INSTALL_IT="\$(mkinstalldirs) \$(INSTALL_ROOT)\$(prefix)/lib; \$(INSTALL) -m 0755 $SAPI_SHARED \$(INSTALL_ROOT)\$(prefix)/lib"
- + ;;
- + *)
- + PHP_NULL_TYPE=no
- + ;;
- + esac
- + if test "$PHP_NULL_TYPE" != "no"; then
- + PHP_SELECT_SAPI(null, $PHP_NULL_TYPE, php_null.c)
- + PHP_INSTALL_HEADERS([sapi/null/php_null.h])
- + fi
- + AC_MSG_RESULT([$PHP_NULL_TYPE])
- +else
- + AC_MSG_RESULT(no)
- +fi
- +
- diff --git a/sapi/null/php_null.c b/sapi/null/php_null.c
- new file mode 100644
- index 0000000..b0265e7
- --- /dev/null
- +++ b/sapi/null/php_null.c
- @@ -0,0 +1,22 @@
- +/*
- + +----------------------------------------------------------------------+
- + | PHP Version 5 |
- + +----------------------------------------------------------------------+
- + | Copyright (c) 1997-2013 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 |
- + | [email protected] so we can mail you a copy immediately. |
- + +----------------------------------------------------------------------+
- +*/
- +/* $Id$ */
- +
- +/*
- +** "Perfection is achieved, not when there is nothing left to add, but
- +** when there is nothing left to take away." - Antoine de Saint-Exupery
- +*/
- +
- diff --git a/sapi/null/php_null.h b/sapi/null/php_null.h
- new file mode 100644
- index 0000000..78100a6
- --- /dev/null
- +++ b/sapi/null/php_null.h
- @@ -0,0 +1,46 @@
- +/*
- + +----------------------------------------------------------------------+
- + | PHP Version 5 |
- + +----------------------------------------------------------------------+
- + | Copyright (c) 1997-2013 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 |
- + | [email protected] so we can mail you a copy immediately. |
- + +----------------------------------------------------------------------+
- +*/
- +/* $Id$ */
- +
- +#ifndef _PHP_NULL_H_
- +#define _PHP_NULL_H_
- +
- +#include <main/php.h>
- +#include <main/SAPI.h>
- +#include <main/php_main.h>
- +#include <main/php_variables.h>
- +#include <main/php_ini.h>
- +#include <zend_ini.h>
- +
- +#ifdef ZTS
- +#define PTSRMLS_D void ****ptsrm_ls
- +#define PTSRMLS_DC , PTSRMLS_D
- +#define PTSRMLS_C &tsrm_ls
- +#define PTSRMLS_CC , PTSRMLS_C
- +
- +#else
- +#define PTSRMLS_D
- +#define PTSRMLS_DC
- +#define PTSRMLS_C
- +#define PTSRMLS_CC
- +
- +#endif
- +
- +/*
- +** From small beginnings come great things.
- +*/
- +
- +#endif /* _PHP_NULL_H_ */
Advertisement
Add Comment
Please, Sign In to add comment