Re: Does a fopen with 'b' mode suppress magic_quotes_runtime ?
- From: "Chung Leong" <chernyshevsky@xxxxxxxxxxx>
- Date: 30 Mar 2006 07:34:43 -0800
flconseil@xxxxxxxx wrote:
Hello,
The PHP documentation contains a user note which says that opening a
file in binary mode ('b' flag) replaces the need to set
magic_quotes_runtime to off before every read and writes.
As it seems not to correspond to the rest of the documentation (I
thought that the 'b' mode was used only for Windows end of lines), can
somebody please tell me if it is right or wrong ?
I am developping a library which needs to read binary data from files
and, as I have to deal with a possible setting of magic_quotes_runtime
to on, it would make it much simpler if it could be specified at
fopen() time.
Thanks in advance
François
Opening a file with 'b' does not suppress magic_quotes_runtime. If it
is turned on, then file(), fread(), file_get_contents(), and others
will add slashes to their results.
Do people really use magic_quotes_runtime?
.
- Follow-Ups:
- Re: Does a fopen with 'b' mode suppress magic_quotes_runtime ?
- From: flconseil@xxxxxxxx
- Re: Does a fopen with 'b' mode suppress magic_quotes_runtime ?
- References:
- Does a fopen with 'b' mode suppress magic_quotes_runtime ?
- From: flconseil@xxxxxxxx
- Does a fopen with 'b' mode suppress magic_quotes_runtime ?
- Prev by Date: Re: unexpected ELSE
- Next by Date: Re: Strict types
- Previous by thread: Re: Does a fopen with 'b' mode suppress magic_quotes_runtime ?
- Next by thread: Re: Does a fopen with 'b' mode suppress magic_quotes_runtime ?
- Index(es):
Relevant Pages
|