reddragdiva: (stress relief)
divabot ([personal profile] reddragdiva) wrote2014-11-05 04:49 pm

Magento is exemplary ENTERPRISE-grade PHP.

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.

rone: (stare)

[personal profile] rone 2014-11-06 01:42 am (UTC)(link)
Consider <TT> instead of <PRE>.
tcpip: (Default)

[personal profile] tcpip 2014-11-08 06:06 am (UTC)(link)
Sweet mother of god. What are they thinking? This is evil. No really, evil. It's so bad I'm going to investigate even further just to see what almighty fuckup of biblical proportions they also suggest.
tcpip: (This Man)

[personal profile] tcpip 2014-11-12 11:02 pm (UTC)(link)
"He who fights with monsters should look to it that he himself does not become a monster. And when you gaze long into an abyss the abyss also gazes into you."

After looking at Magento, I think I'll become a contributor to systemd.