php-windows Digest 21 Aug 2009 13:41:38 -0000 Issue 3675
Topics (messages 29522 through 29524):
PHPSESSID appended completely wrong with session.use_trans_sid enabled
29522 by: klaus triendl
29523 by: klaus triendl
Re: php_enchant not loadable
29524 by: klaus triendl
Administrivia:
To subscribe to the digest, e-mail:
php-windows-digest-subscr...@lists.php.net
To unsubscribe from the digest, e-mail:
php-windows-digest-unsubscr...@lists.php.net
To post to the list, e-mail:
php-wind...@lists.php.net
----------------------------------------------------------------------
--- Begin Message ---
Hi,
it seems to me that I've hit a bug related to the session.use_trans_sid
feature when output buffering (output_buffer) is on and configured to be
less than the content-size sent to the browser.
A self-made template system produces a php script as a string which gets
then eval'd. The produced script contains many 'echo' directives and
if-statements that evaluate conditions fed by the template system.
It is sometimes necessary to conditionally output parameters in an url
of a link (html anchor). So, instead of echo'ing the whole link at once
it gets written to the output with 'echo' 3 or more times.
E.g.
<code>
echo '<a href="editfilingcard.m-box?action=modify&fcardid=3067';
// some condition from the template system was evaluated
// to be true
if (true)
echo '&belongs2fcard=1411';
echo '&setmgrname=mboxobj">link text</a>
</code>
Now, it happens sometimes that the session ID is appended completely
wrong after the quote closing the 'href' attribute but before the
tag-closing '>':
<a
href="editfilingcard.m-box?action=modify&fcardid=3067&belongs2fcard=1411&setmgrname=mboxobj"?PHPSESSID=f0hriua92m1oe6hmn47upm8n34>
Interestingly, links before or after the one mentioned here aren't
affected in my scenario.
Also, removing enough characters from the output before the link,
everything works fine; and if I increase the output buffer from the
default (4096) to 8192 (which is more than the content-size in my
scenario) everything is fine, too.
I assume, due to my tests, that output buffering somehow interferes
badly with automatically inserting the session ID.
I'm using php-5.2.10 on windows together with apache and IIS.
Any help is welcome, I can provide a script reproducing the problem.
Klaus
--- End Message ---
--- Begin Message ---
Hi,
it seems to me that I've hit a bug related to the session.use_trans_sid
feature when output buffering (output_buffer) is on and configured to be
less than the content-size sent to the browser.
A self-made template system produces a php script as a string which gets
then eval'd. The produced script contains many 'echo' directives and
if-statements that evaluate conditions fed by the template system.
It is sometimes necessary to conditionally output parameters in an url
of a link (html anchor). So, instead of echo'ing the whole link at once
it gets written to the output with 'echo' 3 or more times.
E.g.
<code>
echo '<a href="editfilingcard.m-box?action=modify&fcardid=3067';
// some condition from the template system was evaluated
// to be true
if (true)
echo '&belongs2fcard=1411';
echo '&setmgrname=mboxobj">link text</a>
</code>
Now, it happens sometimes that the session ID is appended completely
wrong after the quote closing the 'href' attribute but before the
tag-closing '>':
<a
href="editfilingcard.m-box?action=modify&fcardid=3067&belongs2fcard=1411&setmgrname=mboxobj"?PHPSESSID=f0hriua92m1oe6hmn47upm8n34>
Interestingly, links before or after the one mentioned here aren't
affected in my scenario.
Also, removing enough characters from the output before the link,
everything works fine; and if I increase the output buffer from the
default (4096) to 8192 (which is more than the content-size in my
scenario) everything is fine, too.
I assume, due to my tests, that output buffering somehow interferes
badly with automatically inserting the session ID.
I'm using php-5.2.10 on windows together with apache and IIS.
Any help is welcome, I can provide a script reproducing the problem.
Klaus Triendl
--- End Message ---
--- Begin Message ---
"Rene Bartholomay" <rene.bartholo...@gmx.de> schrieb im Newsbeitrag
news:67.0a.10097.3525d...@pb1.pair.com...
> Hi there,
>
> i switch to PHP5.3 and now PSPELL is no more working. I read the docu and
> found that i must use PHP_Enchant from now.
>
> But everytime i try to use is PHP gets an error:
>
> "Unable to load dynamic library 'C:\PHP\ext\php_enchant.dll' - The
> specified module could not be found"
>
> All other extension are loaded. The extension is in the defined
> extension-dir and the settings in php.ini are ok.
Does the module depend on other DLLs?
Klaus Triendl
--- End Message ---