Created attachment 339954 [details, diff] patch for build with php 5.4 Current ebuild don't have PHP_TARGETS="php5-4" and vanilla sources fails to build with php 5.4. I have attached patch, which solves this.
Created attachment 339956 [details, diff] and updated ebuild
Fixed in CVS. Thanks Sergey