Contributing Advent 3: Zetacomponent's Mail
Years ago when I was working for eZ Systems I worked on "eZ Components", which then became the now defunct "Apache Zeta Components", and now finally it's hosted on GitHub as Zeta Components. In the last weeks Thomas Bachem has been providing a few fixes to the Mail component. The Mail component in Zeta Components has by far the most extensive implementation of various email, MIME and header RFCs. This allows it to parse almost every mail that is thrown at it. Combined with an excellent POP3, IMAP and SMTP implementation is is the best Mail utility for PHP—and I am not only saying that because I wrote parts of it.
However, just like as many other components in the package, it has not seen a lot of love lately, and its test suite is still using some of the old hard coded email servers that we used to use for testing when still at eZ Systems.
My first patch fixes a few notices that were raised while running the tests. The notices were all through by the following line in the code:
declare(encoding="latin1");
These lines were initially added because of PHP 6 functionality that allowed you to set a character set for each file. As PHP 5 didn't really care, these lines didn't hurt either. However, now PHP supports the line as part of the Zend multibyte functionality, which I hadn't enabled, it started spewing errors like:
Warning: declare(encoding=...) ignored because Zend multibyte feature is turned off by settings in /home/derick/dev/zeta-new/Mail/src/transports/file/file_set.php on line 2
This tiny patch made those warnings go away, but there are still plenty of things to fix left over:
PHPUnit 3.7.10 by Sebastian Bergmann. Configuration read from /home/derick/dev/zeta-new/Mail/phpunit.xml.dist ....................FS..............F.......F.................. 63 / 639 ( 9%) ...F.F................F........................................ 126 / 639 ( 19%) ....................................................S.S.FFFFFF. 189 / 639 ( 29%) .....S......................................................... 252 / 639 ( 39%) ......................F..S.............FEEEEEEEEEEEEEEEEEEEEEEE 315 / 639 ( 49%) EEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEE 378 / 639 ( 59%) EEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEE 441 / 639 ( 69%) EEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEE................. 504 / 639 ( 78%) .............EEEEE.......E.EEEEEEEEEEEEEEEE.EEE.E...E......EE.. 567 / 639 ( 88%) .E......E...E....E.E..F.....FFFFFF....FSSSSSSS........EEEEEEEEE 630 / 639 ( 98%) EEEEE....
So I've a bit more to do to make this test suite work fine again…
Life Line
Updated 3 restaurants
I walked 3.1km in 29m25s
I walked 4.4km in 45m01s
I walked 5.4km in 55m28s
Updated a restaurant; Confirmed a hotel
I walked 6.3km in 1h12m59s
Paraphrasing opening keynote speaker at ConFoo: "Should we go back to the waterfall method of writing massive specs upfront to feed to AI coding agents?"
I walked 1.6km in 17m29s
I walked 2.1km in 17m44s
Updated a pub
I walked 2.6km in 26m41s
Merged pull request #1065
Comparison whether class is userland or internal used the wrong macro
PHP 8.6: zend_enum.h now mixes code with declarations
PHP 8.6: Argument names are now stored as zend_strings
Updated a bench and a waste_basket
I walked 8.3km in 1h25m37s
Created a recycling
I walked 10.5km in 1h46m57s
An interesting journey in story form, showing how English changed over time.
https://www.deadlanguagesociety.com/p/how-far-back-in-time-understand-english
A much better writer than I is summing up perfectly why I have such disdain for Generative AI/LLMs.
https://jonn.substack.com/p/so-why-do-i-feel-so-angry-about-this
Created a waste_basket; Updated a waste_basket; Deleted a bench
Created a bench; Updated 7 benches and a gate; Deleted 2 benches and a gate
Created 10 benches and 2 waste_baskets; Updated an information


Shortlink
This article has a short URL available: https://drck.me/adv1303-aes