File tree Expand file tree Collapse file tree 3 files changed +22
-32
lines changed
Expand file tree Collapse file tree 3 files changed +22
-32
lines changed Original file line number Diff line number Diff line change 2222#include "config.h"
2323#endif
2424
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>
3526
3627/* OpenSSL includes */
3728#include <openssl/conf.h>
3829
39- #include "php_jwt.h"
40-
4130/* 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 ;
5039
5140static zend_class_entry * jwt_ce ;
5241
Original file line number Diff line number Diff line change 2424
2525/* $Id$ */
2626
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>
3128
3229/* OpenSSL includes */
3330#include <openssl/bio.h>
Original file line number Diff line number Diff line change 2121#ifndef PHP_JWT_H
2222#define PHP_JWT_H
2323
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+
2436extern zend_module_entry jwt_module_entry ;
2537#define phpext_jwt_ptr &jwt_module_entry
2638
2739#define PHP_JWT_VERSION "0.2.4"
2840
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-
3741#ifdef ZTS
3842#include "TSRM.h"
3943#endif
You can’t perform that action at this time.
0 commit comments