Bug#653621: php-openid: lacks patch to avoid "Call-time pass-by-reference is deprecated" errors

2012-01-13 Thread Jan Hauke Rahm
tags 653621 + upstream
forwarded 653621 https://github.com/openid/php-openid/issues/8
thanks

Hi Arthur,

On Thu, Dec 29, 2011 at 03:23:51PM -0500, Arthur P Prokosch wrote:
> In squeeze, php5 5.3.3 is the default.  However, php-openid as
> packaged triggers "Call-time pass-by-reference" errors in php >= 5.3
> 
> A circulating patch, that is distributed with the MediaWiki OpenID
> extension, removes the offending '&' characters, but I'd prefer to 
> use unmangled Debian packages when possible (besides which the patch's
> line numbers seem to be 3 smaller than those in the files in the 
> debian .orig source package).
> 
> Patch: 
> Described at http://www.mediawiki.org/wiki/Extension:OpenID , under
> requisite 1 / "patch for PHP > 5.3.x"
> Specific patch file packaged with mediawiki extension, is attached.
> 
> I haven't tested wheezy, but expect the same problem & solution would
> apply there.

This is already reported upstream. I'm not really willing to introduce
random bug fixes as patches in the Debian package. It seems upstream's
more or less dead lately, though. I'll poke them another time.

Thanks for your bug report anyways!

Hauke

-- 
 .''`.   Jan Hauke Rahmwww.jhr-online.de
: :'  :  Debian Developer www.debian.org
`. `'`   Member of the Linux Foundationwww.linux.com
  `- Fellow of the Free Software Foundation Europe  www.fsfe.org


signature.asc
Description: Digital signature


Bug#653621: php-openid: lacks patch to avoid "Call-time pass-by-reference is deprecated" errors

2011-12-29 Thread Arthur P Prokosch
Package: php-openid
Version: 2.2.2-1
Severity: important


In squeeze, php5 5.3.3 is the default.  However, php-openid as
packaged triggers "Call-time pass-by-reference" errors in php >= 5.3

A circulating patch, that is distributed with the MediaWiki OpenID
extension, removes the offending '&' characters, but I'd prefer to 
use unmangled Debian packages when possible (besides which the patch's
line numbers seem to be 3 smaller than those in the files in the 
debian .orig source package).

Patch: 
Described at http://www.mediawiki.org/wiki/Extension:OpenID , under
requisite 1 / "patch for PHP > 5.3.x"
Specific patch file packaged with mediawiki extension, is attached.

I haven't tested wheezy, but expect the same problem & solution would
apply there.

Thanks much!
-arthur prokosch
system administrator
MIT Computer Science and Artificial Intelligence Lab.

 from MediaWiki trunk, r107299, OpenID/patches/php-openid-2.2.2.patch 

diff -bru _Auth//OpenID/Consumer.php Auth//OpenID/Consumer.php
--- _Auth//OpenID/Consumer.php  2010-04-29 22:41:05.0 +0200
+++ Auth//OpenID/Consumer.php   2011-02-03 12:17:42.0 +0100
@@ -666,7 +666,7 @@
 '_completeInvalid');
 
 return call_user_func_array(array($this, $method),
-array($message, &$endpoint, $return_to));
+array($message, $endpoint, $return_to));
 }
 
 /**
@@ -1181,7 +1181,7 @@
 // oidutil.log('Performing discovery on %s' % (claimed_id,))
 list($unused, $services) = call_user_func($this->discoverMethod,
   $claimed_id,
-   
  &$this->fetcher);
+   
  $this->fetcher);
 
 if (!$services) {
 return new Auth_OpenID_FailureResponse(null,
diff -bru _Auth//OpenID/Server.php Auth//OpenID/Server.php
--- _Auth//OpenID/Server.php2010-04-29 22:41:05.0 +0200
+++ Auth//OpenID/Server.php 2011-02-03 12:18:56.0 +0100
@@ -1704,7 +1704,7 @@
 {
 if (method_exists($this, "openid_" . $request->mode)) {
 $handler = array($this, "openid_" . $request->mode);
-return call_user_func($handler, &$request);
+return call_user_func($handler, $request);
 }
 return null;
 }
diff -bru _Auth//OpenID/TrustRoot.php Auth//OpenID/TrustRoot.php
--- _Auth//OpenID/TrustRoot.php 2010-04-29 22:41:05.0 +0200
+++ Auth//OpenID/TrustRoot.php  2011-02-03 12:19:24.0 +0100
@@ -413,7 +413,7 @@
 }
 
 call_user_func_array($discover_function,
- array($relying_party_url, &$fetcher));
+ array($relying_party_url, $fetcher));
 
 $return_to_urls = array();
 $matching_endpoints = Auth_OpenID_extractReturnURL($endpoints);
diff -bru _Auth//Yadis/Manager.php Auth//Yadis/Manager.php
--- _Auth//Yadis/Manager.php2010-04-29 22:41:05.0 +0200
+++ Auth//Yadis/Manager.php 2011-02-03 12:20:44.0 +0100
@@ -413,7 +413,7 @@
 
 list($yadis_url, $services) = call_user_func($discover_cb,
  $this->url,
- &$fetcher);
+ $fetcher);
 
 $manager = $this->createManager($services, $yadis_url);
 }
diff -bru _Auth//Yadis/XRDS.php Auth//Yadis/XRDS.php
--- _Auth//Yadis/XRDS.php   2010-04-29 22:41:05.0 +0200
+++ Auth//Yadis/XRDS.php2011-02-03 12:19:58.0 +0100
@@ -429,7 +429,7 @@
 
 foreach ($filters as $filter) {
 
-if (call_user_func_array($filter, array(&$service))) {
+if (call_user_func_array($filter, array($service))) {
 $matches++;
 
 if ($filter_mode == SERVICES_YADIS_MATCH_ANY) {
diff -bru _Auth//Yadis/Yadis.php Auth//Yadis/Yadis.php
--- _Auth//Yadis/Yadis.php  2010-04-29 22:41:05.0 +0200
+++ Auth//Yadis/Yadis.php   2011-02-03 12:20:26.0 +0100
@@ -141,7 +141,7 @@
 }
 
 $yadis_result = call_user_func_array($discover_func,
- array($input_url, &$fetcher));
+ array($input_url, $fetcher));
 
 if ($yadis_result === null) {
 return array($input_url, array());


-- System Information:
Debian Release: 6.0.3
  APT prefers stable
  APT policy: (500, 'stable')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.32-5-amd64 (SMP w/1 CPU core)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages php-openid depends on:
ii  php55.3.3-7+squ