Commit Graph

33839 Commits

Author SHA1 Message Date
Dmitry Stogov
78f428d3a8 Fixed memory leaks 2014-04-16 13:59:49 +04:00
Dmitry Stogov
a86eb10dae Fixed non-interned strings refcounting 2014-04-16 13:36:38 +04:00
Xinchen Hui
a16a6eae24 Refactor PDO (incompleted) 2014-04-16 17:28:11 +08:00
Dmitry Stogov
81b24d4100 Fixed reference support 2014-04-16 12:08:16 +04:00
Dmitry Stogov
1082489302 Fixed refcounting 2014-04-16 12:07:58 +04:00
Dmitry Stogov
153e549886 Fixed zend_string/char mess 2014-04-16 12:07:21 +04:00
Nikita Popov
9eb8569865 Make DOM mostly work 2014-04-15 22:20:06 +02:00
Dmitry Stogov
a4bda5b187 Merge branch 'refactoring2' of github.com:zendtech/php into refactoring2 2014-04-15 22:44:21 +04:00
Dmitry Stogov
6cf5e51f3e Reduced memory realocations 2014-04-15 22:43:18 +04:00
Nikita Popov
3b9fdf37e1 Make DOM compile
Just make it compile, not work yet...
2014-04-15 20:32:47 +02:00
Nikita Popov
7a1a6092f6 Add functions for extracting long/double/string from zval
These function get the long / double / string value of a zval with
usual cast semantics, but without actually modifying the zval.

Didn't go on a killing spree for convert_to_* yet...
2014-04-15 20:32:47 +02:00
Nikita Popov
2f0a758fbb Start working on dom extension
Nowhere near compiling yet...
2014-04-15 20:32:46 +02:00
Dmitry Stogov
d0cc5c633c Use zend_string* instead of char* 2014-04-15 22:10:39 +04:00
Dmitry Stogov
f9b26bc39a Cleanup (2-nd round) 2014-04-15 21:56:30 +04:00
Dmitry Stogov
61e9b0d265 Fixed memory leak 2014-04-15 15:50:34 +04:00
Dmitry Stogov
050d7e38ad Cleanup (1-st round) 2014-04-15 15:40:40 +04:00
Xinchen Hui
8bfc037348 Fixed invaid write/read 2014-04-15 14:38:38 +08:00
Xinchen Hui
541842d87a Fixed return uninitialized_zval 2014-04-15 11:10:39 +08:00
Xinchen Hui
84ce66f17c Fixed Typo 2014-04-15 11:09:04 +08:00
Xinchen Hui
a0690ff288 Fixed zend_object_get_t in simpleXML 2014-04-15 11:05:03 +08:00
Dmitry Stogov
2056359594 Fixed test (support for MarinaDB) 2014-04-15 01:27:21 +04:00
Dmitry Stogov
258a5a39fa Fixed memory leak 2014-04-15 00:21:41 +04:00
Dmitry Stogov
cc50ebc487 Fixed memory leak 2014-04-14 23:53:25 +04:00
Xinchen Hui
76825a71a4 Fixed SXE iterator(14 tests fail) 2014-04-15 00:37:48 +08:00
Xinchen Hui
30a974f435 Fixed sxe object clone 2014-04-15 00:10:59 +08:00
Xinchen Hui
1f207e73eb Fixed double free 2014-04-15 00:06:54 +08:00
Xinchen Hui
55440b0870 Fixed libxml handling default context 2014-04-14 23:40:21 +08:00
Xinchen Hui
c7513f58d2 Merge branch 'refactoring2' of github.com:zendtech/php into refactoring2 2014-04-14 19:27:55 +08:00
Xinchen Hui
a975c7e0fe Refactor simpleXML (compilable, but incompleted) 2014-04-14 19:27:22 +08:00
Dmitry Stogov
703c1bc570 Fixed passing arguments by reference into array_walk() callbacks. 2014-04-14 15:11:05 +04:00
Dmitry Stogov
5dc52e4880 Fixed interface constants inheritance.
Now we use IS_REFERENCE for inhereted class constants.
I might miss some edje cases.
2014-04-14 13:24:43 +04:00
Dmitry Stogov
c6af3781ee Fixed test (now string data allocated together with zend_string structure) 2014-04-11 23:25:50 +04:00
Dmitry Stogov
affc7ab6c5 Fixed test (order of variables doesn't mater) 2014-04-11 23:04:47 +04:00
Dmitry Stogov
a6123151c7 Fixed memory leak 2014-04-11 18:15:53 +04:00
Dmitry Stogov
2614d945f8 Fixed memory leaks 2014-04-11 15:29:37 +04:00
Dmitry Stogov
33c731d94f Merge branch 'refactoring2' of github.com:zendtech/php into refactoring2 2014-04-11 15:06:01 +04:00
Dmitry Stogov
68c34855af Fixed memory leaks 2014-04-11 14:47:53 +04:00
Xinchen Hui
a2a2481dd1 Merge branch 'refactoring2' of github.com:zendtech/php into refactoring2 2014-04-11 18:08:11 +08:00
Xinchen Hui
180de35bce Refactor libxml (incompleted) 2014-04-11 18:07:25 +08:00
Dmitry Stogov
aa2ed70d43 Fixed srialize() 2014-04-11 13:44:23 +04:00
Dmitry Stogov
dac8cefb45 Fixed tests (added session_destroy() to avoid side effects on the following tests) 2014-04-11 13:17:59 +04:00
Dmitry Stogov
4adedff13d Fixed tests (they might fail from time to time because of session GC) 2014-04-11 12:43:35 +04:00
Xinchen Hui
0d341e5b0e No need anymore 2014-04-11 16:30:19 +08:00
Xinchen Hui
70ba20bfd3 hmm, make it consistent 2014-04-11 12:54:42 +08:00
Xinchen Hui
2e97e18bd0 Fixed _php_mbstr_parse_mail_headers 2014-04-11 12:53:35 +08:00
Xinchen Hui
12470b4092 Merge branch 'refactoring2' of github.com:zendtech/php into refactoring2 2014-04-11 12:34:06 +08:00
Dmitry Stogov
ca05f965e3 Fixed tests (added missing zend.multibyte=On) 2014-04-10 23:07:00 +04:00
Dmitry Stogov
c54768bd60 fixed serialize() 2014-04-10 22:44:39 +04:00
Dmitry Stogov
7a7b94d2fe Merge branch 'refactoring2' of github.com:zendtech/php into refactoring2 2014-04-10 18:08:39 +04:00
Dmitry Stogov
6bfedfd22e Fixed unserialize() 2014-04-10 18:08:11 +04:00
Nikita Popov
c6eba25571 Port tokenizer extension 2014-04-10 11:44:45 +02:00
Dmitry Stogov
6df6006769 Compatibility fix for ext/session/tests/session_id_error3.phpt 2014-04-10 12:29:14 +04:00
Dmitry Stogov
23aecd1736 Fixed test (it requires ext/hash) 2014-04-10 12:14:11 +04:00
Dmitry Stogov
0ae14f3a1d Fixed access to uninitialized data 2014-04-10 10:38:40 +04:00
Xinchen Hui
27f7f342ee session_id is binary safe now 2014-04-10 11:57:34 +08:00
Dmitry Stogov
eb69fd9b0b Merge branch 'refactoring2' of github.com:zendtech/php into refactoring2 2014-04-10 03:22:06 +04:00
Dmitry Stogov
6ee5e813ab var_push_dtor_no_addref() is useles (var_push_dtor() doesn't work properly as well) 2014-04-10 01:49:26 +04:00
Nikita Popov
20f2e5986e Fix ZTS build
This only makes it compile, it doesn't actually work, presumably
because interned strings are assumed in some places.
2014-04-09 23:41:16 +02:00
Dmitry Stogov
2016e72111 Temporary refcounting fix 2014-04-10 01:08:52 +04:00
Dmitry Stogov
29f068779f Fixed ext/spl/tests/iterator_035.phpt 2014-04-09 23:49:58 +04:00
Dmitry Stogov
a938b24607 Fixed resource to integer conversion 2014-04-09 22:31:40 +04:00
Dmitry Stogov
b1d2efcc2d Fixed reference counting 2014-04-09 18:11:18 +04:00
Dmitry Stogov
9b276c7a0c Fixed error reporting 2014-04-09 17:08:52 +04:00
Dmitry Stogov
b7e6c8d0f8 Fixed reference counting 2014-04-09 17:02:13 +04:00
Dmitry Stogov
79b27dc096 Fixed reference counting 2014-04-09 16:48:03 +04:00
Dmitry Stogov
d9f6068fd3 Fixed GC 2014-04-09 15:26:45 +04:00
Dmitry Stogov
22ec682e77 Fixed reference counting 2014-04-09 15:05:22 +04:00
Dmitry Stogov
085be9d618 Fixed ArrayObject::sort() family 2014-04-09 14:25:35 +04:00
Dmitry Stogov
39d2cede74 Fixed support for IS_INDIRECT and IS_REFERENCE 2014-04-09 13:23:28 +04:00
Dmitry Stogov
ad524d2818 Use proper size 2014-04-09 12:16:21 +04:00
Dmitry Stogov
48d3b95aee Fixed NULL pointer dereferencing 2014-04-09 11:56:48 +04:00
Dmitry Stogov
98ab24f1af Fixed NULL pointer dereferencing 2014-04-09 11:39:39 +04:00
Dmitry Stogov
479f520d14 Fixed store of "shared" zend_strings 2014-04-09 09:43:42 +04:00
Dmitry Stogov
7402af380b Fixed destruction of objects and iterators on unclean request shutdown and GC (few cases are still unfixed).
Now we destroy objects it two steps. At first - object properties of all objects and only then the objects their selves.
2014-04-09 01:50:15 +04:00
Dmitry Stogov
3d17219cd8 Refactored zend_hash_* iteration API zend_hash_fove_forward_ex(ht, pos) and family require second argument to be real pointer.
&(ht)->nInternalPointer should be passed instead of NULL.
zend_hash_update_current_key() may work only with internal pointer.
2014-04-07 23:14:17 +04:00
Dmitry Stogov
3167b49ce9 Allocate HashTable->arData and HashTable->arHash at once 2014-04-07 18:22:03 +04:00
Dmitry Stogov
66b3b907c2 Cleanup 2014-04-07 16:50:41 +04:00
Dmitry Stogov
3bc8810b1e Constant duplication optimization
Argument receiving optimization
2014-04-04 03:55:27 +04:00
Dmitry Stogov
58f0f2503c Various VM optimizations 2014-04-04 02:52:53 +04:00
Dmitry Stogov
76cc99fe60 Refactored ZVAL flags usage to simplify various checks (e.g. Z_REFCOUNTED(), candidate for GC, etc) 2014-04-03 15:26:23 +04:00
Dmitry Stogov
d8099d0468 Changed data layout to allow more efficient operations 2014-04-02 14:34:44 +04:00
Dmitry Stogov
3b25faa4aa Fixed 0 index handling 2014-04-02 12:09:05 +04:00
Dmitry Stogov
7240b4ec4d Avoid unnecessary zval separations 2014-04-02 01:56:16 +04:00
Dmitry Stogov
dccd97d347 Avoid unnecessary zval separations 2014-04-01 23:44:42 +04:00
Dmitry Stogov
6b2ed577fd Avoid unnecessry reallocations 2014-04-01 22:36:17 +04:00
Dmitry Stogov
8dedaf8512 Use interned strings for one character strings 2014-04-01 18:06:50 +04:00
Dmitry Stogov
042c937f69 Use STR_COPY() instead of STR_DUP() where possible 2014-04-01 17:10:15 +04:00
Dmitry Stogov
a25a1ba0ef STR_DUP() doesn't duplicate interned strings anymore. In case new string is required STR_INIT() or STR_ALLOC() should be used. 2014-04-01 16:31:03 +04:00
Dmitry Stogov
7eff369ba9 Store constant flags 2014-04-01 16:30:13 +04:00
Dmitry Stogov
0da12b9273 Fixed script size calculation 2014-04-01 13:04:33 +04:00
Dmitry Stogov
569bfbd00b Keep constnat flags 2014-04-01 12:20:16 +04:00
Dmitry Stogov
ceecd31cb6 Fixed support for arg_info and type hinfing (TODO: names should be interned) 2014-04-01 11:44:11 +04:00
Dmitry Stogov
46647180ef function_name might be shared across few op_arrays (inherited methods) 2014-04-01 11:29:22 +04:00
Dmitry Stogov
2a612e91c2 Fixed optimizer 2014-04-01 11:04:12 +04:00
Dmitry Stogov
b964621294 Fixed optimizer (incomplete) 2014-04-01 01:53:33 +04:00
Dmitry Stogov
3fc8449e1e Fixed interned strings support 2014-04-01 00:50:25 +04:00
Dmitry Stogov
fd4d11e053 fixes 2014-03-31 23:38:37 +04:00
Dmitry Stogov
7465be4fbd Optimizer related fixes (incomplete) 2014-03-31 18:13:16 +04:00
Dmitry Stogov
47fdb9eae3 fixed craches at request shutdown and memory leaks 2014-03-31 16:09:45 +04:00
Dmitry Stogov
292b8dffc8 Make opcache work (incomplete - optimizer doesn't work yet; crashes on request shutdown) 2014-03-31 13:11:58 +04:00