2008-07-16

alexkuklin: (Default)
2008-07-16 12:57 pm

(no subject)


Please note that parse_url seems not to produce always the same results when passing non-standard urls.

Eg. I was using this code since 2005 (both under PHP 4.3.10 and PHP 5.2.3) :

<?php
 $p = parse_url ( 'http://domain.tld/tcp://domain2.tld/dir/file' ) ;
 $d2 = parse_url ( $p['path'] ) ;
 echo $d2 ;  // returns '/dir/file'
?>


o_O

пыпых в своем репертуаре
руки отрывать за такое, имхо