While writing a phing xml code to build a php project. Is there any way to find errors in particular project file using phing xml.
We found the code as below only throw alert for syntax error we need to filter it for all php errors like fatal errors & warnings & syntax errors.
the code as below :
<target name="build">
<apply executable="php" failonerror="true">
<arg value="-l" />
<fileset dir="${srcDir}">
<include name="**/*.php" />
</fileset>
</apply>
</target>