Re: your patch to session.c broke it (testcase
| From: | Yasuo Ohgaki | Date: | Tue, 05 Mar 2002 07:47:44 +0000 |
| Subject: | Re: your patch to session.c broke it (testcase | ||
| References: | 1 2 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-80724@lists.php.net to get a copy of this message | ||
Zeev,
Thies is complaining about the same issue that I've mailed
to you personally.
Have you read my emails? I've send 2 emails about the patch,
one with short script that you can play with.
I'll send them again to you, if you didn't get them.
--
Yasuo Ohgaki
Zeev Suraski wrote:
At 13:18 04/03/2002, Thies C. Arntzen wrote:Well, I didn't find any crashes, but it is a potential crash, because the zval is put into the hash with a wrong refcount. Did you try rolling back this particular patch and it works again? You said I should run this using php-cgi from the command line, how exactly is this supposed to work with sessions (which rely on HTTP cookies, or am I missing something? :) Zeevzeev, your patchhttp://cvs.php.net/diff.php/php4/ext/session/session.c?r1=1.277&r2=1.278&ty=ubroke the session module:testcase (run multiple times using php-cgi from the command-line)<?php session_id("thies"); session_start(); if (! session_is_registered("hallo")) {$hallo = "hi "; session_register('hallo');} else {$hallo = &$_SESSION[ 'hallo' ];} echo "$hallo\n"; $hallo .= '!'; ?>after your patch the changed value of $hallo is no longer remembered.hmm, as i don't know wich "crash bug" your patch fixes i don't want to simply revert it - could you give me some insights?