File tree Expand file tree Collapse file tree 6 files changed +26
-8
lines changed Expand file tree Collapse file tree 6 files changed +26
-8
lines changed Original file line number Diff line number Diff line change @@ -23,4 +23,4 @@ before_script:
23
23
24
24
script :
25
25
- composer test
26
- - composer memtest
26
+ # - composer memtest
Original file line number Diff line number Diff line change 2
2
All notable changes to this project will be documented in this file.
3
3
This project adheres to [ Semantic Versioning] ( http://semver.org/ ) .
4
4
5
+ ## [ 1.1.2] - 2016-08-05
6
+ ### Fixed
7
+ - Many, many memory leaks.
8
+ - Added valgrind to travis.yml
9
+ - Small performance improvements
10
+ - JSON dependency now handled correctly (thanks @NikiC )
11
+
5
12
## [ 1.1.1] - 2016-08-04
6
13
### Fixed
7
14
- Multiple memory leaks where objects were not free'd correctly. #30
Original file line number Diff line number Diff line change 13
13
},
14
14
"scripts" : {
15
15
"test" : " vendor/bin/phpunit -c ./vendor/php-ds/tests/phpunit.xml" ,
16
- "memtest" : " USE_ZEND_ALLOC=0 ZEND_DONT_UNLOAD_MODULES=1 valgrind --error-exitcode=1 --tool=memcheck --trace-children=yes -- vex-iropt-precise-memory-exns=yes --track-origins=yes php vendor/bin/phpunit -c ./vendor/php-ds/tests/phpunit.xml"
16
+ "memtest" : " USE_ZEND_ALLOC=0 ZEND_DONT_UNLOAD_MODULES=1 valgrind --error-exitcode=1 --vex-iropt-precise-memory-exns=yes --track-origins=yes --leak-check=full php vendor/bin/phpunit -c ./vendor/php-ds/tests/phpunit.xml"
17
17
}
18
18
}
Original file line number Diff line number Diff line change 16
16
17
17
<active >yes</active >
18
18
</lead >
19
- <date >2016-08-04 </date >
20
- <time >05:35:40 </time >
19
+ <date >2016-08-05 </date >
20
+ <time >11:02:12 </time >
21
21
<version >
22
- <release >1.1.1 </release >
22
+ <release >1.1.2 </release >
23
23
<api >1.1.0</api >
24
24
</version >
25
25
<stability >
28
28
</stability >
29
29
<license uri =" https://opensource.org/licenses/MIT" >MIT License</license >
30
30
<notes >
31
- Fix memory leaks where objects were not free'd correctly
31
+ Fixed many memory leaks
32
+ Fixed json dependency
33
+ Minor performance improvements
32
34
</notes >
33
35
<contents >
34
36
<dir name =" /" >
Original file line number Diff line number Diff line change @@ -20,7 +20,7 @@ extern zend_module_entry ds_module_entry;
20
20
#define phpext_ds_ptr &ds_module_entry
21
21
22
22
/* Replace with version number for your extension */
23
- #define PHP_DS_VERSION "1.1.1 "
23
+ #define PHP_DS_VERSION "1.1.2 "
24
24
25
25
#ifdef PHP_WIN32
26
26
# define PHP_API __declspec(dllexport)
Original file line number Diff line number Diff line change @@ -99,9 +99,18 @@ void ds_normalize_slice_args(
99
99
100
100
void smart_str_appendz (smart_str * buffer , zval * value )
101
101
{
102
+ switch (Z_TYPE_P (value )) {
103
+ case IS_STRING :
104
+ smart_str_append (buffer , Z_STR_P (value ));
105
+ return ;
106
+ case IS_LONG :
107
+ smart_str_append_long (buffer , Z_LVAL_P (value ));
108
+ return ;
109
+ }
110
+
102
111
zend_string * str = zval_get_string (value );
103
112
smart_str_append (buffer , str );
104
- // zend_string_free(str);
113
+ zend_string_free (str );
105
114
}
106
115
107
116
zend_string * ds_join_zval_buffer (
You can’t perform that action at this time.
0 commit comments