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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Password:
Status:
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: Sun Aug 25 23:01:28 2019 UTC