Xinchen Hui
c5f9b86fd4
Fixed bindColumn
2014-04-25 11:36:53 +08:00
Xinchen Hui
35f22f609a
Fixed memleak
2014-04-25 11:34:00 +08:00
Xinchen Hui
1ccc250c50
Fixed memleak in quote
2014-04-25 11:04:11 +08:00
Xinchen Hui
911d58de37
Fixed tests (object id)
2014-04-25 11:02:19 +08:00
Xinchen Hui
868c2f9c88
Fixed reference handling in bindCloumn
2014-04-25 11:00:35 +08:00
Xinchen Hui
67f27bce55
Fixed register bound parameters in execute
2014-04-25 10:44:21 +08:00
Xinchen Hui
36e214c88b
Fixed refcount of dbh (we don't need another refcount anymore)
2014-04-25 10:27:23 +08:00
Dmitry Stogov
e4c59d7f65
Merge branch 'refactoring2' of github.com:zendtech/php into refactoring2
2014-04-25 00:57:12 +04:00
Dmitry Stogov
df7ca608ce
Optimized constant lookup
2014-04-25 00:56:15 +04:00
Xinchen Hui
fb81d7270e
Merge branch 'refactoring2' of github.com:zendtech/php into refactoring2
2014-04-24 23:29:20 +08:00
Dmitry Stogov
0ca57dd1d3
Merge branch 'refactoring2' of github.com:zendtech/php into refactoring2
2014-04-24 19:15:30 +04:00
Dmitry Stogov
b1ff152782
Reimplement strtr()
2014-04-24 19:14:29 +04:00
Xinchen Hui
65931501e6
Fixed Aggregate
2014-04-24 22:43:30 +08:00
Xinchen Hui
9fe8531309
Various bugs fixed
2014-04-24 21:14:36 +08:00
Xinchen Hui
9824418c61
Merge branch 'refactoring2' of github.com:zendtech/php into refactoring2
2014-04-24 10:18:39 +08:00
Nikita Popov
d2e45b05c7
Small zts fix
2014-04-23 22:33:38 +02:00
Nikita Popov
58089c5977
Port ext/hash
...
Unsure what to do about hash_final
2014-04-23 20:34:05 +02:00
Nikita Popov
08ae88157b
Allocate zend_strings with correct size
...
For me (32bit) sizeof(zend_string) is 20, which means that the
char[1] array at the end is padded with three bytes. Thus allocating
based on sizeof(zend_string)-1 overallocates by those 3 padding bytes.
This commit fixes the allocation size, by using XtOffsetOf.
2014-04-23 19:34:51 +02:00
Nikita Popov
20580a511c
Fix ZTS build
2014-04-23 18:30:24 +02:00
Xinchen Hui
a30442c1c8
Refactor pdo_sqlite (only compilable)
2014-04-23 11:41:57 +08:00
Xinchen Hui
bd9f575517
Clean up (use zend_string and foreach macros)
2014-04-23 10:58:08 +08:00
Xinchen Hui
decda0dabe
Merge branch 'refactoring2' of github.com:zendtech/php into refactoring2
2014-04-23 00:18:18 +08:00
Xinchen Hui
97381369a3
Refactored sqlite3 (all tests passes)
2014-04-23 00:17:29 +08:00
Dmitry Stogov
7584ae3200
Fixed compilaation warnings
2014-04-22 18:52:59 +04:00
Dmitry Stogov
5864ce8a44
Fixed compilation warnings
2014-04-22 17:46:34 +04:00
Xinchen Hui
8581dd56af
Fixed segfault cause EG(This) is modified
2014-04-22 19:08:58 +08:00
Xinchen Hui
09dd780c60
USE ZEND_HASH_FOREACH_* macros
2014-04-22 18:29:56 +08:00
Xinchen Hui
bdfef93b42
Refactor PDO (only compilable now)
2014-04-22 18:23:03 +08:00
Xinchen Hui
89d89b9586
Merge branch 'refactoring2' of github.com:zendtech/php into refactoring2
2014-04-22 11:59:53 +08:00
Dmitry Stogov
b886d9ce1e
Use fast comparison function
2014-04-22 02:03:10 +04:00
Dmitry Stogov
4ed452c1b5
Convert zval_get_string() into "fast path" macro and "slow path" function
2014-04-21 22:36:01 +04:00
Dmitry Stogov
8ad8254a16
Merge branch 'refactoring2' of github.com:zendtech/php into refactoring2
2014-04-21 21:39:15 +04:00
Nikita Popov
0d43a277b8
Use zval_get_string in a few more places
2014-04-21 17:55:58 +02:00
Nikita Popov
bda96e3c58
Use zval_get_string in print_zval and propagate TSRMLS
2014-04-21 17:55:58 +02:00
Dmitry Stogov
72c287bd23
Combine HashTable.flags and HashTable.nApplyCount into single 32-bit word
2014-04-21 18:25:34 +04:00
Dmitry Stogov
afe66d89a1
Cleanup
2014-04-21 16:34:40 +04:00
Dmitry Stogov
dd464fb582
Use ZEND_HASH_FOREACH_* macros
2014-04-21 14:20:05 +04:00
Xinchen Hui
e48b9ad197
Merge branch 'refactoring2' of github.com:zendtech/php into refactoring2
2014-04-21 14:14:00 +08:00
Dmitry Stogov
54d9ad53f4
More ZEND_HASH_FOREACH_* related changes
2014-04-19 00:08:14 +04:00
Dmitry Stogov
277f8f6391
ZEND_HASH_FOREACH_* usage
2014-04-18 21:49:07 +04:00
Dmitry Stogov
7652a977a8
Use ZEND_FETCH_FOREACH_* macros to iterate over HashTables instead of zend_hash_move_forward() and family.
2014-04-18 19:18:11 +04:00
Nikita Popov
8a14276701
Fix libxml external entity loading
2014-04-18 00:15:13 +02:00
Nikita Popov
c3c47c431e
Move libxml_destroy_fci to RSHUTDOWN
...
If this is only done in post shutdown and the function name is
an object (e.g. closure), the object will already be freed during
zend_deactivate.
I left the rest of the shutdown procedure in post shutdown, as it
presumably has a reason to be there...
2014-04-18 00:15:13 +02:00
Nikita Popov
59d45e69f4
Fix libxml/sxe/dom node import/export
...
Also fix sxe zts.
2014-04-18 00:15:13 +02:00
Dmitry Stogov
3434d3fc98
Optimize CASE(TRUE, X) into BOOL(X) (this pattern affects wordpress)
2014-04-17 21:15:02 +04:00
Dmitry Stogov
e96073b1e4
Moved zend_literal->cache_slot right into zval.
...
It should be accessed using Z_CACHE_SLOT() macro.
zend_literal structure is removed.
API functions that accepted pointer to zend_literal now accept pointer to zval or cache_slot directly.
Calls of such functiond that now accept cache_slot need to be changed to pass -1 instead of NULL.
2014-04-17 15:40:45 +04:00
Dmitry Stogov
c92dd8eedf
Fixed ZEND_CAST related optimizations (now it returns IS_VAR instead of IS_TMP_VAR)
2014-04-17 11:12:47 +04:00
Dmitry Stogov
320bf772c6
Prevented modification of original name
2014-04-16 22:42:37 +04:00
Dmitry Stogov
3257dc09eb
Prevented modification of interned string
2014-04-16 22:42:15 +04:00
Dmitry Stogov
cc576c74d2
op_array->function_name, op_array->doc_comments and op_array->filename may be kept in opcache SHM
2014-04-16 22:41:07 +04:00