1--TEST--
2Test strrchr() function : usage variations - empty heredoc string for 'haystack'
3--FILE--
4<?php
5/* Test strrchr() function by passing empty heredoc string for haystack
6 *  and with various needles
7*/
8
9echo "*** Testing strrchr() function: with heredoc strings ***\n";
10$empty_str = <<<EOD
11EOD;
12
13$needles = array(
14  "",
15  '',
16  FALSE,
17  NULL,
18  "\0",
19  $empty_str //needle as haystack
20);
21
22//loop through to test strrchr() with each needle
23foreach($needles as $needle) {
24  var_dump( strrchr($empty_str, $needle) );
25}
26echo "*** Done ***";
27?>
28--EXPECT--
29*** Testing strrchr() function: with heredoc strings ***
30bool(false)
31bool(false)
32bool(false)
33bool(false)
34bool(false)
35bool(false)
36*** Done ***
37