php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #6538 ini_alter/ini_set of some session options generates core dump
Submitted: 2000-09-04 16:41 UTC Modified: 2000-09-05 14:40 UTC
From: jmcastagnetto at zkey dot net Assigned:
Status: Closed Package: Reproducible Crash
PHP Version: 4.0.2 OS: RH Linux 6.1
Private report: No CVE-ID: None
View Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: jmcastagnetto at zkey dot net
New email:
PHP Version: OS:

 

 [2000-09-04 16:41 UTC] jmcastagnetto at zkey dot net
Script:

<?php
function t ($s, $val, $test=false) {
    echo $s." : ".ini_get($s)."\n";
    $old = ini_set($s,$val);
    if ($old == false && $test)
        echo "\tcould not change ini setting\n";
    echo $s." : ".ini_get($s)."\n";
    ini_alter($s, $old);
    echo $s." : ".ini_get($s)."\n";
}

// following line dumps core
t("session.cookie_domain","php.net");
// next line will dump core too
// t("session.cookie_path","/application");
?>

Config:

./configure  --with-gd=/usr/local/gd1.3 \
--with-config-file-path=/usr/local/php4 \
--enable-track-vars \
--enable-magic-quotes --enable-bcmath \
--with-mysql --with-xml \
--enable-wddx \
--enable-sockets --enable-sysvsem \
--enable-sysvshm --enable-yp \
--enable-inline-optimization \
--enable-calendar --enable-ftp \
--enable-trans-sid \
--with-pgsql=/usr/local/pgsql/

I am using the Zend optimizer:
[php.ini]
magic_quotes_gpc=0
max_execution_time=300
error_log=/usr/local/apache/logs/php_error_log
zend_optimizer.optimization_level=15
zend_extension="/usr/local/Zend/lib/ZendOptimizer.so


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2000-09-05 14:40 UTC] stas@php.net
Should be fixed in CVS, please verify.
 
PHP Copyright © 2001-2026 The PHP Group
All rights reserved.
Last updated: Sun Oct 11 23:00:01 2026 UTC