Skip to content

Commit 908120d

Browse files
committed
Add back UriConfig.h
1 parent f3f6d97 commit 908120d

File tree

2 files changed

+54
-1
lines changed

2 files changed

+54
-1
lines changed

ext/uri/php_uri.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,12 +27,12 @@
2727

2828
#include "php_uri.h"
2929
#include "php_uri_arginfo.h"
30+
#include "uriparser/src/UriConfig.h"
3031

3132
zend_class_entry *uri_exception_ce;
3233
zend_class_entry *invalid_uri_exception_ce;
3334
zend_class_entry *whatwg_invalid_url_exception_ce;
3435

35-
#define URIPARSER_VERSION "0.9.8"
3636

3737
static const zend_module_dep uri_deps[] = {
3838
ZEND_MOD_REQUIRED("lexbor")

ext/uri/uriparser/src/UriConfig.h

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
/*
2+
* uriparser - RFC 3986 URI parsing library
3+
*
4+
* Copyright (C) 2018, Sebastian Pipping <[email protected]>
5+
* All rights reserved.
6+
*
7+
* Redistribution and use in source and binary forms, with or without
8+
* modification, are permitted provided that the following conditions
9+
* are met:
10+
*
11+
* 1. Redistributions of source code must retain the above
12+
* copyright notice, this list of conditions and the following
13+
* disclaimer.
14+
*
15+
* 2. Redistributions in binary form must reproduce the above
16+
* copyright notice, this list of conditions and the following
17+
* disclaimer in the documentation and/or other materials
18+
* provided with the distribution.
19+
*
20+
* 3. Neither the name of the copyright holder nor the names of
21+
* its contributors may be used to endorse or promote products
22+
* derived from this software without specific prior written
23+
* permission.
24+
*
25+
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
26+
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
27+
* LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
28+
* FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL
29+
* THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
30+
* INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
31+
* (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
32+
* SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
33+
* HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
34+
* STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
35+
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
36+
* OF THE POSSIBILITY OF SUCH DAMAGE.
37+
*/
38+
39+
#if !defined(URI_CONFIG_H)
40+
# define URI_CONFIG_H 1
41+
42+
43+
44+
#define PACKAGE_VERSION "0.9.8"
45+
46+
/*
47+
#define HAVE_WPRINTF*
48+
#define HAVE_REALLOCARRAY
49+
*/
50+
51+
52+
53+
#endif /* !defined(URI_CONFIG_H) */

0 commit comments

Comments
 (0)