Skip to content

Commit 35c69ad

Browse files
committed
Readme verbose info
1 parent 883337a commit 35c69ad

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

README.md

+20
Original file line numberDiff line numberDiff line change
@@ -824,6 +824,26 @@ $db->verbose();
824824
```
825825

826826

827+
Verbose to file|steam:
828+
829+
```php
830+
// init client
831+
$cli = new Client($config);
832+
$cli->verbose();
833+
// temp stream
834+
$stream = fopen('php://memory', 'r+');
835+
// set stream to curl
836+
$cli->transport()->setStdErrOut($stream);
837+
// exec curl
838+
$st=$cli->select('SElect 1 as ppp');
839+
$st->rows();
840+
// rewind
841+
fseek($stream,0,SEEK_SET);
842+
843+
// output
844+
echo stream_get_contents($stream);
845+
```
846+
827847

828848
### Dev & PHPUnit Test
829849

0 commit comments

Comments
 (0)