We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 883337a commit 35c69adCopy full SHA for 35c69ad
README.md
@@ -824,6 +824,26 @@ $db->verbose();
824
```
825
826
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
847
848
### Dev & PHPUnit Test
849
0 commit comments