Magento is exemplary ENTERPRISE-grade PHP.
Nov. 5th, 2014 04:49 pm![[personal profile]](https://www.dreamwidth.org/img/silk/identity/user.png)
From enterprise-1.14.0.1.tgz:
$ grep -r chmod .|grep 777
./downloader/lib/Mage/Backup/Filesystem.php: chmod($backupsDir, 0777);
./app/code/core/Mage/Compiler/Model/Process.php: @chmod($dir, 0777);
./app/code/core/Mage/Install/Model/Installer/Console.php: @chmod('var/cache', 0777);
./app/code/core/Mage/Install/Model/Installer/Console.php: @chmod('var/session', 0777);
./app/code/core/Mage/Install/Model/Installer/Config.php: chmod($this->_localConfigFile, 0777);
./app/code/core/Mage/Catalog/Model/Product/Attribute/Backend/Media.php: $ioAdapter->chmod($this->_getConfig()->getTmpMediaPath($fileName), 0777);
./app/Mage.php: chmod($logDir, 0777);
./app/Mage.php: chmod($logFile, 0777);
./lib/Zend/Service/WindowsAzure/CommandLine/PackageScaffolder/PackageScaffolderAbstract.php: @chmod($path, '0777');
./lib/Zend/Service/WindowsAzure/CommandLine/PackageScaffolder/PackageScaffolderAbstract.php: @chmod($path, 0777);
./lib/Zend/Service/WindowsAzure/CommandLine/PackageScaffolder/PackageScaffolderAbstract.php: @chmod($path, 0777);
./lib/Zend/Cloud/StorageService/Adapter/FileSystem.php: chmod($path, 0777);
./lib/Varien/Autoload.php: @chmod($this->_collectPath, 0777);
./lib/Varien/File/Uploader.php: chmod($destinationFile, 0777);
./lib/Mage/Backup/Filesystem.php: chmod($backupsDir, 0777);
./errors/processor.php: @chmod($this->_reportFile, 0777);
I can't say what we're paying for this standard of quality, but I can say that it's public knowledge that Magento is at least $13k/yr.
The Magento world doesn't seem to consider this in any way a problem. Every guide I see blithely says to 777 stuff in your bloody webroot. I CANNOT EVEN.
Also, storing money as floats is absolutely fine and defensible.
You know you've been working on Magento a bit long when you can hum along to bits of "Metal Machine Music" accurately.
Update: Holy crap, this comment.
(no subject)
Date: 2014-11-06 01:42 am (UTC)(no subject)
Date: 2014-11-06 08:13 am (UTC)(no subject)
Date: 2014-11-08 06:06 am (UTC)(no subject)
Date: 2014-11-12 11:49 am (UTC)(no subject)
Date: 2014-11-12 11:02 pm (UTC)After looking at Magento, I think I'll become a contributor to systemd.