[php-maint] Bug#433786: php5: incorrect result when using stream_get_transports()

Samuel Castillo scastillo at hostalia.com
Thu Jul 19 12:41:58 UTC 2007


Package: php5
Version: 5.2.0-8+etch7
Severity: normal


test script:

<?php
echo '<pre>'; print_r(stream_get_transports()); echo '</pre>';
?> 

Result:

Array
(
   [0] => tc
   [1] => ud
   [2] => uni
   [3] => ud
   [4] => ss
   [5] => sslv
   [6] => sslv
   [7] => tl
)

Expected result:

Array
(
   [0] => tcp
   [1] => udp
   [2] => unix
   [3] => udg
   [4] => ssl
   [5] => sslv3
   [6] => sslv2
   [7] => tls
) 

The error is always reproducible, even through PHP-CLI:

$ php -r"var_dump(stream_get_transports());"
array(8) {
 [0]=>
 string(2) "tc"
 [1]=>
 string(2) "ud"
 [2]=>
 string(3) "uni"
 [3]=>
 string(2) "ud"
 [4]=>
 string(2) "ss"
 [5]=>
 string(4) "sslv"
 [6]=>
 string(4) "sslv"
 [7]=>
 string(2) "tl"
} 

-- System Information:
Debian Release: 4.0
  APT prefers stable
  APT policy: (500, 'stable')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.21.3
Locale: LANG=es_ES.UTF-8, LC_CTYPE=es_ES.UTF-8 (charmap=UTF-8)




More information about the pkg-php-maint mailing list