diff --git a/%5BDRAFT%5D-List-of-PHP-weakness-AerScript-addresses.md b/%5BDRAFT%5D-List-of-PHP-weakness-AerScript-addresses.md index 276d4c6..1135e08 100644 --- a/%5BDRAFT%5D-List-of-PHP-weakness-AerScript-addresses.md +++ b/%5BDRAFT%5D-List-of-PHP-weakness-AerScript-addresses.md @@ -4,4 +4,5 @@ The list of PHP weakness, that are still not resolved, but AerScript is going to 2. PHP does not allow to create final abstract class, that might be useful as a container for only static methods and properties. 3. Inconsistent library implements builtin functions with different naming conventions. Some use underscores between words, while others do not. 4. PHP implements completely broken comparison operators (eg: "0" equals to 0, NULL is less than -1 but it also equals to 0) -5. Some functions that could do two slightly different things are implemented as two separate function (eg. sort() and rsort()), while some other functions does completely different things depending on context (eg. get_class($obj) returns the object’s class name. get_class() returns the name of the class the function is being called in). \ No newline at end of file +5. Some functions that could do two slightly different things are implemented as two separate function (eg. sort() and rsort()), while some other functions does completely different things depending on context (eg. get_class($obj) returns the object’s class name. get_class() returns the name of the class the function is being called in). +6. Incrementing a NULL produces 1, while decrementing NULL produces NULL. Only numeric values could allow these operations. \ No newline at end of file