tags 427686 +patch tags 427686 +pending thanks There is a fix here: http://community.xajaxproject.org/viewtopic.php?id=4630
I've prepared this patch (attached). Thanks Uwe, I'll update the package ASAP. El mar, 05-06-2007 a las 21:59 +0200, Uwe Steinmann escribió: > Package: php-xajax > Version: 0.2.5-1 > Severity: important > > > Since the last version 0.2.5 an error complaining about an undefined > variable stops my application from working. > > <b>Notice</b>: Undefined variable: sResponse in > <b>/usr/share/php/xajax/xajax.inc.php</b> on line <b>747</b> > > That variable sReponse is in fact only used once in line 747 and > nowhere else. It's not even been initialized. I wonder if it rather > has to be oResponse instead. > > Uwe > > > -- System Information: > Debian Release: lenny/sid > APT prefers unstable > APT policy: (990, 'unstable'), (500, 'sid'), (500, 'oldstable'), (500, > 'testing') > Architecture: powerpc (ppc) > > Kernel: Linux 2.6.17-2-powerpc > Locale: [EMAIL PROTECTED], [EMAIL PROTECTED] (charmap=ISO-8859-15) (ignored: > LC_ALL set to [EMAIL PROTECTED]) > Shell: /bin/sh linked to /bin/bash > > Versions of packages php-xajax depends on: > ii php4 6:4.4.6-2 server-side, HTML-embedded > scripti > ii php4-cgi 6:4.4.6-2+b1 server-side, HTML-embedded > scripti > ii php4-cli 6:4.4.6-2+b1 command-line interpreter for the > p > ii php5-cli 5.2.2-2 command-line interpreter for the > p > > php-xajax recommends no packages. > > -- no debconf information >
--- xajax.inc.php.orig 2007-06-05 22:17:09.000000000 +0200 +++ xajax.inc.php 2007-06-05 22:24:13.000000000 +0200 @@ -744,9 +744,10 @@ } $oResponse = $this->_callFunction($sFunctionName, $aArgs); } - if (is_string($sResponse)) { - $oResponse = new xajaxResponse(); - $oResponse->addAlert("No XML Response Was Returned By Function $sFunctionName.\n\nOutput: ".$oResponse); + if (is_string($oResponse)) { + $oNewResponse = new xajaxResponse(); + $oNewResponse->addAlert("No XML Response Was Returned By Function $sFunctionName.\n\nOutput: ".$oResponse); + $oResponse = $oNewResponse; } else if ($sPreResponse != "") { $oNewResponse = new xajaxResponse($this->sEncoding, $this->bOutputEntities);