Archive for August, 2010

Donnerstag, August 12th, 2010

„Niveau sieht nur von unten aus wie Arroganz.“

anonym

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…

(?s)^(class\s+(\w+)\b.*^\s+function\s+)\2\b

Mittwoch, August 11th, 2010

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

DadHacker

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.
apc.shm_size=512

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.

apc.shm_size=512M