php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #22869 ignore_user_abort&memory_limit
Submitted: 2003-03-25 03:03 UTC Modified: 2003-07-14 17:59 UTC
Votes:5
Avg. Score:5.0 ± 0.0
Reproduced:5 of 5 (100.0%)
Same Version:1 (20.0%)
Same OS:3 (60.0%)
From: mazsolt at yahoo dot com Assigned: edink (profile)
Status: Wont fix Package: *General Issues
PHP Version: 4.3.0 OS: windows 2000 Server
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: mazsolt at yahoo dot com
New email:
PHP Version: OS:

 

 [2003-03-25 03:03 UTC] mazsolt at yahoo dot com
php.ini:
output_buffering = Off

IIS:
disable ouput buffering

the program:
<?php
ignore_user_abort(false);
echo str_repeat("start",300);
sleep(10);
$f=@fopen("test.txt","w") or die("problems");
?>

After about 3 seconds, I aborted the program execution, but the program wasn't finished, it created the file test.txt. I also tested with Windows 2000 Profesional, and the result was the same.

My question: ignore_user_abort() doesn't work on Windows? When I call phpinfo(), it shows the configuration variable ignore_user_abort with the value Off. But in the file php.ini I don't find it anywhere. Why?

------------------------------------------------
other problem: memory_limit (Windows 2000 Server)
-------------------------------
The documentation writes(Getting started/configuration/configuration directives) that the option memory_limit can be changed everywhere (PHP_INI_ALL). I observe the following problems:

1. The memory_limit isn't displayed when the script displays the conf. options with phpinfo()

2. The ini_get("memory_limit") function  doesn't return the value of memory_limit, too (it returns a blank space)

3. when I set in the php.ini memory_limit to ) 0, the get_cfg_var("memory_limit") returns the value of 0. When I set ini_set("memory_limit","0")(both of them should mean that the script has no memory space), but the script runs without problems

Please, confirm if the enumerated observations are a bug, or the problems persist because of Windows 2000 Server. I read very carefuly the documentation for PHP 4.3. Does it mean that the memory_limit can be changed inside a script ? Why is written that this option is changeable by PHP_INI_ALL ????   

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2003-04-15 06:15 UTC] mazsolt at yahoo dot com
Thanks for the new version of PHP, I downloaded it, but it didn't solved any(2) of my problems.

The first script creates the file 'test.txt', the ignore _user_abort(false) command has no effect.

The memory_limit situation remains unchanged, too. Neither phpinfo(), nor ini_set() doesn't work with it.
 [2003-04-23 04:48 UTC] sniper@php.net
Assigned to Edin: The MEMORY_LIMIT should be defined for win32 builds always? (it's a configure option in *nix builds)

 [2003-07-14 17:59 UTC] edink@php.net
Unfortunatelly enabling memory limit across the board for all windows users would be too far reaching change.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Apr 19 12:01:27 2024 UTC