Re: System errno in PHP

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

 



On Wed, February 20, 2008 2:56 am, Michal Maras wrote:
> I have read http://php.net/fopen from top to bottom, but I could not
> find
> how to get  system error number.
> With set_error_handler I can get string for example
>
> fopen(hmc_configuration.cfg)
> [function.fopen<http://ds63450.mspr.detemobil.de/%7Emmaras/HMC/function.fopen>]:
> failed to open stream: Permission denied
>
> but I need integer number not string, because string error messages
> depends
> on locale setting.
>  Of course, I can test some conditions before fopen, but it is not
> enough
> for me.

Put in a Feature Request to expose the error number from the OS, I
guess...

http://bugs.php.net/

It *seems* like it ought to be reasonable enough to this naive user.

-- 
Some people have a "gift" link here.
Know what I want?
I want you to buy a CD from some indie artist.
http://cdbaby.com/from/lynch
Yeah, I get a buck. So?

-- 
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