[Bug 47356] Use of undefined constant JSON_UNESCAPED_SLASHES

2013-04-23 Thread bugzilla-daemon
https://bugzilla.wikimedia.org/show_bug.cgi?id=47356

--- Comment #6 from Fomafix foma...@googlemail.com ---
It would be nice to have a checker which checks all required
packages/extensions/functions. This checker should run on installation and on
the fatal error exception error page.

-- 
You are receiving this mail because:
You are the assignee for the bug.
You are on the CC list for the bug.
___
Wikibugs-l mailing list
Wikibugs-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l


[Bug 47356] Use of undefined constant JSON_UNESCAPED_SLASHES

2013-04-23 Thread bugzilla-daemon
https://bugzilla.wikimedia.org/show_bug.cgi?id=47356

--- Comment #7 from PleaseStand pleasest...@live.com ---
(In reply to comment #6)
 It would be nice to have a checker which checks all required
 packages/extensions/functions. This checker should run on installation and on
 the fatal error exception error page.

Filed as bug 47564.

-- 
You are receiving this mail because:
You are the assignee for the bug.
You are on the CC list for the bug.
___
Wikibugs-l mailing list
Wikibugs-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l


[Bug 47356] Use of undefined constant JSON_UNESCAPED_SLASHES

2013-04-19 Thread bugzilla-daemon
https://bugzilla.wikimedia.org/show_bug.cgi?id=47356

--- Comment #4 from Krinkle krinklem...@gmail.com ---
Since people can compile php with and without certain extensions, perhaps we
should extend the conditional beyond the PHP version and also check that that
json extension is in fact installed?

A simple `function_exists( 'json_encode' )` should suffice. Or perhaps
`defined( 'JSON_PRETTY_PRINT' )` if we want to worry about the version of the
extension as well.

-- 
You are receiving this mail because:
You are the assignee for the bug.
You are on the CC list for the bug.
___
Wikibugs-l mailing list
Wikibugs-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l


[Bug 47356] Use of undefined constant JSON_UNESCAPED_SLASHES

2013-04-19 Thread bugzilla-daemon
https://bugzilla.wikimedia.org/show_bug.cgi?id=47356

--- Comment #5 from Brad Jorsch bjor...@wikimedia.org ---
(In reply to comment #4)
 Since people can compile php with and without certain extensions, perhaps we
 should extend the conditional beyond the PHP version and also check that that
 json extension is in fact installed?

And do what, exactly, if not?

-- 
You are receiving this mail because:
You are the assignee for the bug.
You are on the CC list for the bug.
___
Wikibugs-l mailing list
Wikibugs-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l


[Bug 47356] Use of undefined constant JSON_UNESCAPED_SLASHES

2013-04-19 Thread bugzilla-daemon
https://bugzilla.wikimedia.org/show_bug.cgi?id=47356

PleaseStand pleasest...@live.com changed:

   What|Removed |Added

   See Also||https://bugzilla.wikimedia.
   ||org/show_bug.cgi?id=47431

-- 
You are receiving this mail because:
You are the assignee for the bug.
You are on the CC list for the bug.
___
Wikibugs-l mailing list
Wikibugs-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l


[Bug 47356] Use of undefined constant JSON_UNESCAPED_SLASHES

2013-04-18 Thread bugzilla-daemon
https://bugzilla.wikimedia.org/show_bug.cgi?id=47356

Sam Reed (reedy) s...@reedyboy.net changed:

   What|Removed |Added

   Keywords||code-update-regression
   Priority|Unprioritized   |High

--- Comment #1 from Sam Reed (reedy) s...@reedyboy.net ---
(In reply to comment #0)
 Is PHP 5.4.0 or higher required?

No it isn't. It should be 5.3.2, though it does look code unconditionally uses
code from PHP 5.4:

/**
 * Don't escape /.
 * Available since PHP 5.4.0.
 * @link http://php.net/manual/en/json.constants.php
 */
define ('JSON_UNESCAPED_SLASHES', 64);


Caused by https://gerrit.wikimedia.org/r/#/c/50140/

-- 
You are receiving this mail because:
You are the assignee for the bug.
You are on the CC list for the bug.
___
Wikibugs-l mailing list
Wikibugs-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l


[Bug 47356] Use of undefined constant JSON_UNESCAPED_SLASHES

2013-04-18 Thread bugzilla-daemon
https://bugzilla.wikimedia.org/show_bug.cgi?id=47356

Brad Jorsch bjor...@wikimedia.org changed:

   What|Removed |Added

 CC||bjor...@wikimedia.org

--- Comment #2 from Brad Jorsch bjor...@wikimedia.org ---
(In reply to comment #0)
 I use PHP 5.4.11 but I get the error message above. Where is the error?

If you're using 5.4.11, then the 5.3 versus 5.4 issue isn't what's affecting
you.

Do you have the json extension disabled, perhaps?

-- 
You are receiving this mail because:
You are the assignee for the bug.
You are on the CC list for the bug.
___
Wikibugs-l mailing list
Wikibugs-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l


[Bug 47356] Use of undefined constant JSON_UNESCAPED_SLASHES

2013-04-18 Thread bugzilla-daemon
https://bugzilla.wikimedia.org/show_bug.cgi?id=47356

Fomafix foma...@googlemail.com changed:

   What|Removed |Added

   Priority|High|Unprioritized
 Status|NEW |RESOLVED
 Resolution|--- |WORKSFORME

--- Comment #3 from Fomafix foma...@googlemail.com ---
Now I installed the packet php-json
(ftp://ftp.cygwinports.org/pub/cygwinports/release-2/PHP/php/php-json/) and now
it works again.

-- 
You are receiving this mail because:
You are the assignee for the bug.
You are on the CC list for the bug.
___
Wikibugs-l mailing list
Wikibugs-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l