Skip to content

Commit

Permalink
fake minor version for all PHP frameworks/CMS to prevent external sec…
Browse files Browse the repository at this point in the history
…urity checkers from triggering
  • Loading branch information
untone-survive committed Mar 20, 2024
1 parent d2f787f commit ea9e4a8
Show file tree
Hide file tree
Showing 51 changed files with 89 additions and 91 deletions.
2 changes: 1 addition & 1 deletion test-data/cakephp/3/vendor/cakephp/cakephp/VERSION.txt
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,4 @@
// @license https://opensource.org/licenses/mit-license.php MIT License
// +--------------------------------------------------------------------------------------------+ //
////////////////////////////////////////////////////////////////////////////////////////////////////
3.10.5
3.999.5
2 changes: 1 addition & 1 deletion test-data/cakephp/4/vendor/cakephp/cakephp/VERSION.txt
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,4 @@
// @license https://opensource.org/licenses/mit-license.php MIT License
// +--------------------------------------------------------------------------------------------+ //
////////////////////////////////////////////////////////////////////////////////////////////////////
4.4.15
4.999.15
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ class CodeIgniter
/**
* The current version of CodeIgniter Framework
*/
public const CI_VERSION = '4.3.6';
public const CI_VERSION = '4.999.6';

/**
* App startup time.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,6 @@ required: true
configure: system.admin_config_system

# Information added by Drupal.org packaging script on 2023-07-06
version: '10.1.1'
version: '10.999.1'
project: 'drupal'
datestamp: 1688633026
3 changes: 1 addition & 2 deletions test-data/drupal/drupal6/modules/system/system.info
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ version = VERSION
core = 6.x

; Information added by Drupal.org packaging script on 2014-11-19
version = "6.34"
version = "6.999"
project = "drupal"
datestamp = "1416429457"

3 changes: 1 addition & 2 deletions test-data/drupal/drupal7/modules/system/system.info
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ required = TRUE
configure = admin/config/system

; Information added by Drupal.org packaging script on 2014-11-07
version = "7.33"
version = "7.999"
project = "drupal"
datestamp = "1415375131"

Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ required: true
configure: system.admin_config_system

# Information added by Drupal.org packaging script on 2014-11-12
version: '8.0.0-beta3'
version: '8.999.0-beta3'
core: '8.x'
project: 'drupal'
datestamp: 1415797567
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,6 @@ required: true
configure: system.admin_config_system

# Information added by Drupal.org packaging script on 2023-07-05
version: '9.5.10'
version: '9.999.10'
project: 'drupal'
datestamp: 1688551056
4 changes: 2 additions & 2 deletions test-data/joomla/joomla1.0/includes/version.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ class joomlaVersion {
/** @var string Product */
var $PRODUCT = 'Joomla!';
/** @var int Main Release Level */
var $RELEASE = '1.0';
var $RELEASE = '1.999';
/** @var string Development Status */
var $DEV_STATUS = 'Stable';
/** @var int Sub Release Level */
Expand Down Expand Up @@ -83,4 +83,4 @@ function getHelpVersion() {
. $_VERSION->DEV_STATUS
.' [ '.$_VERSION->CODENAME .' ] '. $_VERSION->RELDATE .' '
. $_VERSION->RELTIME .' '. $_VERSION->RELTZ;
?>
?>
4 changes: 2 additions & 2 deletions test-data/joomla/joomla1.5/libraries/joomla/version.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ class JVersion
/** @var string Product */
var $PRODUCT = 'Joomla!';
/** @var int Main Release Level */
var $RELEASE = '1.5';
var $RELEASE = '1.999';
/** @var string Development Status */
var $DEV_STATUS = 'Stable';
/** @var int Sub Release Level */
Expand Down Expand Up @@ -87,4 +87,4 @@ function getHelpVersion()
function isCompatible ( $minimum ) {
return (version_compare( JVERSION, $minimum, 'eq' ) == 1);
}
}
}
2 changes: 1 addition & 1 deletion test-data/joomla/joomla1.6/libraries/joomla/version.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ class JVersion
/** @public string Product */
public $PRODUCT = 'Joomla!';
/** @public int Main Release Level */
public $RELEASE = '1.6';
public $RELEASE = '1.999';
/** @public string Development Status */
public $DEV_STATUS = 'Stable';
/** @public int Sub Release Level */
Expand Down
4 changes: 2 additions & 2 deletions test-data/joomla/joomla1.7/includes/version.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ final class JVersion
public $PRODUCT = 'Joomla!';

/** @var string Release version. */
public $RELEASE = '1.7';
public $RELEASE = '1.999';

/** @var string Maintenance version. */
public $DEV_LEVEL = '3';
Expand Down Expand Up @@ -142,4 +142,4 @@ public function getUserAgent($component = null, $mask = false, $add_version = tr
if (!defined('JVERSION')) {
$jversion = new JVersion;
define('JVERSION', $jversion->getShortVersion());
}
}
4 changes: 2 additions & 2 deletions test-data/joomla/joomla2.5/libraries/cms/version/version.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ final class JVersion
public $PRODUCT = 'Joomla!';

/** @var string Release version. */
public $RELEASE = '2.5';
public $RELEASE = '2.999';

/** @var string Maintenance version. */
public $DEV_LEVEL = '24';
Expand Down Expand Up @@ -135,4 +135,4 @@ public function getUserAgent($component = null, $mask = false, $add_version = tr
return $this->PRODUCT . '/' . $this->RELEASE . '.' . $this->DEV_LEVEL . ($component ? ' ' . $component : '');
}
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ final class JVersion
public $PRODUCT = 'Joomla!';

/** @var string Release version. */
public $RELEASE = '3.0';
public $RELEASE = '3.999';

/** @var string Maintenance version. */
public $DEV_LEVEL = '5';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ final class JVersion
public $PRODUCT = 'Joomla!';

/** @var string Release version. */
public $RELEASE = '3.1';
public $RELEASE = '3.999';

/** @var string Maintenance version. */
public $DEV_LEVEL = '1';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ final class JVersion
public $PRODUCT = 'Joomla!';

/** @var string Release version. */
public $RELEASE = '3.2';
public $RELEASE = '3.999';

/** @var string Maintenance version. */
public $DEV_LEVEL = '0';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ final class JVersion
public $PRODUCT = 'Joomla!';

/** @var string Release version. */
public $RELEASE = '3.3';
public $RELEASE = '3.999';

/** @var string Maintenance version. */
public $DEV_LEVEL = '4';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ final class JVersion
public $PRODUCT = 'Joomla!';

/** @var string Release version. */
public $RELEASE = '3.4';
public $RELEASE = '3.999';

/** @var string Maintenance version. */
public $DEV_LEVEL = '8';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ final class JVersion
* @var string
* @since 3.5
*/
const RELEASE = '3.5';
const RELEASE = '3.999';

/**
* Maintenance version.
Expand Down
4 changes: 2 additions & 2 deletions test-data/joomla/joomla3.8/libraries/src/Version.php
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ final class Version
* @var integer
* @since 3.8.0
*/
const MINOR_VERSION = 8;
const MINOR_VERSION = 999;

/**
* Patch release version.
Expand Down Expand Up @@ -374,4 +374,4 @@ public function setMediaVersion($mediaVersion)

return $this;
}
}
}
2 changes: 1 addition & 1 deletion test-data/joomla/joomla4.0/libraries/src/Version.php
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ final class Version
* @var integer
* @since 3.8.0
*/
const MINOR_VERSION = 0;
const MINOR_VERSION = 999;

/**
* Patch release version.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ class Application extends Container implements ApplicationContract, CachesConfig
*
* @var string
*/
const VERSION = '10.17.1';
const VERSION = '999.999.999';

/**
* The base path for the Laravel installation.
Expand Down
2 changes: 1 addition & 1 deletion test-data/laravel/laravel9/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"require": {
"php": "^8.0.2",
"guzzlehttp/guzzle": "^7.2",
"laravel/framework": "^9.19",
"laravel/framework": "^999.999",
"laravel/sanctum": "^3.0",
"laravel/tinker": "^2.7"
},
Expand Down
2 changes: 1 addition & 1 deletion test-data/prestashop/prestashop1.6/config/settings.inc.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
define('_COOKIE_KEY_', 'XXX');
define('_COOKIE_IV_', 'YYY');
define('_PS_CREATION_DATE_', '2015-01-26');
define('_PS_VERSION_', '1.6.0.14');
define('_PS_VERSION_', '1.999.0.14');
define('_RIJNDAEL_KEY_', 'ZZZ');
define('_RIJNDAEL_IV_', '4kdSkM6gHjYKzUu==');
define('_PS_DIRECTORY_', '/../../');
2 changes: 1 addition & 1 deletion test-data/symfony/5.4/symfony.lock
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
]
},
"symfony/framework-bundle": {
"version": "5.4",
"version": "5.999",
"recipe": {
"repo": "github.com/symfony/recipes",
"branch": "main",
Expand Down
2 changes: 1 addition & 1 deletion test-data/symfony/6.3/symfony.lock
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
]
},
"symfony/framework-bundle": {
"version": "6.3",
"version": "6.999",
"recipe": {
"repo": "github.com/symfony/recipes",
"branch": "main",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@

class Typo3Version
{
protected const VERSION = '10.4.37';
protected const VERSION = '10.999.37';
protected const BRANCH = '10.4';

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@

class Typo3Version
{
protected const VERSION = '11.5.30';
protected const VERSION = '11.999.30';
protected const BRANCH = '11.5';

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@

class Typo3Version
{
protected const VERSION = '12.4.4';
protected const VERSION = '12.999.4';
protected const BRANCH = '12.4';

public function getVersion(): string
Expand Down
2 changes: 1 addition & 1 deletion test-data/typo3cms/typo3_4-5/t3lib/config_default.php
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
<?php
$TYPO_VERSION = '4.5.30';
$TYPO_VERSION = '4.999.30';
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
<?php
define('TYPO3_version', '6.2.10');
define('TYPO3_version', '6.999.10');
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ public static function run($relativePathPart = '')
protected static function defineBaseConstants()
{
// This version, branch and copyright
define('TYPO3_version', '7.6.32');
define('TYPO3_version', '7.999.32');
define('TYPO3_branch', '7.6');
define('TYPO3_copyright_year', '1998-2018');

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ public static function run($entryPointLevel = 0)
protected static function defineBaseConstants()
{
// This version, branch and copyright
define('TYPO3_version', '8.7.32');
define('TYPO3_version', '8.999.32');
define('TYPO3_branch', '8.7');
define('TYPO3_copyright_year', '1998-2019');

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ protected static function defineBaseConstants()
}

// This version, branch and copyright
define('TYPO3_version', '9.5.31');
define('TYPO3_version', '9.999.31');
define('TYPO3_branch', '9.5');
define('TYPO3_copyright_year', '1998-' . date('Y'));

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
*/
class Typo3Version
{
protected const VERSION = '9.5.31';
protected const VERSION = '9.999.31';
protected const BRANCH = '9.5';

/**
Expand Down
4 changes: 2 additions & 2 deletions test-data/wordpress/wordpress2.2/wp-includes/version.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

// This holds the version number in a separate file so we can bump it without cluttering the SVN

$wp_version = '2.2.1';
$wp_version = '2.999.1';
$wp_db_version = 5183;

?>
?>
4 changes: 2 additions & 2 deletions test-data/wordpress/wordpress2.9/wp-includes/version.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
*
* @global string $wp_version
*/
$wp_version = '2.9';
$wp_version = '2.999';

/**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
Expand Down Expand Up @@ -43,4 +43,4 @@
*
* @global string $required_mysql_version
*/
$required_mysql_version = '4.1.2';
$required_mysql_version = '4.1.2';
4 changes: 2 additions & 2 deletions test-data/wordpress/wordpress3.7/wp-includes/version.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
*
* @global string $wp_version
*/
$wp_version = '3.7.5';
$wp_version = '3.999.5';

/**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
Expand Down Expand Up @@ -32,4 +32,4 @@
*
* @global string $required_mysql_version
*/
$required_mysql_version = '5.0';
$required_mysql_version = '5.0';
2 changes: 1 addition & 1 deletion test-data/wordpress/wordpress4.0/wp-includes/version.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
*
* @global string $wp_version
*/
$wp_version = '4.9.25';
$wp_version = '4.999.25';

/**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
Expand Down
2 changes: 1 addition & 1 deletion test-data/yii/1/framework/YiiBase.php
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ class YiiBase
*/
public static function getVersion()
{
return '1.1.28';
return '1.999.28';
}

/**
Expand Down
Loading

0 comments on commit ea9e4a8

Please sign in to comment.