[PHP-DEV] How to make mod_php4 read from a fd instead of a filename ?

2002-06-18 Thread Jerome Delamarche

Hello,

When I look at PHP sources, it appears the parser handles two kinds of data 
sources:
ZEND_HANDLE_FILENAME and ZEND_HANDLE_FD.

How could I force mod_php4 to read data from a file descriptor (fd) 
instead of a filename ?

I succeeded but with an ugly patch. Is there a clean way to do it ?

Thanks,

Jerome

-- 
PHP Development Mailing List http://www.php.net/
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP-DEV] Bug #12046: Strange handling of negative hexadecimal numbers

2001-07-11 Thread jerome . delamarche

From: [EMAIL PROTECTED]
Operating system: Linux 2.4
PHP version:  4.0.6
PHP Bug Type: Scripting Engine problem
Bug description:  Strange handling of negative hexadecimal numbers

When I initialize variables with hexadecimal integers, the positive ones
are well handled but the negative ones are considered as flots.

Try the followin code:

?php
$n1 = 0x23456789;  // positive
$n2 = 0x98765432;  // negative
echo $n1,$n2\n;
?

it outputs:
591751049,1.191110821

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


-- 
PHP Development Mailing List http://www.php.net/
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP-DEV] Bug #11573: Malformed HTTP response Header

2001-06-20 Thread jerome . delamarche

From: [EMAIL PROTECTED]
Operating system: Linux
PHP version:  4.0.5
PHP Bug Type: *Session related
Bug description:  Malformed HTTP response Header

I'm using the session*() functions and test them with a browser which refuses cookies. 
So I add PHPSESSID=. as a parameter of the requested url.

For example, I call qcmcreate.php?parm1=xxxparm2=yyyPHPSESSID=z. I noticed 
that the HTTP header returned by my script contain an extra line that confuses my 
client.

The end of the HTTP header looks like:

Content-Type: test/html
\r\n
\r\n
xxx
\r\n
\r\n

(\r\n means a blank and empty line)
What's wrong here are the xxx\r\n\r\n lines. Where xxx is up to 3 characters. 
These 3 lines make my client misinterpret the server response.

If I make my browser accept cookies, the problem disappears.

To make sure I did not echo anything, the 1st instruction of my qcmcreate.php script 
is die;

What's wrong ?

Thank you,

Jerome
Pl


-- 
Edit Bug report at: http://bugs.php.net/?id=11573edit=1



-- 
PHP Development Mailing List http://www.php.net/
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]