Merge pull request #10 from shankao/master

Do not use ticks for daemon signalling (PHP >= 5.3)
Fix whitespace
Fixing E_STRICT errors: Only variables should be passed as reference.
Fixed appPidLocation check according to bug 20062 (PEAR)

System_Daemon requires that pidfiles live in their own directories, like `/var/run/appName/pidfile` instead of `/var/run/appName.pid`. This is conform to the policies of most Linux distributions about `/var/run/`.

However, the existing check failed to allow locations like `/dir/appName/pidfile` or `./appName/pidfile` as it was required that the path component of `appPidLocation` requires at least three nested directories like `/var/run/appName/..`

This commit fixes this.

A further improvement might be to perform the check only if the pidfile should being placed in `/var/run/` in order to allow `./pidfile` for example.
Merge pull request #11 from metashock/patch-1

Fixed appPidLocation check according to bug 20062 (PEAR)
Update README.md