| Bug #38534 | segmentation fault | ||||
|---|---|---|---|---|---|
| Submitted: | 21 Aug 2006 1:15pm UTC | Modified: | 28 Aug 2006 8:00pm UTC | ||
| From: | dgehl at inverse dot ca | Assigned to: | |||
| Status: | Closed | Category: | Reproducible crash | ||
| Version: | 4.4.4 | OS: | RHEL 4 | ||
| Votes: | 1 | Avg. Score: | 5.0 ± 0.0 | Reproduced: | 1 of 1 (100.0%) |
| Same Version: | 0 (0.0%) | Same OS: | 0 (0.0%) | ||
[21 Aug 2006 1:15pm UTC] dgehl at inverse dot ca
[21 Aug 2006 1:17pm UTC] tony2001@php.net
Thank you for this bug report. To properly diagnose the problem, we need a short but complete example script to be able to reproduce this bug ourselves. A proper reproducing script starts with <?php and ends with ?>, is max. 10-20 lines long and does not require any external resources such as databases, etc. If the script requires a database to demonstrate the issue, please make sure it creates all necessary tables, stored procedures etc. Please avoid embedding huge scripts into the report.
[28 Aug 2006 5:21pm UTC] dgehl at inverse dot ca
<?php
session_set_save_handler('open', 'close', 'read', 'write', 'destroy',
'gc');
@session_start();
$lang_charset='en_US.UTF8';
setlocale(LC_ALL, $lang_charset);
@putenv('LANG=' . $lang_charset);
@putenv('LANGUAGE=' . $lang_charset);
$locale = setlocale(LC_TIME, 0);
setlocale(LC_TIME, 'C');
setlocale(LC_TIME, $locale);
function open($save_path, $session_name) {
return true;
}
function close() {
return true;
}
function read($id) {
$locale = setlocale(LC_TIME, 0);
setlocale(LC_TIME, 'C');
setlocale(LC_TIME, $locale);
}
function write($id, $session_data) {
$locale = setlocale(LC_TIME, 0);
setlocale(LC_TIME, 'C');
setlocale(LC_TIME, $locale);
}
function destroy($id) {
$locale = setlocale(LC_TIME, 0);
setlocale(LC_TIME, 'C');
setlocale(LC_TIME, $locale);
}
function gc($maxlifetime = 300) {
$locale = setlocale(LC_TIME, 0);
setlocale(LC_TIME, 'C');
setlocale(LC_TIME, $locale);
}
?>
[28 Aug 2006 8:00pm UTC] tony2001@php.net
This bug has been fixed in CVS. Snapshots of the sources are packaged every three hours; this change will be in the next snapshot. You can grab the snapshot at http://snaps.php.net/. Thank you for the report, and for helping us make PHP better.
