title: VisualStudio Code PHP executablePath in docker
body: <p>I try to configure VSCode to use our php executable inside a docker container. Firstly i tried it on a macintosh and everything works as expected. At work we use windows pc´s and i cant get it to work.</p>
  
  <p><strong>Workspace Settings</strong></p>
  
  <pre><code>"php.suggest.basic": false,
  "php.executablePath": "C:\\Source\\stack\\.bin\\php.bat",
  "php.validate.executablePath": "C:\\Source\\stack\\.bin\\php.bat",
  "php.validate.run": "onSave",
  "php.validate.enable": true
  </code></pre>
  
  <p>I tried to set a <code>.sh</code>, <code>.exe</code> or <code>.bat</code> file but none of them seemed to work.</p>
  
  <p><strong>php.bat</strong></p>
  
  <pre><code>@echo off
  docker run -i stack_php php %*
  </code></pre>
  
  <p><strong>php.sh</strong></p>
  
  <pre><code>#!/bin/sh
  docker run stack_php php "$@"
  return $?
  </code></pre>
  
  <p>Anybody of you can help me get this to work? We would like to change our IDE from PHPStorm to VSCode but we arent able to so because everything a developer needs is stored in docker containers.</p>