• Increase font size
  • Default font size
  • Decrease font size

These are just some ideas I had. Some will probably will probably end up as new projects. Others will remain here for long...

Feel free to comment or This e-mail address is being protected from spambots. You need JavaScript enabled to view it .

Pipe operator

E-mail Print
Read : 9,150 times

<---- Work in progress ---->

Last Updated on Sunday, 15 May 2016 00:59

Embedding PHP code in PHP extensions

E-mail Print
Read : 47,297 times

Traditionnally, PHP extensions contain C code only. The main reason is obvious : this code needs to be fast and access external C APIs. But, in many cases, some parts of the extension code could be written in PHP.

Last Updated on Tuesday, 01 September 2015 14:38

Loading PHP extensions by name

E-mail Print
Read : 21,898 times

!!! Feature implemented in PHP 7.2.0 !!!

Today, PHP extensions are loaded using their file names. Unfortunately, this filename depends on the operating system. So, when they want to activate an extension, newcomers are confused about the exact directive they must add to the php.ini file. The php.ini comments are also very confusing, using the word 'extension' as a synonym for 'file suffix' and providing examples using the windows syntax only.

Last Updated on Wednesday, 02 August 2017 14:37

PHP - Improve object to scalar conversion

E-mail Print
Read : 18,579 times
(4 votes, average 4.25 out of 5)

The __toString() magic method allows to convert an object to a string. This mechanism can be extended to allow converting to other scalar types. New rules can also allow converting the value, even when the specific method is not implemented.

Last Updated on Thursday, 11 June 2015 16:15

PHP friend classes

E-mail Print
Read : 25,101 times
(2 votes, average 3.50 out of 5)

This concept is adapted from C++. A 'friend' class can access the 'protected' members of the class in which it is declared as a friend.

Last Updated on Monday, 31 August 2015 18:01