# Fix for Zend/tests/bug40236.phpt

- Thread: https://externals.io/message/42544
- Original archive: https://news-web.php.net/php.internals/42544
- Started by Timm Friebe on 2009-01-10T16:37:50+00:00
- Messages: 2
- Reply by email to internals@lists.php.net
- More for agents: search with https://externals.io/search.md?q={query} · RFCs at https://externals.io/rfc.md · JSON API at https://externals.io/api · documentation at https://externals.io/llms.txt

---

## #42544 — Timm Friebe — 2009-01-10T16:37:50+00:00

URL: https://externals.io/message/42544#42544

Hi,
here's a quick fix for the "bug40236" test failing when run from inside a 
directory including spaces (e.g. "C:\Documents and Settings\" or /home/Timm 
Friebe/):

Index: Zend/tests/bug40236.phpt
===================================================================
RCS file: /repository/ZendEngine2/tests/bug40236.phpt,v
retrieving revision 1.1.2.2.2.2
diff -u -r1.1.2.2.2.2 bug40236.phpt
--- Zend/tests/bug40236.phpt    14 Aug 2008 20:51:55 -0000      1.1.2.2.2.2
+++ Zend/tests/bug40236.phpt    10 Jan 2009 16:36:12 -0000
@@ -8,7 +8,7 @@
 --FILE--
 <?php
 $php = getenv('TEST_PHP_EXECUTABLE');
-$cmd = "$php -n -d memory_limit=4M -a ".dirname(__FILE__)."/bug40236.inc";
+$cmd = "\"$php\" -n -d memory_limit=4M -a 
\"".dirname(__FILE__)."\"/bug40236.inc";
 echo `$cmd`;
 ?>

- Timm

---

## #42545 — Felipe Pena — 2009-01-10T17:09:12+00:00

URL: https://externals.io/message/42544#42545 · In reply to: #42544

Em Sáb, 2009-01-10 às 17:37 +0100, Timm Friebe escreveu:
> Hi,
> here's a quick fix for the "bug40236" test failing when run from inside a 
> directory including spaces (e.g. "C:\Documents and Settings\" or /home/Timm 
> Friebe/):
> 
> Index: Zend/tests/bug40236.phpt
> ===================================================================
> RCS file: /repository/ZendEngine2/tests/bug40236.phpt,v
> retrieving revision 1.1.2.2.2.2
> diff -u -r1.1.2.2.2.2 bug40236.phpt
> --- Zend/tests/bug40236.phpt    14 Aug 2008 20:51:55 -0000      1.1.2.2.2.2
> +++ Zend/tests/bug40236.phpt    10 Jan 2009 16:36:12 -0000
> @@ -8,7 +8,7 @@
>  --FILE--
>  <?php
>  $php = getenv('TEST_PHP_EXECUTABLE');
> -$cmd = "$php -n -d memory_limit=4M -a ".dirname(__FILE__)."/bug40236.inc";
> +$cmd = "\"$php\" -n -d memory_limit=4M -a 
> \"".dirname(__FILE__)."\"/bug40236.inc";
>  echo `$cmd`;
>  ?>
> 
> - Timm 
> 

Commited in 5_2, 5_3 and HEAD. Thanks Timm! ;)

-- 
Regards,
Felipe Pena
