Re: Bug #11749 Updated: Unserialize dies with Apache Module but is FINE with CGI
| From: | Thies C. Arntzen | Date: | Thu, 28 Jun 2001 14:01:05 +0000 |
| Subject: | Re: Bug #11749 Updated: Unserialize dies with Apache Module but is FINE with CGI | ||
| References: | 1 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-58327@lists.php.net to get a copy of this message | ||
On Wed, Jun 27, 2001 at 06:32:13PM -0000, btanner@home.net wrote:
> ID: 11749
> User Update by: btanner@home.net
> Status: Open
> Bug Type: Scripting Engine problem
> Operating system: Win32 (Win 2k)
> PHP Version: 4.0.6
> Description: Unserialize dies with Apache Module but is FINE with CGI
>
> If it helps:
>
> a)Script
> b)Datafile
works on linux.
please try changing
@fopen($FileLocation,"r");
to
@fopen($FileLocation,"rb");
and
fopen($FileLocation,"w");
to
fopen($FileLocation,"wb");
to force binary mode for your file - i'm pretty sure it will
fix your problem!
tc