Bug#427686: php-xajax: Undefined variable: sResponse

2007-06-05 Thread David Gil
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.
 
 bNotice/b:  Undefined variable: sResponse in
 b/usr/share/php/xajax/xajax.inc.php/b on line b747/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  php46:4.4.6-2server-side, HTML-embedded 
 scripti
 ii  php4-cgi6:4.4.6-2+b1 server-side, HTML-embedded 
 scripti
 ii  php4-cli6:4.4.6-2+b1 command-line interpreter for the 
 p
 ii  php5-cli5.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.0 +0200
+++ xajax.inc.php	2007-06-05 22:24:13.0 +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);


Bug#427686: php-xajax: Undefined variable: sResponse

2007-06-05 Thread Uwe Steinmann
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.

bNotice/b:  Undefined variable: sResponse in
b/usr/share/php/xajax/xajax.inc.php/b on line b747/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  php46:4.4.6-2server-side, HTML-embedded scripti
ii  php4-cgi6:4.4.6-2+b1 server-side, HTML-embedded scripti
ii  php4-cli6:4.4.6-2+b1 command-line interpreter for the p
ii  php5-cli5.2.2-2  command-line interpreter for the p

php-xajax recommends no packages.

-- no debconf information


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]