Electronics & Programming

develissimo

Open Source electronics development and programming

  • You are not logged in.
  • Root
  • » PHP
  • » [PHP-DEV] debug backtrace improvement [RSS Feed]

#1 Jan. 14, 2011 21:55:41

Derick R.
Registered: 2009-11-02
Reputation: +  0  -
Profile   Send e-mail  

[PHP-DEV] debug backtrace improvement


On Fri, 14 Jan 2011, Stas Malyshev wrote:

> I have a proposal for backtrace improvement:
>http://wiki.php.net/rfc/debugoptions> Short version: to add option to it that allows to suppress printing/including
> arguments, because sometimes the traces with args become unmanageable and args
> are rarely as important as the rest of the info.
>
> Comments?

I'm all for the option, but instead of having one positive
(PROVIDE_OBJECT) and the one negative (IGNORE_ARGS) "option" I would
suggest to have to positive ones:

PROVIDE_OBJECTS (I also pluralised it to be the same)
PROVIDE_ARGS

and then with the default value of course being 0x03.

cheers,
Derick

--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit:http://www.php.net/unsub.php

Offline

#2 Jan. 14, 2011 21:56:52

Stas M.
Registered: 2009-11-02
Reputation: +  0  -
Profile   Send e-mail  

[PHP-DEV] debug backtrace improvement


Hi!I'm all for the option, but instead of having one positive
(PROVIDE_OBJECT) and the one negative (IGNORE_ARGS) "option" I would
suggest to have to positive ones:

PROVIDE_OBJECTS (I also pluralised it to be the same)
PROVIDE_ARGSThe problem with it would be that debug_backtrace(true|false) won't workas before.--
Stanislav Malyshev, Software Architect
SugarCRM:http://www.sugarcrm.com/(408)454-6900 ext. 227

--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit:http://www.php.net/unsub.php

Offline

#3 Jan. 14, 2011 22:08:10

Derick R.
Registered: 2009-11-02
Reputation: +  0  -
Profile   Send e-mail  

[PHP-DEV] debug backtrace improvement


On Fri, 14 Jan 2011, Stas Malyshev wrote:

> > I'm all for the option, but instead of having one positive
> > (PROVIDE_OBJECT) and the one negative (IGNORE_ARGS) "option" I would
> > suggest to have to positive ones:
> >
> > PROVIDE_OBJECTS (I also pluralised it to be the same)
> > PROVIDE_ARGS
>
> The problem with it would be that debug_backtrace(true|false) won't work as
> before.

Ah, right. Still ugly :-) But not as bad as overloading to see whether
there is a bool or an int.

cheers,
Derick

--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit:http://www.php.net/unsub.php

Offline

#4 Jan. 14, 2011 22:25:47

Stas M.
Registered: 2009-11-02
Reputation: +  0  -
Profile   Send e-mail  

[PHP-DEV] debug backtrace improvement


Hi!Ah, right. Still ugly :-) But not as bad as overloading to see whether
there is a bool or an int.I wouldn't mind breaking this bit of BC in 5.4, but I'd like to have itin 5.3 and don't want to break too much.--
Stanislav Malyshev, Software Architect
SugarCRM:http://www.sugarcrm.com/(408)454-6900 ext. 227

--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit:http://www.php.net/unsub.php

Offline

  • Root
  • » PHP
  • » [PHP-DEV] debug backtrace improvement [RSS Feed]

Board footer

Moderator control

Enjoy the 17th of December
PoweredBy

The Forums are managed by develissimo stuff members, if you find any issues or misplaced content please help us to fix it. Thank you! Tell us via Contact Options
Leave a Message
Welcome to Develissimo Live Support