Skip to content

Commit c19d519

Browse files
committed
Merge branch 'master' of github.com-tml:php/php-src
2 parents 39f3547 + 3986b6a commit c19d519

File tree

6,129 files changed

+242854
-283491
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

6,129 files changed

+242854
-283491
lines changed

.appveyor.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,13 +18,12 @@ clone_depth: 64
1818

1919
cache:
2020
- c:\build-cache
21-
- c:\build-cache\sdk -> .appveyor.yml
2221

2322
environment:
2423
PHP_BUILD_CACHE_BASE_DIR: c:\build-cache
2524
PHP_BUILD_OBJ_DIR: c:\obj
2625
PHP_BUILD_CACHE_SDK_DIR: c:\build-cache\sdk
27-
PHP_BUILD_SDK_BRANCH: php-sdk-2.0.12beta2
26+
PHP_BUILD_SDK_BRANCH: php-sdk-2.1.5
2827
PHP_BUILD_CRT: vc15
2928
# ext and env setup for tests
3029
#MYSQL_TEST_PASSWD: Password12!
@@ -44,7 +43,8 @@ environment:
4443
services:
4544
# the setup scripts have to be touched, once some other db version is used
4645
- mysql
47-
- postgresql96
46+
- postgresql101
47+
- mssql2017
4848

4949
platform:
5050
- x64

.editorconfig

Lines changed: 25 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,35 @@
1-
; http://editorconfig.org/
1+
# http://editorconfig.org/
22

33
root = true
44

5-
[*.{c,h}]
6-
charset = UTF-8
7-
end_of_line = LF
5+
[*.{c,h,awk,w32,bat,mk,frag}]
6+
charset = utf-8
7+
end_of_line = lf
88
indent_size = 4
99
indent_style = tab
10-
insert_final_newline = true
1110
tab_width = 4
1211
trim_trailing_whitespace = true
12+
insert_final_newline = true
13+
14+
[*.{php,phpt}]
15+
charset = utf-8
16+
end_of_line = lf
17+
indent_size = 4
18+
indent_style = space
19+
trim_trailing_whitespace = true
20+
insert_final_newline = true
1321

14-
[*.yml]
22+
[*.{yml,m4,sh}]
23+
charset = utf-8
24+
end_of_line = lf
1525
indent_size = 2
1626
indent_style = space
27+
trim_trailing_whitespace = true
28+
insert_final_newline = true
29+
30+
[*.md]
31+
charset = utf-8
32+
end_of_line = lf
33+
indent_style = space
34+
trim_trailing_whitespace = false
35+
insert_final_newline = true

.gdbinit

Lines changed: 43 additions & 44 deletions
Original file line numberDiff line numberDiff line change
@@ -171,23 +171,23 @@ define ____printzv_contents
171171
printf "UNDEF"
172172
end
173173
if $type == 1
174-
printf "NULL"
174+
printf "NULL"
175175
end
176176
if $type == 2
177177
printf "bool: false"
178178
end
179179
if $type == 3
180180
printf "bool: true"
181181
end
182-
if $type == 4
182+
if $type == 4
183183
printf "long: %ld", $zvalue->value.lval
184-
end
185-
if $type == 5
186-
printf "double: %f", $zvalue->value.dval
187-
end
188-
if $type == 6
189-
printf "string: %s", $zvalue->value.str->val
190-
end
184+
end
185+
if $type == 5
186+
printf "double: %f", $zvalue->value.dval
187+
end
188+
if $type == 6
189+
printf "string: %s", $zvalue->value.str->val
190+
end
191191
if $type == 7
192192
printf "array: "
193193
if ! $arg1
@@ -245,25 +245,31 @@ define ____printzv_contents
245245
printf "const: %s", $zvalue->value.str->val
246246
end
247247
if $type == 12
248-
printf "const_ast"
248+
printf "CONSTANT_AST"
249249
end
250250
if $type == 13
251-
printf "_IS_BOOL"
251+
printf "_BOOL"
252252
end
253253
if $type == 14
254-
printf "IS_CALLABLE"
254+
printf "CALLABLE"
255255
end
256256
if $type == 15
257257
printf "indirect: "
258258
____printzv $zvalue->value.zv $arg1
259259
end
260-
if $type == 16
261-
printf "string_offset"
262-
end
263260
if $type == 17
264261
printf "pointer: %p", $zvalue->value.ptr
265262
end
266-
if $type > 17
263+
if $type == 18
264+
printf "ITERABLE"
265+
end
266+
if $type == 19
267+
printf "VOID"
268+
end
269+
if $type == 20
270+
printf "_ERROR"
271+
end
272+
if $type == 16 || $type > 20
267273
printf "unknown type %d", $type
268274
end
269275
printf "\n"
@@ -283,38 +289,18 @@ define ____printzv
283289
end
284290
end
285291

286-
define ____print_const_table
287-
set $ht = $arg0
288-
set $p = $ht->pListHead
289-
290-
while $p != 0
291-
set $const = (zend_constant *) $p->pData
292-
293-
set $i = $ind
294-
while $i > 0
295-
printf " "
296-
set $i = $i - 1
297-
end
298-
299-
if $p->nKeyLength > 0
300-
____print_str $p->arKey $p->nKeyLength
301-
printf " => "
302-
else
303-
printf "%d => ", $p->h
304-
end
305-
306-
____printzv_contents &$const->value 0
307-
set $p = $p->pListNext
308-
end
309-
end
310-
311292
define print_const_table
312293
set $ind = 1
313294
printf "[%p] {\n", $arg0
314-
____print_const_table $arg0
295+
____print_ht $arg0 4
315296
printf "}\n"
316297
end
317298

299+
document print_const_table
300+
Dumps elements of Constants HashTable
301+
Example: print_const_table executor_globals.zend_constants
302+
end
303+
318304
define ____print_ht
319305
set $ht = (HashTable*)$arg0
320306
set $n = $ind
@@ -361,6 +347,10 @@ define ____print_ht
361347
set $func = (zend_function*)$p->val.value.ptr
362348
printf "\"%s\"\n", $func->common.function_name->val
363349
end
350+
if $arg1 == 4
351+
set $const = (zend_constant *)$p->val.value.ptr
352+
____printzv $const 1
353+
end
364354
end
365355
set $i = $i + 1
366356
end
@@ -472,9 +462,12 @@ end
472462

473463
define print_pi
474464
set $pi = (zend_property_info *)$arg0
465+
set $initial_offset = ((uint32_t)(zend_uintptr_t)(&((zend_object*)0)->properties_table[(0)]))
466+
set $ptr_to_val = (zval*)((char*)$pi->ce->default_properties_table + $pi->offset - $initial_offset)
475467
printf "[%p] {\n", $pi
468+
printf " offset = %p\n", $pi->offset
476469
printf " ce = [%p] %s\n", $pi->ce, $pi->ce->name->val
477-
printf " flags = %d (", $pi->flags
470+
printf " flags = 0x%x (", $pi->flags
478471
if $pi->flags & 0x100
479472
printf "ZEND_ACC_PUBLIC"
480473
else
@@ -485,14 +478,20 @@ define print_pi
485478
printf "ZEND_ACC_PRIVATE"
486479
else
487480
if $pi->flags & 0x800
488-
printf "ZEND_ACC_CHANGED"
481+
printf "ZEND_ACC_EARLY_BINDING"
482+
else
483+
if $pi->flags & 0x20000
484+
printf "ZEND_ACC_SHADOW"
485+
end
489486
end
490487
end
491488
end
492489
end
493490
printf ")\n"
494491
printf " name = "
495492
print_zstr $pi->name
493+
printf " default value: "
494+
printzv $ptr_to_val
496495
printf "}\n"
497496
end
498497

0 commit comments

Comments
 (0)