wez Tue Apr 17 10:08:04 2001 EDT
Modified files:
/php4/ext/standard basic_functions.c file.c
Log:
Discovered warn_not_available and used it.
Index: php4/ext/standard/basic_functions.c
diff -u php4/ext/standard/basic_functions.c:1.324
php4/ext/standard/basic_functions.c:1.325
--- php4/ext/standard/basic_functions.c:1.324 Tue Apr 17 10:06:06 2001
+++ php4/ext/standard/basic_functions.c Tue Apr 17 10:08:03 2001
@@ -17,7 +17,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: basic_functions.c,v 1.324 2001/04/17 17:06:06 wez Exp $ */
+/* $Id: basic_functions.c,v 1.325 2001/04/17 17:08:03 wez Exp $ */
#include "php.h"
#include "php_main.h"
@@ -432,6 +432,8 @@
PHP_FE(socket_set_blocking, NULL)
#if HAVE_PHP_STREAM
PHP_FE(fopenstream, NULL)
+#else
+ PHP_FALIAS(fopenstream, warn_not_available, NULL)
#endif
#if HAVE_SYS_TIME_H
PHP_FE(socket_set_timeout, NULL)
Index: php4/ext/standard/file.c
diff -u php4/ext/standard/file.c:1.153 php4/ext/standard/file.c:1.154
--- php4/ext/standard/file.c:1.153 Tue Apr 17 10:06:06 2001
+++ php4/ext/standard/file.c Tue Apr 17 10:08:03 2001
@@ -20,7 +20,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: file.c,v 1.153 2001/04/17 17:06:06 wez Exp $ */
+/* $Id: file.c,v 1.154 2001/04/17 17:08:03 wez Exp $ */
/* Synced with php 3.0 revision 1.218 1999-06-16 [ssb] */
@@ -576,9 +576,9 @@
}
/* }}} */
+#if HAVE_PHP_STREAM
PHP_FUNCTION(fopenstream)
{
-#if HAVE_PHP_STREAM
zval ** zfilename, ** zmode;
php_stream * stream;
@@ -595,11 +595,8 @@
RETURN_FALSE;
}
ZEND_REGISTER_RESOURCE(return_value, stream, le_stream);
-#else
- zend_error(E_ERROR, "%s(): no stream support in this PHP build",
get_active_function_name());
- RETURN_FALSE;
-#endif
}
+#endif
/* {{{ proto int fopen(string filename, string mode [, int use_include_path])
Open a file or a URL and return a file pointer */
--
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]