execution time of ';'

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi all

We develop our software with built-in debug handlers that are very talkative.  
Each class registers itself to a central debug handler. When a conditional 
define NODEBUG is set, that debughandler just does a return null but 
obviously it takes time to perform that call.

We are thinking of doing a search/replace on the source to replace all 
$this->debug('...'); with a ; because if I would replace it with a # it would 
generate errors in cases like this:

if(conditions ....)
 $this->debug('something...');

So here is the question:

Are there any reasons against doing this kind of replace, or is anyone aware 
of a better solution?

With kind regards


Andy

-- 
Registered Linux User Number 379093
Now listening to Virtual Zone - Virtual Zone

   amaroK::the Coolest Media Player in the known Universe!


   Cockroaches and socialites are the only things that can 
   stay up all night and eat anything.
					    Herb Caen
--
-- --BEGIN GEEK CODE BLOCK-----
Version: 3.1
GAT/O/>E$ d-(---)>+ s:(+)>: a--(-)>? C++++$(+++) UL++++>++++$ P-(+)>++
L+++>++++$ E---(-)@ W+++>+++$ !N@ o? !K? W--(---) !O !M- V-- PS++(+++)
PE--(-) Y+ PGP++(+++) t+(++) 5-- X++ R*(+)@ !tv b-() DI(+) D+(+++) G(+)
e>++++$@ h++(*) r-->++ y--()>++++
-- ---END GEEK CODE BLOCK------
--
Check out these few php utilities that I released
 under the GPL2 and that are meant for use with a 
 php cli binary:
 
 http://www.vlaamse-kern.com/sas/

--

Attachment: pgpUHUZSKaQpZ.pgp
Description: PGP signature


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux