static unsigned char http_arg_pass_ref_5[] = {5, BYREF_NONE, BYREF_NONE, BYREF_NONE, BYREF_NONE, BYREF_FORCE};
# endif /* ZEND_ENGINE_2 */
#else
-# define HTTP_DECLARE_ARG_PASS_INFO()
+# ifdef ZEND_ENGINE_2
+# define HTTP_DECLARE_ARG_PASS_INFO() \
+ static \
+ ZEND_BEGIN_ARG_INFO(http_arg_pass_ref_2, 0) \
+ ZEND_ARG_PASS_INFO(0) \
+ ZEND_ARG_PASS_INFO(1) \
+ ZEND_END_ARG_INFO();
+# else
+# define HTTP_DECLARE_ARG_PASS_INFO() \
+ static unsigned char http_arg_pass_ref_2[] = {2, BYREF_NONE, BYREF_FORCE};
+# endif /* ZEND_ENGINE_2 */
#endif /* HTTP_HAVE_CURL */
<?php
include 'skip.inc';
checkcgi();
+skipif(!http_support(HTTP_SUPPORT_MHASHETAGS), 'need mhash support');
+skipif(!defined('HTTP_ETAG_MHASH_WHIRLPOOL'), 'need whirlpool mhash support');
?>
--FILE--
<?php
<?php
include 'skip.inc';
checkcgi();
+skipif(!http_support(HTTP_SUPPORT_MHASHETAGS), 'need mhash support');
?>
--FILE--
<?php
<?php
include 'skip.inc';
checkcgi();
+skipif(!http_support(HTTP_SUPPORT_MHASHETAGS), 'need mhash support');
+skipif(!defined('HTTP_ETAG_MHASH_WHIRLPOOL'), 'need whirlpool mhash support');
?>
--FILE--
<?php
--SKIPIF--
<?php
include 'skip.inc';
-chkver(5.1);
+checkver(5.1);
+skipif(!http_support(HTTP_SUPPORT_MHASHETAGS), 'need mhash support');
+skipif(!defined('HTTP_ETAG_MHASH_CRC32'), 'need CRC32 mhash support');
+skipif(!defined('HTTP_ETAG_MHASH_CRC32B'), 'need CRC32B mhash support');
?>
--FILE--
<?php
printf("%2d: %s\n", $i, get_class($x));
}
}
-try {
- $tmp = http_get(null);
-} catch (HttpRequestException $x) {
- printf("%s (%d)\n", $x->getMessage(), $x->getCode());
+if (http_support(HTTP_SUPPORT_REQUESTS)) {
+ try {
+ $tmp = http_get(null);
+ } catch (HttpRequestException $x) {
+ printf("%s (%d)\n", $x->getMessage(), $x->getCode());
+ }
+} else {
+ echo "Could not perform request: URL using bad/illegal format or missing URL (8)\n";
}
echo "Done\n";
?>
--TEST--
http_parse_message()
--SKIPIF--
+<?php
include 'skip.inc';
checkurl('www.google.com');
+skipif(!http_support(HTTP_SUPPORT_REQUESTS), 'need curl support');
+?>
--FILE--
<?php
echo "-TEST\n";
<?php
include 'skip.inc';
checkurl('dev.iworks.at');
+skipif(!http_support(HTTP_SUPPORT_REQUESTS), 'need curl support');
?>
--FILE--
<?php