Skip to content

Commit 29c2709

Browse files
committed
Import Magento Release 1.9.2.0
To cleanly import this release, two previous commits had to be reverted. The reverted commit were both Magento security patches that are part of the 1.9.2.0 release. This reverts commit 3fa52d5. This reverts commit 7ef5026.
1 parent 688c043 commit 29c2709

File tree

4,985 files changed

+179734
-19418
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

4,985 files changed

+179734
-19418
lines changed

RELEASE_NOTES.txt

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,14 @@
1+
==== 1.9.2.0 ====
2+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
3+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
4+
] NOTE: Current Release Notes are maintained at: [
5+
] [
6+
] http://merch.docs.magento.com/ce/user_guide/Magento_Community_Edition_User_Guide.html#magento/release-notes-ce-1.9.2.html [
7+
] [
8+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
9+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
10+
11+
==== 1.9.1.0 ====
112
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
213
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
314
] NOTE: Current Release Notes are maintained at: [

api.php

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,14 +28,20 @@
2828
echo 'It looks like you have an invalid PHP version. Magento supports PHP 5.2.0 or newer';
2929
exit;
3030
}
31-
error_reporting(E_ALL | E_STRICT);
3231

33-
$mageFilename = getcwd() . '/app/Mage.php';
32+
$magentoRootDir = getcwd();
33+
$bootstrapFilename = $magentoRootDir . '/app/bootstrap.php';
34+
$mageFilename = $magentoRootDir . '/app/Mage.php';
3435

36+
if (!file_exists($bootstrapFilename)) {
37+
echo 'Bootstrap file not found';
38+
exit;
39+
}
3540
if (!file_exists($mageFilename)) {
3641
echo 'Mage file not found';
3742
exit;
3843
}
44+
require $bootstrapFilename;
3945
require $mageFilename;
4046

4147
if (!Mage::isInstalled()) {
@@ -49,8 +55,6 @@
4955

5056
#ini_set('display_errors', 1);
5157

52-
// emulate index.php entry point for correct URLs generation in API
53-
Mage::register('custom_entry_point', true);
5458
Mage::$headersSentThrowsException = false;
5559
Mage::init('admin');
5660
Mage::app()->loadAreaPart(Mage_Core_Model_App_Area::AREA_GLOBAL, Mage_Core_Model_App_Area::PART_EVENTS);
@@ -61,6 +65,8 @@
6165

6266
// check request could be processed by API2
6367
if (in_array($apiAlias, Mage_Api2_Model_Server::getApiTypes())) {
68+
// emulate index.php entry point for correct URLs generation in API
69+
Mage::register('custom_entry_point', true);
6470
/** @var $server Mage_Api2_Model_Server */
6571
$server = Mage::getSingleton('api2/server');
6672

@@ -76,6 +82,8 @@
7682
}
7783
try {
7884
$server->initialize($adapterCode);
85+
// emulate index.php entry point for correct URLs generation in API
86+
Mage::register('custom_entry_point', true);
7987
$server->run();
8088

8189
Mage::app()->getResponse()->sendResponse();

app/Mage.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -170,8 +170,8 @@ public static function getVersionInfo()
170170
return array(
171171
'major' => '1',
172172
'minor' => '9',
173-
'revision' => '1',
174-
'patch' => '1',
173+
'revision' => '2',
174+
'patch' => '0',
175175
'stability' => '',
176176
'number' => '',
177177
);
@@ -814,12 +814,12 @@ public static function log($message, $level = null, $file = '', $forceLog = fals
814814

815815
if (!is_dir($logDir)) {
816816
mkdir($logDir);
817-
chmod($logDir, 0777);
817+
chmod($logDir, 0750);
818818
}
819819

820820
if (!file_exists($logFile)) {
821821
file_put_contents($logFile, '');
822-
chmod($logFile, 0777);
822+
chmod($logFile, 0640);
823823
}
824824

825825
$format = '%timestamp% %priorityName% (%priority%): %message%' . PHP_EOL;

app/bootstrap.php

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
<?php
2+
/**
3+
* Magento
4+
*
5+
* NOTICE OF LICENSE
6+
*
7+
* This source file is subject to the Open Software License (OSL 3.0)
8+
* that is bundled with this package in the file LICENSE.txt.
9+
* It is also available through the world-wide-web at this URL:
10+
* http://opensource.org/licenses/osl-3.0.php
11+
* If you did not receive a copy of the license and are unable to
12+
* obtain it through the world-wide-web, please send an email
13+
* to [email protected] so we can send you a copy immediately.
14+
*
15+
* DISCLAIMER
16+
*
17+
* Do not edit or add to this file if you wish to upgrade Magento to newer
18+
* versions in the future. If you wish to customize Magento for your
19+
* needs please refer to http://www.magento.com for more information.
20+
*
21+
* @category Mage
22+
* @package Mage
23+
* @copyright Copyright (c) 2006-2015 X.commerce, Inc. (http://www.magento.com)
24+
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
25+
*/
26+
27+
/**
28+
* Apply workaround for the libxml PHP bugs:
29+
* @link https://bugs.php.net/bug.php?id=62577
30+
* @link https://bugs.php.net/bug.php?id=64938
31+
*/
32+
if (function_exists('libxml_disable_entity_loader')) {
33+
libxml_disable_entity_loader(false);
34+
}

0 commit comments

Comments
 (0)