cvs: pecl /hyperwave hw.c
| From: | Uwe Steinmann | Date: | Mon, 16 Aug 2004 13:47:15 +0000 |
| Subject: | cvs: pecl /hyperwave hw.c | ||
| Groups: | php.pecl.cvs | ||
| Request: | Send a blank email to pecl-cvs+get-1676@lists.php.net to get a copy of this message | ||
steinm Mon Aug 16 09:47:15 2004 EDT
Modified files:
/pecl/hyperwave hw.c
Log:
- Make it compile with php4 and php5
http://cvs.php.net/diff.php/pecl/hyperwave/hw.c?r1=1.128&r2=1.129&ty=u
Index: pecl/hyperwave/hw.c
diff -u pecl/hyperwave/hw.c:1.128 pecl/hyperwave/hw.c:1.129
--- pecl/hyperwave/hw.c:1.128 Fri May 14 07:16:10 2004
+++ pecl/hyperwave/hw.c Mon Aug 16 09:47:13 2004
@@ -16,7 +16,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: hw.c,v 1.128 2004/05/14 11:16:10 steinm Exp $ */
+/* $Id: hw.c,v 1.129 2004/08/16 13:47:13 steinm Exp $ */
#include <stdlib.h>
#include <errno.h>
@@ -209,7 +209,11 @@
}
PHP_INI_BEGIN()
+#if PHP_MAJOR_VERSION >= 5
STD_PHP_INI_ENTRY("hyperwave.allow_persistent", "0", PHP_INI_SYSTEM,
OnUpdateLong, allow_persistent, zend_hw_globals, hw_globals)
+#else
+ STD_PHP_INI_ENTRY("hyperwave.allow_persistent", "0", PHP_INI_SYSTEM,
OnUpdateInt, allow_persistent, zend_hw_globals, hw_globals)
+#endif
PHP_INI_ENTRY("hyperwave.default_port", "418", PHP_INI_ALL, OnHyperwavePort)
PHP_INI_END()