dmitry                                   Tue, 22 Sep 2009 08:47:30 +0000

Revision: http://svn.php.net/viewvc?view=revision&revision=288556

Log:
Fixed test

Changed paths:
    U   php/php-src/branches/PHP_5_2/ext/xmlwriter/tests/bug48204.phpt

Modified: php/php-src/branches/PHP_5_2/ext/xmlwriter/tests/bug48204.phpt
===================================================================
--- php/php-src/branches/PHP_5_2/ext/xmlwriter/tests/bug48204.phpt      
2009-09-22 08:42:44 UTC (rev 288555)
+++ php/php-src/branches/PHP_5_2/ext/xmlwriter/tests/bug48204.phpt      
2009-09-22 08:47:30 UTC (rev 288556)
@@ -2,8 +2,16 @@
 xmlwriter_open_uri with PHP_MAXPATHLEN + 1
 --SKIPIF--
 <?php if (!extension_loaded("xmlwriter")) print "skip"; ?>
+<?php if (!defined('PHP_MAXPATHLEN') && !substr(PHP_OS, 0, 3) == "WIN" && 
!stristr(PHP_OS, 'linux')) print "skip unknown PHP_MAXPATHLEN"; ?>
 --FILE--
 <?php
+if (!defined('PHP_MAXPATHLEN')) {
+       if (substr(PHP_OS, 0, 3) == "WIN") {
+               define('PHP_MAXPATHLEN', 260);
+       } else if (stristr(PHP_OS, 'linux')) {
+               define('PHP_MAXPATHLEN', 4096);
+       }
+}
 $path = str_repeat('a', PHP_MAXPATHLEN + 1);
 var_dump(xmlwriter_open_uri('file:///' . $path));
 ?>

-- 
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to