Archive for August, 2010

Donnerstag, August 12th, 2010

„Niveau sieht nur von unten aus wie Arroganz.“


Finding PHP4 constructors in Eclipse

Mittwoch, August 11th, 2010

With PHP5.3.3 its time to remove some dust from your old code. Aside of the fact that most of us would want to look into legacy projects, checking for issues someone else has solved more elegantly in the meantime, support for the old contructor names (a function identical to the class name) will be dropped. This means the old code will have to be ported.

As I am not a friend of automated code modification I searched for a way to find concerned classes via the Eclipse file search – using regular expression. This should do…


Mittwoch, August 11th, 2010

„Every time you make a singleton, God kills a start-up.“


APC update (3.1.4) – configuration notice

Mittwoch, August 11th, 2010

APC finally follows the standard of using suffixed values for memory sizes specified inside your php.ini (or APC’s dedicated ini). So if you encounter a

PHP Warning: PHP Startup: apc.shm_size now uses M/G suffixes, please update your ini files

while still having something like (e.g. in /etc/php.d/apc.ini)

; The size of each shared memory segment in MB.

in your configuration, its enough to append the respective unit indicator (M = Mega, G = Giga) to the number in order to update your configuration to comply with the requirements.