I tried to use the CLIClient on Windows, but got two problems:
The file /tmp/tika-error.log does not exist, which yields a warning [1].
The Windows Commandline doesn't seem to like the single quotes around the paths, which yields an error [2].
[1] Warning: proc_open(/tmp/tika-error.log): failed to open stream: No such file or directory in C:\path\to\my\application\vendor\vaites\php-apache-tika\src\Clients\CLIClient.php on line 120
[2] Error: Unable to access jarfile 'C:\path\to\my\application\bin\tika.jar'
I tried to use the CLIClient on Windows, but got two problems:
/tmp/tika-error.log
does not exist, which yields a warning [1].[1]
Warning: proc_open(/tmp/tika-error.log): failed to open stream: No such file or directory in C:\path\to\my\application\vendor\vaites\php-apache-tika\src\Clients\CLIClient.php on line 120
[2]Error: Unable to access jarfile 'C:\path\to\my\application\bin\tika.jar'
Solutions:
sys_get_temp_dir()
instead of"/tmp/"
here.escapeshellargs()
instead of single quotes here.I will submit a PR in a minute.