File tree Expand file tree Collapse file tree 4 files changed +40
-15
lines changed Expand file tree Collapse file tree 4 files changed +40
-15
lines changed Original file line number Diff line number Diff line change 56
56
#endif
57
57
58
58
59
- # include "gd_compat.h"
60
-
59
+ #include "gd_compat.h"
60
+ #include "gd_image_object.h"
61
61
62
62
static int le_gd , le_gd_font ;
63
63
Original file line number Diff line number Diff line change 17
17
*/
18
18
19
19
#include "php_gd.h"
20
+ #include "gd_image_object.h"
20
21
21
22
#define CTX_PUTC (c ,ctx ) ctx->putC(ctx, c)
22
23
Original file line number Diff line number Diff line change
1
+ /*
2
+ +----------------------------------------------------------------------+
3
+ | PHP Version 7 |
4
+ +----------------------------------------------------------------------+
5
+ | Copyright (c) The PHP Group |
6
+ +----------------------------------------------------------------------+
7
+ | This source file is subject to version 3.01 of the PHP license, |
8
+ | that is bundled with this package in the file LICENSE, and is |
9
+ | available through the world-wide-web at the following url: |
10
+ | http://www.php.net/license/3_01.txt |
11
+ | If you did not receive a copy of the PHP license and are unable to |
12
+ | obtain it through the world-wide-web, please send a note to |
13
+ | [email protected] so we can mail you a copy immediately. |
14
+ +----------------------------------------------------------------------+
15
+ | Authors: Mark Randall <[email protected] > |
16
+ +----------------------------------------------------------------------+
17
+ */
18
+
19
+ #ifndef SRC_GD_IMAGE_OBJECT_H
20
+ #define SRC_GD_IMAGE_OBJECT_H
21
+
22
+ #include <php.h>
23
+ #include <gd.h>
24
+
25
+ zend_class_entry * gd_image_ce ;
26
+
27
+ #define GD_IMAGE_PTR_FROM_ZVAL_P (x ) (((gd_ext_image_object*)Z_OBJ_P(x))->image)
28
+
29
+ static zend_object * gd_ext_image_object_init (zval * val , gdImagePtr image );
30
+
31
+ typedef struct _gd_ext_image_object {
32
+ zend_object std ;
33
+ gdImagePtr image ;
34
+ } gd_ext_image_object ;
35
+
36
+
37
+ #endif //SRC_GD_IMAGE_OBJECT_H
Original file line number Diff line number Diff line change 22
22
23
23
#if defined(HAVE_LIBGD ) || defined(HAVE_GD_BUNDLED )
24
24
25
- #include <gd.h>
26
-
27
- zend_class_entry * gd_image_ce ;
28
-
29
- #define GD_IMAGE_PTR_FROM_ZVAL_P (x ) (((gd_ext_image_object*)Z_OBJ_P(x))->image)
30
-
31
- static zend_object * gd_ext_image_object_init (zval * val , gdImagePtr image );
32
-
33
- typedef struct _gd_ext_image_object {
34
- zend_object std ;
35
- gdImagePtr image ;
36
- } gd_ext_image_object ;
37
-
38
25
/* open_basedir and safe_mode checks */
39
26
#define PHP_GD_CHECK_OPEN_BASEDIR (filename , errormsg ) \
40
27
if (!filename || php_check_open_basedir(filename)) { \
You can’t perform that action at this time.
0 commit comments