|
71 | 71 | }
|
72 | 72 | #endif
|
73 | 73 |
|
74 |
| -/* There was a very bad bug in 5.6.0 through 5.6.6 downgrading |
75 |
| - * METHOD_SSLv23 to SSLv2 and SSLv3 exclusively */ |
76 |
| -#if PHP_VERSION_ID >= 50600 && PHP_VERSION_ID < 50607 |
77 |
| -# define PHONGO_CRYPTO_METHOD STREAM_CRYPTO_METHOD_ANY_CLIENT |
78 |
| -#else |
79 |
| -# define PHONGO_CRYPTO_METHOD STREAM_CRYPTO_METHOD_SSLv23_CLIENT |
80 |
| -#endif |
81 |
| - |
82 | 74 | #if defined(__GNUC__)
|
83 | 75 | # define ARG_UNUSED __attribute__ ((unused))
|
84 | 76 | #else
|
85 | 77 | # define ARG_UNUSED
|
86 | 78 | #endif
|
87 | 79 |
|
88 |
| -#ifndef php_ignore_value |
89 |
| -# if defined(__GNUC__) && __GNUC__ >= 4 |
90 |
| -# define php_ignore_value(x) (({ __typeof__ (x) __x = (x); (void) __x; })) |
91 |
| -# else |
92 |
| -# define php_ignore_value(x) ((void) (x)) |
93 |
| -# endif |
94 |
| -#endif |
95 |
| - |
96 | 80 | #if PHP_VERSION_ID >= 70000
|
97 | 81 | # define phongo_char zend_string
|
98 |
| -# define phongo_char_pdup(str) pestrdup(filename->val, 1) |
99 |
| -# define phongo_char_free(str) zend_string_release(str) |
100 | 82 | # define phongo_long zend_long
|
101 | 83 | #if SIZEOF_ZEND_LONG == 8
|
102 | 84 | # define PHONGO_LONG_FORMAT PRId64
|
|
112 | 94 | # define SUPPRESS_UNUSED_WARNING(x)
|
113 | 95 | # define DECLARE_RETURN_VALUE_USED int return_value_used = 1;
|
114 | 96 | # define EXCEPTION_P(_ex, _zp) ZVAL_OBJ(&_zp, _ex)
|
115 |
| -# define PHONGO_STREAM_ID(stream) stream->res ? stream->res->handle : -1 |
116 | 97 | # define ADD_ASSOC_STRING(_zv, _key, _value) add_assoc_string_ex(_zv, ZEND_STRL(_key), (char *)(_value));
|
117 | 98 | # define ADD_ASSOC_STRINGL(_zv, _key, _value, _len) add_assoc_stringl_ex(_zv, ZEND_STRL(_key), (char *)(_value), _len);
|
118 | 99 | # define ADD_ASSOC_STRING_EX(_zv, _key, _key_len, _value, _value_len) add_assoc_stringl_ex(_zv, _key, _key_len, (char *)(_value), _value_len);
|
|
132 | 113 | # define PHONGO_RETVAL_SMART_STR(val) PHONGO_RETVAL_STRINGL(ZSTR_VAL((val).s), ZSTR_LEN((val).s));
|
133 | 114 | #else
|
134 | 115 | # define phongo_char char
|
135 |
| -# define phongo_char_pdup(str) pestrdup(filename, 1) |
136 |
| -# define phongo_char_free(str) _efree(str ZEND_FILE_LINE_CC ZEND_FILE_LINE_CC) |
137 | 116 | # define phongo_long long
|
138 | 117 | # define PHONGO_LONG_FORMAT "ld"
|
139 | 118 | # define SIZEOF_PHONGO_LONG SIZEOF_LONG
|
|
144 | 123 | # define SUPPRESS_UNUSED_WARNING(x) (void)x;
|
145 | 124 | # define DECLARE_RETURN_VALUE_USED
|
146 | 125 | # define EXCEPTION_P(_ex, _zp) _zp = _ex
|
147 |
| -# define PHONGO_STREAM_ID(stream) stream->rsrc_id |
148 | 126 | # define ADD_ASSOC_STRING(_zv, _key, _value) add_assoc_string_ex(_zv, ZEND_STRS(_key), (char *)(_value), 1);
|
149 | 127 | # define ADD_ASSOC_STRINGL(_zv, _key, _value, _len) add_assoc_stringl_ex(_zv, ZEND_STRS(_key), (char *)(_value), _len, 1);
|
150 | 128 | # define ADD_ASSOC_STRING_EX(_zv, _key, _key_len, _value, _value_len) add_assoc_stringl_ex(_zv, _key, _key_len+1, (char *)(_value), _value_len, 1);
|
|
164 | 142 | # define PHONGO_RETVAL_STRING(s) RETVAL_STRING(s, 1)
|
165 | 143 | # define PHONGO_RETURN_STRING(s) RETURN_STRING(s, 1)
|
166 | 144 | # define PHONGO_RETVAL_SMART_STR(val) PHONGO_RETVAL_STRINGL((val).c, (val).len);
|
167 |
| -# define PHP_STREAM_CONTEXT(stream) ((php_stream_context*) (stream)->context) |
168 | 145 | #endif
|
169 | 146 |
|
170 | 147 | #if SIZEOF_PHONGO_LONG == 8
|
|
197 | 174 | # error Unsupported architecture (integers are neither 32-bit nor 64-bit)
|
198 | 175 | #endif
|
199 | 176 |
|
200 |
| -void *x509_from_zval(zval *zval TSRMLS_DC); |
201 | 177 | void phongo_add_exception_prop(const char *prop, int prop_len, zval *value TSRMLS_DC);
|
202 | 178 |
|
203 | 179 |
|
|
0 commit comments