←
Alexander Makarov10,164 posts
Alexander Makarov avatar

Alexander Makarov

@sam_dark

Engineer having fun. CTO of Twindo.ai. Lead of Yii framework. Member of PHP-FIG. Organizer of IT conferences. Coffee enthusiast.

◷ Joined November 2008▧ 178 Photos and videos
Alexander Makarov avatar
Alexander Makarov@sam_dark·9 Oct 2022

Will solve complicated problems of virtually any level: tracking stolen money in blockhains, selecting database engine for specific needs, troubleshooting, making systems stable, improving performance, scaling systems, audit etc. High rates.

The PHP Foundation avatar
⟳ Alexander Makarov retweeted
The PHP Foundation@ThePHPF·Oct 21

We have posted more information about today's security releases, including the sequence of events that led to the discovery, how the PHP security team is improving their processes, and what we need from you to continue this critical work. #php #security thephp.foundation/blog/2026/…

Alexander Makarov avatar
Alexander Makarov@sam_dark·Sep 28

I love Hugo, ran a blog on it for some time, and it inspired me to create YiiPress. I wanted "templates in PHP" but also "can I make it faster in PHP?" Finally benchmarked it properly. The answer is "yes, it is faster." yiipress.yiiframework.com/

Post attachment
Alexandre Daubois avatar
⟳ Alexander Makarov retweeted
Alexandre Daubois@alexdaubois·Sep 8

PDO::prepare() does not prepare anything on the server by default in #PHP. 🔐 mysql_driver.c sets H->buffered = H->emulate_prepare = 1. PDO builds the final SQL itself, client side, and sends ONE query. That isn't automatically a hole: the emulation escapes according to the connection charset. That's why charset=utf8mb4 in the DSN is a security setting, not a cosmetic one.

Post attachment
The PHP Foundation avatar
⟳ Alexander Makarov retweeted
The PHP Foundation@ThePHPF·Jun 11

In case you missed it, we launched our first State of PHP survey together with @phpstorm (a JetBrains IDE.) This initiative aims to build a clearer picture of today’s PHP ecosystem. Take the survey and help us map the herd! 👉 thephp.foundation/blog/2026/… #phpcommunity #stateofphp

Roman Pronskiy avatar
⟳ Alexander Makarov retweeted
Roman Pronskiy@pronskiy·Jun 11

The X link-removal RFC didn't pass 🙌 So I updated the Social Media Policy RFC and it's open for feedback: github.com/php/policies/pull…

Roman Pronskiy @pronskiy May 3

Post attachment
Alexandre Daubois avatar
⟳ Alexander Makarov retweeted
Alexandre Daubois@alexdaubois·May 29

Timing attacks are real, and most devs don't protect against them. When you compare two strings with === or strcmp(), #PHP stops at the first different byte. If the first character matches, it takes slightly longer than if it doesn't. An attacker can measure response times to guess a secret character by character. HMAC token, API key, CSRF token... byte by byte, statistically. hash_equals() was added in PHP 5.6 specifically for this. It always compares ALL bytes, regardless of where the first mismatch is. Constant time. Same applies to #golang: use crypto/subtle.ConstantTimeCompare(). Same in #nodejs: crypto.timingSafeEqual(). If you're comparing secrets with == or ===, you may be leaking information through time!

Post attachment
Wilmer Arambula avatar
⟳ Alexander Makarov retweeted
Wilmer Arambula@Terabytesoftw·May 25

🎁 Yii2 HTTP Client 2.0.17 is out. This release focuses on compatibility, stability, and maintenance for the Yii2 HTTP client extension. What changed: • Fixed a `stream_get_contents()` TypeError when PHP error reporting is turned off. • Fixed PHP 8.5 deprecation around the predefined `$http_response_header` variable. • Fixed `curl_close()` and `curl_multi_close()` deprecations in PHP 8.5. • Improved PHPDoc annotations for response status code handling. • Added full HTTP status line details to `Message::getHeaders()` / `Client::getHeaders()`. • Applied Yii2 coding standards. • Raised the minimum PHP version to 7.4. A small but important maintenance release to keep Yii2 HTTP Client reliable across modern PHP versions. github.com/yiisoft/yii2-http…