File tree 3 files changed +22
-32
lines changed
3 files changed +22
-32
lines changed Original file line number Diff line number Diff line change 22
22
#include "config.h"
23
23
#endif
24
24
25
- #include "php.h"
26
- #include "php_ini.h"
27
-
28
- #include "zend_smart_str.h"
29
- #include "zend_exceptions.h"
30
- #include "ext/spl/spl_exceptions.h"
31
- #include "ext/json/php_json.h"
32
- #include "ext/standard/base64.h"
33
- #include "ext/standard/info.h"
34
- #include "ext/standard/php_string.h"
25
+ #include <php_jwt.h>
35
26
36
27
/* OpenSSL includes */
37
28
#include <openssl/conf.h>
38
29
39
- #include "php_jwt.h"
40
-
41
30
/* Exceptions */
42
- PHP_JWT_API zend_class_entry * jwt_signature_invalid_cex ;
43
- PHP_JWT_API zend_class_entry * jwt_before_valid_cex ;
44
- PHP_JWT_API zend_class_entry * jwt_expired_signature_cex ;
45
- PHP_JWT_API zend_class_entry * jwt_invalid_issuer_cex ;
46
- PHP_JWT_API zend_class_entry * jwt_invalid_aud_cex ;
47
- PHP_JWT_API zend_class_entry * jwt_invalid_jti_cex ;
48
- PHP_JWT_API zend_class_entry * jwt_invalid_iat_cex ;
49
- PHP_JWT_API zend_class_entry * jwt_invalid_sub_cex ;
31
+ static zend_class_entry * jwt_signature_invalid_cex ;
32
+ static zend_class_entry * jwt_before_valid_cex ;
33
+ static zend_class_entry * jwt_expired_signature_cex ;
34
+ static zend_class_entry * jwt_invalid_issuer_cex ;
35
+ static zend_class_entry * jwt_invalid_aud_cex ;
36
+ static zend_class_entry * jwt_invalid_jti_cex ;
37
+ static zend_class_entry * jwt_invalid_iat_cex ;
38
+ static zend_class_entry * jwt_invalid_sub_cex ;
50
39
51
40
static zend_class_entry * jwt_ce ;
52
41
Original file line number Diff line number Diff line change 24
24
25
25
/* $Id$ */
26
26
27
- #include "php.h"
28
- #include "php_jwt.h"
29
- #include "zend_smart_str.h"
30
- #include "ext/standard/base64.h"
27
+ #include <php_jwt.h>
31
28
32
29
/* OpenSSL includes */
33
30
#include <openssl/bio.h>
Original file line number Diff line number Diff line change 21
21
#ifndef PHP_JWT_H
22
22
#define PHP_JWT_H
23
23
24
+ #include <php.h>
25
+ #include <php_ini.h>
26
+
27
+ #include <zend_smart_str.h>
28
+ #include <zend_exceptions.h>
29
+
30
+ #include <ext/spl/spl_exceptions.h>
31
+ #include <ext/standard/base64.h>
32
+ #include <ext/json/php_json.h>
33
+ #include <ext/standard/info.h>
34
+ #include <ext/standard/php_string.h>
35
+
24
36
extern zend_module_entry jwt_module_entry ;
25
37
#define phpext_jwt_ptr &jwt_module_entry
26
38
27
39
#define PHP_JWT_VERSION "0.2.4"
28
40
29
- #ifdef PHP_WIN32
30
- # define PHP_JWT_API __declspec(dllexport)
31
- #elif defined(__GNUC__ ) && __GNUC__ >= 4
32
- # define PHP_JWT_API __attribute__ ((visibility("default")))
33
- #else
34
- # define PHP_JWT_API
35
- #endif
36
-
37
41
#ifdef ZTS
38
42
#include "TSRM.h"
39
43
#endif
You can’t perform that action at this time.
0 commit comments