php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #70008 .gdbinit print_cvs needs updating for EX_CV_NUM()
Submitted: 2015-07-07 09:35 UTC Modified: 2018-06-16 14:39 UTC
Votes:1
Avg. Score:3.0 ± 0.0
Reproduced:0 of 0 (0.0%)
From: kenny at kennynet dot co dot uk Assigned: cmb (profile)
Status: Closed Package: *General Issues
PHP Version: 5.5.26 OS: Debian wheezy
Private report: No CVE-ID: None
 [2015-07-07 09:35 UTC] kenny at kennynet dot co dot uk
Description:
------------
Hi,

In PHP 5.5+ internal changes lists:-

"""
Removed the execute_data->CVs field. The VM compiled variables are always allocated immediately after the execute_data structure, and are now accessed by the offset from the execute_data base pointer instead of via execute_data->CVs. You can use the EX_CV_NUM() macro to access compiled variables by number.
"""

But the .gdbinit file has not been updated and is still trying to use the CVs member in print_cvs

Test script:
---------------
$ gdb -p <php pid>
(gdb) source .gdbinit
(gdb) print_cvs

Expected result:
----------------
The compiled variables are displayed.

Actual result:
--------------
(gdb) print_cvs
There is no member named CVs.

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2015-08-08 13:58 UTC] bwoebi@php.net
-Package: phpdbg +Package: *General Issues
 [2016-09-22 10:18 UTC] xiemaomao520 at 163 dot com
Excuse me, does it fix?
Where is CVs?
How to print current args?
 [2018-06-16 14:39 UTC] cmb@php.net
-Status: Open +Status: Closed -Assigned To: +Assigned To: cmb
 [2018-06-16 14:39 UTC] cmb@php.net
Well, PHP 5.5 is water under the bridge now, PHP 5.6 is out of
active support for quite some time, and the fix for bug #72680
should make a working print_cvs available for PHP 7.
 
PHP Copyright © 2001-2018 The PHP Group
All rights reserved.
Last updated: Wed Dec 12 04:01:25 2018 UTC