title: <If "-T env('HTTP_VAR_VAR')"> and <IfDefine HTTP_VAR_VAR> NOT working in Apache httpd-2.4.43-win64-VS16 + PHP 8
body: <p>this is Windows 10 + PHP 8 + Apache httpd-2.4.43-win64-VS16
  (WAMP 2022)</p>
  <p>my file <strong>.htaccess</strong> work 100% fine, when I add the line</p>
  <pre><code>php_value auto_prepend_file '/path/file.php'
  </code></pre>
  <p>into my <strong>.htaccess</strong> <code>file.php</code> is loaded and all work fine, 0errors, 0 warnings.</p>
  <p>Now I need use a conditional into my <strong>.htaccess</strong>, then I put:</p>
  <pre><code>SetEnv HTTP_VAR_VAR1 'hello world1'
  SetEnv HTTP_VAR_VAR2 'hello world2'
  </code></pre>
  <p>and result is 0 errors, the code PHP</p>
  <pre><code>var_dump(getenv('HTTP_VAR_VAR1'));
  var_dump(getenv('HTTP_VAR_VAR2'));
  </code></pre>
  <p>return</p>
  <pre><code>string(12) &quot;hello world1&quot;
  string(12) &quot;hello world2&quot;
  </code></pre>
  <p>yeah!, my <strong>.htaccess</strong> work fine</p>
  <p>now I need evaluate the vars into my <strong>.htaccess</strong> and I add:</p>
  <pre><code>&lt;If &quot;-T env('HTTP_VAR_VAR1')&quot;&gt;
  php_value auto_prepend_file '/path/file1.php'
  &lt;/If&gt;
  
  &lt;IfDefine HTTP_VAR_VAR2&gt;
  php_value auto_prepend_file '/path/file2.php'
  &lt;/IfDefine&gt;
  </code></pre>
  <p>and NEVER auto_prepend_file is loaded</p>
  <p>why</p>
  <pre><code>&lt;If &quot;-T env('HTTP_VAR_VAR')&quot;&gt; and &lt;IfDefine HTTP_VAR_VAR&gt;
  </code></pre>
  <p>not work ?</p>