--TEST--
Test join() function : usage variations - binary safe
--FILE--
<?php
/* Prototype  : string join( string $glue, array $pieces )
 * Description: Join array elements with a string
 * Source code: ext/standard/string.c
 * Alias of function: implode()
*/

/*
 * check the working of join() when given binary input given
*/

echo "*** Testing join() : usage variationsi - binary safe ***\n";

$glues = array(
  
",".chr(0)." ",
  
b", "
);

$pieces = array("Red""Green""White"1);
var_dumpjoin($glues[0], $pieces) );
var_dumpjoin($glues[1], $pieces) );
 
echo 
"Done\n";
?>
--EXPECTF--
*** Testing join() : usage variationsi - binary safe ***
string(23) "Red, Green, White, 1"
string(20) "Red, Green, White, 1"
Done