Re: [Phplib-users] Problem with "user" feature
Brought to you by:
nhruby,
richardarcher
From: Ben C. <php...@be...> - 2001-11-05 17:13:14
|
I noticed this problem as well a while back when I first moved to php 4.0.6. What I did (and what I tell people to do when installing phpBugTracker) is patch page.inc, changing line 67 from if (isset($user)) { to if (isset($user) and $user) {. On Mon, Nov 05, 2001 at 08:57:37AM -0000, Taylor, Stewart wrote: > Not sure what is causing this. > Try calling var_dump($user) just before you call the page_close function? > Does this tell you anything? > > -Stewart. > > -----Original Message----- > From: Manuel Aristaran [mailto:mpa...@so...] > Sent: 05 November 2001 03:24 > To: php...@li... > Subject: [Phplib-users] Problem with "user" feature > > > Hello... > > I've run into a quite interesting problem.... > > None of the scripts on the system use the "user" feature, every page_open() > call on them look like this: > > page_open(array("sess" => "Gili_Session")); > > That is, i only use sessions :). But there's a script that complains about > calling a function on a non-object variable when i call page_close(). the > error occurs in page.inc line 68. > > function page_close() { > global $sess, $user; > > if (isset($sess)) { > $sess->freeze(); > if (isset($user)) { > $user->freeze(); <-- LINE 68 > } > } > } > > isset($user) should yield non-true, as i don't use the user feature. > There aren't any variables called $user on my scripts, as this might look > like two variables are clashing on a same namespace or something. > > Can anyone give me any pointer? this problem (bug?) is really annoying. > > > Manuel Aristar?n > mpa...@so... > > > _______________________________________________ > Phplib-users mailing list > Php...@li... > https://lists.sourceforge.net/lists/listinfo/phplib-users > > _______________________________________________ > Phplib-users mailing list > Php...@li... > https://lists.sourceforge.net/lists/listinfo/phplib-users |