Re: [PHP-DEV] Accessing files on other virtual hosts (RE: [PHP-DEV] Reading memory "before" a variable)

2001-02-05 Thread Zeev Suraski
HP and HTML files from other >virtual hosts on the machine! Surly this should not be possible. > > >-Mårten. >Icq# 38863127 > > > >-Original Message- >From: Mårten Gustafsson [mailto:[EMAIL PROTECTED]] >Sent: Monday, February 05, 2001 4:12 PM >To: [EMAIL PRO

[PHP-DEV] Accessing files on other virtual hosts (RE: [PHP-DEV] Reading memory "before" a variable)

2001-02-05 Thread Mårten Gustafsson
[mailto:[EMAIL PROTECTED]] Sent: Monday, February 05, 2001 4:12 PM To: [EMAIL PROTECTED] Subject: [PHP-DEV] Reading memory "before" a variable Using PHP 4.0.4 for Windows it is possible to access memory "before" a variable using a negative index on a string variable. Executi

[PHP-DEV] Reading memory "before" a variable

2001-02-05 Thread Mårten Gustafsson
Using PHP 4.0.4 for Windows it is possible to access memory "before" a variable using a negative index on a string variable. Executing the snippet below outputs a lot of trash but alos the entire source code of a file that is auto prepended. -1; $i--) { $str .= $hello[$i]; } echo s