RE: How do I convert the string "E_ALL & ~E_NOTICE" to the decimal equivalent 6135?

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

 



 

> -----Original Message-----
> From: Ford, Mike [mailto:M.Ford@xxxxxxxxxxxxxx] 
> Sent: Thursday, November 11, 2010 12:58 AM
> To: php-general@xxxxxxxxxxxxx
> Subject: RE:  How do I convert the string "E_ALL & 
> ~E_NOTICE" to the decimal equivalent 6135?
> 
> > -----Original Message-----
> > From: Daevid Vincent [mailto:daevid@xxxxxxxxxx]
> > Sent: 11 November 2010 04:06
> > To: php-general@xxxxxxxxxxxxx
> > 
> > We're trying to move all of our configuration files for our
> > DEV/TEST/PROD
> > and various python scripts and such that all need the same DB
> > connection
> > parameters and pathing information to a common and simple config.ini
> > file
> > they all can share across languages.
> > 
> > One snag I ran into is this:
> > 
> > [dart]
> > relative_url 	= /dart2
> > absolute_path 	= /home/www/dart2
> > log_level		= E_ALL & ~E_NOTICE
> > 
> > But when I read it in from the file, it's a string (of course)
> 
> That's odd -- parse_ini_file() should definitely translate 
> those constants!
> It certainly works on my v5.2.5 installation.
> 
> Cheers!
> 
> Mike

You assume I'm using that busted-ass "parse_ini_file()" function. ;-)

See previous emails as to why that's a useless option for me.

I wrote a much better parser which I'll post in another email.


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[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