Skip to content

Commit 499765b

Browse files
committed
Merge branch 'master' of github.com:libvips/php-vips-ext
2 parents f81092c + 095f483 commit 499765b

File tree

6 files changed

+79
-10
lines changed

6 files changed

+79
-10
lines changed

ChangeLog

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
vips extension changelog
22

3-
Version 1.0.11 (2020-08-xx)
3+
Version 1.0.11 (2020-1-xx)
44
--------------------------
5+
* More php_info() output [jcupitt]
6+
https://github.com/libvips/php-vips/issues/97
57
* add vips_image_set_type()
68
* add vips_type_from_name()
79

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ libvips website, or build your own.
9191
$ pear package
9292
```
9393

94-
to make `vips-1.0.9.tgz`.
94+
To make `vips-1.0.11.tgz`.
9595

9696
To install by hand:
9797

config.h.in~

Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
/* config.h.in. Generated from configure.ac by autoheader. */
2+
3+
/* Whether to build vips as dynamic module */
4+
#undef COMPILE_DL_VIPS
5+
6+
/* Define to 1 if you have the <dlfcn.h> header file. */
7+
#undef HAVE_DLFCN_H
8+
9+
/* Define to 1 if you have the <inttypes.h> header file. */
10+
#undef HAVE_INTTYPES_H
11+
12+
/* Define to 1 if you have the <memory.h> header file. */
13+
#undef HAVE_MEMORY_H
14+
15+
/* Define to 1 if you have the <stdint.h> header file. */
16+
#undef HAVE_STDINT_H
17+
18+
/* Define to 1 if you have the <stdlib.h> header file. */
19+
#undef HAVE_STDLIB_H
20+
21+
/* Define to 1 if you have the <strings.h> header file. */
22+
#undef HAVE_STRINGS_H
23+
24+
/* Define to 1 if you have the <string.h> header file. */
25+
#undef HAVE_STRING_H
26+
27+
/* Define to 1 if you have the <sys/stat.h> header file. */
28+
#undef HAVE_SYS_STAT_H
29+
30+
/* Define to 1 if you have the <sys/types.h> header file. */
31+
#undef HAVE_SYS_TYPES_H
32+
33+
/* Define to 1 if you have the <unistd.h> header file. */
34+
#undef HAVE_UNISTD_H
35+
36+
/* Whether you have vips */
37+
#undef HAVE_VIPS
38+
39+
/* Define to the address where bug reports for this package should be sent. */
40+
/* #undef PACKAGE_BUGREPORT */
41+
42+
/* Define to the full name of this package. */
43+
/* #undef PACKAGE_NAME */
44+
45+
/* Define to the full name and version of this package. */
46+
/* #undef PACKAGE_STRING */
47+
48+
/* Define to the one symbol short name of this package. */
49+
/* #undef PACKAGE_TARNAME */
50+
51+
/* Define to the home page for this package. */
52+
/* #undef PACKAGE_URL */
53+
54+
/* Define to the version of this package. */
55+
/* #undef PACKAGE_VERSION */
56+
57+
/* Define to 1 if you have the ANSI C header files. */
58+
#undef STDC_HEADERS

package.xml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ http://pear.php.net/dtd/package-2.0.xsd">
1515
<email>jcupitt@php.net</email>
1616
<active>yes</active>
1717
</lead>
18-
<date>2020-08-26</date>
18+
<date>2020-08-28</date>
1919
<version>
2020
<release>1.0.11</release>
2121
<api>1.0.0</api>
@@ -27,6 +27,7 @@ http://pear.php.net/dtd/package-2.0.xsd">
2727
<license filesource="LICENSE.txt">MIT</license>
2828
<notes>
2929
* add vips_image_set_type()
30+
* More php_info() output [jcupitt]
3031
</notes>
3132
<contents>
3233
<dir name="/">
@@ -75,9 +76,12 @@ http://pear.php.net/dtd/package-2.0.xsd">
7576
<file role='test' name='038.phpt'/>
7677
<file role='test' name='039.phpt'/>
7778
<file role='test' name='040.phpt'/>
79+
<file role='test' name='041.phpt'/>
80+
<file role='test' name='042.phpt'/>
7881

7982
<dir name="images">
8083
<file role='test' name='img_0076.jpg'/>
84+
<file role='test' name='sRGB.icc'/>
8185
</dir>
8286
</dir>
8387
</dir>
@@ -101,9 +105,10 @@ http://pear.php.net/dtd/package-2.0.xsd">
101105
<release>
102106
<stability><release>stable</release><api>stable</api></stability>
103107
<version><release>1.0.11</release><api>1.0.0</api></version>
104-
<date>2020-07-26</date>
108+
<date>2020-08-28</date>
105109
<notes>
106110
* add vips_image_set_type()
111+
* More php_info() output [jcupitt]
107112
</notes>
108113
</release>
109114

vips-1.0.11.tgz

2.59 KB
Binary file not shown.

vips.c

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2116,16 +2116,20 @@ PHP_MINFO_FUNCTION(vips)
21162116

21172117
vips_snprintf(digits, 256, "%zd", vips_cache_get_max_mem());
21182118
php_info_print_table_row(2, "Cache max mem", digits);
2119-
21202119
vips_snprintf(digits, 256, "%d", vips_cache_get_max());
21212120
php_info_print_table_row(2, "Cache max operations", digits);
2122-
21232121
vips_snprintf(digits, 256, "%d", vips_cache_get_size());
21242122
php_info_print_table_row(2, "Cache current operations", digits);
2125-
21262123
vips_snprintf(digits, 256, "%d", vips_cache_get_max_files());
21272124
php_info_print_table_row(2, "Cache max open files", digits);
21282125

2126+
vips_snprintf(digits, 256, "%d", vips_tracked_get_allocs());
2127+
php_info_print_table_row(2, "Memory allocations", digits);
2128+
vips_snprintf(digits, 256, "%zd", vips_tracked_get_mem());
2129+
php_info_print_table_row(2, "Memory currently allocated", digits);
2130+
vips_snprintf(digits, 256, "%zd", vips_tracked_get_mem_highwater());
2131+
php_info_print_table_row(2, "Memory high water", digits);
2132+
21292133
vips_snprintf(digits, 256, "%d", vips_concurrency_get());
21302134
php_info_print_table_row(2, "Concurrency", digits);
21312135

@@ -2337,11 +2341,11 @@ const zend_function_entry vips_functions[] = {
23372341
PHP_FE(vips_cache_set_max_mem, arginfo_vips_cache_set_max_mem)
23382342
PHP_FE(vips_cache_set_max_files, arginfo_vips_cache_set_max_files)
23392343
PHP_FE(vips_concurrency_set, arginfo_vips_concurrency_set)
2340-
PHP_FE(vips_cache_get_max, arginfo_vips_cache_get_max)
2344+
PHP_FE(vips_cache_get_max, arginfo_vips_cache_get_max)
23412345
PHP_FE(vips_cache_get_max_mem, arginfo_vips_cache_get_max_mem)
23422346
PHP_FE(vips_cache_get_max_files, arginfo_vips_cache_get_max_files)
2343-
PHP_FE(vips_cache_get_size, arginfo_vips_cache_get_size)
2344-
PHP_FE(vips_concurrency_get, arginfo_vips_concurrency_get)
2347+
PHP_FE(vips_cache_get_size, arginfo_vips_cache_get_size)
2348+
PHP_FE(vips_concurrency_get, arginfo_vips_concurrency_get)
23452349
PHP_FE(vips_version, arginfo_vips_version)
23462350

23472351
PHP_FE_END /* Must be the last line in vips_functions[] */

0 commit comments

Comments
 (0)