Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:16190 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 70573 invoked by uid 1010); 10 May 2005 07:43:06 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 41813 invoked from network); 10 May 2005 07:22:24 -0000 Received: from unknown (HELO orbitel.bg) (127.0.0.1) by localhost with SMTP; 10 May 2005 07:22:24 -0000 X-Host-Fingerprint: 216.35.196.23 server299.com Linux 2.4/2.6 Received: from ([216.35.196.23:38948] helo=server299.com) by pb1.pair.com (ecelerity 1.2 r(5656M)) with SMTP id 79/47-35155-F2160824 for ; Tue, 10 May 2005 03:22:23 -0400 Received: (qmail 760 invoked from network); 10 May 2005 07:22:17 -0000 Received: from unknown (HELO ?192.168.1.10?) (213.91.217.139) by ns1.server299.com with SMTP; 10 May 2005 07:22:17 -0000 Reply-To: bu@orbitel.bg Organization: Orbitel To: internals@lists.php.net Date: Tue, 10 May 2005 10:22:11 +0300 User-Agent: KMail/1.7.1 References: <20050509214413.50438.qmail@lists.php.net> In-Reply-To: <20050509214413.50438.qmail@lists.php.net> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="nextPart9377645.Eod1ekn6Rm"; protocol="application/pgp-signature"; micalg=pgp-sha1 Content-Transfer-Encoding: 7bit Message-ID: <200505101022.16243.bu@orbitel.bg> Subject: Re: [PHP-DEV] Binary data in session From: bu@orbitel.bg (Petar Nedyalkov) --nextPart9377645.Eod1ekn6Rm Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline On Tuesday 10 May 2005 00:48, john wrote: > I have been developing a site which stores an image files binary data > inside a session variable. Initially, I was developing this site on the > following environment: > > Apache-2.0.52/PHP5.0.3/Windows XP > > Things worked very well, as I expected them to anyway. I would upload > images and they would be manipulated and stored back into the session. > > I then moved over to my production box: > > Apache-2.0.54/PHP5.0.4/FreeBSD > > And everything literally stopped dead in it's track with regards to the > session variables and the binary data. Whenever I now upload an image, > it is properly stored in session. However, whenever I do > session_start(); on any page, it just hangs. > > In fact, here is the test.php file on which it hung: > > session_start(); > ?> > Hi // Never gets outputted to browser What does print_r($_SESSION); say. Also, use a debug LogLevel in Apache and check the output in the error_log= =20 file. > > I've yet to come across other users with this same problem. Furthermore, > upon suggestions of co-workers, I have tried to base64 encode before it > is serialized by PHP and base64 decode this data when I need to use it. > > Looking through my /var/tmp directory, I see that in fact the session > file is 300KB, which makes sense, since the image I was trying to upload > was indeed roughly 300KB. > > Regards > > PS, also check out my MySQLi group @ > http://groups-beta.google.com/group/MySQLi if ever in need of help with > that part of the PHP world :-) =2D-=20 Cyberly yours, Petar Nedyalkov Devoted Orbitel Fan :-) PGP ID: 7AE45436 PGP Public Key: http://bu.orbitel.bg/pgp/bu.asc PGP Fingerprint: 7923 8D52 B145 02E8 6F63 8BDA 2D3F 7C0B 7AE4 5436 --nextPart9377645.Eod1ekn6Rm Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.6 (GNU/Linux) iD8DBQBCgGEoLT98C3rkVDYRAmNMAKCjEbTkutArjDsWyiT+6QEloX8gXgCdGvY7 o3N9A6a1tHVtlehJ0SNxrqM= =AAv1 -----END PGP SIGNATURE----- --nextPart9377645.Eod1ekn6Rm--