summaryrefslogtreecommitdiff
path: root/ext/standard/php_noavail.c
diff options
context:
space:
mode:
authorHartmut Holzgraefe <hholzgra@php.net>2000-05-27 19:27:20 +0000
committerHartmut Holzgraefe <hholzgra@php.net>2000-05-27 19:27:20 +0000
commitfb39eda0d80f0b45cbdf17c9b898298f90f4812b (patch)
treeab06cab4b0a4e2e433daad1be9fd5f3aa28973aa /ext/standard/php_noavail.c
parentafccb5861212d0931fcf61ef8f4e4141700025f2 (diff)
downloadphp-git-fb39eda0d80f0b45cbdf17c9b898298f90f4812b.tar.gz
a second (cleaner?) try on warnings about unsupported functions
Diffstat (limited to 'ext/standard/php_noavail.c')
-rw-r--r--ext/standard/php_noavail.c27
1 files changed, 27 insertions, 0 deletions
diff --git a/ext/standard/php_noavail.c b/ext/standard/php_noavail.c
new file mode 100644
index 0000000000..7a53d3f0e1
--- /dev/null
+++ b/ext/standard/php_noavail.c
@@ -0,0 +1,27 @@
+/*
+ +----------------------------------------------------------------------+
+ | PHP version 4.0 |
+ +----------------------------------------------------------------------+
+ | Copyright (c) 1997, 1998, 1999, 2000 The PHP Group |
+ +----------------------------------------------------------------------+
+ | This source file is subject to version 2.02 of the PHP license, |
+ | that is bundled with this package in the file LICENSE, and is |
+ | available at through the world-wide-web at |
+ | http://www.php.net/license/2_02.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: Hartmut Holzgraefe <hartmut@six.de> |
+ +----------------------------------------------------------------------+
+*/
+
+#include "php_noavail.h"
+
+PHP_FUNCTION(warn_not_available)
+{
+php_error(E_WARNING,
+ "%s() is not supported in this PHP build",
+ get_active_function_name());
+ RETURN_FALSE;
+}