#43361 [Fbk->Opn]: invalid session.save_path test cause php crash

2007-11-27 Thread shany at zend dot com
 ID:   43361
 User updated by:  shany at zend dot com
 Reported By:  shany at zend dot com
-Status:   Feedback
+Status:   Open
 Bug Type: Session related
 Operating System: WinXP 32bit
 PHP Version:  5.2.5
 New Comment:

The trace (using ZendCore 2.5 - update 1 for php 5.2.5):

Thread 0 - System ID 2464
Entry point   php!controlfp+16b 
Create time   11/27/2007 1:34:38 PM 
Time spent in user mode   0 Days 0:0:0.62 
Time spent in kernel mode   0 Days 0:0:1.390 






Function Arg 1 Arg 2 Arg 3   Source 
0x0122f47f 0122f458 0122f618 
php5!mk_keytab_table+d3c4  0127af68 00c0eb24
php5!zim_spl_SplFileInfo_isReadable+4e  0127b390

php5!ZEND_MUL_SPEC_CONST_CONST_HANDLER+20 00c0eb24 
7c801898
php5!ZEND_FE_RESET_SPEC_CONST_HANDLER+18 07c02008 
78134bbe
msvcr80!free+cd 01220180 01220180 0137e7d8
0x07c02008 0137e7d8 01226628 01220190




In
php__PID__4060__Date__11_27_2007__Time_01_38_11PM__252__Second_Chance_Exception_C005.dmp
the module c:\Program Files\Zend\Core\bin\php5.dll has caused an access
violation exception (0xC005) when trying to read from memory
location 0x0002 on thread 0


Previous Comments:


[2007-11-26 11:08:29] [EMAIL PROTECTED]

Thank you for this bug report. To properly diagnose the problem, we
need a backtrace to see what is happening behind the scenes. To
find out how to generate a backtrace, please read
http://bugs.php.net/bugs-generating-backtrace.php for *NIX and
http://bugs.php.net/bugs-generating-backtrace-win32.php for Win32

Once you have generated a backtrace, please submit it to this bug
report and change the status back to "Open". Thank you for helping
us make PHP better.





[2007-11-25 15:31:33] shany at zend dot com

This crash occured on Win XP and Win Server03 - 32 bit and on Windows
Vista - 64 bit. 
It didn't occur on Linux RHEL 32 or 64 bit.



[2007-11-22 08:42:19] shany at zend dot com

It happened to me also on Windows server 2003 (32 bit)



[2007-11-21 20:11:09] [EMAIL PROTECTED]

On *nix this does not result in a crash, I wonder if its a Win32 
specific issue. Can someone on Win32 confirm the problem?



[2007-11-21 15:28:12] shany at zend dot com

Description:

I run test 016.phpt of the session extension and I received a pop-up
window that the application had to be terminated. This happened while
running with both cli and cgi php.

This could be related to bug #42596, which was fixed in php 5.2.5

Reproduce code:
---
--TEST--
invalid session.save_path should not cause a segfault
--SKIPIF--

--INI--
session.save_path="123;:/really\\completely:::/invalid;;,23123;213"
session.use_cookies=0
session.cache_limiter=
session.save_handler=files
session.serialize_handler=php
--FILE--

--EXPECT--
I live

Expected result:

If you run the php code you should get:
I live

If you run through a test engine you expect the test to pass

Actual result:
--
The error file from Windows:








http://curl.haxx.se/"; PRODUCT_NAME="The cURL library"
FILE_VERSION="7.16.2" ORIGINAL_FILENAME="libcurl.dll"
INTERNAL_NAME="libcurl" LEGAL_COPYRIGHT="Copyright 1996-2007 by Daniel
Stenberg. http://curl.haxx.se/docs/copyright.html"; VERFILEDATEHI="0x0"
VERFILEDATELO="0x0" VERFILEOS="0x4" VERFILETYPE="0x2"
MODULE_TYPE="WIN32" PE_CHECKSUM="0x0" LINKER_VERSION="0x0"
UPTO_BIN_FILE_VERSION="7.16.2.0" UPTO_BIN_PRODUCT_VERSION="7.16.2.0"
LINK_DATE="07/23/2007 11:45:31" UPTO_LINK_DATE="07/23/2007 11:45:31"
VER_LANGUAGE="English (United States) [0x409]" />

http://www.openssl.org/"; PRODUCT_NAME="The OpenSSL Toolkit"
FILE_VERSION="0.9.8e" ORIGINAL_FILENAME="libeay32.dll"
INTERNAL_NAME="libeay32" LEGAL_COPYRIGHT="Copyright © 1998-2005 The
OpenSSL Project. Copyright © 1995-1998 Eric A. Young, Tim J. Hudson. All
rights reserved." VERFILEDATEHI="0x0" VERFILEDATELO="0x0"
VERFILEOS="0x4" VERFILETYPE="0x2" MODULE_TYPE="WIN32"
PE_CHECKSUM="0x104F59" LINKER_VERSION="0x0"
UPTO_BIN_FILE_VERSION="0.9.8.5" UPTO_BIN_PRODUCT_VERSION="0.9.8.5"
LINK_DATE="07/23/2007 11:44:33" UPTO_LINK_DATE="07/23/2007 11:44:33&q

#43361 [Opn]: invalid session.save_path test cause php crash

2007-11-25 Thread shany at zend dot com
 ID:   43361
 User updated by:  shany at zend dot com
 Reported By:  shany at zend dot com
 Status:   Open
 Bug Type: Session related
 Operating System: WinXP 32bit
 PHP Version:  5.2.5
 New Comment:

This crash occured on Win XP and Win Server03 - 32 bit and on Windows
Vista - 64 bit. 
It didn't occur on Linux RHEL 32 or 64 bit.


Previous Comments:


[2007-11-22 08:42:19] shany at zend dot com

It happened to me also on Windows server 2003 (32 bit)



[2007-11-21 20:11:09] [EMAIL PROTECTED]

On *nix this does not result in a crash, I wonder if its a Win32 
specific issue. Can someone on Win32 confirm the problem?



[2007-11-21 15:28:12] shany at zend dot com

Description:

I run test 016.phpt of the session extension and I received a pop-up
window that the application had to be terminated. This happened while
running with both cli and cgi php.

This could be related to bug #42596, which was fixed in php 5.2.5

Reproduce code:
---
--TEST--
invalid session.save_path should not cause a segfault
--SKIPIF--

--INI--
session.save_path="123;:/really\\completely:::/invalid;;,23123;213"
session.use_cookies=0
session.cache_limiter=
session.save_handler=files
session.serialize_handler=php
--FILE--

--EXPECT--
I live

Expected result:

If you run the php code you should get:
I live

If you run through a test engine you expect the test to pass

Actual result:
--
The error file from Windows:








http://curl.haxx.se/"; PRODUCT_NAME="The cURL library"
FILE_VERSION="7.16.2" ORIGINAL_FILENAME="libcurl.dll"
INTERNAL_NAME="libcurl" LEGAL_COPYRIGHT="Copyright 1996-2007 by Daniel
Stenberg. http://curl.haxx.se/docs/copyright.html"; VERFILEDATEHI="0x0"
VERFILEDATELO="0x0" VERFILEOS="0x4" VERFILETYPE="0x2"
MODULE_TYPE="WIN32" PE_CHECKSUM="0x0" LINKER_VERSION="0x0"
UPTO_BIN_FILE_VERSION="7.16.2.0" UPTO_BIN_PRODUCT_VERSION="7.16.2.0"
LINK_DATE="07/23/2007 11:45:31" UPTO_LINK_DATE="07/23/2007 11:45:31"
VER_LANGUAGE="English (United States) [0x409]" />

http://www.openssl.org/"; PRODUCT_NAME="The OpenSSL Toolkit"
FILE_VERSION="0.9.8e" ORIGINAL_FILENAME="libeay32.dll"
INTERNAL_NAME="libeay32" LEGAL_COPYRIGHT="Copyright © 1998-2005 The
OpenSSL Project. Copyright © 1995-1998 Eric A. Young, Tim J. Hudson. All
rights reserved." VERFILEDATEHI="0x0" VERFILEDATELO="0x0"
VERFILEOS="0x4" VERFILETYPE="0x2" MODULE_TYPE="WIN32"
PE_CHECKSUM="0x104F59" LINKER_VERSION="0x0"
UPTO_BIN_FILE_VERSION="0.9.8.5" UPTO_BIN_PRODUCT_VERSION="0.9.8.5"
LINK_DATE="07/23/2007 11:44:33" UPTO_LINK_DATE="07/23/2007 11:44:33"
VER_LANGUAGE="English (United States) [0x409]" />






















http://www.openssl.org/"; PRODUCT_NAME="The OpenSSL Toolkit"
FILE_VERSION="0.9.8e" ORIGINAL_FILENAME="ssleay32.dll"
INTERNAL_NAME="ssleay32" LEGAL_COPYRIGHT="Copyright © 1998-2005 The
OpenSSL Project. Copyright © 1995-1998 Eric A. Young, Tim J. Hudson. All
rights reserved." VERFILEDATEHI="0x0" VERFILEDATELO="0x0"
VERFILEOS="0x4" VERFILETYPE="0x2" MODULE_TYPE="WIN32"
PE_CHECKSUM="0x35210" LINKER_VERSION="0x0"
UPTO_BIN_FILE_VERSION="0.9.8.5" UPTO_BIN_PRODUCT_VERSION="0.9.8.5"
LINK_DATE="07/23/2007 11:44:45" UPTO_LINK_DATE="07/23/2007 11:44:45"
VER_LANGUAGE="English (United States) [0x409]" />













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


#43361 [Opn]: invalid session.save_path test cause php crash

2007-11-22 Thread shany at zend dot com
 ID:   43361
 User updated by:  shany at zend dot com
 Reported By:  shany at zend dot com
 Status:   Open
 Bug Type: Session related
 Operating System: WinXP 32bit
 PHP Version:  5.2.5
 New Comment:

It happened to me also on Windows server 2003 (32 bit)


Previous Comments:


[2007-11-21 20:11:09] [EMAIL PROTECTED]

On *nix this does not result in a crash, I wonder if its a Win32 
specific issue. Can someone on Win32 confirm the problem?



[2007-11-21 15:28:12] shany at zend dot com

Description:

I run test 016.phpt of the session extension and I received a pop-up
window that the application had to be terminated. This happened while
running with both cli and cgi php.

This could be related to bug #42596, which was fixed in php 5.2.5

Reproduce code:
---
--TEST--
invalid session.save_path should not cause a segfault
--SKIPIF--

--INI--
session.save_path="123;:/really\\completely:::/invalid;;,23123;213"
session.use_cookies=0
session.cache_limiter=
session.save_handler=files
session.serialize_handler=php
--FILE--

--EXPECT--
I live

Expected result:

If you run the php code you should get:
I live

If you run through a test engine you expect the test to pass

Actual result:
--
The error file from Windows:








http://curl.haxx.se/"; PRODUCT_NAME="The cURL library"
FILE_VERSION="7.16.2" ORIGINAL_FILENAME="libcurl.dll"
INTERNAL_NAME="libcurl" LEGAL_COPYRIGHT="Copyright 1996-2007 by Daniel
Stenberg. http://curl.haxx.se/docs/copyright.html"; VERFILEDATEHI="0x0"
VERFILEDATELO="0x0" VERFILEOS="0x4" VERFILETYPE="0x2"
MODULE_TYPE="WIN32" PE_CHECKSUM="0x0" LINKER_VERSION="0x0"
UPTO_BIN_FILE_VERSION="7.16.2.0" UPTO_BIN_PRODUCT_VERSION="7.16.2.0"
LINK_DATE="07/23/2007 11:45:31" UPTO_LINK_DATE="07/23/2007 11:45:31"
VER_LANGUAGE="English (United States) [0x409]" />

http://www.openssl.org/"; PRODUCT_NAME="The OpenSSL Toolkit"
FILE_VERSION="0.9.8e" ORIGINAL_FILENAME="libeay32.dll"
INTERNAL_NAME="libeay32" LEGAL_COPYRIGHT="Copyright © 1998-2005 The
OpenSSL Project. Copyright © 1995-1998 Eric A. Young, Tim J. Hudson. All
rights reserved." VERFILEDATEHI="0x0" VERFILEDATELO="0x0"
VERFILEOS="0x4" VERFILETYPE="0x2" MODULE_TYPE="WIN32"
PE_CHECKSUM="0x104F59" LINKER_VERSION="0x0"
UPTO_BIN_FILE_VERSION="0.9.8.5" UPTO_BIN_PRODUCT_VERSION="0.9.8.5"
LINK_DATE="07/23/2007 11:44:33" UPTO_LINK_DATE="07/23/2007 11:44:33"
VER_LANGUAGE="English (United States) [0x409]" />






















http://www.openssl.org/"; PRODUCT_NAME="The OpenSSL Toolkit"
FILE_VERSION="0.9.8e" ORIGINAL_FILENAME="ssleay32.dll"
INTERNAL_NAME="ssleay32" LEGAL_COPYRIGHT="Copyright © 1998-2005 The
OpenSSL Project. Copyright © 1995-1998 Eric A. Young, Tim J. Hudson. All
rights reserved." VERFILEDATEHI="0x0" VERFILEDATELO="0x0"
VERFILEOS="0x4" VERFILETYPE="0x2" MODULE_TYPE="WIN32"
PE_CHECKSUM="0x35210" LINKER_VERSION="0x0"
UPTO_BIN_FILE_VERSION="0.9.8.5" UPTO_BIN_PRODUCT_VERSION="0.9.8.5"
LINK_DATE="07/23/2007 11:44:45" UPTO_LINK_DATE="07/23/2007 11:44:45"
VER_LANGUAGE="English (United States) [0x409]" />













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


#43361 [NEW]: invalid session.save_path test cause php crash

2007-11-21 Thread shany at zend dot com
From: shany at zend dot com
Operating system: WinXP 32bit
PHP version:  5.2.5
PHP Bug Type: Session related
Bug description:  invalid session.save_path test cause php crash

Description:

I run test 016.phpt of the session extension and I received a pop-up
window that the application had to be terminated. This happened while
running with both cli and cgi php.

This could be related to bug #42596, which was fixed in php 5.2.5

Reproduce code:
---
--TEST--
invalid session.save_path should not cause a segfault
--SKIPIF--

--INI--
session.save_path="123;:/really\\completely:::/invalid;;,23123;213"
session.use_cookies=0
session.cache_limiter=
session.save_handler=files
session.serialize_handler=php
--FILE--

--EXPECT--
I live

Expected result:

If you run the php code you should get:
I live

If you run through a test engine you expect the test to pass

Actual result:
--
The error file from Windows:








http://curl.haxx.se/"; PRODUCT_NAME="The
cURL library" FILE_VERSION="7.16.2" ORIGINAL_FILENAME="libcurl.dll"
INTERNAL_NAME="libcurl" LEGAL_COPYRIGHT="Copyright 1996-2007 by Daniel
Stenberg. http://curl.haxx.se/docs/copyright.html"; VERFILEDATEHI="0x0"
VERFILEDATELO="0x0" VERFILEOS="0x4" VERFILETYPE="0x2" MODULE_TYPE="WIN32"
PE_CHECKSUM="0x0" LINKER_VERSION="0x0" UPTO_BIN_FILE_VERSION="7.16.2.0"
UPTO_BIN_PRODUCT_VERSION="7.16.2.0" LINK_DATE="07/23/2007 11:45:31"
UPTO_LINK_DATE="07/23/2007 11:45:31" VER_LANGUAGE="English (United States)
[0x409]" />

http://www.openssl.org/"; PRODUCT_NAME="The OpenSSL Toolkit"
FILE_VERSION="0.9.8e" ORIGINAL_FILENAME="libeay32.dll"
INTERNAL_NAME="libeay32" LEGAL_COPYRIGHT="Copyright © 1998-2005 The OpenSSL
Project. Copyright © 1995-1998 Eric A. Young, Tim J. Hudson. All rights
reserved." VERFILEDATEHI="0x0" VERFILEDATELO="0x0" VERFILEOS="0x4"
VERFILETYPE="0x2" MODULE_TYPE="WIN32" PE_CHECKSUM="0x104F59"
LINKER_VERSION="0x0" UPTO_BIN_FILE_VERSION="0.9.8.5"
UPTO_BIN_PRODUCT_VERSION="0.9.8.5" LINK_DATE="07/23/2007 11:44:33"
UPTO_LINK_DATE="07/23/2007 11:44:33" VER_LANGUAGE="English (United States)
[0x409]" />






















http://www.openssl.org/";
PRODUCT_NAME="The OpenSSL Toolkit" FILE_VERSION="0.9.8e"
ORIGINAL_FILENAME="ssleay32.dll" INTERNAL_NAME="ssleay32"
LEGAL_COPYRIGHT="Copyright © 1998-2005 The OpenSSL Project. Copyright ©
1995-1998 Eric A. Young, Tim J. Hudson. All rights reserved."
VERFILEDATEHI="0x0" VERFILEDATELO="0x0" VERFILEOS="0x4" VERFILETYPE="0x2"
MODULE_TYPE="WIN32" PE_CHECKSUM="0x35210" LINKER_VERSION="0x0"
UPTO_BIN_FILE_VERSION="0.9.8.5" UPTO_BIN_PRODUCT_VERSION="0.9.8.5"
LINK_DATE="07/23/2007 11:44:45" UPTO_LINK_DATE="07/23/2007 11:44:45"
VER_LANGUAGE="English (United States) [0x409]" />









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


#42975 [NEW]: PHP fatal error in date function

2007-10-15 Thread shany at zend dot com
From: shany at zend dot com
Operating system: PPC Darwin 8.9.0
PHP version:  5.2.4
PHP Bug Type: Date/time related
Bug description:  PHP fatal error in date function 

Description:

When running the script below I received error message:
PHP Fatal error:  Balloc() allocation exceeds list boundary in
/usr/local/Zend/apache2/htdocs/date_test.php on line 2

This error was reproduced using php-cgi and php-cli scripts.
The error was not reproduced on iMac with Darwin 8.10.1, or on Linux
RHEL5, Windows (XP, VISTA 64bit and Server03).

I'm using ZendCore 2.5.0 with bundled appache (2.2.4)
Build configuration: ./configure' '--prefix=/usr/local/Zend/Core'
'--with-config-file-path=/etc' '--enable-force-cgi-redirect'
'--enable-fastcgi' '--disable-debug' '--enable-inline-optimization'
'--enable-memory-limit' '--disable-all' '--enable-ctype' '--enable-dom'
'--enable-libxml' '--with-libxml-dir=/usr/local/Zend/Core'
'--with-openssl=/usr/local/Zend/Core' '--with-pcre-regex'
'--enable-session' '--enable-simplexml' '--enable-spl' '--enable-wddx'
'--enable-xml' '--enable-hash' '--enable-reflection'
'--with-zlib=/usr/local/Zend/Core' '--with-pear'
'--with-apxs2=/usr/local/Zend/apache2/bin/apxs' '--with-layout=GNU'
'--enable-json' '--enable-filter' '--enable-pdo' 

Changes in php.ini: 
short_open_tag = On
max_execution_time = 3000
max_input_time = 600 
register_argc_argv = On
 (missing)
 (missing)
(missing)
ingres.allow_persistent = On
ingres.max_persistent = -1
ingres.max_links = -1
pfpro.defaulthost = "test-payflow.verisign.com"
pfpro.defaultport = 443
pfpro.defaulttimeout = 30
sockets.use_system_read = On
extension_dir="/usr/local/Zend/Core/lib/php/20060613"
include_path=".:/usr/local/Zend/Core/share/pear"



Reproduce code:
---
Script sample: 

(I also tried other possible strings as date() input)


Expected result:

d is: Monday

Actual result:
--
PHP Fatal error:  Balloc() allocation exceeds list boundary in
/usr/local/Zend/apache2/htdocs/date_test.php on line 2


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