GX-Bug #45627 » deactivate_strict_mode.patch
| src/debug/debug_config.sample.inc.php (revision e19145f94afcaa5062b90474ad275e444953eb9e) | ||
|---|---|---|
| 1 | 1 |
<?php |
| 2 | 2 |
/* -------------------------------------------------------------- |
| 3 |
debug_config.inc.php 2011-01-06 gm
|
|
| 3 |
debug_config.inc.php 2016-03-18
|
|
| 4 | 4 |
Gambio GmbH |
| 5 | 5 |
http://www.gambio.de |
| 6 |
Copyright (c) 2011 Gambio GmbH
|
|
| 6 |
Copyright (c) 2016 Gambio GmbH
|
|
| 7 | 7 |
Released under the GNU General Public License (Version 2) |
| 8 | 8 |
[http://www.gnu.org/licenses/gpl-2.0.html] |
| 9 | 9 |
-------------------------------------------------------------- |
| 10 | 10 |
*/ |
| 11 | 11 |
|
| 12 |
$t_debug_config = array |
|
| 13 |
( |
|
| 12 |
$t_debug_config = array( |
|
| 14 | 13 |
'ENABLED_SOURCES' => array() |
| 15 | 14 |
); |
| 16 | 15 |
|
| ... | ... | |
| 25 | 24 |
$t_debug_config['ENABLED_SOURCES'][] = 'class_overloading'; |
| 26 | 25 |
$t_debug_config['ENABLED_SOURCES'][] = 'include_usermod_requested'; |
| 27 | 26 |
$t_debug_config['ENABLED_SOURCES'][] = 'include_usermod_found'; |
| 28 |
|
|
| 29 |
|
|
| 30 |
|
|
| 31 |
?> |
|
| 27 |
$t_debug_config['ENABLED_SOURCES'][] = 'enable_mysql_strict_mode'; |
|
| src/GXEngine/Classes/Loaders/GXCoreLoader/GXCoreLoader.inc.php (revision e19145f94afcaa5062b90474ad275e444953eb9e) | ||
|---|---|---|
| 1 | 1 |
<?php |
| 2 | 2 |
/* -------------------------------------------------------------- |
| 3 |
GXCoreLoader.inc.php 2016-01-14
|
|
| 3 |
GXCoreLoader.inc.php 2016-03-18
|
|
| 4 | 4 |
Gambio GmbH |
| 5 | 5 |
http://www.gambio.de |
| 6 | 6 |
Copyright (c) 2016 Gambio GmbH |
| ... | ... | |
| 222 | 222 |
$connectionString = 'mysqli://' . $dbUser . ':' . $dbPassword . '@' . $dbServer . '/' . $dbName . $dbSocket; |
| 223 | 223 |
|
| 224 | 224 |
$this->ciDatabaseQueryBuilder = CIDB($connectionString); |
| 225 |
|
|
| 226 |
// @todo Remove the following block when the shop is totally ready for MySQL strict mode. |
|
| 227 |
if(is_object($GLOBALS['coo_debugger']) |
|
| 228 |
&& $GLOBALS['coo_debugger']->is_enabled('enable_mysql_strict_mode')
|
|
| 229 |
) |
|
| 230 |
{
|
|
| 231 |
$this->ciDatabaseQueryBuilder->query('SET SESSION sql_mode = "ONLY_FULL_GROUP_BY,STRICT_TRANS_TABLES,'
|
|
| 232 |
. 'NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_DIVISION_BY_ZERO,' |
|
| 233 |
. 'NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION"'); |
|
| 234 |
} |
|
| 235 |
else |
|
| 236 |
{
|
|
| 237 |
$this->ciDatabaseQueryBuilder->query('SET SESSION sql_mode = ""');
|
|
| 238 |
} |
|
| 225 | 239 |
} |
| 226 | 240 |
|
| 227 | 241 |
return $this->ciDatabaseQueryBuilder; |
| ... | ... | |
| 275 | 289 |
|
| 276 | 290 |
/** |
| 277 | 291 |
* Get a category service factory. |
| 278 |
*
|
|
| 292 |
* |
|
| 279 | 293 |
* @return CategoryServiceFactory |
| 280 | 294 |
*/ |
| 281 | 295 |
protected function _getCategoryServiceFactory() |
| ... | ... | |
| 304 | 318 |
|
| 305 | 319 |
/** |
| 306 | 320 |
* Get an addon value service factory. |
| 307 |
*
|
|
| 321 |
* |
|
| 308 | 322 |
* @return AddonValueServiceFactory |
| 309 | 323 |
*/ |
| 310 | 324 |
public function _getAddonValueServiceFactory() |
| 311 | 325 |
{
|
| 312 |
$db = $this->getDatabaseQueryBuilder(); |
|
| 326 |
$db = $this->getDatabaseQueryBuilder();
|
|
| 313 | 327 |
$addonValueServiceFactory = MainFactory::create('AddonValueServiceFactory', $db);
|
| 314 | 328 |
|
| 315 | 329 |
return $addonValueServiceFactory; |
| .gitignore (revision e19145f94afcaa5062b90474ad275e444953eb9e) | ||
|---|---|---|
| 20 | 20 |
/src/cache/* |
| 21 | 21 |
!/src/cache/.htaccess |
| 22 | 22 |
!/src/cache/index.html |
| 23 |
/src/debug/* |
|
| 24 |
!/src/debug/debug_config.sample.inc.php |
|
| 25 |
!/src/debug/debug_config.sample-extended.inc.php |
|
| 26 |
!/src/debug/no_error_output.sample.php |
|
| 23 | 27 |
/src/export/*.xml |
| 24 | 28 |
/src/export/invoice/*.pdf |
| 25 | 29 |
/src/export/packingslip/*.pdf |