Skip to content

Fix for Bug #63916 #252

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 10,000 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
10000 commits
Select commit Hold shift + click to select a range
7d7ff76
Merge branch 'PHP-5.4' into PHP-5.5
weltling Dec 5, 2012
9e50c54
Merge branch 'PHP-5.5'
weltling Dec 5, 2012
fa30e47
Slight performance improvement
dstogov Dec 5, 2012
77a9b9a
Merge branch 'PHP-5.5'
dstogov Dec 5, 2012
4facafd
Merge branch 'master' of git.php.net:php-src
dstogov Dec 5, 2012
26c165c
Merge branch 'PHP-5.5' of git.php.net:php-src into PHP-5.5
dstogov Dec 5, 2012
27528b6
Fixed comments
dstogov Dec 5, 2012
55e1a97
Merge branch 'PHP-5.5'
dstogov Dec 5, 2012
881416c
Fixed bug #63680 (Memleak in splfixedarray with cycle reference)
dstogov Dec 5, 2012
274ceb3
Merge branch 'PHP-5.4' into PHP-5.5
dstogov Dec 5, 2012
73601e2
Merge branch 'PHP-5.5'
dstogov Dec 5, 2012
df97c3a
Use get_gc instead of hacks of get_properties
dstogov Dec 5, 2012
bc78571
Merge branch 'PHP-5.4' into PHP-5.5
dstogov Dec 5, 2012
5ae182e
Merge branch 'PHP-5.5'
dstogov Dec 5, 2012
811cd76
Merge branch 'PHP-5.3' into PHP-5.4
johannes Dec 5, 2012
cd6bf83
Merge branch 'PHP-5.4' into PHP-5.5
johannes Dec 5, 2012
c058ed5
Merge branch 'PHP-5.5'
johannes Dec 5, 2012
5ac3577
Add UConverter class (ICU's UConverter API)
sgolemon Dec 5, 2012
eab1499
Invoke re2c with --no-generation-date to prevent unintentional / unne…
sebastianbergmann Dec 6, 2012
6fc2eca
Merge branch 'PHP-5.5'
sebastianbergmann Dec 6, 2012
8ca4288
Leftover: Invoke re2c with --no-generation-date to prevent unintentio…
sebastianbergmann Dec 6, 2012
4f4262e
Merge branch 'PHP-5.5'
sebastianbergmann Dec 6, 2012
e3b2a5c
Generatirs are going to be used less than regular functions
dstogov Dec 6, 2012
3067f54
Merge branch 'PHP-5.5'
dstogov Dec 6, 2012
16ec6fa
Cleanup NEWS
sebastianbergmann Dec 6, 2012
2a75f59
Merge branch 'PHP-5.3' into PHP-5.4
laruence Dec 10, 2012
4e7db3e
Merge branch 'PHP-5.4' into PHP-5.5
laruence Dec 10, 2012
107093e
Merge branch 'PHP-5.5'
laruence Dec 10, 2012
a1e401f
Merge branch 'PHP-5.3' into PHP-5.4
laruence Dec 10, 2012
8b8fb64
Merge branch 'PHP-5.3' into PHP-5.4
laruence Dec 10, 2012
3d86e6d
Fixed bug #63726 (Memleak with static properties and internal/user cl…
laruence Dec 10, 2012
70b65f3
Merge branch 'PHP-5.4' into PHP-5.5
laruence Dec 10, 2012
80e5850
Merge branch 'PHP-5.5'
laruence Dec 10, 2012
bd36d49
Merge branch 'PHP-5.3' into PHP-5.4
johannes Dec 10, 2012
1aba460
Merge branch 'PHP-5.4' into PHP-5.5
johannes Dec 10, 2012
ab2bfb6
Merge branch 'PHP-5.5'
johannes Dec 10, 2012
95fd52f
Merge branch 'PHP-5.3' into PHP-5.4
johannes Dec 10, 2012
c007ba4
Merge branch 'PHP-5.4' into PHP-5.5
johannes Dec 10, 2012
ef7ab81
Merge branch 'PHP-5.5'
johannes Dec 10, 2012
b7091aa
Deprecate ext/mysql.
LawnGnome Dec 10, 2012
ac0fb01
Merge branch 'PHP-5.5'
LawnGnome Dec 10, 2012
ec83534
Tinker with the wording of the MySQL deprecation news post.
LawnGnome Dec 11, 2012
2d1694d
Alter php_json_decode_ex() to respect JSON_BIGINT_AS_STRING for bare …
LawnGnome Dec 11, 2012
8bb106d
Merge branch 'PHP-5.4' into PHP-5.5
LawnGnome Dec 11, 2012
b10460d
Merge branch 'PHP-5.5'
LawnGnome Dec 11, 2012
a9a5f7a
- generators API exported for extensions
dstogov Dec 11, 2012
2025021
Merge branch 'PHP-5.5'
dstogov Dec 11, 2012
4d8d5d8
Fixed Bug #63738 unpack: back result with Z format
remicollet Dec 11, 2012
261995e
Merge branch 'PHP-5.5'
remicollet Dec 11, 2012
349baa3
Fixed license
lt Dec 12, 2012
9c96fe5
Restored proper generators behaviour in conjunction with "finally". (…
dstogov Dec 12, 2012
e7364e1
Merge branch 'PHP-5.5'
dstogov Dec 12, 2012
6e4cfa1
Really fix test pdo_mysql_class_constants.phpt
remicollet Dec 12, 2012
1f73ce3
Merge branch 'PHP-5.5'
remicollet Dec 12, 2012
6b0b4bf
An exception thrown in try or catch block is disacarded by return sta…
dstogov Dec 12, 2012
7b84d12
Merge branch 'PHP-5.5'
dstogov Dec 12, 2012
0450cb7
Merge branch 'master' of git.php.net:php-src
dstogov Dec 12, 2012
6fd8b65
Merge branch 'PHP-5.5' of git.php.net:php-src into PHP-5.5
dstogov Dec 12, 2012
3516b98
Merge branch 'license_fix' of https://github.com/leight/php-src
laruence Dec 13, 2012
1f51651
Merge branch 'PHP-5.3' into PHP-5.4
laruence Dec 13, 2012
4d2593e
Merge branch 'PHP-5.4' into PHP-5.5
laruence Dec 13, 2012
7ed8593
Merge branch 'PHP-5.5'
laruence Dec 13, 2012
35f86d2
Fixed bug #63757 (getenv() produces memory leak with CGI SAPI)
dstogov Dec 13, 2012
4b1b115
Merge branch 'PHP-5.4' into PHP-5.5
dstogov Dec 13, 2012
20113b5
Merge branch 'PHP-5.5'
dstogov Dec 13, 2012
ff1e1d7
Removed redundand checks from release build
dstogov Dec 13, 2012
cc118f7
Merge branch 'PHP-5.5'
dstogov Dec 13, 2012
438cd86
Removed unnecessary checks
dstogov Dec 13, 2012
7dd16bc
Merge branch 'PHP-5.5'
dstogov Dec 13, 2012
d5c2da5
Removed unreachable code
dstogov Dec 13, 2012
432902a
Merge branch 'PHP-5.5'
dstogov Dec 13, 2012
0d458ae
Fixed mysqlnd compilation in debug mode on windows
weltling Dec 13, 2012
bef54e5
Merge branch 'PHP-5.4' into PHP-5.5
weltling Dec 13, 2012
54a04d2
Merge branch 'PHP-5.5'
weltling Dec 13, 2012
ef37055
Merge branch 'PHP-5.3' into PHP-5.4
johannes Dec 13, 2012
2098cc7
Merge branch 'PHP-5.4' into PHP-5.5
johannes Dec 13, 2012
f8a2407
Merge branch 'PHP-5.5'
johannes Dec 13, 2012
6566ea6
Fix #63379 - Don't reset mod_user_is_open in destroy
arraypad Dec 13, 2012
61bf1f4
Merge branch 'PHP-5.4' into PHP-5.5
arraypad Dec 13, 2012
c66e54d
Merge branch 'PHP-5.5'
arraypad Dec 14, 2012
538d833
Merge branch 'PHP-5.3' into PHP-5.4
rlerdorf Dec 14, 2012
8fbeb6e
Merge branch 'PHP-5.4'
rlerdorf Dec 14, 2012
17b803d
Merge branch 'PHP-5.4' into PHP-5.5
rlerdorf Dec 14, 2012
d845549
Merge branch 'PHP-5.3' into PHP-5.4
rlerdorf Dec 14, 2012
3925683
Merge branch 'PHP-5.4' into PHP-5.5
rlerdorf Dec 14, 2012
c701aeb
Merge branch 'PHP-5.5'
rlerdorf Dec 14, 2012
77c4b84
Merge branch 'PHP-5.3' into PHP-5.4
rlerdorf Dec 14, 2012
5aabf24
Merge branch 'PHP-5.4' into PHP-5.5
rlerdorf Dec 14, 2012
42f3344
Merge branch 'PHP-5.5'
rlerdorf Dec 14, 2012
e65b966
Fixed uninitialized EX(call)->called_scope
dstogov Dec 14, 2012
ec4ff07
Merge branch 'PHP-5.5'
dstogov Dec 14, 2012
a467809
Add test for bug #63741
laruence Dec 14, 2012
359d91a
Add test for bug #63741
laruence Dec 14, 2012
1062052
Merge branch 'PHP-5.5'
laruence Dec 14, 2012
9fb5cfd
Fixed warning of no return in non-void funciton
laruence Dec 14, 2012
3acc729
Merge branch 'PHP-5.5'
laruence Dec 14, 2012
a73a6be
Fix warning of no return in non-void function
laruence Dec 14, 2012
72f7543
Merge branch 'PHP-5.5'
laruence Dec 14, 2012
e5b1ebc
update list of common Mime Types in PHP development server to support…
pascalchevrel Dec 11, 2012
d813af0
update test for supported Mime Types checking
pascalchevrel Dec 11, 2012
c3b4803
News entry for updated mime types
lstrojny Dec 14, 2012
aaa5e42
Merge branch 'PHP-5.4' into PHP-5.5
lstrojny Dec 14, 2012
765d520
Merge branch 'master' of git://github.com/php/php-src
lstrojny Dec 14, 2012
eb0693a
Merge branch 'PHP-5.5'
lstrojny Dec 14, 2012
36a5eca
Updating news entry to list new filetypes
lstrojny Dec 15, 2012
717b367
Fixed bug #63706: Cannot build PHP-5.5 with --enable-dtrace on Fedora 17
remicollet Dec 16, 2012
4ef9f00
Fixed bug #63706: Cannot build PHP-5.5 with --enable-dtrace on Fedora 17
remicollet Dec 16, 2012
67a7a66
Ignore Zend/zend_dtrace_gen.h and Zend/zend_dtrace_gen.hbak
sebastianbergmann Dec 16, 2012
8e22b04
Merge branch 'PHP-5.5'
sebastianbergmann Dec 16, 2012
2f7f57a
Merge branch 'PHP-5.3' into PHP-5.4
laruence Dec 17, 2012
ea51328
Merge branch 'PHP-5.4' into PHP-5.5
laruence Dec 17, 2012
6f45212
Merge branch 'PHP-5.5'
laruence Dec 17, 2012
05deaf1
Merge branch 'PHP-5.3' into PHP-5.4
laruence Dec 17, 2012
ea649a5
Merge branch 'PHP-5.4' into PHP-5.5
laruence Dec 17, 2012
73c9889
Merge branch 'PHP-5.5'
laruence Dec 17, 2012
28db07a
Fixed bug that exception won't be catched
laruence Dec 18, 2012
d3ec9ce
Revert "Fixed bug that exception won't be catched"
laruence Dec 18, 2012
210d428
ixed bug that exception won't be catched
laruence Dec 18, 2012
1f7c46b
be cautious about the result of strrchr
faizshukri Dec 18, 2012
19f8bba
News for PHP 5.5.0 Alphas
dsp Dec 14, 2012
2041e0d
Merge branch 'PHP-5.5'
dsp Dec 18, 2012
d53f1bf
Fix leak when generator ignores sent value
nikic Dec 18, 2012
5f7c478
Merge branch 'PHP-5.5'
nikic Dec 18, 2012
3732fa9
fix failing test on Linux build
remicollet Dec 19, 2012
828bb4d
Merge branch 'PHP-5.4' into PHP-5.5
remicollet Dec 19, 2012
f98a03b
Merge branch 'PHP-5.5'
remicollet Dec 19, 2012
c780ddb
Merge branch 'PHP-5.4'
faizshukri Dec 19, 2012
0a8777a
Merge branch 'master' of ssh://git.php.net/php-src
faizshukri Dec 19, 2012
ae9ba08
Merge branch 'PHP-5.4' of ssh://git.php.net/php-src into PHP-5.4
faizshukri Dec 19, 2012
2768315
Add missing zend_do_free call
nikic Dec 19, 2012
0e781e2
Merge branch 'PHP-5.5'
nikic Dec 19, 2012
59692de
Merge branch 'PHP-5.3' into PHP-5.4
johannes Dec 19, 2012
d57e474
Merge branch 'PHP-5.4'
faizshukri Dec 19, 2012
87f8092
Merge branch 'master' of ssh://git.php.net/php-src
faizshukri Dec 19, 2012
ec012c1
Merge branch 'PHP-5.4' into PHP-5.5
faizshukri Dec 19, 2012
456e37d
Merge branch 'PHP-5.5'
faizshukri Dec 19, 2012
1ee8c3d
Merge branch 'PHP-5.4' into PHP-5.5
johannes Dec 19, 2012
129580a
Merge branch 'PHP-5.5'
johannes Dec 19, 2012
66b88c9
Merge branch 'PHP-5.3' into PHP-5.4
adoy Dec 20, 2012
aa9156d
Merge branch 'PHP-5.4' into PHP-5.5
adoy Dec 20, 2012
e33e143
Merge branch 'PHP-5.5'
adoy Dec 20, 2012
180b9e1
Fix for bug #63811
rlerdorf Dec 20, 2012
d5fe896
Merge branch 'PHP-5.4' into PHP-5.5
rlerdorf Dec 20, 2012
d417a05
Merge branch 'PHP-5.5'
rlerdorf Dec 20, 2012
3e78c6a
Do not add a ref to EX(object) on generator clone
nikic Dec 20, 2012
6873038
Merge branch 'PHP-5.5'
nikic Dec 20, 2012
ffb848b
Fix bug #63822: Crash when using closures with ArrayAccess
nikic Dec 21, 2012
4509016
Merge branch 'PHP-5.5'
nikic Dec 21, 2012
14f1330
Fix crash when last yielded value is a closure
nikic Dec 21, 2012
1f4c71b
Merge branch 'PHP-5.5'
nikic Dec 21, 2012
763bce0
Fix test
adoy Dec 21, 2012
9d235ea
Merge branch 'PHP-5.4' into PHP-5.5
adoy Dec 21, 2012
a6a4323
Merge branch 'PHP-5.5'
adoy Dec 21, 2012
59a4514
Merge branch 'PHP-5.3' into PHP-5.4
adoy Dec 21, 2012
52e7b0c
Merge branch 'PHP-5.4' into PHP-5.5
adoy Dec 21, 2012
9cf98be
Merge branch 'PHP-5.5'
adoy Dec 21, 2012
5499c7d
Merge branch 'PHP-5.3' into PHP-5.4
adoy Dec 22, 2012
e3c88d1
Merge branch 'PHP-5.4' into PHP-5.5
adoy Dec 22, 2012
657d3f1
Merge branch 'PHP-5.5'
adoy Dec 22, 2012
b10a3b9
Merge branch 'PHP-5.3' into PHP-5.4
adoy Dec 23, 2012
3f0dcc0
Update NEWS file
adoy Dec 23, 2012
ee45354
Merge branch 'PHP-5.4' into PHP-5.5
adoy Dec 23, 2012
6ec8136
Merge branch 'PHP-5.5'
adoy Dec 23, 2012
ded889e
Remove duplicated function definition
adoy Dec 23, 2012
64595a5
Add curl_multi_setopt and clean curl_share_setopt
adoy Dec 23, 2012
4b4f3db
Support for curl_strerror and curl_multi_strerror
adoy Dec 23, 2012
33f44af
New curl_pause() function
adoy Dec 23, 2012
24f1ef1
Update NEWS
adoy Dec 23, 2012
c5cfe37
Merge branch 'PHP-5.5'
adoy Dec 23, 2012
be7b0bc
Implement Generator::throw() method
nikic Dec 17, 2012
fd25d48
Merge branch 'PHP-5.5'
nikic Dec 23, 2012
3f8c729
Traits refactoring
dstogov Dec 25, 2012
b8c719c
Merge branch 'PHP-5.4' into PHP-5.5
dstogov Dec 25, 2012
3b17a09
Merge branch 'PHP-5.5'
dstogov Dec 25, 2012
bc0425c
Removed deprecated fields
dstogov Dec 25, 2012
f3ea497
Merge branch 'PHP-5.5'
dstogov Dec 25, 2012
f0b459b
Fixed ZTS build
dstogov Dec 25, 2012
016f3c8
Merge branch 'PHP-5.4' into PHP-5.5
dstogov Dec 25, 2012
8728ca6
Merge branch 'PHP-5.5'
dstogov Dec 25, 2012
7e26296
spelling
dstogov Dec 25, 2012
7625a3b
Merge branch 'PHP-5.4' into PHP-5.5
dstogov Dec 25, 2012
245dbb0
Merge branch 'PHP-5.5'
dstogov Dec 25, 2012
8e6bf9e
spelling
dstogov Dec 25, 2012
ba6317b
Merge branch 'PHP-5.5'
dstogov Dec 25, 2012
c12ab5c
Merge branch 'PHP-5.3' into PHP-5.4
adoy Dec 26, 2012
5a97c30
Merge branch 'PHP-5.4' into PHP-5.5
adoy Dec 26, 2012
d87ad19
Merge branch 'PHP-5.5'
adoy Dec 26, 2012
8456cef
Fix ext/curl tests to work on every libcurl versions
adoy Dec 26, 2012
407f851
Merge branch 'PHP-5.5'
adoy Dec 26, 2012
663434c
Merge branch 'PHP-5.3' into PHP-5.4
adoy Dec 26, 2012
61afb2b
Merge branch 'PHP-5.4' into PHP-5.5
adoy Dec 26, 2012
c9a080d
Merge branch 'PHP-5.5'
adoy Dec 26, 2012
ac3d227
Fixed #63859 Memory leak when reusing curl-handle
adoy Dec 27, 2012
8b67981
Merge branch 'PHP-5.4' into PHP-5.5
adoy Dec 27, 2012
f3ff33a
Merge branch 'PHP-5.5'
adoy Dec 27, 2012
722b8fb
Add new curl options
adoy Dec 28, 2012
90cbe2a
Merge branch 'PHP-5.5'
adoy Dec 28, 2012
3990641
Treat "+0" and "-0" as valid integers just like var_dump() does.
mj Dec 24, 2012
dcd99c4
Add more tests for the new +0/-0 behaviour.
mj Dec 26, 2012
ee258fe
News entry for +0/-0 filter fix
lstrojny Dec 29, 2012
f8a9a47
Merge branch 'PHP-5.4' into PHP-5.5
lstrojny Dec 29, 2012
3b022e5
Merge branch 'PHP-5.5'
lstrojny Dec 29, 2012
8228597
Fixed bug #63874 (Segfaul if php_strip_whitespace has heredoc)
adoy Dec 30, 2012
ae5d862
Merge branch 'PHP-5.5'
adoy Dec 30, 2012
38150cb
Merge branch 'PHP-5.3' into PHP-5.4
laruence Jan 1, 2013
58dabff
Merge branch 'PHP-5.3' into PHP-5.4
laruence Jan 1, 2013
0a7395e
Happy New Year
laruence Jan 1, 2013
f01c295
Merge branch 'PHP-5.4' into PHP-5.5
laruence Jan 1, 2013
a666285
Happy New Year
laruence Jan 1, 2013
642721b
Merge branch 'PHP-5.5'
laruence Jan 1, 2013
343a919
Remove passwd handler from struct when not needed
adoy Jan 2, 2013
a63a725
Merge branch 'PHP-5.5'
adoy Jan 2, 2013
dd288f9
fix NEWS
smalyshev Dec 31, 2012
36e19c9
Bug #43177: If an eval() has a parse error, the overall exit status a…
smalyshev Jan 2, 2013
80a9a80
Merge branch 'PHP-5.4' into PHP-5.5
smalyshev Jan 2, 2013
6da86ac
Merge branch 'PHP-5.5'
smalyshev Jan 2, 2013
86c46b9
add fix #43177
smalyshev Jan 2, 2013
39df129
Merge branch 'PHP-5.4' into PHP-5.5
smalyshev Jan 2, 2013
de81646
Merge branch 'PHP-5.5'
smalyshev Jan 2, 2013
7ed2fdb
add bug #63762
smalyshev Jan 2, 2013
ff6b9a4
Merge branch 'PHP-5.4' into PHP-5.5
smalyshev Jan 2, 2013
5a27e97
Merge branch 'PHP-5.5'
smalyshev Jan 2, 2013
b3a8609
remove set but not used variables
remicollet Jan 2, 2013
a3b7d24
Merge branch 'PHP-5.5'
remicollet Jan 2, 2013
aaecb99
Merge branch 'PHP-5.3' into PHP-5.4
johannes Jan 3, 2013
c2ad892
Merge branch 'PHP-5.4' into PHP-5.5
johannes Jan 3, 2013
0c6ce22
Merge branch 'PHP-5.5'
johannes Jan 3, 2013
5894aa0
5.4.12-dev
smalyshev Jan 4, 2013
a72102f
Merge branch 'PHP-5.4' into PHP-5.5
smalyshev Jan 4, 2013
1dda0c5
Merge branch 'PHP-5.5' of git.php.net:php-src into PHP-5.5
smalyshev Jan 4, 2013
782f4ac
Merge branch 'PHP-5.5'
smalyshev Jan 4, 2013
aff5d08
Merge branch 'PHP-5.3' into PHP-5.4
laruence Jan 4, 2013
2feea39
Update NEWS
laruence Jan 4, 2013
c4f2a20
Merge branch 'PHP-5.4' into PHP-5.5
laruence Jan 4, 2013
8a2208a
Merge branch 'PHP-5.5'
laruence Jan 4, 2013
f85e595
Improve resource management for curl handle
adoy Jan 5, 2013
4084a02
Merge branch 'PHP-5.5'
adoy Jan 5, 2013
f3824ad
Bug #63699 performance improvements for ext/date by only validating t…
lstrojny Jan 6, 2013
ce76ec5
Merge branch 'PHP-5.5'
lstrojny Jan 6, 2013
67557fc
Bug #63699: performance improvements for varios ext/date functions
lstrojny Jan 6, 2013
8e5460a
Adding test from 5.5
lstrojny Jan 6, 2013
c2f8e90
Merge branch 'PHP-5.3' into PHP-5.4
laruence Jan 6, 2013
a3a699e
Merge branch 'PHP-5.4' of git.php.net:php-src into PHP-5.4
laruence Jan 6, 2013
a426e0b
bump year
laruence Jan 6, 2013
ec2fff8
Bug #23955: allow specifiy max age for setcookie()
lstrojny Jan 6, 2013
cbb5d42
Merge branch 'PHP-5.4' into PHP-5.5
laruence Jan 6, 2013
9fae5b6
Merge branch 'PHP-5.5'
lstrojny Jan 6, 2013
742b0e5
Merge branch 'PHP-5.5' of git.php.net:php-src into PHP-5.5
laruence Jan 6, 2013
786d34f
Merge branch 'PHP-5.5'
laruence Jan 6, 2013
19b5e8a
Fixes Bug #63916 PDO::PARAM_INT casts to 32bit int internally even on…
srgoogleguy Jan 6, 2013
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
133 changes: 119 additions & 14 deletions .gdbinit
Original file line number Diff line number Diff line change
@@ -1,6 +1,19 @@
define set_ts
set $tsrm_ls = $arg0
end

document set_ts
set the ts resource, it is impossible for gdb to
call ts_resource_ex while no process is running,
but we could get the resource from the argument
of frame info.
end

define ____executor_globals
if basic_functions_module.zts
set $tsrm_ls = ts_resource_ex(0, 0)
if !$tsrm_ls
set $tsrm_ls = ts_resource_ex(0, 0)
end
set $eg = ((zend_executor_globals*) (*((void ***) $tsrm_ls))[executor_globals_id-1])
set $cg = ((zend_compiler_globals*) (*((void ***) $tsrm_ls))[compiler_globals_id-1])
else
Expand Down Expand Up @@ -37,9 +50,101 @@ end
define dump_bt
set $t = $arg0
while $t
printf "[0x%08x] ", $t
if $t->function_state.function->common.function_name
printf "%s() ", $t->function_state.function->common.function_name
printf "[%p] ", $t
set $fst = $t->function_state
if $fst.function->common.function_name
if $fst.arguments
set $count = (int)*($fst.arguments)

if $t->object
if $fst.function.common.scope
printf "%s->", $fst.function.common.scope->name
else
if !$eg
____executor_globals
end

set $known_class = 0
if $eg
set $handle = $t->object.value.obj.handle
set $handlers = $t->object.value.obj.handlers
set $zobj = (zend_object *)$eg.objects_store.object_buckets[$handle].bucket.obj.object

if $handlers->get_class_entry == &zend_std_object_get_class
set $known_class = 1

if $handlers.get_class_name
if $handlers.get_class_name != &zend_std_object_get_class_name
set $known_class = 0
end
end

if $known_class
printf "%s->", $zobj->ce.name
end
end
end

if !$known_class
printf "(Unknown)->"
end
end
else
if $fst.function.common.scope
printf "%s::", $fst.function.common.scope->name
end
end

printf "%s(", $fst.function->common.function_name
while $count > 0
set $zvalue = *(zval **)($fst.arguments - $count)
set $type = $zvalue->type
if $type == 0
printf "NULL"
end
if $type == 1
printf "%ld", $zvalue->value.lval
end
if $type == 2
printf "%lf", $zvalue->value.dval
end
if $type == 3
if $zvalue->value.lval
printf "true"
else
printf "false"
end
end
if $type == 4
printf "array(%d)[%p]", $zvalue->value.ht->nNumOfElements, $zvalue
end
if $type == 5
printf "object[%p]", $zvalue
end
if $type == 6
____print_str $zvalue->value.str.val $zvalue->value.str.len
end
if $type == 7
printf "resource(#%d)", $zvalue->value.lval
end
if $type == 8
printf "constant"
end
if $type == 9
printf "const_array"
end
if $type > 9
printf "unknown type %d", $type
end
set $count = $count -1
if $count > 0
printf ", "
end
end
printf ") "
else
printf "%s() ", $fst.function->common.function_name
end
else
printf "??? "
end
Expand Down Expand Up @@ -167,7 +272,7 @@ define ____printzv
____executor_globals
set $zvalue = $arg0

printf "[0x%08x] ", $zvalue
printf "[%p] ", $zvalue

if $zvalue == $eg.uninitialized_zval_ptr
printf "*uninitialized* "
Expand Down Expand Up @@ -208,7 +313,7 @@ end

define print_const_table
set $ind = 1
printf "[0x%08x] {\n", $arg0
printf "[%p] {\n", $arg0
____print_const_table $arg0
printf "}\n"
end
Expand Down Expand Up @@ -248,7 +353,7 @@ end

define print_ht
set $ind = 1
printf "[0x%08x] {\n", $arg0
printf "[%p] {\n", $arg0
____print_ht $arg0 1
printf "}\n"
end
Expand All @@ -259,7 +364,7 @@ end

define print_htptr
set $ind = 1
printf "[0x%08x] {\n", $arg0
printf "[%p] {\n", $arg0
____print_ht $arg0 0
printf "}\n"
end
Expand All @@ -270,7 +375,7 @@ end

define print_htstr
set $ind = 1
printf "[0x%08x] {\n", $arg0
printf "[%p] {\n", $arg0
____print_ht $arg0 2
printf "}\n"
end
Expand Down Expand Up @@ -306,7 +411,7 @@ end

define print_ft
set $ind = 1
printf "[0x%08x] {\n", $arg0
printf "[%p] {\n", $arg0
____print_ft $arg0
printf "}\n"
end
Expand Down Expand Up @@ -383,7 +488,7 @@ end

define print_pi
set $pi = $arg0
printf "[0x%08x] {\n", $pi
printf "[%p] {\n", $pi
printf " h = %lu\n", $pi->h
printf " flags = %d (", $pi->flags
if $pi->flags & 0x100
Expand Down Expand Up @@ -439,7 +544,7 @@ define printzn
set $optype = "IS_UNUSED"
end

printf "[0x%08x] %s", $znode, $optype
printf "[%p] %s", $znode, $optype

if $znode->op_type == 1
printf ": "
Expand Down Expand Up @@ -519,7 +624,7 @@ define zmemcheck
else
set $filename = $filename + 1
end
printf " 0x%08x ", $aptr
printf " %p ", $aptr
if $p->size == sizeof(struct _zval_struct) && ((struct _zval_struct *)$aptr)->type >= 0 && ((struct _zval_struct *)$aptr)->type < 10
printf "ZVAL?(%-2d) ", $p->size
else
Expand Down Expand Up @@ -549,7 +654,7 @@ define zmemcheck
end
end
if $not_found
printf "no such block that begins at 0x%08x.\n", $aptr
printf "no such block that begins at %p.\n", $aptr
end
if $arg0 == 0
printf "-------------------------------------------------------------------------------\n"
Expand Down
Loading