php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #32205 .
Submitted: 2005-03-06 15:56 UTC Modified: 2005-03-06 16:04 UTC
From: mvh at list dot ru Assigned:
Status: Not a bug Package: *Network Functions
PHP Version: 4.3.8 OS: Windows XP pro
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: mvh at list dot ru
New email:
PHP Version: OS:

 

 [2005-03-06 15:56 UTC] mvh at list dot ru
Description:
------------
register_shutdown_function() is not correct work with fsockopen() only for windows.
......... ......... ......... ......... ......... ......... ......... ......... ......... ......... ......... ......... ......... ......... ......... ......... ......... ......... ......... ......... ......... ......... ......... ......... ......... ......... ......... ......... ......... ......... ......... ......... ......... ......... ......... ......... ......... ......... ......... ......... ......... ......... ......... ......... ......... ......... ......... ......... 

Reproduce code:
---------------
<?php
set_time_limit(5);
function Shutdown()
  {
  touch('c:\\qwe.txt');
  }
register_shutdown_function('Shutdown');
while (true)
  {
  $fp = fsockopen('dawjadlhi.ru', 80, $e, $en, 5);
  fclose($fp); 
  }
?>

Expected result:
----------------
Fatal error: Maximum execution time of 5 seconds exceeded in h:\home\url_checker\www\1.php on line 10


Actual result:
--------------
Fatal error: Maximum execution time of 5 seconds exceeded in h:\home\url_checker\www\1.php on line 10

!!!!!----------------------------------------
Fatal error: Maximum execution time of 5 seconds exceeded in h:\home\url_checker\www\1.php on line 3
!!!!!----------------------------------------

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2005-03-06 16:04 UTC] derick@php.net
Thank you for taking the time to write to us, but this is not
a bug. Please double-check the documentation available at
http://www.php.net/manual/ and the instructions on how to report
a bug at http://bugs.php.net/how-to-report.php

.
 
PHP Copyright © 2001-2019 The PHP Group
All rights reserved.
Last updated: Sat Nov 16 23:01:41 2019 UTC