Re: [PHP-DEV] use indent instead of fixing whitespace by hand?

2001-08-13 Thread Stig Sæther Bakken

[Thies C. Arntzen [EMAIL PROTECTED]]
 guys, 
 
 it's really time to setup our own indent(1L) profile and
 simply run everything in php4/ thru it. i'll spend some time
 playing with it (while i'm on vacation) unless:
 
 does anybody see a reason *not* to swicht to indent (manybe
 even intergrated into out CVS) once we have a satisfying
 settings for it?
 
 please speak up now - i really don't want to waste my time on
 it if somebody has a good technical reason why this (running
 php-sources thru indent) won't work.

Aye aye captain!  I'm not 100% sure we'll get indent to do what we
want, but we should find out and see if it can be done.  I have
started making an indent config file for PEAR, but that is indenting
PHP code, so it's kinda different.

 - Stig

-- 
  Stig Sæther Bakken [EMAIL PROTECTED]
  Fast Search  Transfer ASA, Trondheim, Norway

-- 
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] Re: use indent instead of fixing whitespace by hand?

2001-08-13 Thread Zeev Suraski

At 14:31 12-08-01, Thies C. Arntzen wrote:

 guys,

 it's really time to setup our own indent(1L) profile and
 simply run everything in php4/ thru it. i'll spend some time
 playing with it (while i'm on vacation) unless:

 does anybody see a reason *not* to swicht to indent (manybe
 even intergrated into out CVS) once we have a satisfying
 settings for it?

 please speak up now - i really don't want to waste my time on
 it if somebody has a good technical reason why this (running
 php-sources thru indent) won't work.

I think it can be a very good thing, even though it may get a bit tough, 
it's probably worth trying.
Things to watch for:
- We have to make a list of each and every last data type that is being 
defined or used in the php4 source tree.  It's going to be a bitch :)
- We need to see whether indent knows how to properly handle macros that 
create function prototypes, etc.  As we use macros extensively, if it can't 
handle them too well, it can probably rule it out.

I vaguely remember bumping into trouble with indent a couple of years ago 
(as you may know, we did use to have a 'make indent' configuration in the 
php3 days).  I don't remember if it was a dead end, or just something I 
didn't have the mental strength to deal with back then...

Zeev


-- 
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 #12711: crashing on clean install including the php_mssql.dll

2001-08-13 Thread kim_andersen

From: [EMAIL PROTECTED]
Operating system: Windows 2000 Server
PHP version:  4.0.6
PHP Bug Type: MSSQL related
Bug description:  crashing on clean install including the php_mssql.dll

Installing PHP4.0.6 on a clean IIS5.0 machine. Including the php_mssql.dll
(which exists on the given location) makes php crash. It loads php_gd.dll
and php_pdf.dll without any problems.
-- 
Edit bug report at: http://bugs.php.net/?id=12711edit=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]




Re: [PHP-DEV] use indent instead of fixing whitespace by hand?

2001-08-13 Thread Markus Fischer

On Mon, Aug 13, 2001 at 09:05:36AM +0200, Stig Sæther Bakken wrote : 
 [Thies C. Arntzen [EMAIL PROTECTED]]
  guys, 
  
  it's really time to setup our own indent(1L) profile and
  simply run everything in php4/ thru it. i'll spend some time
  playing with it (while i'm on vacation) unless:
  
  does anybody see a reason *not* to swicht to indent (manybe
  even intergrated into out CVS) once we have a satisfying
  settings for it?
  
  please speak up now - i really don't want to waste my time on
  it if somebody has a good technical reason why this (running
  php-sources thru indent) won't work.
 
 Aye aye captain!  I'm not 100% sure we'll get indent to do what we
 want, but we should find out and see if it can be done.  I have
 started making an indent config file for PEAR, but that is indenting
 PHP code, so it's kinda different.

O_O

Where is it ? :)

- Markus

-- 
Markus Fischer,  http://guru.josefine.at/~mfischer/
EMail: [EMAIL PROTECTED]
PGP Public  Key: http://guru.josefine.at/~mfischer/C2272BD0.asc
PGP Fingerprint: D3B0 DD4F E12B F911 3CE1  C2B5 D674 B445 C227 2BD0
  -All your scripts are belong to Zend-

-- 
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] Re: [PHP-DOC] Bug #12550 Updated: rand() and mt_rand() don't behave as documented

2001-08-13 Thread eschmid+sic

On Mon, Aug 13, 2001 at 07:29:16AM +0200, Jani Taskinen wrote:
 
 Now you assume that you need to pass arguments to these functions.
 Which is not the case. Here's the proto:
 
 /* {{{ proto int rand([int min, int max])
Returns a random number */
 
 So revert that patch. mt_rand()  / rand() accecpt either 2 parameters or
 none at all. It was at least LESS wrong before. Now it's totally wrong.
 
 --Jani
 
 p.s. Egon, you still haven't explained me why my patch was wrong?

The prototype in the php[3!4] is ok, but in the PHP manual it was wrong.

-Egon

-- 
All known books about PHP and related books: http://php.net/books.php 
Concert Band of the University of Hohenheim: http://www.concert-band.de/
First and second bestselling book in German: http://www.php-buch.de/

-- 
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 #12710 Updated: Warning: imap_mail() is not supported in this PHP build

2001-08-13 Thread sniper

ID: 12710
Updated by: sniper
Reported By: [EMAIL PROTECTED]
Old Status: Open
Status: Bogus
Bug Type: IMAP related
Operating System: Win2K
PHP Version: 4.0.5
New Comment:

Not a bug. Use mail().




Previous Comments:


[2001-08-13 00:32:37] [EMAIL PROTECTED]

I have activated the extension for imap and the error message I recieved is this:

Warning: imap_mail() is not supported in this PHP build

Does this function send mail though the open IMAP connection when it works?





Edit this bug report at http://bugs.php.net/?id=12710edit=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 #12712: a little suggestion

2001-08-13 Thread martin

From: [EMAIL PROTECTED]
Operating system: Windows 2000
PHP version:  4.0.6
PHP Bug Type: *General Issues
Bug description:  a little suggestion

Good day. It is not a really bug report but a little suggestion for new PHP
relase. I'll be good thing to add to PHP
language ability to create functions with named parameters like in Visual
Basic. For example:

//Classic function:
function printhello($name, $bold = false, $italic = false)
{
$ret = Hello $name!
if ($bold)
$ret = strong$ret/strong;
if ($italic)
$ret = em$ret/em;
echo $ret;
}

//Suggested function:
function printhello(name: $name, fat: $bold = false, emphased: $italic =
false)
{
// same body as above ...
}

This new function could be called like: printhello(Martin, true);
or like new: printhello(fat: true, name: Martin);

Thank you.
-- 
Edit bug report at: http://bugs.php.net/?id=12712edit=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]




Re: [PHP-DEV] use indent instead of fixing whitespace by hand?

2001-08-13 Thread Heikki Korpela

On Mon, 13 Aug 2001, Jani Taskinen wrote:

 Hehe..last time I tried indent with PHP c-sources they made it segfault.
 --Jani

Hey people, did you remember there are other options than (g)indent
out there?

http://www.iua.upf.es/~mdeboer/astyle_on_commit/



-- 
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 #12699 Updated: opendir() fails when used on read-only devices

2001-08-13 Thread phildriscoll

ID: 12699
Updated by: phildriscoll
Reported By: [EMAIL PROTECTED]
Status: Critical
Bug Type: Directory function related
Operating System: Win32
PHP Version: 4.0CVS-2001-08-11
New Comment:

Just updating with a couple of comments that were emailed 
rather than going via the bug tracking system:

Sebastian replied to the last bug posting:
 This is odd. The same binaries still give me with my CD
 and DVD drives
  Warning: OpenDir: Invalid argument (errno 22)
  for
  ?php echo $dh = opendir('g:/'); ?

To which Michael Loftis replied:
 g:\ is the windows way  That could be whats
 fudging it.
 Justa  wild guess.

And to which I now reply:

On NT and W2K G:/ is perfectly allright. Sebastian, what 
platform are you on (is it different from my NT4/IIS setup 
which seems to work ok?)


Previous Comments:


[2001-08-12 15:31:28] [EMAIL PROTECTED]

No, this shouldn't be the case here. The script worked fine until some 2-3 weeks ago.




[2001-08-12 15:20:59] [EMAIL PROTECTED]

It's not a permissions problem is it?
I sometimes have troubles with the CD rom drive under win2k, admittedly not from 
PHP/IIS but it could be related?

--Wez.



[2001-08-12 15:03:37] [EMAIL PROTECTED]

Just tested with the CVS binaries you sent me. It works 
fine accessing both my CD and DVD drives. If I echo out 
$dh, php prints
Resource id #1

For info, I'm running on NT4 SP6 under IIS, and my error 
reporting is set to E_ALL. I get the same results if I run 
from the command line.




[2001-08-12 14:34:06] [EMAIL PROTECTED]

Sorry Phil, I didn't read the 

If you send me your php.exe and php4ts.dll buit 
from CVS I'll test that here if it helps.

part of your message the first time.

I'm, really sorry! php.exe/php4ts.dll are on their way.




[2001-08-12 13:02:31] [EMAIL PROTECTED]

Phil, I know that it worked fine with PHP 4.0.6. Have a look at the 'PHP Version' 
field
of this bug report. It says '4.0CVS-2001-08-11', which is yesterday's CVS version of 
PHP 4.0.7-dev.




The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
http://bugs.php.net/?id=12699


Edit this bug report at http://bugs.php.net/?id=12699edit=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 #12699 Updated: opendir() fails when used on read-only devices

2001-08-13 Thread sebastian

ID: 12699
Updated by: sebastian
Reported By: [EMAIL PROTECTED]
Old Status: Critical
Status: Feedback
Bug Type: Directory function related
Operating System: Win32
PHP Version: 4.0CVS-2001-08-11
New Comment:

Okay, here's the news:

  ?php echo $dh = opendir('g:/'); ?

gives

  Resource id #1

when called from command-line with

  php -q opendir.php

but

  Warning: OpenDir: Invalid argument (errno 22)

when invoked through Apache/2.0.24-dev, where PHP is used as CGI.

Could this be a permissions issue after all? But, if so, why did it work some time 
ago?

Changing to 'Feedback'.


Previous Comments:


[2001-08-13 04:16:05] [EMAIL PROTECTED]

Just updating with a couple of comments that were emailed 
rather than going via the bug tracking system:

Sebastian replied to the last bug posting:
 This is odd. The same binaries still give me with my CD
 and DVD drives
  Warning: OpenDir: Invalid argument (errno 22)
  for
  ?php echo $dh = opendir('g:/'); ?

To which Michael Loftis replied:
 g:\ is the windows way  That could be whats
 fudging it.
 Justa  wild guess.

And to which I now reply:

On NT and W2K G:/ is perfectly allright. Sebastian, what 
platform are you on (is it different from my NT4/IIS setup 
which seems to work ok?)




[2001-08-12 15:31:28] [EMAIL PROTECTED]

No, this shouldn't be the case here. The script worked fine until some 2-3 weeks ago.




[2001-08-12 15:20:59] [EMAIL PROTECTED]

It's not a permissions problem is it?
I sometimes have troubles with the CD rom drive under win2k, admittedly not from 
PHP/IIS but it could be related?

--Wez.



[2001-08-12 15:03:37] [EMAIL PROTECTED]

Just tested with the CVS binaries you sent me. It works 
fine accessing both my CD and DVD drives. If I echo out 
$dh, php prints
Resource id #1

For info, I'm running on NT4 SP6 under IIS, and my error 
reporting is set to E_ALL. I get the same results if I run 
from the command line.




[2001-08-12 14:34:06] [EMAIL PROTECTED]

Sorry Phil, I didn't read the 

If you send me your php.exe and php4ts.dll buit 
from CVS I'll test that here if it helps.

part of your message the first time.

I'm, really sorry! php.exe/php4ts.dll are on their way.




The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
http://bugs.php.net/?id=12699


Edit this bug report at http://bugs.php.net/?id=12699edit=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] associative arrays

2001-08-13 Thread Thomas Wentzel

Hi!

I was wondering if someone would be so nice as to post a code
snippet that returns an associative array... I'm writing an
extension and am only able to return an ordinary array...
Alternatively I would be very interested if someone could
point me to some documentation on the zend_hash_xxx functions

Thanx
  Thomas


-- 
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]




Re: [PHP-DEV] associative arrays

2001-08-13 Thread Rasmus Lerdorf

 I was wondering if someone would be so nice as to post a code
 snippet that returns an associative array... I'm writing an
 extension and am only able to return an ordinary array...
 Alternatively I would be very interested if someone could
 point me to some documentation on the zend_hash_xxx functions

array_init(return_value);
add_assoc_string(return_value, string index, your_char_var, 1);
add_assoc_double(return_value, another one, your_long_var);

That's all.  Last arg on add_assoc_string() should be 1 if you need to
make a copy of the string.  If the char * you are passing was allocated by
you using emalloc() then don't make a copy.

You don't need any zend_hash_xxx functions to just return an associative
array.

-Rasmus


-- 
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]




Re: [PHP-DEV] associative arrays

2001-08-13 Thread Rasmus Lerdorf

 add_assoc_double(return_value, another one, your_long_var);

uh, confused double/long here.  Should have said: your_double_var

but you get the idea.

-Rasmus


-- 
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]




Re: [PHP-DEV] Newbie writing a PHP extension

2001-08-13 Thread Thomas Wentzel

Hi Chris!

I suggest you go out and by the book Web Application Development with
PHP 4.0
which contains the same documents you are referring to...

/Thomas


-- 
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]




Re: [PHP-DEV] associative arrays

2001-08-13 Thread Rasmus Lerdorf

Ah, ok.  It's not much harder:

  pval *tmp_arr;

  array_init(return_value);
  MAKE_STD_ZVAL(tmp_arr);
  array_init(tmp_arr);
  add_assoc_string(tmp_arr, string index, foo, 1);
  zend_hash_index_update(Z_ARRVAL_P(return_value), 5, tmp_arr, sizeof(tmp_arr), NULL);

This will create  $whatever[5]['string index'] = 'foo'

Or if you want a string index at the top level:

  zend_hash_update(Z_ARRVAL_P(return_value), bar, strlen(bar)+1, tmp_arr, 
sizeof(tmp_arr), NULL);

This will create  $whatever['bar']['string index'] = 'foo';

-Rasmus

On Mon, 13 Aug 2001, Thomas Wentzel wrote:

 Uhhh sorry!

 What I should have said is that... The associative array I wish to
 return is to be an array element of  an associative array ;)
 Meaning... I need the functionality of add_assoc_array but since
 this function doesn't exist - I have to manipulate with the
 zend_hash_xxx in order to get what I want - but I fail to connect
 my constructed array with a name...

 Rasmus Lerdorf wrote:
 
   I was wondering if someone would be so nice as to post a code
   snippet that returns an associative array... I'm writing an
   extension and am only able to return an ordinary array...
   Alternatively I would be very interested if someone could
   point me to some documentation on the zend_hash_xxx functions
 
  array_init(return_value);
  add_assoc_string(return_value, string index, your_char_var, 1);
  add_assoc_double(return_value, another one, your_long_var);
 
  That's all.  Last arg on add_assoc_string() should be 1 if you need to
  make a copy of the string.  If the char * you are passing was allocated by
  you using emalloc() then don't make a copy.
 
  You don't need any zend_hash_xxx functions to just return an associative
  array.
 
  -Rasmus





-- 
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]




Re: [PHP-DEV] associative arrays

2001-08-13 Thread Markus Fischer

go Rasmus go! :-)

Some more examples and we seriously can extend zend.com/apidoc .

Such examples are of great value to anyone who is new to writing php
extension.

- Markus

On Mon, Aug 13, 2001 at 02:14:01AM -0700, Rasmus Lerdorf wrote : 
 Ah, ok.  It's not much harder:
 
   pval *tmp_arr;
 
   array_init(return_value);
   MAKE_STD_ZVAL(tmp_arr);
   array_init(tmp_arr);
   add_assoc_string(tmp_arr, string index, foo, 1);
   zend_hash_index_update(Z_ARRVAL_P(return_value), 5, tmp_arr, sizeof(tmp_arr), 
NULL);
 
 This will create  $whatever[5]['string index'] = 'foo'
 
 Or if you want a string index at the top level:
 
   zend_hash_update(Z_ARRVAL_P(return_value), bar, strlen(bar)+1, tmp_arr, 
sizeof(tmp_arr), NULL);
 
 This will create  $whatever['bar']['string index'] = 'foo';
 
 -Rasmus
 
 On Mon, 13 Aug 2001, Thomas Wentzel wrote:
 
  Uhhh sorry!
 
  What I should have said is that... The associative array I wish to
  return is to be an array element of  an associative array ;)
  Meaning... I need the functionality of add_assoc_array but since
  this function doesn't exist - I have to manipulate with the
  zend_hash_xxx in order to get what I want - but I fail to connect
  my constructed array with a name...
 
  Rasmus Lerdorf wrote:
  
I was wondering if someone would be so nice as to post a code
snippet that returns an associative array... I'm writing an
extension and am only able to return an ordinary array...
Alternatively I would be very interested if someone could
point me to some documentation on the zend_hash_xxx functions
  
   array_init(return_value);
   add_assoc_string(return_value, string index, your_char_var, 1);
   add_assoc_double(return_value, another one, your_long_var);
  
   That's all.  Last arg on add_assoc_string() should be 1 if you need to
   make a copy of the string.  If the char * you are passing was allocated by
   you using emalloc() then don't make a copy.
  
   You don't need any zend_hash_xxx functions to just return an associative
   array.
  
   -Rasmus
 
 
 
 
 
 -- 
 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]

-- 
Markus Fischer,  http://guru.josefine.at/~mfischer/
EMail: [EMAIL PROTECTED]
PGP Public  Key: http://guru.josefine.at/~mfischer/C2272BD0.asc
PGP Fingerprint: D3B0 DD4F E12B F911 3CE1  C2B5 D674 B445 C227 2BD0
  -All your scripts are belong to Zend-

-- 
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]




Re: [PHP-DEV] associative arrays

2001-08-13 Thread Thomas Wentzel

That simple, huh?

What can I say - You are the man!

Thanx

Rasmus Lerdorf wrote:
 
 Ah, ok.  It's not much harder:
 
   pval *tmp_arr;
 
   array_init(return_value);
   MAKE_STD_ZVAL(tmp_arr);
   array_init(tmp_arr);
   add_assoc_string(tmp_arr, string index, foo, 1);
   zend_hash_index_update(Z_ARRVAL_P(return_value), 5, tmp_arr, sizeof(tmp_arr), 
NULL);
 
 This will create  $whatever[5]['string index'] = 'foo'
 
 Or if you want a string index at the top level:
 
   zend_hash_update(Z_ARRVAL_P(return_value), bar, strlen(bar)+1, tmp_arr, 
sizeof(tmp_arr), NULL);
 
 This will create  $whatever['bar']['string index'] = 'foo';
 
 -Rasmus


-- 
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] FW: Re: OPENSSL Integration

2001-08-13 Thread Wez Furlong

[I'm pointing this here so that it gets archived in case it gets lost in my inbox.  
Sorry if it is a little long; future replies will be trimmed.]

Hi Daniel,

Yes; we should Cc this to php-dev.

The ssl_turned_on flag would belong to the implementation of a socket
based stream.  The streams implementation would then know which read
method to use internally.

I'm not 100% sure how to go about this without spending
some more time looking into it (I don't have much time either); it
might require a little bit of fancy footwork to make sure this all
sticks together properly.

The concept is that there will be either a function such as
php_stream_enable_ssl(stream, bEnable) 
OR, we could have an ioctl() style interface for streams.
What do you php-dev guys think?

--Wez.

 Hi Wez,
 
 thanks a lot for the detailed answer. I think I got a good impression of
 what will be to do. And I think I was right when I said that integrating
 ssl into the main branch (streams and files) would be a task that needs
 a lot of php-internal know-how. Would be an interesting job, but I don't
 have the time to get it done.
 
 However the ssl-on/off option done in plain C are not more than 100
 lines of code. If you take a short look at openssl/demo/ssl/cli.cpp and
 serv.cpp. That's all one has to do to get it done. I have done a C++
 Client implementation based on that code on my windows product, and it
 took me about half a day to get it work. I could do it in the php-code
 as well. My main problem is: if I do the ssl_on(handle) ssl_off(handle)
 how will I do the read/write op's? In fread/fwrite? Where can I set the
 'ssl_tunred_on' flag attached to a stream?
 
 Perhaps you have got some short ideas for me, so I can implement it in a
 way that help's later development and integrates into php as long as it
 takes to get the stream architecture finished. Or I will supply you with
 some quick code samples doing exactly what most ssl-stuff deals with.
 Server + Cert takes a client req with/without cert. Cert veryfying can
 be done by the functions you already implemented.
 
 Thanks in advance for your help. And: should we CC some mailing list for
 further communications?
 
 bye, Daniel
 
 Wez Furlong wrote:
  
  Hi Daniel,
  
  It's on my TODO, but requires that all the file IO in PHP gets rewritten
  first (see README.STREAMS in the root of the php4 source).
  
  I'm currently very busy on a couple of contracts so it will be at least
  1 month before I can put some time into it.
  
  You can help me out here; we had briefly considered turning SSL on/off
  on a regular socket but had forgotten about it.
  If you could provide me with a little sample code of how this can be
  done, then I can factor it into the streams design.
  
  If you need SSL capability sooner, someone posted a patch that implements
  openssl enabled sockets (search the mailing list archives for openssl_read
  or something similar); however, it definitely won't let you turn SSL on/off
  on already opened sockets.
  
  If you are willing to put some (grunt) work into it, the main thing holding
  this stuff up is that all of the extensions need to be prepared to switch to
  php_streams (using ifdefs so the original code still works), we then need
  to finish up the streams implementation of fopen wrapper and then we can
  switch over to streams.
  And finally, we can implement SSL streams (and that will be an easy task).
  
  --Wez.
  
   -Original Message-
   From: Daniel Gleichauf [mailto:[EMAIL PROTECTED]]
   Sent: 10 August 2001 14:37
   To: Wez Furlong
   Subject: OPENSSL Integration
  
  
   Hi Wez,
  
   sorry for the direct way of adressing you, but there seems to be bare
   information about how to submit one single question about something
   without having to deal with the whole php-user-list-traffic.
  
   My problem is, that I should programm an smtpd in php. This is a nice
   job, and I don't think it'll take to long, but there should be an ssl
   negotiation integrated. After fuzzling around with quite a lot of
   stunnel atc idea's I thougt it would be best if I would be able to do
   the ssl_read from within the php_smtpd.
  
   I took a deep look in the php-sources but it seemd closed to impossible
   to me to integrate the ssl-read/write logic within these
   fopen/fget-wrappers. The thing about is that not the whole stream is
   encrypted, but the encryption starts at a specific point of the
   client-server-communication, and it may end as well without dropping the
   line. So I needed something that gets on top of an already opened
   file-pointer (should be a network or stdin/out-stream in reality) and
   from that point the communication get's read and written through those
   openssl SSL_read/SSL_write functions.
  
   Have you got any hints for me, or will or are these openssl routines
   (be) developed by someone else already?
  
   Thanks a lot in advance,
  
   Daniel




-- 
PHP Development Mailing List http://www.php.net/
To 

[PHP-DEV] Bug #12699 Updated: opendir() fails when used on read-only devices

2001-08-13 Thread phildriscoll

ID: 12699
Updated by: phildriscoll
Reported By: [EMAIL PROTECTED]
Status: Feedback
Bug Type: Directory function related
Operating System: Win32
PHP Version: 4.0CVS-2001-08-11
New Comment:

Just tested with Apache (version 1.3.12) on my NT box, and 
it's still ok.

It's a mystery to me what the permissions are on a read 
only device, however I would guess that since php is 
running in the same security environment, if it is a 
security issue, then you might find that Apache can't 
serve up files directly from the CD is you set up 
DocumentRoot to point to it.


Previous Comments:


[2001-08-13 04:31:04] [EMAIL PROTECTED]

Okay, here's the news:

  ?php echo $dh = opendir('g:/'); ?

gives

  Resource id #1

when called from command-line with

  php -q opendir.php

but

  Warning: OpenDir: Invalid argument (errno 22)

when invoked through Apache/2.0.24-dev, where PHP is used as CGI.

Could this be a permissions issue after all? But, if so, why did it work some time 
ago?

Changing to 'Feedback'.




[2001-08-13 04:16:05] [EMAIL PROTECTED]

Just updating with a couple of comments that were emailed 
rather than going via the bug tracking system:

Sebastian replied to the last bug posting:
 This is odd. The same binaries still give me with my CD
 and DVD drives
  Warning: OpenDir: Invalid argument (errno 22)
  for
  ?php echo $dh = opendir('g:/'); ?

To which Michael Loftis replied:
 g:\ is the windows way  That could be whats
 fudging it.
 Justa  wild guess.

And to which I now reply:

On NT and W2K G:/ is perfectly allright. Sebastian, what 
platform are you on (is it different from my NT4/IIS setup 
which seems to work ok?)




[2001-08-12 15:31:28] [EMAIL PROTECTED]

No, this shouldn't be the case here. The script worked fine until some 2-3 weeks ago.




[2001-08-12 15:20:59] [EMAIL PROTECTED]

It's not a permissions problem is it?
I sometimes have troubles with the CD rom drive under win2k, admittedly not from 
PHP/IIS but it could be related?

--Wez.



[2001-08-12 15:03:37] [EMAIL PROTECTED]

Just tested with the CVS binaries you sent me. It works 
fine accessing both my CD and DVD drives. If I echo out 
$dh, php prints
Resource id #1

For info, I'm running on NT4 SP6 under IIS, and my error 
reporting is set to E_ALL. I get the same results if I run 
from the command line.




The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
http://bugs.php.net/?id=12699


Edit this bug report at http://bugs.php.net/?id=12699edit=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 #12699 Updated: opendir() fails when used on read-only devices

2001-08-13 Thread phildriscoll

ID: 12699
Updated by: phildriscoll
Reported By: [EMAIL PROTECTED]
Status: Feedback
Bug Type: Directory function related
Operating System: Win32
PHP Version: 4.0CVS-2001-08-11
New Comment:

Sorry - that last line should read:
*if* you set up 
DocumentRoot to point to it.



Previous Comments:


[2001-08-13 05:23:02] [EMAIL PROTECTED]

Just tested with Apache (version 1.3.12) on my NT box, and 
it's still ok.

It's a mystery to me what the permissions are on a read 
only device, however I would guess that since php is 
running in the same security environment, if it is a 
security issue, then you might find that Apache can't 
serve up files directly from the CD is you set up 
DocumentRoot to point to it.




[2001-08-13 04:31:04] [EMAIL PROTECTED]

Okay, here's the news:

  ?php echo $dh = opendir('g:/'); ?

gives

  Resource id #1

when called from command-line with

  php -q opendir.php

but

  Warning: OpenDir: Invalid argument (errno 22)

when invoked through Apache/2.0.24-dev, where PHP is used as CGI.

Could this be a permissions issue after all? But, if so, why did it work some time 
ago?

Changing to 'Feedback'.




[2001-08-13 04:16:05] [EMAIL PROTECTED]

Just updating with a couple of comments that were emailed 
rather than going via the bug tracking system:

Sebastian replied to the last bug posting:
 This is odd. The same binaries still give me with my CD
 and DVD drives
  Warning: OpenDir: Invalid argument (errno 22)
  for
  ?php echo $dh = opendir('g:/'); ?

To which Michael Loftis replied:
 g:\ is the windows way  That could be whats
 fudging it.
 Justa  wild guess.

And to which I now reply:

On NT and W2K G:/ is perfectly allright. Sebastian, what 
platform are you on (is it different from my NT4/IIS setup 
which seems to work ok?)




[2001-08-12 15:31:28] [EMAIL PROTECTED]

No, this shouldn't be the case here. The script worked fine until some 2-3 weeks ago.




[2001-08-12 15:20:59] [EMAIL PROTECTED]

It's not a permissions problem is it?
I sometimes have troubles with the CD rom drive under win2k, admittedly not from 
PHP/IIS but it could be related?

--Wez.



The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
http://bugs.php.net/?id=12699


Edit this bug report at http://bugs.php.net/?id=12699edit=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] Re: Bug #11934 Updated: failure to configure --with-imap-ssl

2001-08-13 Thread Daniele Arduini

Bug fixed! imap+openssl has been successfully configured.
Tested with CVS release 2001-08-12.

Thank you very much!

Best Regards,
Daniele Arduini


Bug Database wrote:
 ID: 11934
 Updated by: sniper
 Reported By: [EMAIL PROTECTED]
 Old Status: Feedback
 Status: Closed
 Bug Type: IMAP related
 Operating System: Solaris 8
 PHP Version: 4.0.6
 New Comment:
 
 This should be fixed in CVS now. Please test it.
 Reopen if it still doesn't work for you.
 
 --Jani
 
 
 Previous Comments:
 
 
 [2001-07-31 21:39:30] [EMAIL PROTECTED]
 
 Is this problem still valid? 
 
 
 
 
 [2001-07-06 11:20:29] [EMAIL PROTECTED]
 
 ==
 my config.nice is:
 
 #! /bin/sh
 #
 # Created by configure
 
 CFLAGS='-O6 -fomit-frame-pointer -pipe' \
 CXXFLAGS='-O6 -pipe' \
 LDFLAGS='-s' \
 CC='gcc' \
 CXX='gcc' \
 './configure' \
 '--prefix=/opt/php-2001-07-05' \
 '--with-apxs=/opt/apache/bin/apxs' \
 '--with-config-file-path=/opt/php-2001-07-05' \
 '--enable-safe-mode' \
 '--enable-memory-limit' \
 '--with-exec-dir=/opt/php-2001-07-05/php-bin' \
 '--enable-track-vars' \
 '--disable-debug' \
 '--enable-magic-quotes' \
 '--enable-bcmath' \
 '--enable-dbase' \
 '--enable-filepro' \
 '--enable-ftp' \
 '--with-zlib' \
 '--with-jpeg-dir=/usr,/usr/local,/opt' \
 '--with-png-dir=/usr,/usr/local,/opt' \
 '--with-tiff-dir=/usr,/usr/local,/opt' \
 '--enable-sysvsem' \
 '--enable-sysvshm' \
 '--with-xml' \
 '--enable-wddx' \
 '--with-gdbm' \
 '--enable-dbx' \
 '--with-imap=/opt/imap' \
 '--with-imap-ssl=/opt/openssl' \
 '--with-openssl=/opt/openssl' \
 '--with-ssl=/opt/openssl' \
 '--with-pdflib=/opt/pdflib' \
 '--with-mcrypt=/opt/mcrypt' \
 '--with-mhash=/opt/mhash' \
 '--with-ttf=/opt/freetype' \
 '--with-gd=/opt/gd' \
 '--enable-dba' \
 '--with-db3=/opt/db-3' \
 '--with-oci8=/opt/oracle/product/8.1.5' \
 $@
 
 ==
 my config.log ends with:
 
 configure:23909: checking for SSL support in IMAP
 configure:24030: gcc -o conftest -O6 -fomit-frame-pointer -pipe  
-D_POSIX_PTHREAD_SEMANTICS -DSOL
 ARIS2=270 -DMOD_SSL=208104 -DEAPI -DUSE_EXPAT -DSHARED_CORE -s -R/usr/ucblib 
-L/usr/ucblib -R/opt
 /openssl/lib -L/opt/openssl/lib -R/usr/local/lib/gcc-lib/sparc-sun-solaris2.7/2.95.2 
-L/usr/local
 /lib/gcc-lib/sparc-sun-solaris2.7/2.95.2 -R/usr/local/lib -L/usr/local/lib 
-R/opt/db-3/lib -L/opt
 /db-3/lib -R/opt/freetype/lib -L/opt/freetype/lib -R/opt/gd/lib -L/opt/gd/lib 
-R/opt/imap/c-clien
 t -L/opt/imap/c-client conftest.c -lpam -lgd -lttf -lpng -lz -ljpeg -ldb -lgdbm -lz 
-lcrypt -lssl
  -lcrypto -lresolv -lresolv -lm -ldl -lnsl -lsocket  -lsocket -lgcc -lc-client 
-lcrypto -lssl 1
 5
 Undefined   first referenced
  symbol in file
 EVP_md2 /opt/openssl/lib/libssl.a(ssl_algs.o)
 EVP_md5 /opt/openssl/lib/libssl.a(ssl_algs.o)
 COMP_CTX_free   /opt/openssl/lib/libssl.a(t1_enc.o)
 EVP_des_ede3_cbc/opt/openssl/lib/libssl.a(ssl_algs.o)
 EVP_enc_null/opt/openssl/lib/libssl.a(ssl_ciph.o)
 EVP_des_cbc /opt/openssl/lib/libssl.a(ssl_algs.o)
 EVP_rc2_cbc /opt/openssl/lib/libssl.a(ssl_algs.o)
 HMAC_cleanup/opt/openssl/lib/libssl.a(t1_enc.o)
 d2i_DHparams/opt/openssl/lib/libssl.a(ssl_cert.o)
 EVP_rc4 /opt/openssl/lib/libssl.a(ssl_algs.o)
 PEM_read_bio_RSAPrivateKey  /opt/openssl/lib/libssl.a(ssl_rsa.o)
 PEM_read_bio_X509   /opt/openssl/lib/libssl.a(ssl_cert.o)
 EVP_EncryptInit /opt/openssl/lib/libssl.a(s2_enc.o)
 COMP_compress_block /opt/openssl/lib/libssl.a(s3_pkt.o)
 BIO_f_buffer/opt/openssl/lib/libssl.a(ssl_lib.o)
 COMP_expand_block   /opt/openssl/lib/libssl.a(s3_pkt.o)
 HMAC_Update /opt/openssl/lib/libssl.a(t1_enc.o)
 PEM_read_bio_PrivateKey /opt/openssl/lib/libssl.a(ssl_rsa.o)
 EVP_DecryptInit /opt/openssl/lib/libssl.a(s2_enc.o)
 X509_STORE_load_locations   /opt/openssl/lib/libssl.a(ssl_lib.o)
 EVP_CipherInit  /opt/openssl/lib/libssl.a(t1_enc.o)
 EVP_dss1/opt/openssl/lib/libssl.a(ssl_algs.o)
 X509_STORE_set_default_paths/opt/openssl/lib/libssl.a(ssl_lib.o)
 X509_certificate_type   /opt/openssl/lib/libssl.a(s3_srvr.o)
 COMP_CTX_new/opt/openssl/lib/libssl.a(t1_enc.o)
 EVP_idea_cbc/opt/openssl/lib/libssl.a(ssl_algs.o)
 HMAC_Final  /opt/openssl/lib/libssl.a(t1_enc.o)
 i2d_DHparams/opt/openssl/lib/libssl.a(ssl_cert.o)
 

Re: [PHP-DEV] associative arrays

2001-08-13 Thread Markus Fischer

I was just kidding, really. I'm using the docs there all day long
..

But his neested example was just nice.

- Markus

On Mon, Aug 13, 2001 at 12:38:18PM +0300, Zeev Suraski wrote : 
 Actually, this is quite well documented, if you actually try to look the 
 documentation up...
 
 http://www.zend.com/apidoc/x1243.php
 
 Zeev
 
 At 12:24 13-08-01, Markus Fischer wrote:
 go Rasmus go! :-)
 
 Some more examples and we seriously can extend zend.com/apidoc .
 
 Such examples are of great value to anyone who is new to writing php
 extension.
 
 - Markus
 
 On Mon, Aug 13, 2001 at 02:14:01AM -0700, Rasmus Lerdorf wrote :
  Ah, ok.  It's not much harder:
 
pval *tmp_arr;
 
array_init(return_value);
MAKE_STD_ZVAL(tmp_arr);
array_init(tmp_arr);
add_assoc_string(tmp_arr, string index, foo, 1);
zend_hash_index_update(Z_ARRVAL_P(return_value), 5, tmp_arr, 
 sizeof(tmp_arr), NULL);
 
  This will create  $whatever[5]['string index'] = 'foo'
 
  Or if you want a string index at the top level:
 
zend_hash_update(Z_ARRVAL_P(return_value), bar, strlen(bar)+1, 
 tmp_arr, sizeof(tmp_arr), NULL);
 
  This will create  $whatever['bar']['string index'] = 'foo';
 
  -Rasmus
 
  On Mon, 13 Aug 2001, Thomas Wentzel wrote:
 
   Uhhh sorry!
  
   What I should have said is that... The associative array I wish to
   return is to be an array element of  an associative array ;)
   Meaning... I need the functionality of add_assoc_array but since
   this function doesn't exist - I have to manipulate with the
   zend_hash_xxx in order to get what I want - but I fail to connect
   my constructed array with a name...
  
   Rasmus Lerdorf wrote:
   
 I was wondering if someone would be so nice as to post a code
 snippet that returns an associative array... I'm writing an
 extension and am only able to return an ordinary array...
 Alternatively I would be very interested if someone could
 point me to some documentation on the zend_hash_xxx functions
   
array_init(return_value);
add_assoc_string(return_value, string index, your_char_var, 1);
add_assoc_double(return_value, another one, your_long_var);
   
That's all.  Last arg on add_assoc_string() should be 1 if you 
 need to
make a copy of the string.  If the char * you are passing was 
 allocated by
you using emalloc() then don't make a copy.
   
You don't need any zend_hash_xxx functions to just return an 
 associative
array.
   
-Rasmus
  
  
  
 
 
  --
  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]
 
 --
 Markus Fischer,  http://guru.josefine.at/~mfischer/
 EMail: [EMAIL PROTECTED]
 PGP Public  Key: http://guru.josefine.at/~mfischer/C2272BD0.asc
 PGP Fingerprint: D3B0 DD4F E12B F911 3CE1  C2B5 D674 B445 C227 2BD0
   -All your scripts are belong to Zend-
 
 --
 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]
 
 --
 Zeev Suraski [EMAIL PROTECTED]
 CTO   co-founder, Zend Technologies Ltd. http://www.zend.com/

-- 
Markus Fischer,  http://guru.josefine.at/~mfischer/
EMail: [EMAIL PROTECTED]
PGP Public  Key: http://guru.josefine.at/~mfischer/C2272BD0.asc
PGP Fingerprint: D3B0 DD4F E12B F911 3CE1  C2B5 D674 B445 C227 2BD0
  -All your scripts are belong to Zend-

-- 
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]




Re: [PHP-DEV] associative arrays

2001-08-13 Thread Zeev Suraski

At 12:47 13-08-01, Markus Fischer wrote:
I was just kidding, really.

You sure have fooled me ;)

Zeev


-- 
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]




Re: [PHP-DEV] profiler?

2001-08-13 Thread Olivier Bourgeois

Le Fri, 10 Aug 2001 12:10:26 -0700 (PDT)
Brian Moore [EMAIL PROTECTED] a ecrit :

 hello,
 
 i'd like to begin work on a php profiler, as my employer needs one, and
i
 couldn't find one. have i not looked hard enough or in the right place?
my
 employer is committed to allowing me to open source the project. i would
 like it if i could begin a discussion with the people responsible for
the
 front-end, compiler and runtime to ensure that the profiler can coexist
 and coevolve with php. in particular, i'd like it if releases of php did
 not break the profiler and vice-versa. does anyone here have ideas of
how
 it should be done? thanks much in advance,
 
 b
 

Hello,

you should take a look at this :

http://dd.cron.ru/dbg/home.php

It seems there has been a lot of work on this project, and I know the
debugger works fine, but I didn't tested the profiler ...
But I think you don't need to start another project, unless you need some
specific options :-)

Olivier.


-- 
Feminism, n.:
A political position which seeks to rebuild society so that
both men and women are treated as women wish to be treated.

-- 
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 #12713: felix

2001-08-13 Thread ba-ok

From: [EMAIL PROTECTED]
Operating system: linux
PHP version:  4.0.6
PHP Bug Type: Feature/Change Request
Bug description:  felix

It seems that the function addslashes() donesn't work correctly now. I
write a program with the sql:
insert into member(membername,photo)
values('$membername','.addslashes($picdata).')
It worked correctly on php 4.02,but now cannt.so I want know what happened
and how to correct it.

sorry for my poor english.
-- 
Edit bug report at: http://bugs.php.net/?id=12713edit=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] CVS Account Request

2001-08-13 Thread CVS Account Request

Full name: Mika Tuupola
Email: [EMAIL PROTECTED]
ID:tuupola
Purpose:   Allready have an account. Have lost / forgotten the password during summer.

-- 
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] Re: profiler?

2001-08-13 Thread Harald Radi

http://dd.cron.ru/dbg

this is a debugger and profiler for win and linux

harald.

Brian Moore [EMAIL PROTECTED] schrieb im Newsbeitrag
news:[EMAIL PROTECTED]...
 hello,
 
 i'd like to begin work on a php profiler, as my employer needs one, 
 and i couldn't find one. have i not looked hard enough or in the right

 place? my employer is committed to allowing me to open source the 
 project. i would like it if i could begin a discussion with the people

 responsible for the front-end, compiler and runtime to ensure that the

 profiler can coexist and coevolve with php. in particular, i'd like it

 if releases of php did not break the profiler and vice-versa. does 
 anyone here have ideas of how it should be done? thanks much in 
 advance,
 
 b
 
 
 
 


-- 
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 #12711 Updated: crashing on clean install including the php_mssql.dll

2001-08-13 Thread kim_andersen

ID: 12711
User updated by: [EMAIL PROTECTED]
Reported By: [EMAIL PROTECTED]
Old Status: Open
Status: Closed
Bug Type: MSSQL related
Operating System: Windows 2000 Server
PHP Version: 4.0.6
New Comment:

*blush* well, rather admit being lame than wasting precious time. It seems that it for 
some reason or another didn't crash not finding the pdf dll, but when not finding the 
mssql dll. Anyways, I was wrong. The php engine looked the wrong place, and that was 
the error. I sincerely apologise if anyone wasted any time on this...

Previous Comments:


[2001-08-13 03:19:56] [EMAIL PROTECTED]

Installing PHP4.0.6 on a clean IIS5.0 machine. Including the php_mssql.dll (which 
exists on the given location) makes php crash. It loads php_gd.dll and php_pdf.dll 
without any problems.





Edit this bug report at http://bugs.php.net/?id=12711edit=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 #12711 Updated: crashing on clean install including the php_mssql.dll

2001-08-13 Thread cynic

ID: 12711
Updated by: cynic
Reported By: [EMAIL PROTECTED]
Old Status: Closed
Status: Bogus
Bug Type: MSSQL related
Operating System: Windows 2000 Server
PHP Version: 4.0.6
New Comment:

user error - bogus

Previous Comments:


[2001-08-13 09:07:33] [EMAIL PROTECTED]

*blush* well, rather admit being lame than wasting precious time. It seems that it for 
some reason or another didn't crash not finding the pdf dll, but when not finding the 
mssql dll. Anyways, I was wrong. The php engine looked the wrong place, and that was 
the error. I sincerely apologise if anyone wasted any time on this...



[2001-08-13 03:19:56] [EMAIL PROTECTED]

Installing PHP4.0.6 on a clean IIS5.0 machine. Including the php_mssql.dll (which 
exists on the given location) makes php crash. It loads php_gd.dll and php_pdf.dll 
without any problems.





Edit this bug report at http://bugs.php.net/?id=12711edit=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 #12714: error on compiling with oracle8i

2001-08-13 Thread bardal

From: [EMAIL PROTECTED]
Operating system: SunOS  5.7 
PHP version:  4.0.6
PHP Bug Type: Compile Warning
Bug description:  error on compiling with oracle8i

./configure --prefix=/local/home/php --with-apache=../apache_1.3.20
--with-oci8=../../oracle/app/oracle/product/8.0.3/ --enable-track-vars

make[3]: Entering directory `/local/home/Fontes/php-4.0.6/ext/oci8'
gcc  -I. -I/local/home/Fontes/php-4.0.6/ext/oci8
-I/local/home/Fontes/php-4.0.6/
main -I/local/home/Fontes/php-4.0.6
-I/local/home/Fontes/apache_1.3.20/src/inclu
de -I/local/home/Fontes/apache_1.3.20/src/os/unix
-I/local/home/Fontes/php-4.0.6
/Zend -I/local/home/Fontes/php-4.0.6/ext/mysql/libmysql
-I/local/home/oracle/app
/oracle/product/8.0.3/network/public
-I/local/home/oracle/app/oracle/product/8.0
.3/plsql/public -I/local/home/Fontes/php-4.0.6/ext/xml/expat/xmltok
-I/local/hom
e/Fontes/php-4.0.6/ext/xml/expat/xmlparse
-I/local/home/Fontes/php-4.0.6/TSRM  -
D_POSIX_PTHREAD_SEMANTICS -DSUPPORT_UTF8 -DXML_BYTE_ORDER=21 -g -O2  -c
oci8.c 
 touch oci8.lo
oci8.c: In function `php_if_ocicollgetelem':
oci8.c:4480: warning: passing arg 7 of `OCIDateToText' from incompatible
pointer  type
oci8.c: In function `php_if_ocicollassignelem':
oci8.c:4604: `dword' undeclared (first use in this function)
oci8.c:4604: (Each undeclared identifier is reported only once
oci8.c:4604: for each function it appears in.)
oci8.c:4604: parse error before `)'
oci8.c:4626: parse error before `)'
oci8.c:4657: parse error before `)'
make[3]: *** [oci8.lo] Error 1

-- 
Edit bug report at: http://bugs.php.net/?id=12714edit=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 #12715: IE download file twice when serve from DB.

2001-08-13 Thread miki

From: [EMAIL PROTECTED]
Operating system: Linux
PHP version:  4.0.6
PHP Bug Type: Output Control
Bug description:  IE download file twice when serve from DB.

When I download file stored on DB using IE, Its take me double the time
then Netscape takes.

I discovered that IE download the file twice.
one when the headers are read and latter when the file is requested
again.

here is the code:

?
$query =  select * from files where issue_id='$id';
$result = mysql_query ($query)
 or die (Invalid query);

 $data = @MYSQL_RESULT($result,0, file_data);
 $type = @MYSQL_RESULT($result,0, file_type);
 $file_name = @MYSQL_RESULT($result,0, file_name);
 $file_size = @MYSQL_RESULT($result,0, file_size);

 // # To force save file
 //header(Content-disposition: attachment; filename=\$file_name\);

 Header(Content-type: $type);
 header(Content-Length: $file_size);
 header(Content-Disposition: filename=$file_name);

 echo $data;
?

-- 
Edit bug report at: http://bugs.php.net/?id=12715edit=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]




Re: [PHP-DEV] associative arrays

2001-08-13 Thread Andrei Zmievski

On Mon, 13 Aug 2001, Rasmus Lerdorf wrote:
 Ah, ok.  It's not much harder:
 
   pval *tmp_arr;
 
   array_init(return_value);
   MAKE_STD_ZVAL(tmp_arr);
   array_init(tmp_arr);
   add_assoc_string(tmp_arr, string index, foo, 1);
   zend_hash_index_update(Z_ARRVAL_P(return_value), 5, tmp_arr, sizeof(tmp_arr), 
NULL);
 
 This will create  $whatever[5]['string index'] = 'foo'
 
 Or if you want a string index at the top level:
 
   zend_hash_update(Z_ARRVAL_P(return_value), bar, strlen(bar)+1, tmp_arr, 
sizeof(tmp_arr), NULL);
 
 This will create  $whatever['bar']['string index'] = 'foo';

There is add_assoc_zval()..

-Andrei

Computer, if you don't open that exit hatch this moment I shall zap straight
off to your major data banks and reprogram you with a very large axe.
-- Douglas Adams / The Hitchhiker's Guide to the Galaxy

-- 
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 #12713 Updated: felix

2001-08-13 Thread swm

ID: 12713
Updated by: swm
Reported By: [EMAIL PROTECTED]
Old Status: Open
Status: Feedback
Bug Type: Feature/Change Request
Operating System: linux
PHP Version: 4.0.6
New Comment:

More information is required here. Can we see some output
data? ie, echo your sql query string. (It looks like this
might be quite large. Best idea would be to output to a
text file and give a URL.)

Previous Comments:


[2001-08-13 06:12:23] [EMAIL PROTECTED]

It seems that the function addslashes() donesn't work correctly now. I write a program 
with the sql:
insert into member(membername,photo) 
values('$membername','.addslashes($picdata).')
It worked correctly on php 4.02,but now cannt.so I want know what happened and how to 
correct it.

sorry for my poor english.





Edit this bug report at http://bugs.php.net/?id=12713edit=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] Reserved keywords in PHP

2001-08-13 Thread teo

Are there any reserved keywords in PHP put aside for future development?

I am looking for some guidelines of avoiding name clashes with future PHP
development. For example, if I write a function named import() and then
suddenly the import() becomes a language construct it will suck.

So, any names set aside with don't use stuck on them? Any rules (a la _NAMES
in C) ?

-- teodor

-- 
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 #12715 Updated: IE download file twice when serve from DB.

2001-08-13 Thread sniper

ID: 12715
Updated by: sniper
Reported By: [EMAIL PROTECTED]
Old Status: Open
Status: Bogus
Bug Type: Output Control
Operating System: Linux
PHP Version: 4.0.6
New Comment:

Not a bug. Ask further support questions on the appropriate
mailing list: http://www.php.net/support.php



Previous Comments:


[2001-08-13 09:53:08] [EMAIL PROTECTED]

When I download file stored on DB using IE, Its take me double the time then Netscape 
takes.

I discovered that IE download the file twice.
one when the headers are read and latter when the file is requested again.

here is the code:

?
$query =  select * from files where issue_id='$id';
$result = mysql_query ($query)
 or die (Invalid query);

 $data = @MYSQL_RESULT($result,0, file_data);
 $type = @MYSQL_RESULT($result,0, file_type);
 $file_name = @MYSQL_RESULT($result,0, file_name);
 $file_size = @MYSQL_RESULT($result,0, file_size);

 // # To force save file
 //header(Content-disposition: attachment; filename=\$file_name\);

 Header(Content-type: $type);
 header(Content-Length: $file_size);
 header(Content-Disposition: filename=$file_name);

 echo $data;
?






Edit this bug report at http://bugs.php.net/?id=12715edit=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]




Re: [PHP-DEV] PHP vs. Zend paranoia?

2001-08-13 Thread Andi Gutmans

At 11:46 PM 8/12/2001 +0300, Alexander Bokovoy wrote:
I've took some time to read Zend2 specs and also would like to propose
additions in a month or so if it isn't so far from deadline.
Unfortunately, there is not much time to do so right now...

Just getting the basic infrastructure for the new object model to work and 
run reliably will probably take a while so that's no problem. Whenever you 
have a proposal ready just bring it up.

Andi


-- 
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] CVS Account Request

2001-08-13 Thread CVS Account Request

Full name: Sander Roobol
Email: [EMAIL PROTECTED]
ID:sander
Purpose:   Maintaining the bug database: closing bugs, testing bugs on new versions, 
etc...

-- 
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 #12620 Updated: PHP.exe is causing access violations when shutting down

2001-08-13 Thread peterd

ID: 12620
User updated by: [EMAIL PROTECTED]
Reported By: [EMAIL PROTECTED]
Status: Open
Bug Type: Reproducible crash
Operating System: Windows NT 4 Server
PHP Version: 4.0.6
New Comment:

PHP is still crashing in shutdown_memory_manager() although I've now found that if I 
compile PHP with ZEND_DISABLE_MEMORY_CACHE set to 1, the problems don't occur.

I'm still unable to provide a short section of code that reproduces the problem as 
doing something as simple as adding 

echo hello; 

to a page that crashes can stop it from crashing.  

If I remove a function that isn't even called it can sometimes stop crashing, other 
times it continues to crash no matter what you change, it seems quite random but if a 
page crashes it does it consistently.  It's just that changing them in the slightest 
way can seem to alter the behaviour significantly

Does anyone know anything that might cause the memory manager to fail like this, or 
even if compiling PHP with ZEND_DISABLE_MEMORY_CACHE 1 is a reasonable thing to do?

Previous Comments:


[2001-08-07 09:19:52] [EMAIL PROTECTED]

I've been using the v4.06 windows binaries from this site and have been suffering 
repeated crashes as PHP closes down.  

The crash is either reported as just in PHP and other times OLEMainThreadWndName is 
reported in the error.  It varies between write and read violations too.

I've traced through the code and have tracked it down to an access violation in the 
function shutdown_memory_manager().

Also when using the win32 debug build of PHP the error does not occur, only with the 
release version.

The app I'm working on has database connections and uses COM objects.  The error seems 
to be slightly related to the database side although I've not been able to produce a 
small section of code that causes the same error.  I'm using the ADODB wrapper for 
database access although the same error has occurred when using the built-in ODBC 
functions.

I can't see that I'm doing anything wrong but there's definitely something that PHP 
isn't liking.

Below is the main function I use to get results from a database, when all the code is 
commented out inside this function the error doesn't occur but a lot of other stuff in 
the app doesn't happen either so that doesn't say much really.  Is there anything 
blatantly wrong with the code below?

function GetDirectoryQueryResults($szSQL)
{
$objConn = ADONewConnection('ado');

$objConn-Connect(Directory);

$objRS = $objConn-Execute($szSQL);

if (!$objRS-EOF) 
$retval = $objRS-GetRows();


$objRS-Close();
$objConn-Close();

return $retval;
}



Cheers!






Edit this bug report at http://bugs.php.net/?id=12620edit=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 #12716: Add the imagecopyresizedbicubic function

2001-08-13 Thread jonathan

From: [EMAIL PROTECTED]
Operating system: Red Hat Linux 7.1
PHP version:  4.0.6
PHP Bug Type: Feature/Change Request
Bug description:  Add the imagecopyresizedbicubic function

Hi, I would very much like to see you add the imagecopyresizedbicubic
function to the list of PHP/GD functions (as described in the user comments
of the imagecopyresized function docs) to a new release of PHP. I don't
know if you are already planning this (I couldn't find anything on it), but
judging by the size of the newsgroup archives on this topic I think I am
not the only one. It really is a great function to create thumbnails from
uploaded images.

I hope to hear from you soon and thank you for PHP!
-- 
Edit bug report at: http://bugs.php.net/?id=12716edit=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 #12717: apache 1.3.20 with PHP 4.0.6 and oci8 DSO crashes on startup

2001-08-13 Thread andrew

From: [EMAIL PROTECTED]
Operating system: Compaq Tru64 UNIX V5.1
PHP version:  4.0.6
PHP Bug Type: Dynamic loading
Bug description:  apache 1.3.20 with PHP 4.0.6 and oci8 DSO crashes on startup

LIBS set to -pthread in environment
./configure --prefix=/local \
--with-config-file-path=/src/web/apache-d/apache_1.3.20 \
--localstatedir=/host/share/apache \
--sysconfdir=/host/etc/apache \
--datadir=/host/share/apache \
--enable-force-cgi-redirect \
--with-apxs \
--with-oci8

# ldd /host/sbin/httpd 
Main  =   /host/sbin/httpd
libpthread.so  =   /usr/shlib/libpthread.so
libm.so  =   /usr/shlib/libm.so
libc.so  =   /usr/shlib/libc.so
libexc.so  =   /usr/shlib/libexc.so

running with LD_LIBRARY_PATH set to normal libdirs + oracle lib.

It crashes with no core or trace in the logs shortly after startup.
Running in -X mode it works fine.  Also, startup without php, then
editting php back into the conf file and doing a graceful startup
works as well.



-- 
Edit bug report at: http://bugs.php.net/?id=12717edit=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] CVS Account Request

2001-08-13 Thread CVS Account Request

Full name: Maxim Derkachev
Email: [EMAIL PROTECTED]
ID:maxud
Purpose:   Committing to the PEAR CVS


-- 
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 #12718: com_invoke always seems to return false

2001-08-13 Thread n . morse

From: [EMAIL PROTECTED]
Operating system: Win 2k
PHP version:  4.0.6
PHP Bug Type: COM related
Bug description:  com_invoke always seems to return false

I created a simple COM objecj in Vis C++.  It has a method hello on it
that does nothing except return S_OK, and a property bar that returns a
string.

I can use com_load to create the object and I can get the property string
back out (com_propget), but if I call hello then it returns FALSE.

$svr = com_load( SIMPLECOMASP.NKMSimpleObj );
$foo = com_invoke( $svr, hello );

if ( $foo )
  echo $foo;
else
  echo No;

I created another method taking a BSTR input and a BSTR* output and that
always returns false with the output being empty.  I tried the calls from
VB as well, and they seem to work OK, so the COM oject looks functional. If
I run the COM exe from the debugger, I can trace through the functions - so
they *are* being called, just a bogus return code from somewhere.

-- 
Edit bug report at: http://bugs.php.net/?id=12718edit=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 #12719: extract($array, EXTR_PREFIX_ALL, .$int) fails

2001-08-13 Thread jpb1

From: [EMAIL PROTECTED]
Operating system: Solaris 2.8
PHP version:  4.0.5
PHP Bug Type: Arrays related
Bug description:  extract($array, EXTR_PREFIX_ALL, .$int) fails

Under PHP 3.0.16, I could use the extract function to append extract
variables from an array and attach a prefix to each one. Often, this was a
number. I could do it because .$int made the integer $int into a string.
However, under PHP 4.0.5, the same operation returns 0, even if I use
settype to make $int into a string beforehand. The only solution I can find
is to use something like:
extract($array, EXTR_PREFIX_ALL, x.$int)

instead of 

extract($array, EXTR_PREFIX_ALL, .$int)

(In all of my examples, $array is the product of mysql_fetch_assoc()).


-- 
Edit bug report at: http://bugs.php.net/?id=12719edit=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]




Re: [PHP-DEV] Bug #12716: Add the imagecopyresizedbicubic function

2001-08-13 Thread Sander Roobol

I can't close this bug yet but I'm sure somebody will... It's a duplicate of
9875...

Thanks,
Sander

- Original Message -
From: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, August 13, 2001 5:23 PM
Subject: [PHP-DEV] Bug #12716: Add the imagecopyresizedbicubic function


 From: [EMAIL PROTECTED]
 Operating system: Red Hat Linux 7.1
 PHP version:  4.0.6
 PHP Bug Type: Feature/Change Request
 Bug description:  Add the imagecopyresizedbicubic function

 Hi, I would very much like to see you add the imagecopyresizedbicubic
 function to the list of PHP/GD functions (as described in the user
comments
 of the imagecopyresized function docs) to a new release of PHP. I don't
 know if you are already planning this (I couldn't find anything on it),
but
 judging by the size of the newsgroup archives on this topic I think I am
 not the only one. It really is a great function to create thumbnails from
 uploaded images.

 I hope to hear from you soon and thank you for PHP!
 --
 Edit bug report at: http://bugs.php.net/?id=12716edit=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 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 #12719 Updated: extract($array, EXTR_PREFIX_ALL, .$int) fails

2001-08-13 Thread andrei

ID: 12719
Updated by: andrei
Reported By: [EMAIL PROTECTED]
Old Status: Open
Status: Closed
Bug Type: Arrays related
Operating System: Solaris 2.8
PHP Version: 4.0.5
New Comment:

Prefixing it with a number would create an invalid variable name according to PHP 
rules, so that is why it fails.

Previous Comments:


[2001-08-13 11:48:00] [EMAIL PROTECTED]

Under PHP 3.0.16, I could use the extract function to append extract variables from an 
array and attach a prefix to each one. Often, this was a number. I could do it because 
.$int made the integer $int into a string. However, under PHP 4.0.5, the same 
operation returns 0, even if I use settype to make $int into a string beforehand. The 
only solution I can find is to use something like:
extract($array, EXTR_PREFIX_ALL, x.$int)

instead of 

extract($array, EXTR_PREFIX_ALL, .$int)

(In all of my examples, $array is the product of mysql_fetch_assoc()).







Edit this bug report at http://bugs.php.net/?id=12719edit=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 #12716 Updated: Add the imagecopyresizedbicubic function

2001-08-13 Thread cynic

ID: 12716
Updated by: cynic
Reported By: [EMAIL PROTECTED]
Old Status: Open
Status: Duplicate
Bug Type: Feature/Change Request
Operating System: Red Hat Linux 7.1
PHP Version: 4.0.6
New Comment:

#9875

Previous Comments:


[2001-08-13 11:23:17] [EMAIL PROTECTED]

Hi, I would very much like to see you add the imagecopyresizedbicubic function to the 
list of PHP/GD functions (as described in the user comments of the imagecopyresized 
function docs) to a new release of PHP. I don't know if you are already planning this 
(I couldn't find anything on it), but judging by the size of the newsgroup archives on 
this topic I think I am not the only one. It really is a great function to create 
thumbnails from uploaded images.

I hope to hear from you soon and thank you for PHP!





Edit this bug report at http://bugs.php.net/?id=12716edit=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]




Re: [PHP-DEV] Patch for ext/java/java.c

2001-08-13 Thread Andi Gutmans

At 04:19 AM 8/13/2001 +0200, Alexander Wirtz wrote:
Good morning (or evening ? ;-)),

I made another patch, because java.c ran into difficulties with ZE2.
Let's hope, that everything is ok, cause I'm really tired...

Wirtz,

I don't have the Java build setup here. I commited a patch similar to yours 
so please check it and let me know if it fixes your problems.

Thanks,

Andi


-- 
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 #12720: An unnecessary extra slash

2001-08-13 Thread pulstar

From: [EMAIL PROTECTED]
Operating system: Linux RedHat 7.1
PHP version:  4.0.6
PHP Bug Type: Session related
Bug description:  An unnecessary extra slash

input type=hidden name=PHPSESSID
value=28d352f895d1d14d2121e32d80a69299 /

When cookies are not available, PHP auto append the input above in each
form of my page. My question is: why that slash is there in the end of the
tag? It is making trouble in my site...

-- 
Edit bug report at: http://bugs.php.net/?id=12720edit=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 #12720 Updated: An unnecessary extra slash

2001-08-13 Thread swm

ID: 12720
Updated by: swm
Reported By: [EMAIL PROTECTED]
Old Status: Open
Status: Closed
Bug Type: Session related
Operating System: Linux RedHat 7.1
PHP Version: 4.0.6
New Comment:

The extra slash is so that PHP is in compliance with XHTML
1.0. See http://www.w3.org/MarkUp/ for more information.

Also, if this is causing your applications problems, you
may be designing them incorrectly.

Previous Comments:


[2001-08-13 12:04:48] [EMAIL PROTECTED]

input type=hidden name=PHPSESSID value=28d352f895d1d14d2121e32d80a69299 /

When cookies are not available, PHP auto append the input above in each form of my 
page. My question is: why that slash is there in the end of the tag? It is making 
trouble in my site...






Edit this bug report at http://bugs.php.net/?id=12720edit=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 #12718 Updated: com_invoke always seems to return false

2001-08-13 Thread n . morse

ID: 12718
User updated by: [EMAIL PROTECTED]
Reported By: [EMAIL PROTECTED]
Status: Open
Bug Type: COM related
Operating System: Win 2k
PHP Version: 4.0.6
New Comment:

Just to add to this: If I make the return value a retval in the IDL then I can use 
com_invoke and it works (for the same reason that a propget works). It just doesn't 
seem to like normal HRESULT return

Previous Comments:


[2001-08-13 11:35:58] [EMAIL PROTECTED]

I created a simple COM objecj in Vis C++.  It has a method hello on it that does 
nothing except return S_OK, and a property bar that returns a string.

I can use com_load to create the object and I can get the property string back out 
(com_propget), but if I call hello then it returns FALSE.

$svr = com_load( SIMPLECOMASP.NKMSimpleObj );
$foo = com_invoke( $svr, hello );

if ( $foo )
  echo $foo;
else
  echo No;

I created another method taking a BSTR input and a BSTR* output and that always 
returns false with the output being empty.  I tried the calls from VB as well, and 
they seem to work OK, so the COM oject looks functional. If I run the COM exe from the 
debugger, I can trace through the functions - so they *are* being called, just a bogus 
return code from somewhere.






Edit this bug report at http://bugs.php.net/?id=12718edit=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]




Re: [PHP-DEV] Patch for ext/java/java.c

2001-08-13 Thread Alexander Wirtz

Hi Andi,

Wirtz,

I don't have the Java build setup here. I commited a patch similar to yours 
so please check it and let me know if it fixes your problems.

yup, looking good...and my name's Alexander :-) Wirtz is my surname...

Cheers,
Alex

-- 
| Alexander Wirtz   | eMail: [EMAIL PROTECTED]|
| web@ctive GmbH| WWW:   http://www.web-active.com/  |

-- 
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 #12700 Updated: 502 Gateway Error/Failed to Return Headers

2001-08-13 Thread paul . burden

ID: 12700
User updated by: [EMAIL PROTECTED]
Reported By: [EMAIL PROTECTED]
Status: Open
Bug Type: IIS related
Operating System: Windows 2000 Server
PHP Version: 4.0.6
New Comment:

Apologies,

After further searching though your bug database this appears to be a duplicate of 
#12562 and possibly #11788/#9852.

I would like to stress this is a serious issue for me.

Thanks,

- Paul.

Previous Comments:


[2001-08-11 12:40:08] [EMAIL PROTECTED]

I have installed and setup 4 different Windows 2000 Server Pro/Advanced machines with 
IIS, PHP 4.0.6, MSSQL Server 2000 and 7. All systems have variations in hardware 
configurations and performance, all of the systems have this identical problem. 

In the last 5 days there have been around 2000 site hits. IIS has logged 24 
occurrences of a 504 Gateway error. And returns CGI Failed to return headers. This 
error is *very* random. Out of the 35 .php documents, the error has occurred on 6. 
These 6 are also the most frequently requested documents on the server.

These documents are otherwise error free. 

Its not too hard to recreate the error. Several repeated requests of the same document 
that performs database requests will generate the error.

To me, it seems *completely* random. I have setup IIS to point to a document that 
causes a page refresh on a 502 error. The refresh action re-posts the page and the 
page will display correctly. 

This is a critical problem for me.  I have modified the IIS 502 error report document 
reload and resubmit the page that generated the error.

The only way I can re-create the crash is by hitting the same page UserDetail.php 10 
times in 10 seconds. The 10th request generated a 502 gateway error. NOTE: Crash 
still happens during normal activity as well.

IIS Logs:

200 Mozilla/4.0+(compatible;+MSIE+5.5;+Windows+NT+4.0)
2001-07-11 19:25:17 205.150.207.2 - 205.150.207.20 80 GET
/directory/UserDetail.php
SID=f2b31876e1822c10425ea4e1d13c01f3FriendStatusChange=1UserToView=5Search=3
200 Mozilla/4.0+(compatible;+MSIE+5.5;+Windows+NT+4.0)
2001-07-11 19:25:18 205.150.207.2 - 205.150.207.20 80 GET
/directory/UserDetail.php
SID=f2b31876e1822c10425ea4e1d13c01f3FriendStatusChange=1UserToView=5Search=3
200 Mozilla/4.0+(compatible;+MSIE+5.5;+Windows+NT+4.0)
2001-07-11 19:25:18 205.150.207.2 - 205.150.207.20 80 GET
/directory/UserDetail.php
SID=f2b31876e1822c10425ea4e1d13c01f3FriendStatusChange=1UserToView=5Search=3
200 Mozilla/4.0+(compatible;+MSIE+5.5;+Windows+NT+4.0)
2001-07-11 19:25:18 205.150.207.2 - 205.150.207.20 80 GET
/directory/UserDetail.php
SID=f2b31876e1822c10425ea4e1d13c01f3FriendStatusChange=1UserToView=5Search=3
502 Mozilla/4.0+(compatible;+MSIE+5.5;+Windows+NT+4.0)

^^ note the 502 Gateway error in the last line of the log.

no backtrace, you have no instructions on how to capture this in win32?


Thanks for your attention,

- Paul






Edit this bug report at http://bugs.php.net/?id=12700edit=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 #12721: PHP crashes at any code-highlight related command

2001-08-13 Thread chris

From: [EMAIL PROTECTED]
Operating system: Redhat/7.0, kernel 2.2.16
PHP version:  4.0.6
PHP Bug Type: Reproducible crash
Bug description:  PHP crashes at any code-highlight related command

I have (over several versions of apache and php) noticed a very strange
bug: PHP keeps crashing the Apache when using .phps files or any of the
highlight_*() family (including show_source, of course).

The child dies with SIG11, gdb output follows:

-- SNIP --
Core was generated by `/usr/local/apache/bin/httpd'.
Program terminated with signal 11, Segmentation fault.
#0  0x400097fd in ?? ()
(gdb) bt
#0  0x400097fd in ?? ()
#1  0x4000cea0 in ?? ()
#2  0x4000d020 in ?? ()
#3  0x8061793 in php_fopen_primary_script ()
#4  0x400cfbfc in ?? ()
-- SNAP --

phpinfo() is at http://www.de-punkt.de/info.php 

There have been *no* similar issues on this machine (i.e. a build of mysql,
which should evoke generic memory or CPU issues as well, runs through
pretty clean), it only keeps crashing with PHP (and the Zend Cache, that is
;-) ).


-- 
Edit bug report at: http://bugs.php.net/?id=12721edit=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 #12722: Re: extra slash / auto appending session ID

2001-08-13 Thread pulstar

From: [EMAIL PROTECTED]
Operating system: Red Hat 7.1
PHP version:  4.0.6
PHP Bug Type: Session related
Bug description:  Re: extra slash / auto appending session ID

The extra slash is so that PHP is in compliance with 
XHTML 1.0. 
See http://www.w3.org/MarkUp/ for more information.
Also, if this is causing your applications problems, 
you may be designing them incorrectly.

Well, I think the slash placed by PHP in the end of the INPUT tag was
misinterpreted by Internet Explorer, but not. Below are two examples. The
first are links without the session ID appended by PHP. The second is the
same links with the session ID automatically appended by PHP. I think it
append the ID because the cookie was not avaliable (I don't know why) when
the page was loaded at the first time. When I reload the page, it works
fine. This occurs everytime when I open the site in my browser.

a) Without appended session ID:

1) form action=main.php name=post method=post
input type=hidden name=hrefvars value=''
/form

2) td colspan=3 align=centera href='tools/redirect.php?key=8'img
width=468 height=60 src='banners/metro_banner1.jpg'
border=0/abrnbsp;/td

3) a href='http://www.abese.org' target='_blank'see more/a

4) div align=justifyThe most new option in electronic security. a
href='main.php?run=articlescur=2key=28'See more/a/div.

5) a href='tools/redirect.php?key=6'img width=234 height=60
src='banners/rent.gif' border=0/abrbr

a href='tools/redirect.php?key=5'img width=234 height=60
src='banners/banner2.jpg' border=0/abrbr


b) With appended session ID by PHP:

1) form action=main.php name=post method=postinput type=hidden
name=PHPSESSID value=a5b911cf5f2c235d82f6c7af1e05f7b4 /
input type=hidden name=hrefvars value=''
/form

2) td colspan=3 align=centera
href='tools/redirect.php?key=8'pkey=ign=centerPHPSESSID=a5b911cf5f2c235d82f6c7af1e05f7b4idden
name=hrefvars value=''img width=468 height=60
src='banners/metro_banner1.jpg' border=0/abrnbsp;/td

3) a href='http://www.abese.org' target='_blank'e.org' See more/a

4) div align=justifyThe most new option in electronic security. a
href='main.php?run=artigoscur=2key=28'ronicPHPSESSID=a5b911cf5f2c235d82f6c7af1e05f7b4
See more/a.

5) a
href='tools/redirect.php?key=6'p?key=PHPSESSID=a5b911cf5f2c235d82f6c7af1e05f7b4img
width=234 height=60 src='banners/rent.gif' border=0/abrbr

6) a
href='tools/redirect.php?key=5'p?key=c='banners/PHPSESSID=a5b911cf5f2c235d82f6c7af1e05f7b4

img width=234 height=60 src='banners/banner2.jpg'
border=0/abrbr

The first append is correct, it have only that slash that I didn't knew
about. But some part of the html from it was placed over the second. As you
can see, it is making a mess in the resulting HTML. Are you sure this is a
bug in my application? :-)

-- 
Edit bug report at: http://bugs.php.net/?id=12722edit=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 #12716 Updated: Add the imagecopyresizedbicubic function

2001-08-13 Thread jonathan

ID: 12716
User updated by: [EMAIL PROTECTED]
Reported By: [EMAIL PROTECTED]
Status: Duplicate
Bug Type: Feature/Change Request
Operating System: Red Hat Linux 7.1
PHP Version: 4.0.6
New Comment:

Ok I checked there but I don't really see an answer!? Status is still open although 
the request is dated march 2001?

Previous Comments:


[2001-08-13 11:53:55] [EMAIL PROTECTED]

#9875



[2001-08-13 11:23:17] [EMAIL PROTECTED]

Hi, I would very much like to see you add the imagecopyresizedbicubic function to the 
list of PHP/GD functions (as described in the user comments of the imagecopyresized 
function docs) to a new release of PHP. I don't know if you are already planning this 
(I couldn't find anything on it), but judging by the size of the newsgroup archives on 
this topic I think I am not the only one. It really is a great function to create 
thumbnails from uploaded images.

I hope to hear from you soon and thank you for PHP!





Edit this bug report at http://bugs.php.net/?id=12716edit=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 #12723: Addition to bug 12507

2001-08-13 Thread pixl

From: [EMAIL PROTECTED]
Operating system: RedHat 6.2 (2.2.19)
PHP version:  4.0.6
PHP Bug Type: Scripting Engine problem
Bug description:  Addition to bug 12507


I have noticed the same problem as the user in bug #12507.

[root@www libexec]# mtrace ./libphp4.so.bak

Memory not freed:
-
   Address Size Caller
000  at

__
This version has the php-4.0.6-memlimit.diff patch applied. A few httpd
processes will consume large amounts of memory and processor, Apache must
be stopped and restarted to free it. We did not notice these issues untill
v4.0.5/4.0.6

_
System Linux www..com 2.2.19pre7 #1 SMP Wed Jan 24 17:04:44 CST
2001 alpha unknown 
Build Date Aug 13 2001 
Configure Command  './configure' '--with-apxs=/usr/local/apache/bin/apxs'
'--with-config-file-path=/usr/local/apache' '--with-gd' '--with-zlib'
'--with-gettext' '--enable-versioning' '--enable-inline-optimization'
'--disable-debug' '--enable-memory-limit' '--disable-display-source'
'--enable-sysvshm' '--enable-sysvsem' '--with-mysql=/usr' '--with-bz2'
'--with-freetype' '--enable-shared' 
Server API Apache 
Virtual Directory Support disabled 
Configuration File (php.ini) Path /usr/local/apache/php.ini 
ZEND_DEBUG disabled 
Thread Safety disabled 

___

memory_limit 24M 24M

_
APACHE_INCLUDE   
APACHE_TARGET   
Apache Version Apache/1.3.20 
Apache Release 10320100 
Apache API Version 19990320 
Hostname:Port www.goquest.com:80 
User/Group nobody(99)/99 
Max Requests Per Child: 1brKeep Alive: onbrMax Per Connection: 75

Timeouts Connection: 300brKeep-Alive: 15 
Server Root /usr/local/apache 
Loaded Modules mod_gzip, mod_php4, mod_setenvif, mod_access, mod_so,
mod_auth, mod_alias, mod_userdir, mod_asis, mod_cgi, mod_dir,
mod_autoindex, mod_include, mod_status, mod_negotiation, mod_mime,
mod_log_config, mod_env, mod_php3, http_core 

 
Peter



-- 
Edit bug report at: http://bugs.php.net/?id=12723edit=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 #12723 Updated: Addition to bug 12507

2001-08-13 Thread pixl

ID: 12723
User updated by: [EMAIL PROTECTED]
Reported By: [EMAIL PROTECTED]
Status: Open
Bug Type: Scripting Engine problem
Operating System: RedHat 6.2 (2.2.19)
PHP Version: 4.0.6
New Comment:

You may notice the the file is libphp4.so.bak - it is the same file as libphp4.so that 
the server is running.

Peter

Previous Comments:


[2001-08-13 14:22:48] [EMAIL PROTECTED]


I have noticed the same problem as the user in bug #12507.

[root@www libexec]# mtrace ./libphp4.so.bak

Memory not freed:
-
   Address Size Caller
000  at

__
This version has the php-4.0.6-memlimit.diff patch applied. A few httpd processes will 
consume large amounts of memory and processor, Apache must be stopped and restarted to 
free it. We did not notice these issues untill v4.0.5/4.0.6

_
System Linux www..com 2.2.19pre7 #1 SMP Wed Jan 24 17:04:44 CST 2001 alpha 
unknown 
Build Date Aug 13 2001 
Configure Command  './configure' '--with-apxs=/usr/local/apache/bin/apxs' 
'--with-config-file-path=/usr/local/apache' '--with-gd' '--with-zlib' '--with-gettext' 
'--enable-versioning' '--enable-inline-optimization' '--disable-debug' 
'--enable-memory-limit' '--disable-display-source' '--enable-sysvshm' 
'--enable-sysvsem' '--with-mysql=/usr' '--with-bz2' '--with-freetype' 
'--enable-shared' 
Server API Apache 
Virtual Directory Support disabled 
Configuration File (php.ini) Path /usr/local/apache/php.ini 
ZEND_DEBUG disabled 
Thread Safety disabled 

___

memory_limit 24M 24M

_
APACHE_INCLUDE   
APACHE_TARGET   
Apache Version Apache/1.3.20 
Apache Release 10320100 
Apache API Version 19990320 
Hostname:Port www.goquest.com:80 
User/Group nobody(99)/99 
Max Requests Per Child: 1brKeep Alive: onbrMax Per Connection: 75 
Timeouts Connection: 300brKeep-Alive: 15 
Server Root /usr/local/apache 
Loaded Modules mod_gzip, mod_php4, mod_setenvif, mod_access, mod_so, mod_auth, 
mod_alias, mod_userdir, mod_asis, mod_cgi, mod_dir, mod_autoindex, mod_include, 
mod_status, mod_negotiation, mod_mime, mod_log_config, mod_env, mod_php3, http_core 

 
Peter








Edit this bug report at http://bugs.php.net/?id=12723edit=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 #12723 Updated: Addition to bug 12507

2001-08-13 Thread pixl

ID: 12723
User updated by: [EMAIL PROTECTED]
Reported By: [EMAIL PROTECTED]
Status: Open
Bug Type: Scripting Engine problem
Operating System: RedHat 6.2 (2.2.19)
PHP Version: 4.0.6
New Comment:

You may notice the the file is libphp4.so.bak - it is the same file as libphp4.so that 
the server is running.

Peter

Previous Comments:


[2001-08-13 14:26:32] [EMAIL PROTECTED]

You may notice the the file is libphp4.so.bak - it is the same file as libphp4.so that 
the server is running.

Peter



[2001-08-13 14:22:48] [EMAIL PROTECTED]


I have noticed the same problem as the user in bug #12507.

[root@www libexec]# mtrace ./libphp4.so.bak

Memory not freed:
-
   Address Size Caller
000  at

__
This version has the php-4.0.6-memlimit.diff patch applied. A few httpd processes will 
consume large amounts of memory and processor, Apache must be stopped and restarted to 
free it. We did not notice these issues untill v4.0.5/4.0.6

_
System Linux www..com 2.2.19pre7 #1 SMP Wed Jan 24 17:04:44 CST 2001 alpha 
unknown 
Build Date Aug 13 2001 
Configure Command  './configure' '--with-apxs=/usr/local/apache/bin/apxs' 
'--with-config-file-path=/usr/local/apache' '--with-gd' '--with-zlib' '--with-gettext' 
'--enable-versioning' '--enable-inline-optimization' '--disable-debug' 
'--enable-memory-limit' '--disable-display-source' '--enable-sysvshm' 
'--enable-sysvsem' '--with-mysql=/usr' '--with-bz2' '--with-freetype' 
'--enable-shared' 
Server API Apache 
Virtual Directory Support disabled 
Configuration File (php.ini) Path /usr/local/apache/php.ini 
ZEND_DEBUG disabled 
Thread Safety disabled 

___

memory_limit 24M 24M

_
APACHE_INCLUDE   
APACHE_TARGET   
Apache Version Apache/1.3.20 
Apache Release 10320100 
Apache API Version 19990320 
Hostname:Port www.goquest.com:80 
User/Group nobody(99)/99 
Max Requests Per Child: 1brKeep Alive: onbrMax Per Connection: 75 
Timeouts Connection: 300brKeep-Alive: 15 
Server Root /usr/local/apache 
Loaded Modules mod_gzip, mod_php4, mod_setenvif, mod_access, mod_so, mod_auth, 
mod_alias, mod_userdir, mod_asis, mod_cgi, mod_dir, mod_autoindex, mod_include, 
mod_status, mod_negotiation, mod_mime, mod_log_config, mod_env, mod_php3, http_core 

 
Peter








Edit this bug report at http://bugs.php.net/?id=12723edit=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 #12724: persistent connections with postgres

2001-08-13 Thread peter

From: [EMAIL PROTECTED]
Operating system: Linux (RH 7.1)
PHP version:  4.0.4pl1
PHP Bug Type: Unknown/Other Function
Bug description:  persistent connections with postgres

I created a persistent connection to postgres (7.03).
I establish a connection for every page opened.
This in turn creates a new process (ps -aux|grep postgres)
which it should not.
I pass the connection parameters as one string. (I printed the string out
to make sure it did not change);

-- 
Edit bug report at: http://bugs.php.net/?id=12724edit=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] Third snapshot of Universe

2001-08-13 Thread David Eriksson

(Universe is a PHP Extension for accessing and creating CORBA objects.)

Hi!

Universe now compiles and runs on Windows.

You don't need to compile MICO yourself, all you need is in the MICO 
download I provide. Just extract it with the same parent directory as the 
php-4.0.6 directory. 

Information, download, demo and Windows binaries at:

  http://universe.2good.nu/

Regards,

-\- David Eriksson -/-

An expert in a particular computer language is really an expert
in the work-arounds necessary to use this language to perform 
useful work. - Richard B. Johnson

-- 
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 #12725: header (Location: index.php) ; does not work in Netscape6 on the Mac

2001-08-13 Thread four_the_web

From: [EMAIL PROTECTED]
Operating system: 
PHP version:  4.0.6
PHP Bug Type: HTTP related
Bug description:  header (Location: index.php) ; does not work in Netscape6 on the 
Mac

header (Location: index.php) ;
exit;

The above does NOT work on Netscape 6 on the Mac(only).
-- 
Edit bug report at: http://bugs.php.net/?id=12725edit=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]




Re: [PHP-DEV] Bug #12725: header (Location: index.php) ; does not work in Netscape6 on the Mac

2001-08-13 Thread Christian Joergensen

On Monday 13 August 2001 22:25, [EMAIL PROTECTED] wrote:

 header (Location: index.php) ;
 exit;

 The above does NOT work on Netscape 6 on the Mac(only).

Try using the full path including hostname and protocol, as described in the 
RFC, in your header.

-- 
Christian Jørgensen  |  Ford, you're turning into a penguin
http://www.razor.dk  |  Stop it 

-- 
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 #12718 Updated: com_invoke always seems to return false

2001-08-13 Thread phanto

ID: 12718
Updated by: phanto
Reported By: [EMAIL PROTECTED]
Old Status: Open
Status: Assigned
Bug Type: COM related
Operating System: Win 2k
PHP Version: 4.0.6
Old Assigned To: 
Assigned To: phanto
New Comment:

ok, i'll check this

just beeing nosily, what does

$svr = new COM(SIMPLECOMASP.NKMSimpleObj);
echo $svr-hello();


return ?

Previous Comments:


[2001-08-13 12:46:18] [EMAIL PROTECTED]

Just to add to this: If I make the return value a retval in the IDL then I can use 
com_invoke and it works (for the same reason that a propget works). It just doesn't 
seem to like normal HRESULT return



[2001-08-13 11:35:58] [EMAIL PROTECTED]

I created a simple COM objecj in Vis C++.  It has a method hello on it that does 
nothing except return S_OK, and a property bar that returns a string.

I can use com_load to create the object and I can get the property string back out 
(com_propget), but if I call hello then it returns FALSE.

$svr = com_load( SIMPLECOMASP.NKMSimpleObj );
$foo = com_invoke( $svr, hello );

if ( $foo )
  echo $foo;
else
  echo No;

I created another method taking a BSTR input and a BSTR* output and that always 
returns false with the output being empty.  I tried the calls from VB as well, and 
they seem to work OK, so the COM oject looks functional. If I run the COM exe from the 
debugger, I can trace through the functions - so they *are* being called, just a bogus 
return code from somewhere.






Edit this bug report at http://bugs.php.net/?id=12718edit=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 #12685 Updated: make install problem

2001-08-13 Thread mpespinoza

ID: 12685
User updated by: [EMAIL PROTECTED]
Reported By: [EMAIL PROTECTED]
Old Status: Feedback
Status: Open
Bug Type: Compile Failure
Operating System: Linux
PHP Version: 4.0.5
New Comment:

Which linux version EXACTLY is this? 

linux 2.0.34 slckware
On which platform?
libc5

What was the configure line you used to configure PHP ?

./configure --with-mysql=/usr/local/mysql --with -apxs=/usr/local/apache/sbin/apxs

What is your gcc version?
egcs-2.90.29 (egcs-1.0.3 release)


Previous Comments:


[2001-08-10 01:48:16] [EMAIL PROTECTED]

Which linux version EXACTLY is this? 
On which platform?
What was the configure line you used to configure PHP ?
What is your gcc version?

--Jani




[2001-08-09 23:17:06] [EMAIL PROTECTED]

I´m working with php 4.0.5 , apache 1.3.20 and mysql 3.22.32.
The problem is : whe i going to restar de server apache after that i do make 
install, i obtain the following message: 

Can´t resolve symbol open64
Can´t resolve symbol __lxstat64
Can´t resolve symbol fopen64

Can´t load /usr/local/apache/libexec/libphp4.so into server

I dont´use only /sbin/apachectl restart, i use /sbin/apachectl stop ant 
/sbin/apachectl start, too.


What can i doing?





Edit this bug report at http://bugs.php.net/?id=12685edit=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] Extra parameters for strtoupper(), strtolower()

2001-08-13 Thread J Smith


string strtoupper(string string [, int start [, int length]])
string strtolower(string string [, int start [, int length]])

The additional parameters would work in much the same fashion as substr(). 
I've implemented it in the latest cvs just for the hell of it.

Am I the only one who thinks this is even remotely useful? It isn't a big 
thing, but it's a lot easier to have this available than to chop up a 
string with substr() and then capitalize what you want. 

A pretty useless feature, I guess. Obviously, I'm pretty bored right now.

J

-- 
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 #12724 Updated: persistent connections with postgres

2001-08-13 Thread peter

ID: 12724
User updated by: [EMAIL PROTECTED]
Reported By: [EMAIL PROTECTED]
Status: Open
Old Bug Type: Unknown/Other Function
Bug Type: PostgreSQL related
Operating System: Linux (RH 7.1)
PHP Version: 4.0.4pl1
New Comment:

I rechecked the bug database and there are other reports which seem to complain about 
the same problem.
When my web page performs a pconnect it should connect to the previous process, if the 
process has been callesd with the same parameters (dbname, name, password, port).
I am running phpgroupware, and the php interpreter generated new connections 
(processes) when there were idle ones around.
 


Previous Comments:


[2001-08-13 15:15:14] [EMAIL PROTECTED]

I created a persistent connection to postgres (7.03).
I establish a connection for every page opened.
This in turn creates a new process (ps -aux|grep postgres)
which it should not.
I pass the connection parameters as one string. (I printed the string out to make sure 
it did not change);






Edit this bug report at http://bugs.php.net/?id=12724edit=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 #12724 Updated: persistent connections with postgres

2001-08-13 Thread derick

ID: 12724
Updated by: derick
Reported By: [EMAIL PROTECTED]
Old Status: Open
Status: Closed
Bug Type: PostgreSQL related
Operating System: Linux (RH 7.1)
PHP Version: 4.0.4pl1
New Comment:

This should be fixed in php 4.0.6. Please reopen if it still does not work correctly 
for you.

Derick

Previous Comments:


[2001-08-13 17:27:36] [EMAIL PROTECTED]

I rechecked the bug database and there are other reports which seem to complain about 
the same problem.
When my web page performs a pconnect it should connect to the previous process, if the 
process has been callesd with the same parameters (dbname, name, password, port).
I am running phpgroupware, and the php interpreter generated new connections 
(processes) when there were idle ones around.
 




[2001-08-13 15:15:14] [EMAIL PROTECTED]

I created a persistent connection to postgres (7.03).
I establish a connection for every page opened.
This in turn creates a new process (ps -aux|grep postgres)
which it should not.
I pass the connection parameters as one string. (I printed the string out to make sure 
it did not change);






Edit this bug report at http://bugs.php.net/?id=12724edit=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 #12727: Bad subdirs assumed in configure and in make

2001-08-13 Thread php-bug

From: [EMAIL PROTECTED]
Operating system: Solaris 7
PHP version:  4.0.6
PHP Bug Type: PostgreSQL related
Bug description:  Bad subdirs assumed in configure and in make

reproduceable - probably an easy fix

during ./configure and later (after I thought I fixed things) in the make,
the php install kept having trouble finding my install.  postgresql was
installed --prefix=/usr/local/pgsql/7.1.2/, and that path was supplied to
the program ($i).  However, it looked like that it assumed that libraries
and such were not immediately in that path.  For example, it looks in
$i/lib/pgsql and $i/lib/postgresql, where my path was (I though
predictable) $i/lib.  I did a ln -s /usr/local/pgsql/7.1.2/lib
/usr/local/lib/pgsql and other but that didn't work.  I mucked around with
the (impressive) config files adding paths and that only gave limited
progress.  I eventually did ln -s . pgsql in lib and other relevant
places and got much further.
   Then, in make, failure again, as the header file couldn't find the
include.  I added a hard path to the build/rules_common.mk (I believe the
variable was DEFS).
   I hope this helps.  Personal note, I hopped on IRC (efnet) to try and
get some advice.  Even though I asked an informed and intelligent (IMHO)
question, I still got the condesending knee-jerk responses.  I have now
been conditioned to a) never ever hope for any help from irc (especially
the ef) and b) never research an issue fully before asking a question.  If
you've done your research, you've spent TONS of times getting caught up,
just to find out you know more than who you're asking for help.  However
[James] was friendly and helpful, more so than anyone.  He deserves a free
beer!
-- 
Edit bug report at: http://bugs.php.net/?id=12727edit=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] AW: Re[3]: [Zend Engine 2] RFD: call backtrace

2001-08-13 Thread Harald Radi

 However, I think that even a simple dump will be a
 blessing as most PHP programmers must be quite used
 to print() style debugging now ;)

debugger like the http://dd.cron.ru/dbg are able to show you the call
stack and variable scopes even with actual php versions. so speed is
more important than backtrace availability, even though backtraces would
be nice if they would be catchable to create custom error logs.

harald.


-- 
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 #12728: PHP4DLL project fails to compile

2001-08-13 Thread jerry

From: [EMAIL PROTECTED]
Operating system: Win32
PHP version:  4.0.6
PHP Bug Type: Compile Failure
Bug description:  PHP4DLL project fails to compile

Using the project files directly from php-4.0.6.tar.gz 
I get the following compilation errors:

Please note that this is true for both Win32 debug and Win32 release
builds

Configuration: php4dll - Win32
Release
Compiling...
cyr_convert.c
..\TSRM\tsrm_win32.h(48) : error C2054: expected '(' to follow 'TSRM_API'
..\TSRM\tsrm_win32.h(48) : error C2085: 'tsrm_win32_startup' : not in
formal parameter list
..\TSRM\tsrm_win32.h(49) : error C2061: syntax error : identifier
'TSRM_API'
..\TSRM\tsrm_win32.h(50) : error C2054: expected '(' to follow 'TSRM_API'
..\TSRM\tsrm_win32.h(50) : error C2085: 'popen' : not in formal parameter
list
..\TSRM\tsrm_win32.h(51) : error C2061: syntax error : identifier
'TSRM_API'
fopen_wrappers.c
..\TSRM\tsrm_win32.h(48) : error C2054: expected '(' to follow 'TSRM_API'
..\TSRM\tsrm_win32.h(48) : error C2085: 'tsrm_win32_startup' : not in
formal parameter list
..\TSRM\tsrm_win32.h(49) : error C2061: syntax error : identifier
'TSRM_API'
..\TSRM\tsrm_win32.h(50) : error C2054: expected '(' to follow 'TSRM_API'
..\TSRM\tsrm_win32.h(50) : error C2085: 'popen' : not in formal parameter
list
..\TSRM\tsrm_win32.h(51) : error C2061: syntax error : identifier
'TSRM_API'
D:\data\download\php\php-4.0.6.tar\php-4.0.6\main\php_network.h(28) : fatal
error C1083: Cannot open include file: 'arpa/inet.h': No such file or
directory
main.c
..\TSRM\tsrm_win32.h(48) : error C2054: expected '(' to follow 'TSRM_API'
..\TSRM\tsrm_win32.h(48) : error C2085: 'tsrm_win32_startup' : not in
formal parameter list
..\TSRM\tsrm_win32.h(49) : error C2061: syntax error : identifier
'TSRM_API'
..\TSRM\tsrm_win32.h(50) : error C2054: expected '(' to follow 'TSRM_API'
..\TSRM\tsrm_win32.h(50) : error C2085: 'popen' : not in formal parameter
list
..\TSRM\tsrm_win32.h(51) : error C2061: syntax error : identifier
'TSRM_API'
cl.exe terminated at user request.
Tool execution canceled by user.

-- 
Edit bug report at: http://bugs.php.net/?id=12728edit=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] odbc_fetch_into and odbc_error problem

2001-08-13 Thread Tomas V.V.Cox

Hi,

I'm having some problems with the Pear DB odbc extension, here is the
talk about them with an Easysoft developer, if it can help on resolving
the bug.

Thanks,

Tomas V.V.Cox

PS.- Please request me any extra info you need.

 Martin J. Evans wrote:
  
  Tomas V.V.Cox wrote:
  I'm trying this code (if you understand php code):
 
  $cols = odbc_fetch_into($result, $rownum, $row);
  if (!$cols) {
  if ($errno = odbc_error($this-connection)) {
  var_dump($errno);
  die();
  }
  return null;
  }
 
  Sometimes works fine, but sometimes I get corrupted data in $errno (so
  I'm not able to catch fetch row errors). Ie:
  string(6) ft_@(
  string(4) ÄÎ
  string(6) thisX
  string(1) 
 
 
 There are problems in PHP and not the back end.
 
 The problems are:
 
 [1] there is no way in the odbc_fetch_into() to tell the
 difference between
 [a] an empty result-set
 [b] a non-empty result-set but the requested row did not
exist in the result-set
 [c] and an error
 odbc_fetch_into() returns false for all of these cases.
 [2] the odbc_fetch_into() function rarely calls odbc_sql_error
 (an internal php_odbc.c fn calling the ODBC SQLError fn).
 If SQLGetData to retrieve a column returns an error it will
 call odbc_sql_error but that is about all.
 
 The reason you are seeing garbage is simply that SQLError was
 never called and in any case, if you had an empty result-set or
 asked for a non-existant row there is no ODBC error -
 SQLExtendedFetch simply returns SQL_NO_DATA (which is not
 an error).
 
 
 Incidentally, I ran into problems on PHP 4.0.6 initially
 because I passed 1 for rownum into odbc_fetch_into. In this
 case I simply received the document contained no data
 message from my browser with no error in the PHP log and no
 error in my Apache log. I then found the comment in the PHP
 document saying you since 4.0.6 rownum HAS to be a variable.
 Surely this is a bug in PHP as well - my code was incorrect but
 PHP did not output anything in the error log at all - it was
 simply as if Apache had never passed the phtml to PHP.
 
 Martin
 --
 Martin J. Evans
 Easysoft Ltd, UK
 Development

-- 
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 #12718 Updated: com_invoke always seems to return false

2001-08-13 Thread phanto

ID: 12718
Updated by: phanto
Reported By: [EMAIL PROTECTED]
Old Status: Assigned
Status: Closed
Bug Type: COM related
Operating System: Win 2k
PHP Version: 4.0.6
Assigned To: phanto
New Comment:

fixed in cvs

Previous Comments:


[2001-08-13 16:37:27] [EMAIL PROTECTED]

ok, i'll check this

just beeing nosily, what does

$svr = new COM(SIMPLECOMASP.NKMSimpleObj);
echo $svr-hello();


return ?



[2001-08-13 12:46:18] [EMAIL PROTECTED]

Just to add to this: If I make the return value a retval in the IDL then I can use 
com_invoke and it works (for the same reason that a propget works). It just doesn't 
seem to like normal HRESULT return



[2001-08-13 11:35:58] [EMAIL PROTECTED]

I created a simple COM objecj in Vis C++.  It has a method hello on it that does 
nothing except return S_OK, and a property bar that returns a string.

I can use com_load to create the object and I can get the property string back out 
(com_propget), but if I call hello then it returns FALSE.

$svr = com_load( SIMPLECOMASP.NKMSimpleObj );
$foo = com_invoke( $svr, hello );

if ( $foo )
  echo $foo;
else
  echo No;

I created another method taking a BSTR input and a BSTR* output and that always 
returns false with the output being empty.  I tried the calls from VB as well, and 
they seem to work OK, so the COM oject looks functional. If I run the COM exe from the 
debugger, I can trace through the functions - so they *are* being called, just a bogus 
return code from somewhere.






Edit this bug report at http://bugs.php.net/?id=12718edit=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 #12729: Wrong parameters for odbc_fetch_into

2001-08-13 Thread ajmarks195

From: [EMAIL PROTECTED]
Operating system: Windows 2000
PHP version:  4.0.6
PHP Bug Type: ODBC related
Bug description:  Wrong parameters for odbc_fetch_into

odbc_fetch_into($results, number, $array) expects a variable to be passed
by reference for the second argument.  An error is generated for something
like:

odbc_fetch_into($results, $i++, $array);
-- 
Edit bug report at: http://bugs.php.net/?id=12729edit=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 #12713 Updated: felix

2001-08-13 Thread ba-ok

ID: 12713
User updated by: [EMAIL PROTECTED]
Reported By: [EMAIL PROTECTED]
Old Status: Feedback
Status: Open
Bug Type: Feature/Change Request
Operating System: linux
PHP Version: 4.0.6
New Comment:

some information can be seen at here:
http://www.windrose-cn.com/error.txt

sanx. :)

Previous Comments:


[2001-08-13 09:58:22] [EMAIL PROTECTED]

More information is required here. Can we see some output
data? ie, echo your sql query string. (It looks like this
might be quite large. Best idea would be to output to a
text file and give a URL.)



[2001-08-13 06:12:23] [EMAIL PROTECTED]

It seems that the function addslashes() donesn't work correctly now. I write a program 
with the sql:
insert into member(membername,photo) 
values('$membername','.addslashes($picdata).')
It worked correctly on php 4.02,but now cannt.so I want know what happened and how to 
correct it.

sorry for my poor english.





Edit this bug report at http://bugs.php.net/?id=12713edit=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 #12730: enable mem limit patch via zip please

2001-08-13 Thread coxfamily

From: [EMAIL PROTECTED]
Operating system: NT 4
PHP version:  4.0.6
PHP Bug Type: Feature/Change Request
Bug description:  enable mem limit patch via zip please

Hi,

Request that memory-enable-limit patch for 4.0.6 also be available in zip
format please for NT 4.0 Server SP6a hi-encrypt, running latest Apache and
PHP, etc.

With thanks,
Nick Quenson.

P.S. (Any experience with this?)
The use of http://www.phpwizard.net/projects/phpMyAdmin/, that is the
phpMyAdmin tool, for use between a web development machine and a remote
hosting provider, where should the tool reside? Does one operate it on the
dev machine or load the tool onto the remote hosting web server?
Would appreciate any advice or operational experience on this one. Regards
NQ.

-- 
Edit bug report at: http://bugs.php.net/?id=12730edit=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]




Re: [PHP-DEV] AW: Re[3]: [Zend Engine 2] RFD: call backtrace

2001-08-13 Thread George Schlossnagle

The APD debugger was designed specifically to do this sort f 
debugging/profiling by writing trace files to a specified dir.

http://apc.communityconnect.com/sources/apd-cvs.tar.gz

On Monday, August 13, 2001, at 06:47 PM, Harald Radi wrote:

 However, I think that even a simple dump will be a
 blessing as most PHP programmers must be quite used
 to print() style debugging now ;)

 debugger like the http://dd.cron.ru/dbg are able to show you the call
 stack and variable scopes even with actual php versions. so speed is
 more important than backtrace availability, even though backtraces would
 be nice if they would be catchable to create custom error logs.

 harald.


 --
 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 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] Re: [PHP-DOC] Bug #12550 Updated: rand() and mt_rand() don't behave as documented

2001-08-13 Thread Jeroen van Wolffelaar

 Now you assume that you need to pass arguments to these functions.
 Which is not the case. Here's the proto:

 /* {{{ proto int rand([int min, int max])
Returns a random number */

 So revert that patch. mt_rand()  / rand() accecpt either 2 parameters or
 none at all. It was at least LESS wrong before. Now it's totally wrong.

_if_ I remember right (not sure), there are now 2 proto's, one with no args,
and one with2 args.

That would mean it is correct now, though I agree with you that that proto
is better.

I prefer your patch though, although it is IMO a hack. But the result was
correct.

Jeroen


 --Jani

 p.s. Egon, you still haven't explained me why my patch was wrong?


 On 12 Aug 2001 [EMAIL PROTECTED] wrote:

 ID: 12550
 Updated by: jeroen
 Reported By: [EMAIL PROTECTED]
 Old Status: Open
 Status: Closed
 Bug Type: Documentation problem
 Operating System: N/A
 PHP Version: 4.0.6
 New Comment:
 
 Fixed. Hope this _is_ accepted...
 
 --Jeroen
 
 Previous Comments:
 
 
 [2001-08-09 03:17:38] [EMAIL PROTECTED]
 
 Reopened. My workaround wasn't accepted either. :)
 
 --Jani
 
 
 
 
 [2001-08-09 01:56:09] [EMAIL PROTECTED]
 
 I have committed yet another fix for this..
 
 --Jani
 
 
 
 
 [2001-08-08 16:59:08] [EMAIL PROTECTED]
 
 Reopened, since DSSSL doesn't act as expected, and I'm not allowed to do
a workaround.
 
 
 
 [2001-08-06 17:09:31] [EMAIL PROTECTED]
 
 IT's changes in the CVS, and will be online tomorrow...
 
 
 
 [2001-08-03 21:09:30] [EMAIL PROTECTED]
 
 The documentation is wrong. The proto is this:
 
 mt_rand([int min, int max])
 
 --Jani
 
 
 
 
 The remainder of the comments for this report are too long. To view
 the rest of the comments, please view the bug report online at
 http://bugs.php.net/?id=12550
 
 
 Edit this bug report at http://bugs.php.net/?id=12550edit=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]