#48907 [NEW]: Apache restarts due to a regular expression

2009-07-13 Thread sworddragon2 at aol dot com
From: sworddragon2 at aol dot com
Operating system: Windows XP Professional SP3
PHP version:  5.3.0
PHP Bug Type: PCRE related
Bug description:  Apache restarts due to a regular expression

Description:

I found a regular expression with which i can restart the apache service
with the notification: [notice] Parent: child process exited with status
3221225477 -- Restarting. I'm using Apache 2.2.11.

Reproduce code:
---


Expected result:

I expected that preg_replace() repaces the string.

Actual result:
--
Apache restarts with the above message an Firefox 3.5 tells me that the
connection to the server was recessed.

-- 
Edit bug report at http://bugs.php.net/?id=48907&edit=1
-- 
Try a CVS snapshot (PHP 5.2):
http://bugs.php.net/fix.php?id=48907&r=trysnapshot52
Try a CVS snapshot (PHP 5.3):
http://bugs.php.net/fix.php?id=48907&r=trysnapshot53
Try a CVS snapshot (PHP 6.0):
http://bugs.php.net/fix.php?id=48907&r=trysnapshot60
Fixed in CVS:
http://bugs.php.net/fix.php?id=48907&r=fixedcvs
Fixed in CVS and need be documented: 
http://bugs.php.net/fix.php?id=48907&r=needdocs
Fixed in release:
http://bugs.php.net/fix.php?id=48907&r=alreadyfixed
Need backtrace:  
http://bugs.php.net/fix.php?id=48907&r=needtrace
Need Reproduce Script:   
http://bugs.php.net/fix.php?id=48907&r=needscript
Try newer version:   
http://bugs.php.net/fix.php?id=48907&r=oldversion
Not developer issue: 
http://bugs.php.net/fix.php?id=48907&r=support
Expected behavior:   
http://bugs.php.net/fix.php?id=48907&r=notwrong
Not enough info: 
http://bugs.php.net/fix.php?id=48907&r=notenoughinfo
Submitted twice: 
http://bugs.php.net/fix.php?id=48907&r=submittedtwice
register_globals:
http://bugs.php.net/fix.php?id=48907&r=globals
PHP 4 support discontinued:  http://bugs.php.net/fix.php?id=48907&r=php4
Daylight Savings:http://bugs.php.net/fix.php?id=48907&r=dst
IIS Stability:   
http://bugs.php.net/fix.php?id=48907&r=isapi
Install GNU Sed: 
http://bugs.php.net/fix.php?id=48907&r=gnused
Floating point limitations:  
http://bugs.php.net/fix.php?id=48907&r=float
No Zend Extensions:  
http://bugs.php.net/fix.php?id=48907&r=nozend
MySQL Configuration Error:   
http://bugs.php.net/fix.php?id=48907&r=mysqlcfg



#48907 [Fbk->Opn]: Apache restarts due to a regular expression

2009-07-15 Thread sworddragon2 at aol dot com
 ID:   48907
 User updated by:  sworddragon2 at aol dot com
 Reported By:  sworddragon2 at aol dot com
-Status:   Feedback
+Status:   Open
 Bug Type: PCRE related
 Operating System: Windows XP Professional SP3
 PHP Version:  5.3.0
 New Comment:

I'm using PHP 5.3.0 x86 VC6 Thread Safe. I have installed PHP 5.2.10
and can reproduce it too. After this i have installed PHP 5.3.0 again
without any extensions and have used a standard php.ini and httpd.conf
(just the entry from the PHP installer is written).

I have cleared the error.log from Apache and after executing the
reproduce code the log says:

[Thu Jul 16 02:40:03 2009] [notice] Parent: child process exited with
status 3221225477 -- Restarting.
httpd.exe: Could not reliably determine the server's fully qualified
domain name, using 192.168.1.2 for ServerName
[Thu Jul 16 02:40:03 2009] [notice] Apache/2.2.11 (Win32) PHP/5.3.0
configured -- resuming normal operations
[Thu Jul 16 02:40:03 2009] [notice] Server built: Dec 10 2008 00:10:06
[Thu Jul 16 02:40:03 2009] [notice] Parent: Created child process 3196
httpd.exe: Could not reliably determine the server's fully qualified
domain name, using 192.168.1.2 for ServerName
httpd.exe: Could not reliably determine the server's fully qualified
domain name, using 192.168.1.2 for ServerName
[Thu Jul 16 02:40:03 2009] [notice] Child 3196: Child process is
running
[Thu Jul 16 02:40:03 2009] [notice] Child 3196: Acquired the start
mutex.
[Thu Jul 16 02:40:03 2009] [notice] Child 3196: Starting 64 worker
threads.
[Thu Jul 16 02:40:03 2009] [notice] Child 3196: Starting thread to
listen on port 80.


But i figured out another thing. If I'm changing the pattern from
'#a((?:.|\n)*?)a#' to '#a((?:\n|.)*?)a#' all works fine. Oddly seems
that Avira AntiVir Personal with the definition file from the last days
and today says after saving the reproduce code that the file is a
heuristic found HEUR/HTML.Malware.


Previous Comments:


[2009-07-15 12:08:40] j...@php.net

Exactly what PHP version are you using? This works fine on both 5.2.10
and 5.3.0 for me..

------------

[2009-07-13 19:35:00] sworddragon2 at aol dot com

Description:

I found a regular expression with which i can restart the apache
service with the notification: [notice] Parent: child process exited
with status 3221225477 -- Restarting. I'm using Apache 2.2.11.

Reproduce code:
---


Expected result:

I expected that preg_replace() repaces the string.

Actual result:
--
Apache restarts with the above message an Firefox 3.5 tells me that the
connection to the server was recessed.





-- 
Edit this bug report at http://bugs.php.net/?id=48907&edit=1



#48907 [Fbk->Opn]: Apache restarts due to a regular expression

2009-07-16 Thread sworddragon2 at aol dot com
 ID:   48907
 User updated by:  sworddragon2 at aol dot com
 Reported By:  sworddragon2 at aol dot com
-Status:   Feedback
+Status:   Open
 Bug Type: PCRE related
 Operating System: Windows XP Professional SP3
 PHP Version:  5.3.0
 New Comment:

In the PCRE block of my php.ini stands the same:

[Pcre]
;PCRE library backtracking limit.
; http://php.net/pcre.backtrack-limit
;pcre.backtrack_limit=10

;PCRE library recursion limit. 
;Please note that if you set this value to a high number you may
consume all 
;the available process stack and eventually crash PHP (due to reaching
the 
;stack size limit imposed by the Operating System).
; http://php.net/pcre.recursion-limit
;pcre.recursion_limit=10


Previous Comments:


[2009-07-16 13:34:04] j...@php.net

Check for these in your php.ini:

[Pcre]
;PCRE library backtracking limit.
; http://php.net/pcre.backtrack-limit
;pcre.backtrack_limit=10

;PCRE library recursion limit.
;Please note that if you set this value to a high number you may
consume all
;the available process stack and eventually crash PHP (due to reaching
the
;stack size limit imposed by the Operating System).
; http://php.net/pcre.recursion-limit
;pcre.recursion_limit=10




[2009-07-16 00:56:14] sworddragon2 at aol dot com

I'm using PHP 5.3.0 x86 VC6 Thread Safe. I have installed PHP 5.2.10
and can reproduce it too. After this i have installed PHP 5.3.0 again
without any extensions and have used a standard php.ini and httpd.conf
(just the entry from the PHP installer is written).

I have cleared the error.log from Apache and after executing the
reproduce code the log says:

[Thu Jul 16 02:40:03 2009] [notice] Parent: child process exited with
status 3221225477 -- Restarting.
httpd.exe: Could not reliably determine the server's fully qualified
domain name, using 192.168.1.2 for ServerName
[Thu Jul 16 02:40:03 2009] [notice] Apache/2.2.11 (Win32) PHP/5.3.0
configured -- resuming normal operations
[Thu Jul 16 02:40:03 2009] [notice] Server built: Dec 10 2008 00:10:06
[Thu Jul 16 02:40:03 2009] [notice] Parent: Created child process 3196
httpd.exe: Could not reliably determine the server's fully qualified
domain name, using 192.168.1.2 for ServerName
httpd.exe: Could not reliably determine the server's fully qualified
domain name, using 192.168.1.2 for ServerName
[Thu Jul 16 02:40:03 2009] [notice] Child 3196: Child process is
running
[Thu Jul 16 02:40:03 2009] [notice] Child 3196: Acquired the start
mutex.
[Thu Jul 16 02:40:03 2009] [notice] Child 3196: Starting 64 worker
threads.
[Thu Jul 16 02:40:03 2009] [notice] Child 3196: Starting thread to
listen on port 80.


But i figured out another thing. If I'm changing the pattern from
'#a((?:.|\n)*?)a#' to '#a((?:\n|.)*?)a#' all works fine. Oddly seems
that Avira AntiVir Personal with the definition file from the last days
and today says after saving the reproduce code that the file is a
heuristic found HEUR/HTML.Malware.



[2009-07-15 12:08:40] j...@php.net

Exactly what PHP version are you using? This works fine on both 5.2.10
and 5.3.0 for me..

------------

[2009-07-13 19:35:00] sworddragon2 at aol dot com

Description:

I found a regular expression with which i can restart the apache
service with the notification: [notice] Parent: child process exited
with status 3221225477 -- Restarting. I'm using Apache 2.2.11.

Reproduce code:
---


Expected result:

I expected that preg_replace() repaces the string.

Actual result:
--
Apache restarts with the above message an Firefox 3.5 tells me that the
connection to the server was recessed.





-- 
Edit this bug report at http://bugs.php.net/?id=48907&edit=1



#49993 [NEW]: switch: default is triggering every time

2009-10-25 Thread sworddragon2 at aol dot com
From: sworddragon2 at aol dot com
Operating system: Windows XP Professional SP3
PHP version:  5.3.0
PHP Bug Type: Scripting Engine problem
Bug description:  switch: default is triggering every time

Description:

In this example default is triggering although the case statement is
triggering before.

Reproduce code:
---
switch(1)
{
case 1: echo "case 1: triggered\n";
default: echo 'default: triggered';
}

Expected result:

case 1: triggered

Actual result:
--
case 1: triggered
default: triggered

-- 
Edit bug report at http://bugs.php.net/?id=49993&edit=1
-- 
Try a snapshot (PHP 5.2):
http://bugs.php.net/fix.php?id=49993&r=trysnapshot52
Try a snapshot (PHP 5.3):
http://bugs.php.net/fix.php?id=49993&r=trysnapshot53
Try a snapshot (PHP 6.0):
http://bugs.php.net/fix.php?id=49993&r=trysnapshot60
Fixed in SVN:
http://bugs.php.net/fix.php?id=49993&r=fixed
Fixed in SVN and need be documented: 
http://bugs.php.net/fix.php?id=49993&r=needdocs
Fixed in release:
http://bugs.php.net/fix.php?id=49993&r=alreadyfixed
Need backtrace:  
http://bugs.php.net/fix.php?id=49993&r=needtrace
Need Reproduce Script:   
http://bugs.php.net/fix.php?id=49993&r=needscript
Try newer version:   
http://bugs.php.net/fix.php?id=49993&r=oldversion
Not developer issue: 
http://bugs.php.net/fix.php?id=49993&r=support
Expected behavior:   
http://bugs.php.net/fix.php?id=49993&r=notwrong
Not enough info: 
http://bugs.php.net/fix.php?id=49993&r=notenoughinfo
Submitted twice: 
http://bugs.php.net/fix.php?id=49993&r=submittedtwice
register_globals:
http://bugs.php.net/fix.php?id=49993&r=globals
PHP 4 support discontinued:  http://bugs.php.net/fix.php?id=49993&r=php4
Daylight Savings:http://bugs.php.net/fix.php?id=49993&r=dst
IIS Stability:   
http://bugs.php.net/fix.php?id=49993&r=isapi
Install GNU Sed: 
http://bugs.php.net/fix.php?id=49993&r=gnused
Floating point limitations:  
http://bugs.php.net/fix.php?id=49993&r=float
No Zend Extensions:  
http://bugs.php.net/fix.php?id=49993&r=nozend
MySQL Configuration Error:   
http://bugs.php.net/fix.php?id=49993&r=mysqlcfg



#49993 [Bgs]: switch: default is triggering every time

2009-10-25 Thread sworddragon2 at aol dot com
 ID:   49993
 User updated by:  sworddragon2 at aol dot com
 Reported By:  sworddragon2 at aol dot com
 Status:   Bogus
 Bug Type: Scripting Engine problem
 Operating System: Windows XP Professional SP3
 PHP Version:  5.3.0
 New Comment:

I have allready read the documentation. Maybe it's a misunderstanding
because the switch documentation isn't translated in my language but the
documentation says the following:

A special case is the default case. This case matches anything that
wasn't matched by the other cases. For example: 


If this issue is working correctly the documentation is wrong i think.


Previous Comments:


[2009-10-25 23:35:50] ras...@php.net

Please read the documentation on switch/case (for any language)
carefully.  This is expected behaviour.  Hint, read about "break".

----

[2009-10-25 23:33:08] sworddragon2 at aol dot com

Description:

In this example default is triggering although the case statement is
triggering before.

Reproduce code:
---
switch(1)
{
case 1: echo "case 1: triggered\n";
default: echo 'default: triggered';
}

Expected result:

case 1: triggered

Actual result:
--
case 1: triggered
default: triggered





-- 
Edit this bug report at http://bugs.php.net/?id=49993&edit=1



#43637 [NEW]: Bug report

2007-12-19 Thread sworddragon2 at aol dot com
From: sworddragon2 at aol dot com
Operating system: Windows XP Professional SP2
PHP version:  5.2.5
PHP Bug Type: Zlib Related
Bug description:  Bug report

Description:

If im trying to use the function gzfile() to a compressed file, that
includes just a picture, the function don't read the complete file. On this
reproduce, the function stops after the End Transmission Block.

Reproduce code:
---
$file=fopen("smiley1.gif","r");
$picture=fread($file,filesize("smiley1.gif"));
fclose($file);
$file=gzopen("smiley1.gz","w");
gzwrite($file,$picture);
gzclose($file);
//readgzfile("smiley1.gz"); With readgzfile, i get the correct picture
information (132 Byte).
$file=gzfile("smiley1.gz");
print_r($file);

Expected result:

I expect to see all arrays until the end of the file.

Actual result:
--
With gzfile, i got just the array [0] with the content GIF89a

-- 
Edit bug report at http://bugs.php.net/?id=43637&edit=1
-- 
Try a CVS snapshot (PHP 4.4): 
http://bugs.php.net/fix.php?id=43637&r=trysnapshot44
Try a CVS snapshot (PHP 5.2): 
http://bugs.php.net/fix.php?id=43637&r=trysnapshot52
Try a CVS snapshot (PHP 5.3): 
http://bugs.php.net/fix.php?id=43637&r=trysnapshot53
Try a CVS snapshot (PHP 6.0): 
http://bugs.php.net/fix.php?id=43637&r=trysnapshot60
Fixed in CVS: http://bugs.php.net/fix.php?id=43637&r=fixedcvs
Fixed in release: 
http://bugs.php.net/fix.php?id=43637&r=alreadyfixed
Need backtrace:   http://bugs.php.net/fix.php?id=43637&r=needtrace
Need Reproduce Script:http://bugs.php.net/fix.php?id=43637&r=needscript
Try newer version:http://bugs.php.net/fix.php?id=43637&r=oldversion
Not developer issue:  http://bugs.php.net/fix.php?id=43637&r=support
Expected behavior:http://bugs.php.net/fix.php?id=43637&r=notwrong
Not enough info:  
http://bugs.php.net/fix.php?id=43637&r=notenoughinfo
Submitted twice:  
http://bugs.php.net/fix.php?id=43637&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=43637&r=globals
PHP 3 support discontinued:   http://bugs.php.net/fix.php?id=43637&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=43637&r=dst
IIS Stability:http://bugs.php.net/fix.php?id=43637&r=isapi
Install GNU Sed:  http://bugs.php.net/fix.php?id=43637&r=gnused
Floating point limitations:   http://bugs.php.net/fix.php?id=43637&r=float
No Zend Extensions:   http://bugs.php.net/fix.php?id=43637&r=nozend
MySQL Configuration Error:http://bugs.php.net/fix.php?id=43637&r=mysqlcfg


#44893 [Fbk->Opn]: gzfile() does not load complete file

2008-10-29 Thread sworddragon2 at aol dot com
 ID:   44893
 User updated by:  sworddragon2 at aol dot com
 Reported By:  sworddragon2 at aol dot com
-Status:   Feedback
+Status:   Open
 Bug Type: Zlib Related
 Operating System: Windows XP Professional SP3
-PHP Version:  5.2.6
+PHP Version:  5.2.7RC2-dev 5.3.0alpha3-dev
 New Comment:

I tested it with the 5.2.7RC2-dev and the 5.3.0alpha3-dev from your
link, but the bug isn't fixed. In both versions, Firefox 3.0.3 gives me
an output of:

Array
(
[0] => GIF89a
)

It breaks again after the End Transmission Block. I used the same
picture again.


Previous Comments:


[2008-10-28 13:23:48] [EMAIL PROTECTED]

Please try using this CVS snapshot:

  http://snaps.php.net/php5.2-latest.tar.gz
 
For Windows:

  http://windows.php.net/snapshots/





[2008-05-06 11:08:43] [EMAIL PROTECTED]

Im able to re-produce this on Windows XP SP2 using the image you
supplied aswell as with other files would return odd strings



[2008-05-02 21:19:38] sworddragon2 at aol dot com

I used this picture for the example:

http://img501.imageshack.us/img501/7006/smiley1dr6.gif


Maybe it helps you to reproduce the problem. But this was not the only
picture with that I can reproduce the problem.



[2008-05-02 20:49:26] [EMAIL PROTECTED]

Couldn't reproduce on Win XP SP2 with php-5.2.6-Win32.zip



[2008-05-02 16:31:23] sworddragon2 at aol dot com

Description:

If im trying to use the function gzfile() to a compressed file, that
includes just a picture, the function don't read the complete file. On
this reproduce, the function stops after the End Transmission Block.

Reproduce code:
---
$file=fopen("smiley1.gif","rb");
$picture=fread($file,filesize("smiley1.gif"));
fclose($file);
$file=gzopen("smiley1.gz","w");
gzwrite($file,$picture);
gzclose($file);
$file=gzfile("smiley1.gz");
print_r($file);

Expected result:

I expect to see all arrays until the end of the file.

Actual result:
--
With gzfile, i got just the array [0] with the content GIF89a





-- 
Edit this bug report at http://bugs.php.net/?id=44893&edit=1



#44893 [Fbk->Opn]: gzfile() does not load complete file

2008-11-02 Thread sworddragon2 at aol dot com
 ID:   44893
 User updated by:  sworddragon2 at aol dot com
 Reported By:  sworddragon2 at aol dot com
-Status:   Feedback
+Status:   Open
 Bug Type: Zlib Related
 Operating System: Windows XP Professional SP3
 PHP Version:  5CVS, 6CVS (2008-10-30)
 Assigned To:  fb-req-jani
 New Comment:

I tried it with wb, but it doesn't help.

The problem is, that gzfile stops the read process after 7/132 byte.
The read process is breaking after gzfile reads the ETB (End
Transmission Block), which is the seventh char of this picture.


Previous Comments:


[2008-10-30 17:15:40] [EMAIL PROTECTED]

$file=gzopen("smiley1.gz","w");

I think that should also be "wb" under windows..



[2008-10-30 17:14:14] [EMAIL PROTECTED]

What actually is the bug here? You're concatenating same image in same
file and expect..what?

----

[2008-10-29 17:29:49] sworddragon2 at aol dot com

I tested it with the 5.2.7RC2-dev and the 5.3.0alpha3-dev from your
link, but the bug isn't fixed. In both versions, Firefox 3.0.3 gives me
an output of:

Array
(
[0] => GIF89a
)

It breaks again after the End Transmission Block. I used the same
picture again.



[2008-10-28 13:23:48] [EMAIL PROTECTED]

Please try using this CVS snapshot:

  http://snaps.php.net/php5.2-latest.tar.gz
 
For Windows:

  http://windows.php.net/snapshots/





[2008-05-06 11:08:43] [EMAIL PROTECTED]

Im able to re-produce this on Windows XP SP2 using the image you
supplied aswell as with other files would return odd strings



The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
http://bugs.php.net/44893

-- 
Edit this bug report at http://bugs.php.net/?id=44893&edit=1



[PHP-BUG] Bug #52276 [NEW]: Odd session.gc_maxlifetime value

2010-07-07 Thread sworddragon2 at aol dot com
From: 
Operating system: Windows XP Professional SP3
PHP version:  5.3.2
Package:  *Configuration Issues
Bug Type: Bug
Bug description:Odd session.gc_maxlifetime value

Description:

The default value of session.gc_maxlifetime is 1440 seconds which are 24
minutes. Is this really the correct value or thought the programmer that
these are minutes because 1440 minutes are 24 hours? Maybe the value should
be changed to 86400 seconds (this are 1440 minutes) or to another clearer
value.


-- 
Edit bug report at http://bugs.php.net/bug.php?id=52276&edit=1
-- 
Try a snapshot (PHP 5.2):
http://bugs.php.net/fix.php?id=52276&r=trysnapshot52
Try a snapshot (PHP 5.3):
http://bugs.php.net/fix.php?id=52276&r=trysnapshot53
Try a snapshot (trunk):  
http://bugs.php.net/fix.php?id=52276&r=trysnapshottrunk
Fixed in SVN:
http://bugs.php.net/fix.php?id=52276&r=fixed
Fixed in SVN and need be documented: 
http://bugs.php.net/fix.php?id=52276&r=needdocs
Fixed in release:
http://bugs.php.net/fix.php?id=52276&r=alreadyfixed
Need backtrace:  
http://bugs.php.net/fix.php?id=52276&r=needtrace
Need Reproduce Script:   
http://bugs.php.net/fix.php?id=52276&r=needscript
Try newer version:   
http://bugs.php.net/fix.php?id=52276&r=oldversion
Not developer issue: 
http://bugs.php.net/fix.php?id=52276&r=support
Expected behavior:   
http://bugs.php.net/fix.php?id=52276&r=notwrong
Not enough info: 
http://bugs.php.net/fix.php?id=52276&r=notenoughinfo
Submitted twice: 
http://bugs.php.net/fix.php?id=52276&r=submittedtwice
register_globals:
http://bugs.php.net/fix.php?id=52276&r=globals
PHP 4 support discontinued:  http://bugs.php.net/fix.php?id=52276&r=php4
Daylight Savings:http://bugs.php.net/fix.php?id=52276&r=dst
IIS Stability:   
http://bugs.php.net/fix.php?id=52276&r=isapi
Install GNU Sed: 
http://bugs.php.net/fix.php?id=52276&r=gnused
Floating point limitations:  
http://bugs.php.net/fix.php?id=52276&r=float
No Zend Extensions:  
http://bugs.php.net/fix.php?id=52276&r=nozend
MySQL Configuration Error:   
http://bugs.php.net/fix.php?id=52276&r=mysqlcfg



#50533 [NEW]: max_execution_time don't work

2009-12-19 Thread sworddragon2 at aol dot com
From: sworddragon2 at aol dot com
Operating system: Windows XP Professional SP3
PHP version:  5.3.1
PHP Bug Type: PHP options/info functions
Bug description:  max_execution_time don't work

Description:

I have changed max_execution_time in the php.ini to 0 and restarted Apache
2.2.14 but the configuration have been ignored. PHP still uses 10 seconds.

Reproduce code:
---


Expected result:

I expect to see nothing because of the infinite loop and max_execution
time of 0 seconds.

Actual result:
--
The script stops with the message: Fatal error: Maximum execution time of
10 seconds exceeded in E:\Programme\Lokaler Server\Apache Software
Foundation\Apache2.2\htdocs\image\test.php on line 2

-- 
Edit bug report at http://bugs.php.net/?id=50533&edit=1
-- 
Try a snapshot (PHP 5.2):
http://bugs.php.net/fix.php?id=50533&r=trysnapshot52
Try a snapshot (PHP 5.3):
http://bugs.php.net/fix.php?id=50533&r=trysnapshot53
Try a snapshot (PHP 6.0):
http://bugs.php.net/fix.php?id=50533&r=trysnapshot60
Fixed in SVN:
http://bugs.php.net/fix.php?id=50533&r=fixed
Fixed in SVN and need be documented: 
http://bugs.php.net/fix.php?id=50533&r=needdocs
Fixed in release:
http://bugs.php.net/fix.php?id=50533&r=alreadyfixed
Need backtrace:  
http://bugs.php.net/fix.php?id=50533&r=needtrace
Need Reproduce Script:   
http://bugs.php.net/fix.php?id=50533&r=needscript
Try newer version:   
http://bugs.php.net/fix.php?id=50533&r=oldversion
Not developer issue: 
http://bugs.php.net/fix.php?id=50533&r=support
Expected behavior:   
http://bugs.php.net/fix.php?id=50533&r=notwrong
Not enough info: 
http://bugs.php.net/fix.php?id=50533&r=notenoughinfo
Submitted twice: 
http://bugs.php.net/fix.php?id=50533&r=submittedtwice
register_globals:
http://bugs.php.net/fix.php?id=50533&r=globals
PHP 4 support discontinued:  http://bugs.php.net/fix.php?id=50533&r=php4
Daylight Savings:http://bugs.php.net/fix.php?id=50533&r=dst
IIS Stability:   
http://bugs.php.net/fix.php?id=50533&r=isapi
Install GNU Sed: 
http://bugs.php.net/fix.php?id=50533&r=gnused
Floating point limitations:  
http://bugs.php.net/fix.php?id=50533&r=float
No Zend Extensions:  
http://bugs.php.net/fix.php?id=50533&r=nozend
MySQL Configuration Error:   
http://bugs.php.net/fix.php?id=50533&r=mysqlcfg



#50626 [NEW]: Oddly date related error message

2010-01-01 Thread sworddragon2 at aol dot com
From: sworddragon2 at aol dot com
Operating system: Windows XP Professional SP3
PHP version:  5.3.1
PHP Bug Type: Output Control
Bug description:  Oddly date related error message

Description:

I have a script, that got sometimes a date - related error message but
nowhere is such a function called. I don't got the errors myself, I see
them just in my error log from other users.

Maybe this is not a bug, but i'm searching for a few days for a solution
and have no explanation why this bug at line 26 after a flush(); appears
(line 26 is marked as a comment in "Actual result:"). The error don't
appear at the most time. This is very randomly.

Reproduce code:
---
$global['server_configuration']['output_buffer'])
{
$size-=$global['server_configuration']['output_buffer'];
echo 
fread($file,$global['server_configuration']['output_buffer']);
if($size>0)
{
ob_flush();
flush();
}//This is line 26
}
if($size>0)
echo fread($file,$size);
ob_end_flush();
fclose($file);
exit();
?>

Actual result:
--
Warning: main(): It is not safe to rely on the system's timezone settings.
You are *required* to use the date.timezone setting or the
date_default_timezone_set() function. In case you used any of those methods
and you are still getting this warning, you most likely misspelled the
timezone identifier. We selected 'Europe/Paris' for '1.0/no DST' instead in
E:\Programme\Lokaler Server\Apache Software
Foundation\Apache2.2\htdocs\tower-defense\core\global\includes\load_content.php
on line 26


If needed I can post the declared variables at the moment the error
appears or other related scripts.

-- 
Edit bug report at http://bugs.php.net/?id=50626&edit=1
-- 
Try a snapshot (PHP 5.2):
http://bugs.php.net/fix.php?id=50626&r=trysnapshot52
Try a snapshot (PHP 5.3):
http://bugs.php.net/fix.php?id=50626&r=trysnapshot53
Try a snapshot (PHP 6.0):
http://bugs.php.net/fix.php?id=50626&r=trysnapshot60
Fixed in SVN:
http://bugs.php.net/fix.php?id=50626&r=fixed
Fixed in SVN and need be documented: 
http://bugs.php.net/fix.php?id=50626&r=needdocs
Fixed in release:
http://bugs.php.net/fix.php?id=50626&r=alreadyfixed
Need backtrace:  
http://bugs.php.net/fix.php?id=50626&r=needtrace
Need Reproduce Script:   
http://bugs.php.net/fix.php?id=50626&r=needscript
Try newer version:   
http://bugs.php.net/fix.php?id=50626&r=oldversion
Not developer issue: 
http://bugs.php.net/fix.php?id=50626&r=support
Expected behavior:   
http://bugs.php.net/fix.php?id=50626&r=notwrong
Not enough info: 
http://bugs.php.net/fix.php?id=50626&r=notenoughinfo
Submitted twice: 
http://bugs.php.net/fix.php?id=50626&r=submittedtwice
register_globals:
http://bugs.php.net/fix.php?id=50626&r=globals
PHP 4 support discontinued:  http://bugs.php.net/fix.php?id=50626&r=php4
Daylight Savings:http://bugs.php.net/fix.php?id=50626&r=dst
IIS Stability:   
http://bugs.php.net/fix.php?id=50626&r=isapi
Install GNU Sed: 
http://bugs.php.net/fix.php?id=50626&r=gnused
Floating point limitations:  
http://bugs.php.net/fix.php?id=50626&r=float
No Zend Extensions:  
http://bugs.php.net/fix.php?id=50626&r=nozend
MySQL Configuration Error:   
http://bugs.php.net/fix.php?id=50626&r=mysqlcfg



#50626 [Com]: Oddly date related error message

2010-01-01 Thread sworddragon2 at aol dot com
 ID:   50626
 Comment by:   sworddragon2 at aol dot com
 Reported By:  sworddragon2 at aol dot com
 Status:   Feedback
 Bug Type: Output Control
 Operating System: Windows XP Professional SP3
 PHP Version:  5.3.1
 New Comment:

The date.timezone setting is not set but this is no necessary because
no related date functions are called.

I can use date_default_timezone_set('UTC') as exmaple in my
load_content.php but this would just be a workaround. There must be a
reason why a date related error message appears after a flush(); while
no date related funtions are used.


Previous Comments:


[2010-01-01 21:36:27] der...@php.net

Do you have the "date.timezone" setting actually set in php.ini
(phpinfo() output will tell you).



[2010-01-01 18:58:12] sworddragon2 at aol dot com

Description:

I have a script, that got sometimes a date - related error message but
nowhere is such a function called. I don't got the errors myself, I see
them just in my error log from other users.

Maybe this is not a bug, but i'm searching for a few days for a
solution and have no explanation why this bug at line 26 after a
flush(); appears (line 26 is marked as a comment in "Actual result:").
The error don't appear at the most time. This is very randomly.

Reproduce code:
---
$global['server_configuration']['output_buffer'])
{
$size-=$global['server_configuration']['output_buffer'];
echo 
fread($file,$global['server_configuration']['output_buffer']);
if($size>0)
{
ob_flush();
flush();
}//This is line 26
}
if($size>0)
echo fread($file,$size);
ob_end_flush();
fclose($file);
exit();
?>

Actual result:
--
Warning: main(): It is not safe to rely on the system's timezone
settings. You are *required* to use the date.timezone setting or the
date_default_timezone_set() function. In case you used any of those
methods and you are still getting this warning, you most likely
misspelled the timezone identifier. We selected 'Europe/Paris' for
'1.0/no DST' instead in E:\Programme\Lokaler Server\Apache Software
Foundation\Apache2.2\htdocs\tower-defense\core\global\includes\load_content.php
on line 26


If needed I can post the declared variables at the moment the error
appears or other related scripts.





-- 
Edit this bug report at http://bugs.php.net/?id=50626&edit=1



#50626 [Bgs]: Oddly date related error message

2010-01-01 Thread sworddragon2 at aol dot com
 ID:   50626
 User updated by:  sworddragon2 at aol dot com
 Reported By:  sworddragon2 at aol dot com
 Status:   Bogus
 Bug Type: Output Control
 Operating System: Windows XP Professional SP3
 PHP Version:  5.3.1
 New Comment:

Maybe this should be written as a Note in the documentation that PHP
can internally call date related functions.


Previous Comments:


[2010-01-01 21:56:20] der...@php.net

You *need* to make that setting. Internally PHP can also use date
related functions that require a proper date.timezone of being set. You
can debug this with a C-level debugger and setting a breakpoint at
guess_timezone and get a backtrace.



[2010-01-01 21:45:02] sworddragon2 at aol dot com

The date.timezone setting is not set but this is no necessary because
no related date functions are called.

I can use date_default_timezone_set('UTC') as exmaple in my
load_content.php but this would just be a workaround. There must be a
reason why a date related error message appears after a flush(); while
no date related funtions are used.



[2010-01-01 21:36:27] der...@php.net

Do you have the "date.timezone" setting actually set in php.ini
(phpinfo() output will tell you).



[2010-01-01 18:58:12] sworddragon2 at aol dot com

Description:

I have a script, that got sometimes a date - related error message but
nowhere is such a function called. I don't got the errors myself, I see
them just in my error log from other users.

Maybe this is not a bug, but i'm searching for a few days for a
solution and have no explanation why this bug at line 26 after a
flush(); appears (line 26 is marked as a comment in "Actual result:").
The error don't appear at the most time. This is very randomly.

Reproduce code:
---
$global['server_configuration']['output_buffer'])
{
$size-=$global['server_configuration']['output_buffer'];
echo 
fread($file,$global['server_configuration']['output_buffer']);
if($size>0)
{
ob_flush();
flush();
}//This is line 26
}
if($size>0)
echo fread($file,$size);
ob_end_flush();
fclose($file);
exit();
?>

Actual result:
--
Warning: main(): It is not safe to rely on the system's timezone
settings. You are *required* to use the date.timezone setting or the
date_default_timezone_set() function. In case you used any of those
methods and you are still getting this warning, you most likely
misspelled the timezone identifier. We selected 'Europe/Paris' for
'1.0/no DST' instead in E:\Programme\Lokaler Server\Apache Software
Foundation\Apache2.2\htdocs\tower-defense\core\global\includes\load_content.php
on line 26


If needed I can post the declared variables at the moment the error
appears or other related scripts.





-- 
Edit this bug report at http://bugs.php.net/?id=50626&edit=1



#44893 [NEW]: gzfile

2008-05-02 Thread sworddragon2 at aol dot com
From: sworddragon2 at aol dot com
Operating system: Windows XP Professional SP3
PHP version:  5.2.6
PHP Bug Type: Zlib Related
Bug description:  gzfile

Description:

If im trying to use the function gzfile() to a compressed file, that
includes just a picture, the function don't read the complete file. On
this reproduce, the function stops after the End Transmission Block.

Reproduce code:
---
$file=fopen("smiley1.gif","rb");
$picture=fread($file,filesize("smiley1.gif"));
fclose($file);
$file=gzopen("smiley1.gz","w");
gzwrite($file,$picture);
gzclose($file);
$file=gzfile("smiley1.gz");
print_r($file);

Expected result:

I expect to see all arrays until the end of the file.

Actual result:
--
With gzfile, i got just the array [0] with the content GIF89a

-- 
Edit bug report at http://bugs.php.net/?id=44893&edit=1
-- 
Try a CVS snapshot (PHP 5.2): 
http://bugs.php.net/fix.php?id=44893&r=trysnapshot52
Try a CVS snapshot (PHP 5.3): 
http://bugs.php.net/fix.php?id=44893&r=trysnapshot53
Try a CVS snapshot (PHP 6.0): 
http://bugs.php.net/fix.php?id=44893&r=trysnapshot60
Fixed in CVS: http://bugs.php.net/fix.php?id=44893&r=fixedcvs
Fixed in release: 
http://bugs.php.net/fix.php?id=44893&r=alreadyfixed
Need backtrace:   http://bugs.php.net/fix.php?id=44893&r=needtrace
Need Reproduce Script:http://bugs.php.net/fix.php?id=44893&r=needscript
Try newer version:http://bugs.php.net/fix.php?id=44893&r=oldversion
Not developer issue:  http://bugs.php.net/fix.php?id=44893&r=support
Expected behavior:http://bugs.php.net/fix.php?id=44893&r=notwrong
Not enough info:  
http://bugs.php.net/fix.php?id=44893&r=notenoughinfo
Submitted twice:  
http://bugs.php.net/fix.php?id=44893&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=44893&r=globals
PHP 4 support discontinued:   http://bugs.php.net/fix.php?id=44893&r=php4
Daylight Savings: http://bugs.php.net/fix.php?id=44893&r=dst
IIS Stability:http://bugs.php.net/fix.php?id=44893&r=isapi
Install GNU Sed:  http://bugs.php.net/fix.php?id=44893&r=gnused
Floating point limitations:   http://bugs.php.net/fix.php?id=44893&r=float
No Zend Extensions:   http://bugs.php.net/fix.php?id=44893&r=nozend
MySQL Configuration Error:http://bugs.php.net/fix.php?id=44893&r=mysqlcfg



#44893 [Fbk->Opn]: gzfile

2008-05-02 Thread sworddragon2 at aol dot com
 ID:   44893
 User updated by:  sworddragon2 at aol dot com
 Reported By:  sworddragon2 at aol dot com
-Status:   Feedback
+Status:   Open
 Bug Type: Zlib Related
 Operating System: Windows XP Professional SP3
 PHP Version:  5.2.6
 New Comment:

I used this picture for the example:

http://img501.imageshack.us/img501/7006/smiley1dr6.gif


Maybe it helps you to reproduce the problem. But this was not the only
picture with that I can reproduce the problem.


Previous Comments:


[2008-05-02 20:49:26] [EMAIL PROTECTED]

Couldn't reproduce on Win XP SP2 with php-5.2.6-Win32.zip



[2008-05-02 16:31:23] sworddragon2 at aol dot com

Description:

If im trying to use the function gzfile() to a compressed file, that
includes just a picture, the function don't read the complete file. On
this reproduce, the function stops after the End Transmission Block.

Reproduce code:
---
$file=fopen("smiley1.gif","rb");
$picture=fread($file,filesize("smiley1.gif"));
fclose($file);
$file=gzopen("smiley1.gz","w");
gzwrite($file,$picture);
gzclose($file);
$file=gzfile("smiley1.gz");
print_r($file);

Expected result:

I expect to see all arrays until the end of the file.

Actual result:
--
With gzfile, i got just the array [0] with the content GIF89a





-- 
Edit this bug report at http://bugs.php.net/?id=44893&edit=1



Bug #52276 [Bgs]: Odd session.gc_maxlifetime value

2011-06-05 Thread sworddragon2 at aol dot com
Edit report at http://bugs.php.net/bug.php?id=52276&edit=1

 ID: 52276
 User updated by:sworddragon2 at aol dot com
 Reported by:sworddragon2 at aol dot com
 Summary:Odd session.gc_maxlifetime value
 Status: Bogus
 Type:   Bug
 Package:*Configuration Issues
 Operating System:   Windows XP Professional SP3
 PHP Version:5.3.2
 Block user comment: N
 Private report: N

 New Comment:

Maybe 24 minutes are intended but I can't find any information for the reason 
in the documentation.


Previous Comments:

[2011-06-05 23:42:22] il...@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

This is the intended value (24 minutes).


[2010-07-07 17:50:22] sworddragon2 at aol dot com

Description:

The default value of session.gc_maxlifetime is 1440 seconds which are 24 
minutes. Is this really the correct value or thought the programmer that these 
are minutes because 1440 minutes are 24 hours? Maybe the value should be 
changed to 86400 seconds (this are 1440 minutes) or to another clearer value.







-- 
Edit this bug report at http://bugs.php.net/bug.php?id=52276&edit=1