assertDirectoryExists and assertDirectoryDoesNotExist failed #5996 Did you know php has a statcache which caches the return values of all kinds of return values from the operating system IO? That means, as long as you stick to the php universe like stat(), lstat(), file_exists(), is_writable(), is_readable(), is_executable(), is_file(), is_dir(), is_link(), filectime(), fileatime(), filemtime(), fileinode(), filegroup(), fileowner(), filesize(), filetype(), and fileperms() everything is fine, but don’t mix it with exec(“rm -rf $yourEscapeDirectory”); More on thisContinue reading “PHPUnit Code Sprint: Issue discussions”
Tag Archives: anecdotes
DNS: Wildcards
Today I learned… When you have a DNS zone (example.com) and create a wildcard like *.example.com with a CNAME to example.com every subdomain is resolved to your A/AAAA entry for example.com If you run dig (domain information groper) you can see it in your shell: How to break it Today I learned, that if you addContinue reading “DNS: Wildcards”
Mysqldump: Use the version you want to import into
Other posts about mysqldump Our colleagues over at maxcluster told us a while ago, that the best way to migrate a (My)SQL or database or MaraDB ist to use the mysqldump tool which comes with the server we want to import into. They are normally most compatible to each other and can read most ofContinue reading “Mysqldump: Use the version you want to import into”
How to URL: SEO URLs
We are currently implementing a big project with Shopware as a backend and Typo 3 as a frontend. One piece in this picture is to give Typo3 the possibility to get the cart and some other infos. Because Typo3 should be stateless, we don’t want it to handle store-api stuff. Instead we thought to implementContinue reading “How to URL: SEO URLs”
Find the one (important) difference
We are currently finalising our newest Shopware Store Plugin: Order via batch to cart. It is already in use on one of our customers stores and didn’t work at all. It showed all products, but the products with variants showed only a random variant. We looked into it, but couldn’t really understand what the problemContinue reading “Find the one (important) difference”
PHPUnit as a beginner
thePHP.cc is a company offering an education flat rate for PHP developer. Because we are on a good basis with them, they offered us a free seat and we are very happy to have one. The following blog post is the experience our junior developer Bruno Correia has so far. As a junior software developer,Continue reading “PHPUnit as a beginner”
Events: PHPUnit Code Sprint
Last week Friday/Saturday I had the privilege to join PHPUnit Code Sprint. It was a rather small event with only six people, but the competence was huge. I expected something like our FireGento hackathons, but due to the small group, we started with an introduction how PHPUnit was the last years and then Sebastian BergmannContinue reading “Events: PHPUnit Code Sprint”
Shopware 6: Entity Extension without properties?!
Shopware Version: 6.5.3.3 Today morning we sat with three of our developers together to debug a weird behaviour of one of our plugins. Let me tell you: If you need three people to debug weird behaviour, which normally is no problem and you just write it down, it is always the small things. The problemContinue reading “Shopware 6: Entity Extension without properties?!”
Shopware 6: Migrations and missing data
Shopware Version 6.5.7.3 We have a couple of plugins on the Shopware store, one of them is an addition and filter for invoice numbers on the order grid in the administration. In December we got a very nice support ticket from Sebastian working at dot21.net. We have a bug, that the order list is notContinue reading “Shopware 6: Migrations and missing data”
Shopware 6: How to NOT extend … non-entities
We have a feature to implement: We need multiple groups for customers. And because we already have good experience with tags, we implement it with tags. Customer is part of a band? Cool, give them the tag “Die Prinzen“. They are part of multiple bands? No problem, tag them with “Versengold” also. Do I justContinue reading “Shopware 6: How to NOT extend … non-entities”