Permalink
Browse files

Because GLOBAL is deprecated in node (#303)

```
"(node:1) DeprecationWarning: 'GLOBAL' is deprecated, use 'global'"
```
1 parent f853c59 commit 5556292a3a34c6fcdfceabb3e4814c42722a1e09 @DracoBlue DracoBlue committed with Aug 9, 2016
Showing with 60 additions and 60 deletions.
  1. +1 −1 _legacy/php/array/compact.js
  2. +1 −1 src/php/array/array_diff_uassoc.js
  3. +1 −1 src/php/array/array_diff_ukey.js
  4. +1 −1 src/php/array/array_intersect_uassoc.js
  5. +1 −1 src/php/array/array_intersect_ukey.js
  6. +1 −1 src/php/array/array_map.js
  7. +1 −1 src/php/array/array_udiff.js
  8. +1 −1 src/php/array/array_udiff_assoc.js
  9. +1 −1 src/php/array/array_udiff_uassoc.js
  10. +1 −1 src/php/array/array_uintersect.js
  11. +1 −1 src/php/array/array_uintersect_uassoc.js
  12. +1 −1 src/php/array/arsort.js
  13. +1 −1 src/php/array/asort.js
  14. +1 −1 src/php/array/current.js
  15. +1 −1 src/php/array/each.js
  16. +1 −1 src/php/array/end.js
  17. +1 −1 src/php/array/key.js
  18. +1 −1 src/php/array/krsort.js
  19. +1 −1 src/php/array/ksort.js
  20. +1 −1 src/php/array/next.js
  21. +1 −1 src/php/array/prev.js
  22. +1 −1 src/php/array/reset.js
  23. +1 −1 src/php/array/rsort.js
  24. +1 −1 src/php/array/sort.js
  25. +1 −1 src/php/ctype/ctype_alnum.js
  26. +1 −1 src/php/ctype/ctype_alpha.js
  27. +1 −1 src/php/ctype/ctype_cntrl.js
  28. +1 −1 src/php/ctype/ctype_digit.js
  29. +1 −1 src/php/ctype/ctype_graph.js
  30. +1 −1 src/php/ctype/ctype_lower.js
  31. +1 −1 src/php/ctype/ctype_print.js
  32. +1 −1 src/php/ctype/ctype_punct.js
  33. +1 −1 src/php/ctype/ctype_space.js
  34. +1 −1 src/php/ctype/ctype_upper.js
  35. +1 −1 src/php/ctype/ctype_xdigit.js
  36. +1 −1 src/php/datetime/strftime.js
  37. +1 −1 src/php/datetime/strptime.js
  38. +1 −1 src/php/funchand/call_user_func_array.js
  39. +1 −1 src/php/funchand/function_exists.js
  40. +1 −1 src/php/funchand/get_defined_functions.js
  41. +1 −1 src/php/i18n/i18n_loc_get_default.js
  42. +1 −1 src/php/i18n/i18n_loc_set_default.js
  43. +1 −1 src/php/info/ini_get.js
  44. +1 −1 src/php/info/ini_set.js
  45. +1 −1 src/php/info/set_time_limit.js
  46. +1 −1 src/php/json/json_decode.js
  47. +1 −1 src/php/json/json_encode.js
  48. +1 −1 src/php/json/json_last_error.js
  49. +1 −1 src/php/misc/uniqid.js
  50. +1 −1 src/php/pcre/sql_regcase.js
  51. +1 −1 src/php/strings/localeconv.js
  52. +1 −1 src/php/strings/money_format.js
  53. +1 −1 src/php/strings/nl_langinfo.js
  54. +1 −1 src/php/strings/parse_str.js
  55. +1 −1 src/php/strings/setlocale.js
  56. +1 −1 src/php/strings/str_replace.js
  57. +1 −1 src/php/strings/strcoll.js
  58. +1 −1 src/php/strings/strtok.js
  59. +1 −1 src/php/var/is_callable.js
  60. +1 −1 src/php/var/unserialize.js
@@ -10,7 +10,7 @@ module.exports = function compact () {
// example 1: compact('$var1', '$var2', '$var3')
// returns 1: {'$var1': 'Kevin', '$var2': 'van', '$var3': 'Zonneveld'}
- var $global = (typeof window !== 'undefined' ? window : GLOBAL)
+ var $global = (typeof window !== 'undefined' ? window : global)
var matrix = {}
var _process = function (value) {
@@ -15,7 +15,7 @@ module.exports = function array_diff_uassoc (arr1) { // eslint-disable-line came
var k1 = ''
var k = ''
- var $global = (typeof window !== 'undefined' ? window : GLOBAL)
+ var $global = (typeof window !== 'undefined' ? window : global)
cb = (typeof cb === 'string')
? $global[cb]
@@ -15,7 +15,7 @@ module.exports = function array_diff_ukey (arr1) { // eslint-disable-line camelc
var arr = {}
var k = ''
- var $global = (typeof window !== 'undefined' ? window : GLOBAL)
+ var $global = (typeof window !== 'undefined' ? window : global)
cb = (typeof cb === 'string')
? $global[cb]
@@ -16,7 +16,7 @@ module.exports = function array_intersect_uassoc (arr1) { // eslint-disable-line
var k = ''
var arr = {}
- var $global = (typeof window !== 'undefined' ? window : GLOBAL)
+ var $global = (typeof window !== 'undefined' ? window : global)
cb = (typeof cb === 'string')
? $global[cb]
@@ -16,7 +16,7 @@ module.exports = function array_intersect_ukey (arr1) { // eslint-disable-line c
var k = ''
var arr = {}
- var $global = (typeof window !== 'undefined' ? window : GLOBAL)
+ var $global = (typeof window !== 'undefined' ? window : global)
cb = (typeof cb === 'string')
? $global[cb]
@@ -20,7 +20,7 @@ module.exports = function array_map (callback) { // eslint-disable-line camelcas
var tmp = []
var tmpArr = []
- var $global = (typeof window !== 'undefined' ? window : GLOBAL)
+ var $global = (typeof window !== 'undefined' ? window : global)
while (i < j) {
while (k < argc) {
@@ -14,7 +14,7 @@ module.exports = function array_udiff (arr1) { // eslint-disable-line camelcase
var k1 = ''
var k = ''
- var $global = (typeof window !== 'undefined' ? window : GLOBAL)
+ var $global = (typeof window !== 'undefined' ? window : global)
cb = (typeof cb === 'string')
? $global[cb]
@@ -12,7 +12,7 @@ module.exports = function array_udiff_assoc (arr1) { // eslint-disable-line came
var k1 = ''
var k = ''
- var $global = (typeof window !== 'undefined' ? window : GLOBAL)
+ var $global = (typeof window !== 'undefined' ? window : global)
cb = (typeof cb === 'string')
? $global[cb]
@@ -16,7 +16,7 @@ module.exports = function array_udiff_uassoc (arr1) { // eslint-disable-line cam
var k = ''
var arr = {}
- var $global = (typeof window !== 'undefined' ? window : GLOBAL)
+ var $global = (typeof window !== 'undefined' ? window : global)
cb = (typeof cb === 'string')
? $global[cb]
@@ -16,7 +16,7 @@ module.exports = function array_uintersect (arr1) { // eslint-disable-line camel
var arr = {}
var k = ''
- var $global = (typeof window !== 'undefined' ? window : GLOBAL)
+ var $global = (typeof window !== 'undefined' ? window : global)
cb = (typeof cb === 'string')
? $global[cb]
@@ -16,7 +16,7 @@ module.exports = function array_uintersect_uassoc (arr1) { // eslint-disable-lin
var k = ''
var arr = {}
- var $global = (typeof window !== 'undefined' ? window : GLOBAL)
+ var $global = (typeof window !== 'undefined' ? window : global)
cb = (typeof cb === 'string')
? $global[cb]
@@ -42,7 +42,7 @@ module.exports = function arsort (inputArr, sortFlags) {
var sortByReference = false
var populateArr = {}
- var $global = (typeof window !== 'undefined' ? window : GLOBAL)
+ var $global = (typeof window !== 'undefined' ? window : global)
$global.$locutus = $global.$locutus || {}
var $locutus = $global.$locutus
$locutus.php = $locutus.php || {}
@@ -45,7 +45,7 @@ module.exports = function asort (inputArr, sortFlags) {
var sortByReference = false
var populateArr = {}
- var $global = (typeof window !== 'undefined' ? window : GLOBAL)
+ var $global = (typeof window !== 'undefined' ? window : global)
$global.$locutus = $global.$locutus || {}
var $locutus = $global.$locutus
$locutus.php = $locutus.php || {}
@@ -6,7 +6,7 @@ module.exports = function current (arr) {
// example 1: current($transport)
// returns 1: 'foot'
- var $global = (typeof window !== 'undefined' ? window : GLOBAL)
+ var $global = (typeof window !== 'undefined' ? window : global)
$global.$locutus = $global.$locutus || {}
var $locutus = $global.$locutus
$locutus.php = $locutus.php || {}
@@ -6,7 +6,7 @@ module.exports = function each (arr) {
// example 1: each({a: "apple", b: "balloon"})
// returns 1: {0: "a", 1: "apple", key: "a", value: "apple"}
- var $global = (typeof window !== 'undefined' ? window : GLOBAL)
+ var $global = (typeof window !== 'undefined' ? window : global)
$global.$locutus = $global.$locutus || {}
var $locutus = $global.$locutus
$locutus.php = $locutus.php || {}
@@ -12,7 +12,7 @@ module.exports = function end (arr) {
// example 2: end(['Kevin', 'van', 'Zonneveld'])
// returns 2: 'Zonneveld'
- var $global = (typeof window !== 'undefined' ? window : GLOBAL)
+ var $global = (typeof window !== 'undefined' ? window : global)
$global.$locutus = $global.$locutus || {}
var $locutus = $global.$locutus
$locutus.php = $locutus.php || {}
@@ -8,7 +8,7 @@ module.exports = function key (arr) {
// example 1: key($array)
// returns 1: 'fruit1'
- var $global = (typeof window !== 'undefined' ? window : GLOBAL)
+ var $global = (typeof window !== 'undefined' ? window : global)
$global.$locutus = $global.$locutus || {}
var $locutus = $global.$locutus
$locutus.php = $locutus.php || {}
@@ -39,7 +39,7 @@ module.exports = function krsort (inputArr, sortFlags) {
var sortByReference = false
var populateArr = {}
- var $global = (typeof window !== 'undefined' ? window : GLOBAL)
+ var $global = (typeof window !== 'undefined' ? window : global)
$global.$locutus = $global.$locutus || {}
var $locutus = $global.$locutus
$locutus.php = $locutus.php || {}
@@ -37,7 +37,7 @@ module.exports = function ksort (inputArr, sortFlags) {
var sortByReference = false
var populateArr = {}
- var $global = (typeof window !== 'undefined' ? window : GLOBAL)
+ var $global = (typeof window !== 'undefined' ? window : global)
$global.$locutus = $global.$locutus || {}
var $locutus = $global.$locutus
$locutus.php = $locutus.php || {}
@@ -7,7 +7,7 @@ module.exports = function next (arr) {
// example 1: next($transport)
// returns 1: 'car'
- var $global = (typeof window !== 'undefined' ? window : GLOBAL)
+ var $global = (typeof window !== 'undefined' ? window : global)
$global.$locutus = $global.$locutus || {}
var $locutus = $global.$locutus
$locutus.php = $locutus.php || {}
@@ -6,7 +6,7 @@ module.exports = function prev (arr) {
// example 1: prev($transport)
// returns 1: false
- var $global = (typeof window !== 'undefined' ? window : GLOBAL)
+ var $global = (typeof window !== 'undefined' ? window : global)
$global.$locutus = $global.$locutus || {}
var $locutus = $global.$locutus
$locutus.php = $locutus.php || {}
@@ -7,7 +7,7 @@ module.exports = function reset (arr) {
// example 1: reset({0: 'Kevin', 1: 'van', 2: 'Zonneveld'})
// returns 1: 'Kevin'
- var $global = (typeof window !== 'undefined' ? window : GLOBAL)
+ var $global = (typeof window !== 'undefined' ? window : global)
$global.$locutus = $global.$locutus || {}
var $locutus = $global.$locutus
$locutus.php = $locutus.php || {}
@@ -39,7 +39,7 @@ module.exports = function rsort (inputArr, sortFlags) {
var sortByReference = false
var populateArr = {}
- var $global = (typeof window !== 'undefined' ? window : GLOBAL)
+ var $global = (typeof window !== 'undefined' ? window : global)
$global.$locutus = $global.$locutus || {}
var $locutus = $global.$locutus
$locutus.php = $locutus.php || {}
@@ -39,7 +39,7 @@ module.exports = function sort (inputArr, sortFlags) {
var sortByReference = false
var populateArr = {}
- var $global = (typeof window !== 'undefined' ? window : GLOBAL)
+ var $global = (typeof window !== 'undefined' ? window : global)
$global.$locutus = $global.$locutus || {}
var $locutus = $global.$locutus
$locutus.php = $locutus.php || {}
@@ -12,7 +12,7 @@ module.exports = function ctype_alnum (text) { // eslint-disable-line camelcase
// ensure setup of localization variables takes place
setlocale('LC_ALL', 0)
- var $global = (typeof window !== 'undefined' ? window : GLOBAL)
+ var $global = (typeof window !== 'undefined' ? window : global)
$global.$locutus = $global.$locutus || {}
var $locutus = $global.$locutus
var p = $locutus.php
@@ -11,7 +11,7 @@ module.exports = function ctype_alpha (text) { // eslint-disable-line camelcase
// ensure setup of localization variables takes place
setlocale('LC_ALL', 0)
- var $global = (typeof window !== 'undefined' ? window : GLOBAL)
+ var $global = (typeof window !== 'undefined' ? window : global)
$global.$locutus = $global.$locutus || {}
var $locutus = $global.$locutus
var p = $locutus.php
@@ -13,7 +13,7 @@ module.exports = function ctype_cntrl (text) { // eslint-disable-line camelcase
// ensure setup of localization variables takes place
setlocale('LC_ALL', 0)
- var $global = (typeof window !== 'undefined' ? window : GLOBAL)
+ var $global = (typeof window !== 'undefined' ? window : global)
$global.$locutus = $global.$locutus || {}
var $locutus = $global.$locutus
var p = $locutus.php
@@ -11,7 +11,7 @@ module.exports = function ctype_digit (text) { // eslint-disable-line camelcase
// ensure setup of localization variables takes place
setlocale('LC_ALL', 0)
- var $global = (typeof window !== 'undefined' ? window : GLOBAL)
+ var $global = (typeof window !== 'undefined' ? window : global)
$global.$locutus = $global.$locutus || {}
var $locutus = $global.$locutus
var p = $locutus.php
@@ -13,7 +13,7 @@ module.exports = function ctype_graph (text) { // eslint-disable-line camelcase
// ensure setup of localization variables takes place
setlocale('LC_ALL', 0)
- var $global = (typeof window !== 'undefined' ? window : GLOBAL)
+ var $global = (typeof window !== 'undefined' ? window : global)
$global.$locutus = $global.$locutus || {}
var $locutus = $global.$locutus
var p = $locutus.php
@@ -12,7 +12,7 @@ module.exports = function ctype_lower (text) { // eslint-disable-line camelcase
// ensure setup of localization variables takes place
setlocale('LC_ALL', 0)
- var $global = (typeof window !== 'undefined' ? window : GLOBAL)
+ var $global = (typeof window !== 'undefined' ? window : global)
$global.$locutus = $global.$locutus || {}
var $locutus = $global.$locutus
var p = $locutus.php
@@ -11,7 +11,7 @@ module.exports = function ctype_print (text) { // eslint-disable-line camelcase
// ensure setup of localization variables takes place
setlocale('LC_ALL', 0)
- var $global = (typeof window !== 'undefined' ? window : GLOBAL)
+ var $global = (typeof window !== 'undefined' ? window : global)
$global.$locutus = $global.$locutus || {}
var $locutus = $global.$locutus
var p = $locutus.php
@@ -11,7 +11,7 @@ module.exports = function ctype_punct (text) { // eslint-disable-line camelcase
// ensure setup of localization variables takes place
setlocale('LC_ALL', 0)
- var $global = (typeof window !== 'undefined' ? window : GLOBAL)
+ var $global = (typeof window !== 'undefined' ? window : global)
$global.$locutus = $global.$locutus || {}
var $locutus = $global.$locutus
var p = $locutus.php
@@ -11,7 +11,7 @@ module.exports = function ctype_space (text) { // eslint-disable-line camelcase
// ensure setup of localization variables takes place
setlocale('LC_ALL', 0)
- var $global = (typeof window !== 'undefined' ? window : GLOBAL)
+ var $global = (typeof window !== 'undefined' ? window : global)
$global.$locutus = $global.$locutus || {}
var $locutus = $global.$locutus
var p = $locutus.php
@@ -12,7 +12,7 @@ module.exports = function ctype_upper (text) { // eslint-disable-line camelcase
// ensure setup of localization variables takes place
setlocale('LC_ALL', 0)
- var $global = (typeof window !== 'undefined' ? window : GLOBAL)
+ var $global = (typeof window !== 'undefined' ? window : global)
$global.$locutus = $global.$locutus || {}
var $locutus = $global.$locutus
var p = $locutus.php
@@ -12,7 +12,7 @@ module.exports = function ctype_xdigit (text) { // eslint-disable-line camelcase
// ensure setup of localization variables takes place
setlocale('LC_ALL', 0)
- var $global = (typeof window !== 'undefined' ? window : GLOBAL)
+ var $global = (typeof window !== 'undefined' ? window : global)
$global.$locutus = $global.$locutus || {}
var $locutus = $global.$locutus
var p = $locutus.php
@@ -11,7 +11,7 @@ module.exports = function strftime (fmt, timestamp) {
var setlocale = require('../strings/setlocale')
- var $global = (typeof window !== 'undefined' ? window : GLOBAL)
+ var $global = (typeof window !== 'undefined' ? window : global)
$global.$locutus = $global.$locutus || {}
var $locutus = $global.$locutus
@@ -94,7 +94,7 @@ module.exports = function strptime (dateStr, format) {
// ensure setup of localization variables takes place
setlocale('LC_ALL', 0)
- var $global = (typeof window !== 'undefined' ? window : GLOBAL)
+ var $global = (typeof window !== 'undefined' ? window : global)
$global.$locutus = $global.$locutus || {}
var $locutus = $global.$locutus
var locale = $locutus.php.localeCategories.LC_TIME
@@ -15,7 +15,7 @@ module.exports = function call_user_func_array (cb, parameters) { // eslint-disa
// example 2: call_user_func_array('isNaN', [1])
// returns 2: false
- var $global = (typeof window !== 'undefined' ? window : GLOBAL)
+ var $global = (typeof window !== 'undefined' ? window : global)
var func
var scope = null
@@ -8,7 +8,7 @@ module.exports = function function_exists (funcName) { // eslint-disable-line ca
// returns 1: true
// test: skip-1
- var $global = (typeof window !== 'undefined' ? window : GLOBAL)
+ var $global = (typeof window !== 'undefined' ? window : global)
if (typeof funcName === 'string') {
funcName = $global[funcName]
@@ -11,7 +11,7 @@ module.exports = function get_defined_functions () { // eslint-disable-line came
// returns 1: true
// test: skip-1
- var $global = (typeof window !== 'undefined' ? window : GLOBAL)
+ var $global = (typeof window !== 'undefined' ? window : global)
$global.$locutus = $global.$locutus || {}
var $locutus = $global.$locutus
$locutus.php = $locutus.php || {}
@@ -11,7 +11,7 @@ module.exports = function i18n_loc_get_default () { // eslint-disable-line camel
// example 2: i18n_loc_get_default()
// returns 2: 'pt_PT'
- var $global = (typeof window !== 'undefined' ? window : GLOBAL)
+ var $global = (typeof window !== 'undefined' ? window : global)
$global.$locutus = $global.$locutus || {}
var $locutus = $global.$locutus
$locutus.php = $locutus.php || {}
@@ -7,7 +7,7 @@ module.exports = function i18n_loc_set_default (name) { // eslint-disable-line c
// example 1: i18n_loc_set_default('pt_PT')
// returns 1: true
- var $global = (typeof window !== 'undefined' ? window : GLOBAL)
+ var $global = (typeof window !== 'undefined' ? window : global)
$global.$locutus = $global.$locutus || {}
var $locutus = $global.$locutus
$locutus.php = $locutus.php || {}
@@ -6,7 +6,7 @@ module.exports = function ini_get (varname) { // eslint-disable-line camelcase
// example 1: ini_get('date.timezone')
// returns 1: 'Asia/Hong_Kong'
- var $global = (typeof window !== 'undefined' ? window : GLOBAL)
+ var $global = (typeof window !== 'undefined' ? window : global)
$global.$locutus = $global.$locutus || {}
var $locutus = $global.$locutus
$locutus.php = $locutus.php || {}
@@ -6,7 +6,7 @@ module.exports = function ini_set (varname, newvalue) { // eslint-disable-line c
// example 1: ini_set('date.timezone', 'America/Chicago')
// returns 1: 'Asia/Hong_Kong'
- var $global = (typeof window !== 'undefined' ? window : GLOBAL)
+ var $global = (typeof window !== 'undefined' ? window : global)
$global.$locutus = $global.$locutus || {}
var $locutus = $global.$locutus
$locutus.php = $locutus.php || {}
Oops, something went wrong.

0 comments on commit 5556292

Please sign in to comment.