PageRenderTime 42ms CodeModel.GetById 19ms RepoModel.GetById 1ms app.codeStats 0ms

/tests/ZendTest/Http/Client/_files/fwrite.php

https://bitbucket.org/gencer/zf2
PHP | 21 lines | 6 code | 2 blank | 13 comment | 0 complexity | 26ede6b6f382757f1c4a748e8aa97b33 MD5 | raw file
  1. <?php
  2. /**
  3. * Zend Framework (http://framework.zend.com/)
  4. *
  5. * @link http://github.com/zendframework/zf2 for the canonical source repository
  6. * @copyright Copyright (c) 2005-2014 Zend Technologies USA Inc. (http://www.zend.com)
  7. * @license http://framework.zend.com/license/new-bsd New BSD License
  8. */
  9. namespace Zend\Http\Client\Adapter;
  10. /**
  11. * This is a stub for PHP's `fwrite` function. It
  12. * allows us to check that a write operation to a
  13. * socket producing a returned "0 bytes" written
  14. * is actually valid.
  15. */
  16. function fwrite($socket, $request)
  17. {
  18. return 0;
  19. }