Bug #49273 [NoF-Csd]: setcookie() segfaults the php process when adding a positive expires value

2013-02-17 Thread moisadoru at gmail dot com
Edit report at https://bugs.php.net/bug.php?id=49273edit=1

 ID: 49273
 User updated by:moisadoru at gmail dot com
 Reported by:moisadoru at gmail dot com
 Summary:setcookie() segfaults the php process when adding a
 positive expires value
-Status: No Feedback
+Status: Closed
 Type:   Bug
 Package:HTTP related
 Operating System:   Ubuntu linux 9.10alpha3 64bit
 PHP Version:6SVN-2009-08-16 (snap)
 Block user comment: N
 Private report: N

 New Comment:

No longer reproducible. Bug fixed.


Previous Comments:

[2013-02-18 00:33:59] php-bugs at lists dot php dot net

No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to Open. Thank you.


[2011-07-03 04:22:01] geiss...@php.net

Please try using this snapshot:

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

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




[2009-08-16 18:00:48] moisadoru at gmail dot com

This bug is also present in the latest SVN (r287372)


[2009-08-16 16:58:56] moisadoru at gmail dot com

Description:

When setting a cookie with setcookie(), if the expires parameter is a positive 
integer, the PHP child process segfaults.

Environment; Apache 2.2.12, PHP 6.0-200908152030, Ubuntu 9.10 alpha3 linux 
kernel 2.6.31 64bit.



Reproduce code:
---
?php

header('Set-Cookie: cookie1=foo1; expires=Sun, 16-Aug-2009 16:39:00 GMT; 
secure; HttpOnly', TRUE, 200); // works
setcookie('cookie2', 'foo2',); // works
setcookie('cookie3', 'foo3', -3600); // works
setcookie('cookie4', 'foo4', 3600); // segfaults

echo 'pre';
print_r($_COOKIE);
?


Expected result:

$_COOKIE array dumped to screen

Actual result:
--
Apache error log:
[Sun Aug 16 19:06:38 2009] [notice] child pid 22565 exit signal Segmentation 
fault (11)






-- 
Edit this bug report at https://bugs.php.net/bug.php?id=49273edit=1


#49273 [NEW]: setcookie() segfaults the php process when adding a positive expires value

2009-08-16 Thread moisadoru at gmail dot com
From: moisadoru at gmail dot com
Operating system: Ubuntu linux 9.10alpha3 64bit
PHP version:  6SVN-2009-08-16 (snap)
PHP Bug Type: HTTP related
Bug description:  setcookie() segfaults the php process when adding a positive 
expires value

Description:

When setting a cookie with setcookie(), if the expires parameter is a
positive integer, the PHP child process segfaults.

Environment; Apache 2.2.12, PHP 6.0-200908152030, Ubuntu 9.10 alpha3 linux
kernel 2.6.31 64bit.



Reproduce code:
---
?php

header('Set-Cookie: cookie1=foo1; expires=Sun, 16-Aug-2009 16:39:00
GMT; secure; HttpOnly', TRUE, 200); // works
setcookie('cookie2', 'foo2',); // works
setcookie('cookie3', 'foo3', -3600); // works
setcookie('cookie4', 'foo4', 3600); // segfaults

echo 'pre';
print_r($_COOKIE);
?


Expected result:

$_COOKIE array dumped to screen

Actual result:
--
Apache error log:
[Sun Aug 16 19:06:38 2009] [notice] child pid 22565 exit signal
Segmentation fault (11)

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



#49273 [Com]: setcookie() segfaults the php process when adding a positive expires value

2009-08-16 Thread moisadoru at gmail dot com
 ID:   49273
 Comment by:   moisadoru at gmail dot com
 Reported By:  moisadoru at gmail dot com
 Status:   Open
 Bug Type: HTTP related
 Operating System: Ubuntu linux 9.10alpha3 64bit
 PHP Version:  6SVN-2009-08-16 (snap)
 New Comment:

This bug is also present in the latest SVN (r287372)


Previous Comments:


[2009-08-16 16:58:56] moisadoru at gmail dot com

Description:

When setting a cookie with setcookie(), if the expires parameter is a
positive integer, the PHP child process segfaults.

Environment; Apache 2.2.12, PHP 6.0-200908152030, Ubuntu 9.10 alpha3
linux kernel 2.6.31 64bit.



Reproduce code:
---
?php

header('Set-Cookie: cookie1=foo1; expires=Sun, 16-Aug-2009 16:39:00
GMT; secure; HttpOnly', TRUE, 200); // works
setcookie('cookie2', 'foo2',); // works
setcookie('cookie3', 'foo3', -3600); // works
setcookie('cookie4', 'foo4', 3600); // segfaults

echo 'pre';
print_r($_COOKIE);
?


Expected result:

$_COOKIE array dumped to screen

Actual result:
--
Apache error log:
[Sun Aug 16 19:06:38 2009] [notice] child pid 22565 exit signal
Segmentation fault (11)





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



#49270 [NEW]: configure fails if PHP source folder path contains spaces

2009-08-15 Thread moisadoru at gmail dot com
From: moisadoru at gmail dot com
Operating system: Ubuntu linux 9.10alpha3 64bit
PHP version:  6SVN-2009-08-16 (snap)
PHP Bug Type: *Compile Issues
Bug description:  configure fails if PHP source folder path contains spaces

Description:

If you extract the sources snapshot inside a folder that has spaces in the
path, the configure fails with a message similar to this: 
checking for PDO includes... test: 1: /media/Disc: unexpected operator
I extracted the sources into the /media/Disc 1/php6 folder.
Inside the configure.log file there is a reference to configure:67842 and
something about not finding php_pdo_driver.h

Here is my patch
--- /home/user/php6.0-200908152030/configure.original 
+++ /home/user/php6.0-200908152030/configure 
@@ -67839,11 +67839,11 @@
   
 echo $ac_n checking for PDO includes... $ac_c 16
 echo configure:67842: checking for PDO includes 5
-if test -f $abs_srcdir/include/php/ext/pdo/php_pdo_driver.h; then
+if test -f $abs_srcdir/include/php/ext/pdo/php_pdo_driver.h; then
   pdo_inc_path=$abs_srcdir/ext
-elif test -f $abs_srcdir/ext/pdo/php_pdo_driver.h; then
+elif test -f $abs_srcdir/ext/pdo/php_pdo_driver.h; then
   pdo_inc_path=$abs_srcdir/ext
-elif test -f $prefix/include/php/ext/pdo/php_pdo_driver.h; then
+elif test -f $prefix/include/php/ext/pdo/php_pdo_driver.h; then
   pdo_inc_path=$prefix/include/php/ext
 fi

Reproduce code:
---
This is my configure command:

./configure --with-apxs2=/usr/bin/apxs2 --with-mysql --prefix=/opt/php6
--with-regex --with-libxml-dir=/usr/lib --with-openssl=/usr/lib
--with-pcre-regex --with-zlib --enable-bcmath --with-bz2 --enable-calendar
--with-curl --with-enchant=/usr/lib --enable-exif --enable-ftp --with-gd
--enable-gd-native-ttf --with-gettext --with-gmp --with-mhash --with-imap
--with-imap-ssl --enable-intl --enable-mbstring --with-mcrypt --with-mssql
--with-mysql --with-mysqli --enable-embedded-mysqli --enable-pcntl
--with-pspell --with-libedit --with-readline --enable-shmop --enable-soap
--enable-sockets --enable-sysvmsg --enable-sysvsem --enable-sysvshm
--with-tidy --with-xmlrpc --with-xsl --enable-zip --with-openssl=/usr
--with-enchant=/usr --with-kerberos --enable-embedded-mysqli=shared
--with-pdo-mysql=shared

Expected result:

It should configure just fine

Actual result:
--
checking for PDO includes... test: 1: /media/Disc: unexpected operator

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



#37673 [Com]: php can't run

2007-04-18 Thread moisadoru at gmail dot com
 ID:   37673
 Comment by:   moisadoru at gmail dot com
 Reported By:  yaojq1217 at 163 dot com
 Status:   No Feedback
 Bug Type: *General Issues
 Operating System: FreeBSD 5.4-realese
 PHP Version:  5CVS-2006-06-02 (CVS)
 New Comment:

I had the same problem on frebsd6.2 when i tried to load all the
extensions in php 5.1.6. My guess is the problem is the panda
extension.
This is my *working* extensions.ini file, maybe it helps:

extension=session.so
extension=recode.so

extension=soap.so
extension=wddx.so

extension=bcmath.so
extension=bz2.so
extension=calendar.so
extension=ctype.so
extension=curl.so
extension=dba.so
extension=dbase.so
extension=dom.so
extension=exif.so
extension=fileinfo.so
extension=filepro.so
extension=fribidi.so
extension=ftp.so
extension=gd.so
extension=gettext.so
extension=gmp.so
extension=iconv.so
extension=imap.so
extension=interbase.so
extension=ldap.so
extension=mbstring.so
extension=mcrypt.so
extension=mhash.so
extension=ming.so
extension=mssql.so
extension=mysql.so
extension=mysqli.so
extension=ncurses.so
extension=odbc.so
extension=openssl.so
extension=pcntl.so
extension=pcre.so
extension=pdf.so
extension=zlib.so
extension=pdo.so
extension=pgsql.so
extension=posix.so
extension=pspell.so
extension=readline.so
extension=shmop.so
extension=simplexml.so
extension=snmp.so
extension=sockets.so
extension=sqlite.so
extension=sybase_ct.so
extension=sysvmsg.so
extension=sysvsem.so
extension=sysvshm.so
extension=tokenizer.so
extension=xml.so
extension=xmlreader.so
extension=xmlrpc.so
extension=xmlwriter.so
extension=xsl.so

;; generates segfault
;extension=yaz.so
;; generates segfault
;extension=panda.so

extension=zip.so


Previous Comments:


[2006-06-10 01:00:00] php-bugs at lists dot php dot net

No feedback was provided for this bug for over a week, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to Open.



[2006-06-02 10:37:15] [EMAIL PROTECTED]

Not enough information was provided for us to be able
to handle this bug. Please re-read the instructions at
http://bugs.php.net/how-to-report.php

If you can provide more information, feel free to add it
to this bug and change the status back to Open.

Thank you for your interest in PHP.






[2006-06-02 09:54:29] yaojq1217 at 163 dot com

Description:

yjq# php -v 
PHP Warning:  Method panda::__set() must take exactly 2 
arguments in Unknown on line 0 
Segmentation fault (core dumped) 
yjq# 
 






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


#37673 [Com]: php can't run

2007-04-18 Thread moisadoru at gmail dot com
 ID:   37673
 Comment by:   moisadoru at gmail dot com
 Reported By:  yaojq1217 at 163 dot com
 Status:   No Feedback
 Bug Type: *General Issues
 Operating System: FreeBSD 5.4-realese
 PHP Version:  5CVS-2006-06-02 (CVS)
 New Comment:

The soap and wddx extensions fail to load if placed in the alphabetical
order of the extensions. Moved them to top and they load siccessfuly.



Previous Comments:


[2007-04-18 14:16:25] moisadoru at gmail dot com

I had the same problem on frebsd6.2 when i tried to load all the
extensions in php 5.1.6. My guess is the problem is the panda
extension.
This is my *working* extensions.ini file, maybe it helps:

extension=session.so
extension=recode.so

extension=soap.so
extension=wddx.so

extension=bcmath.so
extension=bz2.so
extension=calendar.so
extension=ctype.so
extension=curl.so
extension=dba.so
extension=dbase.so
extension=dom.so
extension=exif.so
extension=fileinfo.so
extension=filepro.so
extension=fribidi.so
extension=ftp.so
extension=gd.so
extension=gettext.so
extension=gmp.so
extension=iconv.so
extension=imap.so
extension=interbase.so
extension=ldap.so
extension=mbstring.so
extension=mcrypt.so
extension=mhash.so
extension=ming.so
extension=mssql.so
extension=mysql.so
extension=mysqli.so
extension=ncurses.so
extension=odbc.so
extension=openssl.so
extension=pcntl.so
extension=pcre.so
extension=pdf.so
extension=zlib.so
extension=pdo.so
extension=pgsql.so
extension=posix.so
extension=pspell.so
extension=readline.so
extension=shmop.so
extension=simplexml.so
extension=snmp.so
extension=sockets.so
extension=sqlite.so
extension=sybase_ct.so
extension=sysvmsg.so
extension=sysvsem.so
extension=sysvshm.so
extension=tokenizer.so
extension=xml.so
extension=xmlreader.so
extension=xmlrpc.so
extension=xmlwriter.so
extension=xsl.so

;; generates segfault
;extension=yaz.so
;; generates segfault
;extension=panda.so

extension=zip.so



[2006-06-10 01:00:00] php-bugs at lists dot php dot net

No feedback was provided for this bug for over a week, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to Open.



[2006-06-02 10:37:15] [EMAIL PROTECTED]

Not enough information was provided for us to be able
to handle this bug. Please re-read the instructions at
http://bugs.php.net/how-to-report.php

If you can provide more information, feel free to add it
to this bug and change the status back to Open.

Thank you for your interest in PHP.






[2006-06-02 09:54:29] yaojq1217 at 163 dot com

Description:

yjq# php -v 
PHP Warning:  Method panda::__set() must take exactly 2 
arguments in Unknown on line 0 
Segmentation fault (core dumped) 
yjq# 
 






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