Re: [Phplib-users] Re: php 4.2.1
Brought to you by:
nhruby,
richardarcher
|
From: Daniel B. <bo...@io...> - 2002-06-04 16:55:04
|
I had the same problem when I upgraded to 4.1. unset was working on the page, but was not being saved if the var was registered as a session variable. I ended up having to assign the var to null to get it to work. $foo is an array unset($foo) does not work $foo = array() does work. On Tue, 2002-06-04 at 03:53, Marko Kaening wrote: > Hi, > > I found solutions myself. It's eventually not related to phplib, rather to > PHP itself. > > > unset($ExpNames[],$ExpNr[]); > > php 4.2.1 doesn't like (in contradiction to 4.0.4) such an unset() > command. If I skip the [] brackets it doesn't throw an error message > anymore. But unfortunately the assignments down the snipout to these 2 > arrays do not work as expected anyway... Well, have to investigate that. > > Another thing was that I had somewhere in my code a typo. One ";" at a > line end was followed by a ":"! The funny thing was that php 4.2.1 didn't > give me an error message in the browser. nothing, just blank screen and > stopped processing the php script. I was totally irritated. Only when I > reinstalled 4.0.4 I saw an error message pointing me to the type. Strange, > isn't it? > > Hope I didn't bother somebody. > > Marko > > > _______________________________________________________________ > > Don't miss the 2002 Sprint PCS Application Developer's Conference > August 25-28 in Las Vegas -- http://devcon.sprintpcs.com/adp/index.cfm > > _______________________________________________ > Phplib-users mailing list > Php...@li... > https://lists.sourceforge.net/lists/listinfo/phplib-users |