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 Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
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

Pull Requests

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-2025 The PHP Group
All rights reserved.
Last updated: Tue Jun 24 09:01:34 2025 UTC