Sand Fox (Posts about php)https://sandfox.me/tags/php.xml2024-03-25T17:50:28ZAnton SmirnovNikolaBuilding 32-bit PHP on 64-bit Fedorahttps://sandfox.me/linux/php-32bit.html2023-07-14T05:17:00+03:002023-07-14T05:17:00+03:00Anton Smirnov<div><p>This is a short howto for people who already know how to compile PHP.</p>
<p>TL;DR:</p>
<div class="code"><pre class="code sh"><a id="rest_code_22eef05f36734d36b7bdbf825bc2a59d-1" name="rest_code_22eef05f36734d36b7bdbf825bc2a59d-1" href="https://sandfox.me/linux/php-32bit.html#rest_code_22eef05f36734d36b7bdbf825bc2a59d-1"></a><span class="nv">CFLAGS</span><span class="o">=</span><span class="s1">'-m32'</span><span class="w"> </span><span class="nv">PKG_CONFIG_PATH</span><span class="o">=</span>/usr/lib/pkgconfig<span class="w"> </span>./configure<span class="w"> </span>--host<span class="o">=</span>i886<span class="w"> </span>--prefix<span class="o">=</span><span class="nv">$HOME</span>/Software/php32<span class="w"> </span>--exec-prefix<span class="o">=</span><span class="nv">$HOME</span>/Software/php32<span class="w"> </span>--with-gmp<span class="w"> </span>--enable-mbstring
<a id="rest_code_22eef05f36734d36b7bdbf825bc2a59d-2" name="rest_code_22eef05f36734d36b7bdbf825bc2a59d-2" href="https://sandfox.me/linux/php-32bit.html#rest_code_22eef05f36734d36b7bdbf825bc2a59d-2"></a>make<span class="w"> </span><span class="o">&&</span><span class="w"> </span>make<span class="w"> </span>install
</pre></div>
<p><a href="https://sandfox.me/linux/php-32bit.html">Read moreā¦</a> (1 min remaining to read)</p></div>Pseudolocale Lib for PHPhttps://sandfox.me/php/pseudolocale.html2021-01-27T04:20:00+02:002021-01-27T04:20:00+02:00Anton Smirnov<p>I haven't found a good standalone <a class="reference external" href="https://en.wikipedia.org/wiki/Pseudolocalization">pseudolocalization</a> library for PHP so I wrote my own.</p>
<p><a class="reference external" href="https://sandfox.dev/php/pseudolocale.html">https://sandfox.dev/php/pseudolocale.html</a></p>
<p>Or if you're using Symfony Components or you don't mind using huge libraries for simple tasks,
there is one good alternative: <code class="docutils literal">PseudoLocalizationTranslator</code> in the <a class="reference external" href="https://symfony.com/doc/current/translation.html">Symfony Translation Component</a> since version 5.2.</p>