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: 2015-08-08 13:58 UTC
Votes:1
Avg. Score:3.0 ± 0.0
Reproduced:0 of 0 (0.0%)
From: kenny at kennynet dot co dot uk Assigned:
Status: Open Package: *General Issues
PHP Version: 5.5.26 OS: Debian wheezy
Private report: No CVE-ID: None
Have you experienced this issue?
Rate the importance of this bug to you:

 [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?
 
PHP Copyright © 2001-2018 The PHP Group
All rights reserved.
Last updated: Sun Nov 19 01:31:42 2017 UTC