cvs: php4 /ext/standard/ basic_functions.c basic_functions.h php_noavail.c php_noavail.h
[email protected] ("Zeev Suraski")
| Newsgroups | php.version4 |
|---|---|
| Message-ID | <cvszeev959616818@cvsserver> |
zeev Mon May 29 09:13:38 2000 EDT
Removed files:
/php4/ext/standard php_noavail.c php_noavail.h
Modified files:
/php4/ext/standard basic_functions.c basic_functions.h
Log:
There's really no need for an entire file for a one line function...
Index: php4/ext/standard/basic_functions.c
diff -u php4/ext/standard/basic_functions.c:1.198 php4/ext/standard/basic_functions.c:1.199
--- php4/ext/standard/basic_functions.c:1.198 Mon May 29 08:38:32 2000
+++ php4/ext/standard/basic_functions.c Mon May 29 09:13:38 2000
@@ -327,6 +327,8 @@
PHP_FE(extension_loaded, NULL)
PHP_FE(get_extension_funcs, NULL)
+ PHP_FE(warn_not_available, NULL)
+
PHP_FE(parse_ini_file, NULL)
/* functions from reg.c */
@@ -2006,6 +2008,15 @@
}
}
/* }}} */
+
+
+
+/* This function is not directly accessible to end users */
+PHP_FUNCTION(warn_not_available)
+{
+ php_error(E_WARNING, "%s() is not supported in this PHP build", get_active_function_name());
+ RETURN_FALSE;
+}
/*
Index: php4/ext/standard/basic_functions.h
diff -u php4/ext/standard/basic_functions.h:1.52 php4/ext/standard/basic_functions.h:1.53
--- php4/ext/standard/basic_functions.h:1.52 Sun May 28 09:19:45 2000
+++ php4/ext/standard/basic_functions.h Mon May 29 09:13:38 2000
@@ -29,7 +29,7 @@
*/
-/* $Id: basic_functions.h,v 1.52 2000/05/28 16:19:45 sas Exp $ */
+/* $Id: basic_functions.h,v 1.53 2000/05/29 16:13:38 zeev Exp $ */
#ifndef _BASIC_FUNCTIONS_H
#define _BASIC_FUNCTIONS_H
@@ -111,6 +111,8 @@
PHP_FUNCTION(get_loaded_extensions);
PHP_FUNCTION(extension_loaded);
PHP_FUNCTION(get_extension_funcs);
+
+PHP_FUNCTION(warn_not_available);
/* From the INI parser */
PHP_FUNCTION(parse_ini_file);