Planet PHP
1
Is all code in vendor infrastructure code? - Matthias Noback  09h15 22 février
During a recent run of my Advanced Web Application Architecture training, we discussed the distinction between infrastructure code and non-infrastructure code, which I usually call core code. One of the participants summarized the difference between the two as: everything in your vendor directory...
2
Typescript is changing how I write code - Evert Pot  20h14 21 février
Typescript is not just Javascript types. Using TS more is slowly altering how I think about how my code should be written. My code is becoming more functional, and I’m incentivized to write things in a way that typescript is more likely to catch. I wanted to share an isolated example of this. ...
3
PHP Internals News: Episode 41: toArray() - Derick Rethans  09h04 20 février
PHP Internals News: Episode 41: toArray() London, UK Thursday, February 20th 2020, 09:04 GMT In this episode of PHP Internals News I chat with Steven Wade (Twitter, GitHub, Website) about the toArray() RFC. The RSS feed for this podcast is https...
4
PHP 7.2.28 Released - PHP: Hypertext Preprocessor  00h00 20 février
The PHP development team announces the immediate availability of PHP 7.2.28. This is a security release.All PHP 7.2 users are encouraged to upgrade to this version.For source downloads of PHP 7.2.28 please visit our downloads page, Windows source and binaries can be found on windows.php.net...
5
PHP 7.4.3 released - PHP: Hypertext Preprocessor  00h00 20 février
The PHP development team announces the immediate availability of PHP 7.4.3. This is a security release which also contains several bug fixes.All PHP 7.4 users are encouraged to upgrade to this version.For source downloads of PHP 7.4.3 please visit our downloads page, Windows source and binaries can...
6
PHP 7.3.15 Released - PHP: Hypertext Preprocessor  00h00 20 février
The PHP development team announces the immediate availability of PHP 7.3.15. This is a security release which also contains several bug fixes.All PHP 7.3 users are encouraged to upgrade to this version.For source downloads of PHP 7.3.15 please visit our downloads page, Windows source and binaries...
7
PHPun with FFI: Just enough C - platform.sh  00h00 20 février
One of the new and exciting features of PHP 7.4 is its support for Foreign Function Interface, or FFI. FFI provides a much easier way to load code from other, faster languages into PHP than writing an extension. That said, easier doesn’t mean trivial. There is some work involved, and it’s not...
8
Evert P  20h04 19 février
9
Implementing an opaque type in typescript - Evert Pot  18h30 18 février
Say, you’re in a situation where you have a user type, that looks a bit as follows: export type User firtName: string; lastName: string; email: string; function save(user: User) ... const user firstName: ’Evert’, lastName: ’Pot’, email: ’foo example.org’, save...
10
Validating default PHP session ID values - Rob Allen  11h00 13 février
I recently needed to validate the value created by PHP for its session ID. After a bit of research, I realised that there are two interesting php.ini config settings that relate to this value: session.sid length is the number of characters in the ID session.sid bits per character controls the set...