snowplow / snowplow-php-tracker

Snowplow event tracker for PHP. Add analytics into your PHP apps and scripts
http://snowplowanalytics.com
34 stars 36 forks source link

Remove use of chdir() in FileEmitter #81

Closed tekket4 closed 3 years ago

tekket4 commented 5 years ago

Hi,

we used the FileTracker to set up a prototype and stumbled over this line. You are changing directories here which is quite a problem for a production environment. This causes among other things thatb our frontend templates cant be served anymore.

https://github.com/snowplow/snowplow-php-tracker/blob/bcc0564ff7cefd408aef5f828ff7693e5f32e580/src/Emitters/FileEmitter.php#L196