Re: System errno in PHP
| From: | Richard Lynch | Date: | Thu, 21 Feb 2008 17:04:07 +0000 |
| Subject: | Re: System errno in PHP | ||
| References: | 1 2 3 4 5 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-269798@lists.php.net to get a copy of this message | ||
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?