[PHP] null character - file related function

2003-10-06 Thread Martin Straka
Hi, Is somewhere documented that everything after NULL (0x00 %00) character is ignored for example in functions include, fopen etc? ? $a = /etc/passwd.chr(0)..inc; include($a); ? Martin Straka -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] null character - file related function

2003-10-06 Thread Marek Kilimajer
You cannot have chr(0) in filenames Martin Straka wrote: Hi, Is somewhere documented that everything after NULL (0x00 %00) character is ignored for example in functions include, fopen etc? ? $a = /etc/passwd.chr(0)..inc; include($a); ? Martin Straka -- PHP General Mailing List

Re: [PHP] null character - file related function

2003-10-06 Thread Mark Charette
On Mon, 6 Oct 2003, Martin Straka wrote: Is somewhere documented that everything after NULL (0x00 %00) character is ignored for example in functions include, fopen etc? Interestingly, no, it's not documented in the manual (at least I couldn't find any official documentation on NULL terminated

Re: [PHP] null character - file related function

2003-10-06 Thread Robert Cummings
On Mon, 2003-10-06 at 11:29, Mark Charette wrote: On Mon, 6 Oct 2003, Martin Straka wrote: Is somewhere documented that everything after NULL (0x00 %00) character is ignored for example in functions include, fopen etc? Interestingly, no, it's not documented in the manual (at least I

Re: [PHP] null character - file related function

2003-10-06 Thread Mark Charette
On 6 Oct 2003, Robert Cummings wrote: Strings in PHP are binary safe and thus do not rely on null temrination. You are, of course, right (just a brainfart on my part ...). There are a number of functions that depend on null termination of strings; handing a string with embedded nulls in it to

Re: [PHP] null character - file related function

2003-10-06 Thread Martin Straka
Hi, On Mon, 6 Oct 2003, Mark Charette wrote: Strings in PHP are binary safe and thus do not rely on null temrination. You are, of course, right (just a brainfart on my part ...). There are a number of functions that depend on null termination of strings; handing a string with embedded

Re: [PHP] null character - file related function

2003-10-06 Thread Curt Zirzow
* Thus wrote Martin Straka ([EMAIL PROTECTED]): Hi, On Mon, 6 Oct 2003, Mark Charette wrote: Strings in PHP are binary safe and thus do not rely on null temrination. You are, of course, right (just a brainfart on my part ...). There are a number of functions that depend on null

Re: [PHP] null character - file related function

2003-10-06 Thread Burhan Khalid
Curt Zirzow wrote: Some functions are documented as binary safe, i'm not entirely sure what php's policy is on noting if a function is binary safe or not. I believe for some, it states in the manual. Something like this function became binary safe as of PHP version ___. -- Burhan Khalid