pajoye          Thu Aug 21 23:28:21 2008 UTC

  Modified files:              
    /php-src/ext/standard/tests/network inet.phpt 
  Log:
  - [DOC] fix test, chr uses codepoint as input
  
http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/network/inet.phpt?r1=1.3&r2=1.4&diff_format=u
Index: php-src/ext/standard/tests/network/inet.phpt
diff -u php-src/ext/standard/tests/network/inet.phpt:1.3 
php-src/ext/standard/tests/network/inet.phpt:1.4
--- php-src/ext/standard/tests/network/inet.phpt:1.3    Tue May 27 07:41:44 2008
+++ php-src/ext/standard/tests/network/inet.phpt        Thu Aug 21 23:28:21 2008
@@ -8,10 +8,10 @@
 --FILE--
 <?php
 
-$packed = chr(127) . chr(0) . chr(0) . chr(1);
+$packed = pack("CCCC", 127, 0, 0, 1);
 var_dump(inet_ntop((binary)$packed));
 
-$packed = chr(255) . chr(255) . chr(255) . chr(0);
+$packed = pack("CCCC", 255, 255, 255, 0);
 var_dump(inet_ntop((binary)$packed));
 
 var_dump(inet_ntop());



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

Reply via email to