mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-09-24 04:59:14 -07:00
dev-php/PEAR-Services_JSON: Add an additional upstream patch
Package-Manager: Portage-2.3.24, Repoman-2.3.6
This commit is contained in:
@@ -10,7 +10,7 @@ DESCRIPTION="PHP implementaion of json_encode/decode"
|
||||
LICENSE="BSD"
|
||||
SLOT="0"
|
||||
KEYWORDS="~alpha ~amd64 ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86"
|
||||
PATCHES=( "${FILESDIR}/JSON-1.0.3-constructor.patch" )
|
||||
PATCHES=( "${FILESDIR}/JSON-1.0.3-upstream-typo.patch" "${FILESDIR}/JSON-1.0.3-constructor.patch" )
|
||||
|
||||
src_install() {
|
||||
php-pear-r2_src_install
|
||||
|
||||
@@ -35,7 +35,7 @@ diff -aurN a/JSON.php b/JSON.php
|
||||
+ function __construct($message = 'unknown error', $code = null,
|
||||
+ $mode = null, $options = null, $userinfo = null)
|
||||
+ {
|
||||
+
|
||||
+ return;
|
||||
+ }
|
||||
function Services_JSON_Error($message = 'unknown error', $code = null,
|
||||
$mode = null, $options = null, $userinfo = null)
|
||||
|
||||
@@ -0,0 +1,20 @@
|
||||
--- a/JSON.php 2011/01/28 00:16:42 307804
|
||||
+++ b/JSON.php 2013/04/30 02:37:26 330165
|
||||
@@ -554,7 +544,7 @@
|
||||
|
||||
return ($this->use & SERVICES_JSON_SUPPRESS_ERRORS)
|
||||
? 'null'
|
||||
- : new Services_JSON_Error(class_name($var).
|
||||
+ : new Services_JSON_Error(get_class($var).
|
||||
" toJSON returned an object with a toJSON method.");
|
||||
|
||||
}
|
||||
@@ -995,7 +985,7 @@
|
||||
function Services_JSON_Error($message = 'unknown error', $code = null,
|
||||
$mode = null, $options = null, $userinfo = null)
|
||||
{
|
||||
-
|
||||
+ return;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user