Lines Matching refs:fp
19 $fp = fopen( $file, 'a+' );
33 function writeAndDump($fp, $format, $args)
35 ftruncate( $fp, 0 );
36 $length = vfprintf( $fp, $format, $args );
37 rewind( $fp );
38 $content = stream_get_contents( $fp );
44 writeAndDump( $fp, "format", null );
45 writeAndDump( $fp, "Foo is %d and %s", array( 30, 'bar' ) );
46 writeAndDump( $fp, "Foobar testing", array() );
47 writeAndDump( $fp, "%s %s %s", array( 'bar', 'bar', 'bar' ) );
48 writeAndDump( $fp, "%02d", array( 50 ) );
49 writeAndDump( $fp, "", array() );
50 writeAndDump( $fp, "Testing %b %d %f %o %s %x %X", array( 9, 6, 2.5502, 24, "foobar", 15, 65 ) );
55 fclose( $fp );