Tag Archives: Regex

PHP Autoload Invalid Classname Injection

There are many ways to attack an application, many are working by injecting some malicious data hoping to trigger a deserved action in the end. Most of these are possible when input data is not properly sanitized. This can have … Continue reading

Posted in Features, Hakre's Tips, PHP Development, Pressed, The Know Your Language Department | Tagged , , , , , | 1 Comment

This page is a test. (Updated 1x)

Clicking on the title or the Continue reading → link below will not crash the process any longer. It’s related to a segfault that can be triggered within worpdress (see #16892).

Posted in Hacking The Core | Tagged , , , , , , , , , | 1 Comment

PHP Syntax Regulary Expressed

This is not the full PHP Syntax as Regex (which would not make much sense, use the tokenizer instead), but a collection of regular expressions for various elements of the PHP syntax I ran over lately.

Posted in PHP Development, Pressed | Tagged , , , , , , , , , , , , | 1 Comment

PHP: Curly Brackets Substring Access

I just have another lighter PHP specific Code Smell: Curly Brackets Substring Access. If you’re coding PHP since a longer time you might not only know but also have used curly brackets for index-/char-based substring access.

Posted in Code Smells, Hacking The Core, PHP Code Smells | Tagged , , , , , , | 2 Comments