# CG(zend_linecol)

- Thread: https://externals.io/message/42944
- Original archive: https://news-web.php.net/php.internals/42944
- Started by Sebastian Bergmann on 2009-02-05T19:14:57+00:00
- Messages: 4
- Reply by email to internals@lists.php.net
- More for agents: search with https://externals.io/search.md?q={query} · JSON API at https://externals.io/api · documentation at https://externals.io/llms.txt

---

## #42944 — Sebastian Bergmann — 2009-02-05T19:14:57+00:00

URL: https://externals.io/message/42944#42944

Would it be possible to implement CG(zend_linecol) in addition to
 CG(zend_lineno)? As far I can see, this is a missing prerequisite for
 Xdebug to report more fine-grained code coverage, for instance.

-- 
Sebastian Bergmann                          http://sebastian-bergmann.de/
GnuPG Key: 0xB85B5D69 / 27A7 2B14 09E4 98CD 6277 0E5B 6867 C514 B85B 5D69

---

## #42946 — shire — 2009-02-05T19:41:17+00:00

URL: https://externals.io/message/42944#42946 · In reply to: #42944

Sebastian Bergmann wrote:
>   Would it be possible to implement CG(zend_linecol) in addition to
>   CG(zend_lineno)? As far I can see, this is a missing prerequisite for
>   Xdebug to report more fine-grained code coverage, for instance.
>

I've been thinking about this also, and would find this useful for some profiler/visualization purposes and perhaps for inclusion in errors.

-shire

---

## #42953 — Stanislav Malyshev — 2009-02-05T20:42:58+00:00

URL: https://externals.io/message/42944#42953 · In reply to: #42944

Hi!

>  Would it be possible to implement CG(zend_linecol) in addition to
>  CG(zend_lineno)? As far I can see, this is a missing prerequisite for
>  Xdebug to report more fine-grained code coverage, for instance.

Unless we put this inside each opcode, I'm not sure it'd help xdebug too 
much. And I'm not sure it is worth inflating the opcodes.
Also, I'm not sure scanner now knows enough to do it - though maybe it 
can be made to know it.
-- 
Stanislav Malyshev, Zend Software Architect
stas@zend.com   http://www.zend.com/
(408)253-8829   MSN: stas@zend.com

---

## #45855 — Sebastian Bergmann — 2009-10-21T13:12:50+00:00

URL: https://externals.io/message/42944#45855 · In reply to: #42953

Stanislav Malyshev wrote:
> > […]
> 
> Unless we put this inside each opcode, I'm not sure it'd help xdebug too
> much. And I'm not sure it is worth inflating the opcodes.
> Also, I'm not sure scanner now knows enough to do it - though maybe it
> can be made to know it.

 Did anyone look into this yet? I still think that it would be beneficial
 to have this information.

-- 
Sebastian Bergmann                    Co-Founder and Principal Consultant
http://sebastian-bergmann.de/                           http://thePHP.cc/
