#NEWLINE# def __call_function( self , function_name , arguments ) : #NEWLINE# #INDENT# if ( ( type ( arguments ) != list ) and arguments ) : #NEWLINE# #INDENT# raise InvalidType #NEWLINE# #UNINDENT# p = Popen ( 'php' , stdin = PIPE , stdout = PIPE , stderr = PIPE ) #NEWLINE# ( ( print >> p . stdin ) , '<?php ' ) #NEWLINE# ( ( print >> p . stdin ) , ( "include '%s';" % self . __escape ( self . file_path ) ) ) #NEWLINE# ( ( print >> p . stdin ) , ( '%s(%s);' % ( function_name , self . __join_arguments ( arguments ) ) ) ) #NEWLINE# p . stdin . close ( ) #NEWLINE# result = p . stdout . read ( ) #NEWLINE# if ( result . find ( 'include(): Failed opening' ) > 0 ) : #NEWLINE# #INDENT# raise PHPFileDoesNotExist ( result ) #NEWLINE# #UNINDENT# if ( ( result . find ( 'Warning: ' ) > 0 ) and ( result . find ( 'on line ' ) > 0 ) ) : #NEWLINE# #INDENT# raise PHPWarning ( result ) #NEWLINE# #UNINDENT# return result