#22057 [Bgs->Fbk]: fgets function failure

2003-02-04 Thread wez
 ID:  22057
 Updated by:  [EMAIL PROTECTED]
 Reported By: [EMAIL PROTECTED]
-Status:  Bogus
+Status:  Feedback
 Bug Type:Filesystem function related
 PHP Version: 4.3.0
 New Comment:

Not enough information was provided for us to be able
to handle this bug. Please re-read the instructions at
http://bugs.php.net/how-to-report.php

If you can provide more information, feel free to add it
to this bug and change the status back to "Open".

Thank you for your interest in PHP.


"response:"fbc" or something similar."

How about a real error report?
If you can't be bothered to spend the time to give us
precise details, why should we sit here guessing what
your problem is?

Are you sure that your web server isn't sending back data using the
chunked transfer encoding? (read the specs for HTTP 1.1!).

If your code doesn't handle chunked encoding, use HTTP 1.0 instead.

If you are *absolutely* 100% sure that your script isn't broken as far
as HTTP is concerned, how about giving us more details on the remote
server?  Is it something we can access so that we can see the same
problem?

Don't start complaining to us about how nicely you have been treated;
so far you have wasted 2 peoples time with insufficient data.  Please
don't waste mine as well.



Previous Comments:


[2003-02-05 01:25:00] [EMAIL PROTECTED]

I am well aware of what manual states and how the function works. You
are
saying you get same results from both versions. Which configuration of
server settings you use? Did you try all, so you can be so sure?

I use Apache 1.3.27 on Windows and upgraded from PHP 4.2.3 to 4.3.0
recently
by keeping all settings same and this problem occurred.  How would you
explain same function code returns two different responses in
different
versions?



Server: Apache/1.3.27 (Win32) PHP/4.3.0

PHP 4.3.0

response:"fbc" or something similar.

PHP 4.2.3

response:"HTTP/1.1 200 OK"



And also this doesn't happen for all websites I tried. It seems the
function
is having some serious problem with certain server configurations.
This
wasn't the case for 4.2.3.

I hope you are not approaching all bug reports as you did to mine.
Maybe I
should have mentioned my server but still you are approaching with a
prejudice of dealing with a dummy user rather than trying to make sure
the
function works with all platform and distribution versions. You could
have
asked more details rather than putting it into a "dummy user wandering
in
bug pages" case from the first reply.



[2003-02-04 16:17:54] [EMAIL PROTECTED]

Sorry, but your problem does not imply a bug in PHP itself.  For a
list of more appropriate places to ask for help using PHP, please
visit http://www.php.net/support.php as this bug system is not the
appropriate forum for asking support questions. 

Thank you for your interest in PHP.

The manual clearly states that no more then 1 line will be read by
fgets() function. This is not something new, the old code worked in the
exact same manner.
In my tests the outputs of PHP 4.2.3 & 4.3.0 are identical:
PHP 4.2.3
string(17) "HTTP/1.1 200 OK
"

PHP 4.3.0
string(17) "HTTP/1.1 200 OK
"




[2003-02-04 16:13:43] [EMAIL PROTECTED]

What error? And please give us a complete (but short!) example
script..




[2003-02-04 15:59:22] [EMAIL PROTECTED]

PHP manual doesn't tell why this function start to give an error in
version 4.3 while working fine with 4.2.x.

I also tried less efficient ways of getting http headers just for test
purposes and such 3-character long string never appears. That
inefficient method returns same string fgets in 4.2.3 used to return.
PHP manual says the function was modified regarding a fix about
binaries. does that affect the result?

As I say it is not about HTTP or server settings. Same code is not
working with 4.3 although it worked fine with 4.2.3. 

Sorry but your answer doesn't help to explain why this error happened
after upgrading to 4.3 while keeping all server and configuration
settings same.



[2003-02-04 15:39:24] [EMAIL PROTECTED]

Thank you for taking the time to write to us, but this is not
a bug. Please double-check the documentation available at
http://www.php.net/manual/ and the instructions on how to report
a bug at http://bugs.php.net/how-to-report.php

fgets() will only return a single line of data or the requested number
of bytes, which ever one is smallest will be returned. In case of HTTP,
the 1st line that will be sent to you by the webserver will be the
response code, which in many cases is just a number 3 by

#22057 [Bgs]: fgets function failure

2003-02-04 Thread elazizli
 ID:  22057
 User updated by: [EMAIL PROTECTED]
 Reported By: [EMAIL PROTECTED]
 Status:  Bogus
 Bug Type:Filesystem function related
 PHP Version: 4.3.0
 New Comment:

I am well aware of what manual states and how the function works. You
are
saying you get same results from both versions. Which configuration of
server settings you use? Did you try all, so you can be so sure?

I use Apache 1.3.27 on Windows and upgraded from PHP 4.2.3 to 4.3.0
recently
by keeping all settings same and this problem occurred.  How would you
explain same function code returns two different responses in
different
versions?



Server: Apache/1.3.27 (Win32) PHP/4.3.0

PHP 4.3.0

response:"fbc" or something similar.

PHP 4.2.3

response:"HTTP/1.1 200 OK"



And also this doesn't happen for all websites I tried. It seems the
function
is having some serious problem with certain server configurations.
This
wasn't the case for 4.2.3.

I hope you are not approaching all bug reports as you did to mine.
Maybe I
should have mentioned my server but still you are approaching with a
prejudice of dealing with a dummy user rather than trying to make sure
the
function works with all platform and distribution versions. You could
have
asked more details rather than putting it into a "dummy user wandering
in
bug pages" case from the first reply.


Previous Comments:


[2003-02-04 16:17:54] [EMAIL PROTECTED]

Sorry, but your problem does not imply a bug in PHP itself.  For a
list of more appropriate places to ask for help using PHP, please
visit http://www.php.net/support.php as this bug system is not the
appropriate forum for asking support questions. 

Thank you for your interest in PHP.

The manual clearly states that no more then 1 line will be read by
fgets() function. This is not something new, the old code worked in the
exact same manner.
In my tests the outputs of PHP 4.2.3 & 4.3.0 are identical:
PHP 4.2.3
string(17) "HTTP/1.1 200 OK
"

PHP 4.3.0
string(17) "HTTP/1.1 200 OK
"




[2003-02-04 16:13:43] [EMAIL PROTECTED]

What error? And please give us a complete (but short!) example
script..




[2003-02-04 15:59:22] [EMAIL PROTECTED]

PHP manual doesn't tell why this function start to give an error in
version 4.3 while working fine with 4.2.x.

I also tried less efficient ways of getting http headers just for test
purposes and such 3-character long string never appears. That
inefficient method returns same string fgets in 4.2.3 used to return.
PHP manual says the function was modified regarding a fix about
binaries. does that affect the result?

As I say it is not about HTTP or server settings. Same code is not
working with 4.3 although it worked fine with 4.2.3. 

Sorry but your answer doesn't help to explain why this error happened
after upgrading to 4.3 while keeping all server and configuration
settings same.



[2003-02-04 15:39:24] [EMAIL PROTECTED]

Thank you for taking the time to write to us, but this is not
a bug. Please double-check the documentation available at
http://www.php.net/manual/ and the instructions on how to report
a bug at http://bugs.php.net/how-to-report.php

fgets() will only return a single line of data or the requested number
of bytes, which ever one is smallest will be returned. In case of HTTP,
the 1st line that will be sent to you by the webserver will be the
response code, which in many cases is just a number 3 bytes long.



[2003-02-04 15:29:19] [EMAIL PROTECTED]

The following code used to return correct  headers for the requested
page whit PHP 4.2.3.. $host, $port and $path variables are dynamically
assigned by the script.
Now it doesn't work without any configuration change other than PHP
upgrade. It returns a three-character string instead of the requested
information. Is this because of the change applied to fgets function in
PHP 4.3? Same code stopped working when migrated to 4.3 from 4.2.3, no
module or configuration change happened during upgrade, same settings
were kept.



$fp = fsockopen($host,$port);

$request =
"GET $path HTTP/1.1
Host: $host$port
Accept: */*
Accept-Charset: iso-8859-1
Accept-Encoding: identity

";
fputs($fp,$request);
$answer = fgets($fp,4096);





-- 
Edit this bug report at http://bugs.php.net/?id=22057&edit=1




#20014 [Opn]: SSL w/ fsockopen not working

2003-02-04 Thread k . schroeder
 ID:   20014
 Updated by:   [EMAIL PROTECTED]
 Reported By:  [EMAIL PROTECTED]
 Status:   Open
 Bug Type: Sockets related
 Operating System: windows 2000
-PHP Version:  4CVS-2002-10-21
+PHP Version:  4CVS-2003-02-05
 New Comment:

This is reproducable with latest php4-win32 snap, latest php4 source
snap works on Linux:

Relevant parts from phpinfo():
Registered PHP Streams => php, http, ftp, compress.zlib
OpenSSL support => enabled
OpenSSL Version => OpenSSL 0.9.6g 9 Aug 2002

test:
--TEST--
Bug #20014 SSL w/ fsockopen not working
--SKIPIF--

--FILE--

--EXPECT--
resource(4) of type (stream)


 EXPECTED OUTPUT
resource(4) of type (stream)
 ACTUAL OUTPUT
Warning: fsockopen() [/phpmanual/function.fsockopen.html]: no SSL
support in this build in D:\work\php4\ext\openssl\tests\bug20014.php on
line 2

Warning: fsockopen() [/phpmanual/function.fsockopen.html]: unable to
connect to www.openssl.org:443 in
D:\work\php4\ext\openssl\tests\bug20014.php on line 2
bool(false)
 FAILED


Previous Comments:


[2002-10-21 15:24:24] [EMAIL PROTECTED]

Looks like main/config.w32.h.in needs to
#define HAVE_OPENSSL_EXT 1

I'm unable to test this ATM, so I'm hoping that some other kind win32
developer can look into it.



[2002-10-21 15:17:27] [EMAIL PROTECTED]

Environment: W2K/IIS5/php 4.3.0-dev (win32 snapshot 10/21, 7:25), CGI

Reproduce w/:

$fp = fsockopen('ssl://secure.hostname.here',$port);

Error:

"Warning: fsockopen() [function.fsockopen]: no SSL support in this
build in E:\test\fsockopen_ssl.php"

phpinfo() shows OpenSSL is available. I tested the openssl funcs to
confirm availability. All DLLs are copied to system32 dir.




-- 
Edit this bug report at http://bugs.php.net/?id=20014&edit=1




#22064 [NEW]: mb_send_mail hard-coded to send text/plain

2003-02-04 Thread jc
From: [EMAIL PROTECTED]
Operating system: Red Hat Linux 7.2
PHP version:  4.3.0
PHP Bug Type: mbstring related
Bug description:  mb_send_mail hard-coded to send text/plain

Feature request:

Currently mb_send_mail() is hard-coded to send a Content-type of
text/plain. Would it be possible to add a way to change this (being able
to set it to text/html would be very useful).

Either a parameter to mb_send_email or a function such as
mb_send_mail_set_content_type(string)?

Thanks!

Jc
-- 
Edit bug report at http://bugs.php.net/?id=22064&edit=1
-- 
Try a CVS snapshot: http://bugs.php.net/fix.php?id=22064&r=trysnapshot
Fixed in CVS:   http://bugs.php.net/fix.php?id=22064&r=fixedcvs
Fixed in release:   http://bugs.php.net/fix.php?id=22064&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=22064&r=needtrace
Try newer version:  http://bugs.php.net/fix.php?id=22064&r=oldversion
Not developer issue:http://bugs.php.net/fix.php?id=22064&r=support
Expected behavior:  http://bugs.php.net/fix.php?id=22064&r=notwrong
Not enough info:http://bugs.php.net/fix.php?id=22064&r=notenoughinfo
Submitted twice:http://bugs.php.net/fix.php?id=22064&r=submittedtwice
register_globals:   http://bugs.php.net/fix.php?id=22064&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=22064&r=php3
Daylight Savings:   http://bugs.php.net/fix.php?id=22064&r=dst
IIS Stability:  http://bugs.php.net/fix.php?id=22064&r=isapi
Install GNU Sed:http://bugs.php.net/fix.php?id=22064&r=gnused




#22047 [Com]: PHP pollutes the namespace w/ (what looks like) its grammar tokens

2003-02-04 Thread chrala
 ID:   22047
 Comment by:   [EMAIL PROTECTED]
 Reported By:  [EMAIL PROTECTED]
 Status:   Wont fix
 Bug Type: *General Issues
 Operating System: Linux
 PHP Version:  4.3.0
 New Comment:

> A notice is fine,

redefinition of a constant being only a NOTICE?  
you can't be serious!


Previous Comments:


[2003-02-05 00:49:18] [EMAIL PROTECTED]

How's changing a NOTICE into a WARNING going to break
anything, anyway?

diff -ur a/Zend/zend_constants.c b/Zend/zend_constants.c
--- a/Zend/zend_constants.c 2002-10-09 16:17:53.0 +0200
+++ b/Zend/zend_constants.c 2003-02-05 07:46:35.0 +0100
@@ -265,7 +265,7 @@
if (!(c->flags & CONST_PERSISTENT)) {
zval_dtor(&c->value);
}
-   zend_error(E_NOTICE,"Constant %s already defined",
lowercase_name);
+   zend_error(E_WARNING, "Constant %s already defined",
lowercase_name);
ret = FAILURE;
}
free_alloca(lowercase_name);



[2003-02-04 12:46:48] [EMAIL PROTECTED]

Guys, if this is how you deal with backwards
compatibility issues, then I'm scared.

I've been maintaining a big PHP project that's about
1MB of very clean code and I need to keep it alive.
This particular bug gave me quite a bit of a headache.
I've provided valid arguments on why a (trivial) change
should be made, and you seem to not really care.  That's
not giving me nice prospects into the future, is it?

Come on, we're talking about constants here!
If a constant is redefined by a program, then
that program is broken by definition and needs
to be told on an appropriate level.



[2003-02-04 12:31:13] [EMAIL PROTECTED]

It's fine as it is -> wont fix.



[2003-02-04 11:48:17] [EMAIL PROTECTED]

A NOTICE definitely is NOT sufficient.

Remember many setups running older PHP software set
"error_reporting = E_ALL & ~E_NOTICE", because the
amount of notices on undefined array indices and
undefined variables can be quite overwhelming --
and it is precisely these setups that are likely
to be bitten by this problem.

Redefinition of a constant should be a WARNING,
I must insist.



[2003-02-04 10:27:54] [EMAIL PROTECTED]

A notice is fine, we're not going to change this as it might break
scripts out there.



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/22047

-- 
Edit this bug report at http://bugs.php.net/?id=22047&edit=1




#20302 [Fbk->NoF]: Leaked Descriptors

2003-02-04 Thread php-bugs
 ID:   20302
 Updated by:   [EMAIL PROTECTED]
 Reported By:  [EMAIL PROTECTED]
-Status:   Feedback
+Status:   No Feedback
 Bug Type: Scripting Engine problem
 Operating System: Linux 2.4.18
 PHP Version:  4.2.2
 New Comment:

No feedback was provided for this bug for over 2 weeks, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".


Previous Comments:


[2003-01-20 21:54:41] [EMAIL PROTECTED]

Could you please check this with using PHP 4.3.0 and Apache 1.3.27 if
it's any better? Also, PHP 4.3.0 builds a CLI binary always, it would
be nice to know also if that has
the same leaks..(you don't have to _install_ php to do that? :)




[2002-12-08 11:11:59] [EMAIL PROTECTED]

>It would be nice if you could give an exact 
>description of what descriptors are open for you. 

The main problem is with apache 2.x. The listing is huge. There are 2
descriptors per website on the machine + main error log + main access
log just being leaked by mod_cgi. When testing mod_php, I found 3
additional descriptors being leaked. I guess I incorrectly assumed that
this was a php problem. If php does not police or cleanup the
environment that php applications run under, then I guess this bug
report can be closed. I will also make the apache team aware of this
issue, too. My feelings are that apache 2.x really has some problems.

If you are curious about the leaked descriptors, visit :
http://www.web-insights.net/env_audit  The env_audit program has full
description and ready to use php script for testing this. There is also
a 50 page report that can be downloaded from that page that gives more
detail than I can list here.

>BTW: The opened script fd can be leaked without 
>any security impact.

Maybe and maybe not. If a hole is found in php, people could use this
to overwrite a page making a temporary security problem more permanent.
To do this requires first finding another exploit, then you might be
able to use this for more mischief. Unless there's a compelling reason
not to do so, I would close the fd or set the FD_CLOEXEC flag. My
testing calls a program external to PHP using the passthru() function.
This external program should not have access to PHP files.

So, I leave it to your team. I won't object to closing this bug report
if you feel the issue truly lies with apache 2.x. Thanks for looking at
it.



[2002-12-05 13:09:27] [EMAIL PROTECTED]

It would be nice if you could give an exact description of what
descriptors are open for you. Like a directory listing
...
ls -la /proc/pidofapache/fd

BTW: The opened script fd can be leaked without any security impact.

And it is an apache bug that the fds are leaked. PHP does no
accept (its the apache child that accepts). And mysql etc... sockets
are opened by the mysqlclient libs... these are responsible for setting
the close on exec flag, not PHP.





[2002-12-05 07:27:02] [EMAIL PROTECTED]

I got the e-mail stating to try the latest tarball. I downloaded it and
grep'ed around. I am not sure how to build a rpm of php that is 100%
compatible with RedHat 8.0. The e-mail back was terse and didn't say
the problem was replicated or fixed. The tarball has no CHANGELOG.
Grep'ing did not show FD_CLOEXEC. 

Since I am not sure about building a rpm and I cannot find what the fix
was, how am I to provide feedback? Was the problem replicated? Did your
testing show its now fixed? What files were changed? Are there diffs of
the affected code?



[2002-12-04 18:16:22] [EMAIL PROTECTED]

No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Open". Thank you.





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/20302

-- 
Edit this bug report at http://bugs.php.net/?id=20302&edit=1




#22047 [Com]: PHP pollutes the namespace w/ (what looks like) its grammar tokens

2003-02-04 Thread szepe
 ID:   22047
 Comment by:   [EMAIL PROTECTED]
 Reported By:  [EMAIL PROTECTED]
 Status:   Wont fix
 Bug Type: *General Issues
 Operating System: Linux
 PHP Version:  4.3.0
 New Comment:

How's changing a NOTICE into a WARNING going to break
anything, anyway?

diff -ur a/Zend/zend_constants.c b/Zend/zend_constants.c
--- a/Zend/zend_constants.c 2002-10-09 16:17:53.0 +0200
+++ b/Zend/zend_constants.c 2003-02-05 07:46:35.0 +0100
@@ -265,7 +265,7 @@
if (!(c->flags & CONST_PERSISTENT)) {
zval_dtor(&c->value);
}
-   zend_error(E_NOTICE,"Constant %s already defined",
lowercase_name);
+   zend_error(E_WARNING, "Constant %s already defined",
lowercase_name);
ret = FAILURE;
}
free_alloca(lowercase_name);


Previous Comments:


[2003-02-04 12:46:48] [EMAIL PROTECTED]

Guys, if this is how you deal with backwards
compatibility issues, then I'm scared.

I've been maintaining a big PHP project that's about
1MB of very clean code and I need to keep it alive.
This particular bug gave me quite a bit of a headache.
I've provided valid arguments on why a (trivial) change
should be made, and you seem to not really care.  That's
not giving me nice prospects into the future, is it?

Come on, we're talking about constants here!
If a constant is redefined by a program, then
that program is broken by definition and needs
to be told on an appropriate level.



[2003-02-04 12:31:13] [EMAIL PROTECTED]

It's fine as it is -> wont fix.



[2003-02-04 11:48:17] [EMAIL PROTECTED]

A NOTICE definitely is NOT sufficient.

Remember many setups running older PHP software set
"error_reporting = E_ALL & ~E_NOTICE", because the
amount of notices on undefined array indices and
undefined variables can be quite overwhelming --
and it is precisely these setups that are likely
to be bitten by this problem.

Redefinition of a constant should be a WARNING,
I must insist.



[2003-02-04 10:27:54] [EMAIL PROTECTED]

A notice is fine, we're not going to change this as it might break
scripts out there.



[2003-02-04 10:20:52] [EMAIL PROTECTED]

Good, thanks.

Let me clarify -

PHP does log a NOTICE such as

[04-Feb-2003 17:18:22] PHP Notice:
  Constant T_LIST already defined
  in x.php on line 3

but this definitely needs to be a WARNING
or even an ERROR.

-Tomas



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/22047

-- 
Edit this bug report at http://bugs.php.net/?id=22047&edit=1




#22041 [Fbk->Opn]: mb_substr produces "mojibake" on certain strings ...

2003-02-04 Thread jc
 ID:   22041
 User updated by:  [EMAIL PROTECTED]
 Reported By:  [EMAIL PROTECTED]
-Status:   Feedback
+Status:   Open
 Bug Type: mbstring related
 Operating System: Red Hat Linux 7.2
 PHP Version:  4.3.0
 New Comment:

Glad you could see the funny side of this bug report :) I did try very
hard to find a better example ... but couldn't get mb_substr to break
on anything else.

Why set internal encoding to eucJP-win? The data is from a database and
is in EUC-JP ...

When I entered the data into the DB if the were any illegal EUC-JP
characters it should have complained ...

And as you can see I can display the whole string as EUC-JP perfectly.
It's only *after* I use mb_substr() that the string becomes mojibake
...

Thanks!


Previous Comments:


[2003-02-04 07:36:19] [EMAIL PROTECTED]

LOL! It's indeed so OFFENSIVE I have no idea how to translate those
words to English. But perhaps you know what that means?

Ehm, first try setting the internal encoding to "eucJP-win".



[2003-02-04 05:28:48] [EMAIL PROTECTED]

First, sorry for any offensive japanese words. I can't read/write
japanese very well, and the error in mb_substr occurs on data from a
list of video titles ... I tried to find another less offensive example
but couldn't. I'm just posting this bug report in order to help ...

I am trying to use mb_substr on data I get from a postgreSQL DB and in
some cases mb_substr seems to cut the string in the middle of a
multibyte char .. which turns the "cut" char into mojibake ...

The DB is in EUC-JP and my internal encoding is set to EUC-JP in my
php.ini file ...

As you can see the last character of the string has been improperly cut
...

Here is my test program and output:

CODE:

substr;

echo "String: ";
echo $c ."";

$c = mb_substr($c, 0, 80);

echo " After cutting it ... ";
echo $c ."";
?>

OUPUT:

COMMENT2:
¥¢¥ó¥°¥ë¤Î¡ÖĶ-¸Ô´Ö¤Î¥¢¥ó¥°¥ë¡×¥·¥ê¡¼¥º£Ä£Ø¡¢Â³¡¹Åо졪¤¿¤À¤ÎºÆÊÔ¤â¤Î¤Ç¤Ï¤¢¤ê¤Þ¤»¤ó¡ªÍ¾Ê¬¤Ê²è¤¬¤Ê¤¤


AFTER cutting it ...
¥¢¥ó¥°¥ë¤Î¡ÖĶ-¸Ô´Ö¤Î¥¢¥ó¥°¥ë¡×¥·¥ê¡¼¥º£Ä£Ø¡¢Â³¡¹Åо졪¤¿¤À¤ÎºÆÊÔ¤â¤Î¤Ç¤Ï¤¢¤ê¤Þ�




-- 
Edit this bug report at http://bugs.php.net/?id=22041&edit=1




#22038 [Fbk->Ctl]: array() doesn't work right

2003-02-04 Thread k . schroeder
 ID:   22038
 Updated by:   [EMAIL PROTECTED]
 Reported By:  [EMAIL PROTECTED]
-Status:   Feedback
+Status:   Critical
 Bug Type: Zend Engine 2 problem
 Operating System: Windows 2000 Server
 PHP Version:  5CVS-2003-02-03 (dev)


Previous Comments:


[2003-02-04 01:42:27] [EMAIL PROTECTED]

I've tested with latestet php4-win32 snap and latestest source snaps of
PHP4 and PHP5 on Linux. All these tests works, it's only a problem with
PHP5 + Win. Critical in my eyes because /run-tests.php doesn't work and
array's are important.



[2003-02-04 00:33:23] [EMAIL PROTECTED]

s/intentionally/intensively/



[2003-02-04 00:31:24] [EMAIL PROTECTED]

Did you try one of the branch version (ZE1)?
And I suppose we have to look into the problem more intentionally
before marking this as critical.




[2003-02-03 18:04:07] [EMAIL PROTECTED]

Looks like an windows only problem. It works on Linux with latest
source snap. Please verify on other operating systems.



[2003-02-03 17:53:18] [EMAIL PROTECTED]

/run-tests.php doesn't work with latest php5-win32 snap on W2kserver.
Every second array value get an array key.

declaration (line 141):
$ini_overwrites = array(
'output_handler=',
'zlib.output_compression=Off',
'open_basedir=',
'safe_mode=0',
'disable_functions=',
'output_buffering=Off',
'error_reporting=2047',
'display_errors=1',
'log_errors=0',
'html_errors=0',
'track_errors=1',
'report_memleaks=1',
'report_zend_debug=0',
'docref_root=/phpmanual/',
'docref_ext=.html',
'error_prepend_string=',
'error_append_string=',
'auto_prepend_file=',
'auto_append_file=',
'magic_quotes_runtime=0',
);

var_dump($settings); (added on line 794):
array(11) {
  [""]=>
  string(15) "output_handler="
  ["zlib.output_compression=Off"]=>
  string(13) "open_basedir="
  ["safe_mode=0"]=>
  string(18) "disable_functions="
  ["output_buffering=Off"]=>
  string(20) "error_reporting=2047"
  ["display_errors=1"]=>
  string(12) "log_errors=0"
  ["html_errors=0"]=>
  string(14) "track_errors=1"
  ["report_memleaks=1"]=>
  string(19) "report_zend_debug=0"
  ["docref_root=/phpmanual/"]=>
  string(16) "docref_ext=.html"
  ["error_prepend_string="]=>
  string(20) "error_append_string="
  ["auto_prepend_file="]=>
  string(17) "auto_append_file="
  ["magic_quotes_runtime=0"]=>
  &array(1) {
["magic_quotes_runtime=0"]=>
&array(1) {
  ["magic_quotes_runtime=0"]=>
  *RECURSION*
}
  }
}




-- 
Edit this bug report at http://bugs.php.net/?id=22038&edit=1




#18648 [Com]: Single entry form POST gives incorrect variable content

2003-02-04 Thread laday
 ID:   18648
 Comment by:   [EMAIL PROTECTED]
 Reported By:  [EMAIL PROTECTED]
 Status:   Feedback
 Bug Type: Apache2 related
 Operating System: All
 PHP Version:  5CVS-2003-01-29 (dev) / 4CVS-20020121 (stable)
 New Comment:

Thanks... It works ok.


Previous Comments:


[2003-02-04 15:05:45] [EMAIL PROTECTED]

[To anyone who experiences this trouble]

Are you sure that your httpd.conf has just A SINGLE KIND OF PHP RELATED
DIRECTIVE?

Then try grep "\(OutputFilter\|InputFilter\|AddType\)" < httpd.conf or
whatsoever.

# bad example (a)
AddInputFilter PHP php
AddOutputFilter PHP php

...

AddType x-httpd-php .php

# bad example (b)
SetInputFilter PHP
SetOutputFilter PHP

...

AddType x-httpd-php .php

# not bad (c)
AddInputFilter PHP php
AddOutputFilter PHP php

# good (d)
AddType x-httpd-php .php




[2003-02-04 09:16:42] [EMAIL PROTECTED]

Tested in RH8.0 + PHP 4.2.2 + Apache 2.

- Is ok when you add the 'enctype="multipart/form-data"' propety to the
form tag.
- Is ok when you send using GET method instead POST.
- Is ok when you send more than one field: if you have a text and a
button, if you send it pressing enter only the text send and the
problem occurs. When you press the button, text and button are send and
the problem not occur.
ciao.



[2003-02-03 12:36:09] [EMAIL PROTECTED]

I can _NOT_ reproduce this with Apache 2.0.44 and PHP 4.3.1-dev..




[2003-02-03 11:55:47] [EMAIL PROTECTED]

array(4) {
  [0]=>
  string(1) "1"
  [1]=>
  string(1) "2"
  [2]=>
  string(1) "1"
  [3]=>
  string(1) "2"
}

>From the latest snap's (php4-STABLE, php5). cvs commit (?) :)



[2003-01-31 19:52:37] [EMAIL PROTECTED]

Have Apache/2.0.44 (RedHat8.0 (LastUpdates) mod_ssl/2.0.44
OpenSSL/0.9.6b PHP/4.3.0

Starting Apache answers - 
[root@delta bin]# httpd -DSSL
httpd: module "/usr/src/php-4.3.0/sapi/apache2filter/sapi_apache2.c" is
not comp
atible with this version of Apache.
Please contact the vendor for the correct version.

Where troubles ?



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/18648

-- 
Edit this bug report at http://bugs.php.net/?id=18648&edit=1




#21262 [Fbk->Csd]: crash or fail when outputting large amounts of text quickly

2003-02-04 Thread spagmoid
 ID:   21262
 User updated by:  [EMAIL PROTECTED]
 Reported By:  [EMAIL PROTECTED]
-Status:   Feedback
+Status:   Closed
 Bug Type: Performance problem
 Operating System: WinXP
 PHP Version:  4.3.0
 New Comment:

We have heard of unrelated issues with SP1, and with M$ there's no
going back.  We will upgrade eventually, but I will accept this as
resolved since others have reported this fix.  Thanks to gmeakin!


Previous Comments:


[2003-02-04 05:19:20] [EMAIL PROTECTED]

Why can't you install that SP1??
Others reported it fixes this issue, so..




[2003-02-03 22:45:20] [EMAIL PROTECTED]

I can't install SP1 here, but I wouldn't be surprised.

This does counter iliaa's "by design" theory.



[2003-02-03 11:32:57] [EMAIL PROTECTED]

[Update]
Just to confirm further after many more hours of use that installing
Micrsoft's WinXP Service Pack-1 has fixed this bug for me.



[2003-01-29 00:06:12] [EMAIL PROTECTED]

Does the solution provided by [EMAIL PROTECTED] 
fix the problem for you..?





[2003-01-28 13:27:42] [EMAIL PROTECTED]

I have managed to solve my problem with outputting large amounts of
data under WinXP Home Edition, PHP 4.3.0 and Apache 2.0.44. 

I experienced this problem consistently with a php page that I had
written. I installed Windows XP Service Pack-1 from Microsoft and it
fixed the problem straight away. To convince myself further I tried the
php script listed at the beginning of this bug thread which I
previously experienced the same problem. This also works with the
service pack installed.

It looks like a bug on Microsoft's side of the fence. Try installing
the service pack for yourself and email this thread with your results
as it worked for me.

Good luck.
Regards



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/21262

-- 
Edit this bug report at http://bugs.php.net/?id=21262&edit=1




#21938 [Opn->Fbk]: Wrong error line numbers

2003-02-04 Thread sniper
 ID:   21938
 Updated by:   [EMAIL PROTECTED]
 Reported By:  [EMAIL PROTECTED]
-Status:   Open
+Status:   Feedback
 Bug Type: Scripting Engine problem
 Operating System: Windows 2000
 PHP Version:  4.3.0
 New Comment:

Using PHP 4.3.1-dev and running this script:



What line is the error reported on? (using PHP CLI binary)
And what about with PHP CGI binary ?

For me, it says the error is on line 3, which is correct.


Previous Comments:


[2003-01-30 05:41:12] [EMAIL PROTECTED]

Sorry, this doesn't really help. The numbers are nearer to the right
position now, but not correct.

Displayed: ..in Line 125
Correct Position: 138



[2003-01-29 07:04:03] [EMAIL PROTECTED]

Please try using this CVS snapshot:

  http://snaps.php.net/php4-STABLE-latest.tar.gz
 
For Windows:
 
  http://snaps.php.net/win32/php4-win32-STABLE-latest.zip

Ilia fixed something like this just few days ago, iirc.




[2003-01-29 06:17:07] [EMAIL PROTECTED]

What I did:
=

Made a script like this:



What should happen?

This error:

Fatal error: Call to undefined function: blubb() in foo.php on line 3

What happend?

This error:

Fatal error: Call to undefined function: blubb() in foo.php on line 2


As you see the line number is incorrect. It should be 3 instead of 2.
As longer the script is as longer are the differences betweeen the
correct and displayed line number.
This happens with all errors, warnings ans so on.

this happends since the upgrade of PHP to PHP 4.3.

System: Windows 2000 Server / Apache/1.3.24
Version: PHP 4.3 Windows Binary with unmodified php.ini-dist



[2003-01-29 06:02:45] [EMAIL PROTECTED]

Not enough information was provided for us to be able
to handle this bug. Please re-read the instructions at
http://bugs.php.net/how-to-report.php

If you can provide more information, feel free to add it
to this bug and change the status back to "Open".

Thank you for your interest in PHP.




[2003-01-29 05:48:56] [EMAIL PROTECTED]

The error will be displayed at a wrong line.

Sample:
Undefined variable: foo in foo.php on line 39 

$foo is only used in line 113. This also happends with wrong functions
and other errors. This makes it really hard to find errors.

I'm using the windows binary with default configuration.
(php.ini-dist).




-- 
Edit this bug report at http://bugs.php.net/?id=21938&edit=1




#18049 [Com]: LDAP over SSL (ldaps) not working

2003-02-04 Thread dhh
 ID:   18049
 Comment by:   [EMAIL PROTECTED]
 Reported By:  [EMAIL PROTECTED]
 Status:   Closed
 Bug Type: LDAP related
 Operating System: Windows 2000 Advanced Server
 PHP Version:  4.2.1
 Assigned To:  edink
 New Comment:

The error "TLS: error:14094418:SSL routines:SSL3_READ_BYTES:tlsv1 alert
unknown ca
s3_pkt.c:964" in the SSL debug output is a red herring.  PHP is not
sending a client cert or doing anything with client certs.  The problem
here is PHP does not trust the server, as it does not have the LDAP
server's public certificate.  What you need to do is create the file
"c:\OpenLDAP\sysconf\ldap.conf" with the single line "TLS_CACERT
c:\path\to\server.cert" where server.cert is the cert of the LDAP
directory to which you are trying to connect.  With that in place,
ldaps should work.


Previous Comments:


[2002-10-16 14:40:53] [EMAIL PROTECTED]

It seems to work under certain circumstances as you can read in my
previous post (12 Oct 5:35am). I tested it only with OpenLDAP-server,
because I don't have access to an Novell Edirectory-Server at the
moment. I will test it again in the future and post the results here.



[2002-10-14 17:38:11] [EMAIL PROTECTED]

Were you able to make it work? I'm asking since getting openldap libs
to compile on windows with SSL support is a non-trivial task.



[2002-10-12 10:42:43] [EMAIL PROTECTED]

OK, since the dll is now compiled with ssl-support, PHP is not the
problem any longer.
Just one last question: Will the ssl-support for the win32-version be
integrated in future php-releases?



[2002-10-12 09:39:20] [EMAIL PROTECTED]

Why do you ask these questions here when you could have got the answers
simply by searching with some search engine?!

http://www.openldap.org/lists/openldap-software/200108/msg00043.html

Bogusing this bug report since this really IS NOT any bug in PHP.




[2002-10-12 05:35:08] [EMAIL PROTECTED]

In the last week I did some testing. I used PHP 4.2.3 with your
php_ldap.dll on Win2000 and Apache 1.3.26. The OpenLDAP-server (slapd)
was running on Linux and Win2000, but I get the same results on both
platforms. I created the configuration-file
"C:\OpenLDAP\sysconf\ldap.conf" (I saw that string in php_ldap.dll) on
the machine, where PHP is running. In this file I put the
TLS_REQCERT-directive and tested with all 4 possible values:

never, allow: seems to work
try, demand: does not work, PHP always sends a client certificate,
which the LDAP-server can't accept (see above).
But there is no client certificate configured!?



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/18049

-- 
Edit this bug report at http://bugs.php.net/?id=18049&edit=1




#22061 [Csd->Bgs]: file() fails to open a https URL when the site uses a self signed certificate

2003-02-04 Thread sniper
 ID:   22061
 Updated by:   [EMAIL PROTECTED]
 Reported By:  [EMAIL PROTECTED]
-Status:   Closed
+Status:   Bogus
 Bug Type: URL related
 Operating System: Linux Redhat 7.3 - 2.4.18
 PHP Version:  4.3.0
 New Comment:

not bug -> bogus.



Previous Comments:


[2003-02-04 18:01:35] [EMAIL PROTECTED]

actually the problem is not with self signed certificates, its when the
name on the certificate doesn't match the URL used.  Since this is a
security issue, I doubt it will be changed.  I will ask on the mailing
list about what the right way to do this is.  This is not a bug



[2003-02-04 17:51:56] [EMAIL PROTECTED]

The function file() fails when I try to open a https URL where the site
uses a self-signed certificate.

Example:

https://mail.xalan.com');
var_dump($var);

?>

This script fails.  All that gets printed out is

bool(false)

In the apache error logs I get the following message:

[Tue Feb  4 18:10:28 2003] [error] PHP Warning:  file() [function.file]:
php_hostconnect: connect failed in
/usr/local/apache/htdocs/test_ssl.php on line 3
[Tue Feb  4 18:10:28 2003] [error] PHP Warning: 
file(https://mail.xalan.com) [function.file]: failed to
create stream: Connection timed out in
/usr/local/apache/htdocs/test_ssl.php on line 3

However, if I substitute the URL with a site that uses a trusted
certificate it works fine:

https://www.wachovia.com');
var_dump($var);

?>

 './configure' '--with-apxs=/usr/local/apache/bin/apxs'
'--with-openssl=/usr/local/ssl' '--with-bz2' '--with-pspell'
'--with-db3=/usr/lib' '--enable-ftp' '--with-gd'
'--with-imap=/usr/local/imap-2002b'
'--with-imap-ssl=/usr/local/imap-2002b' '--with-ldap'
'--with-jpeg-dir=/usr/lib' '--with-xpm-dir=/usr/lib'
'--with-freetype-dir=/usr/lib' '--enable-sigchild' '--with-gettext'
'--with-mcrypt' '--with-xml' '--with-mysql=/usr/local/mysql'
'--with-mhash' '--with-zlib' '--with-dom' '--with-dom-xslt'
'--with-dom-exslt' '--with-png-dir=/usr/lib' '--enable-mime-magic'

Also my max_execution_time = 9.  The URL loads in less than 2
seconds when I use my browser.





-- 
Edit this bug report at http://bugs.php.net/?id=22061&edit=1




#21992 [Csd->Bgs]: snmpget returns wrong value on negative integer

2003-02-04 Thread sniper
 ID:   21992
 Updated by:   [EMAIL PROTECTED]
 Reported By:  [EMAIL PROTECTED]
-Status:   Closed
+Status:   Bogus
 Bug Type: SNMP related
 Operating System: Windows XP Pro SP1
 PHP Version:  4CVS-2003-01-31 (stable)
 New Comment:

Not PHP bug -> bogus.



Previous Comments:


[2003-02-04 17:31:53] [EMAIL PROTECTED]

closed



[2003-02-04 17:31:37] [EMAIL PROTECTED]

G. PHP works FINE. When php grabs the data, it grabs the correct
number (even fixes the negative hoopla).

The reason i THOUGHT i was getting an error is becuase i store this
data in MYSQL, and it cannot do numbers past the max int either (in an
int column), which is why it was stopping at the hieghest number.

PROBLEM IS FALSE.



[2003-02-04 15:18:46] [EMAIL PROTECTED]

Any update on this? If it needs more information/some way of
confirmation, i would be happy to aid.



[2003-01-31 21:31:25] [EMAIL PROTECTED]

I believe i read somewhere that PHP's integer max was 2147483647?

If using snmp to pull bandwidth information from a device (such as
ifInOctets and ifOutOctets), the number DOES constandly rise. If using
a device with snmpv1 (32bit) the counter will only reach a certain
number before it rolls over the the opposite and negative number and
counts toward the maximum again.

The Max (and prolly min?) is the same as PHP's. 

"INTEGER(-2147483648..2147483647) -- corresponds to a signed 32-bit
int"


Well, once the counter turns over to the negative, php only returns
"2147483647" for every negative value it reads.


Such as, my ifInOctets for my cisco router is now reading
'-1980181848', and php's snmpget on that oid returns '2147483647', but
when the counter is positive, it returns the correct value.


(this is probably a problem on 64bit snmpv2 since i believe its maximum
is much higher, but thats probably not fix-able)




-- 
Edit this bug report at http://bugs.php.net/?id=21992&edit=1




#22060 [Opn->Fbk]: mssql.datetimeconvert=0 gets wrong month

2003-02-04 Thread sniper
 ID:   22060
 Updated by:   [EMAIL PROTECTED]
 Reported By:  [EMAIL PROTECTED]
-Status:   Open
+Status:   Feedback
 Bug Type: MSSQL related
 Operating System: Linux 2.4
 PHP Version:  4.3.0
 New Comment:

Please try using this CVS snapshot:

  http://snaps.php.net/php4-STABLE-latest.tar.gz
 
For Windows:
 
  http://snaps.php.net/win32/php4-win32-STABLE-latest.zip


Previous Comments:


[2003-02-04 17:11:28] [EMAIL PROTECTED]

>>When using this:

$c = mssql_connect("172.16.0.1:1433", "hn", "hn");
mssql_select_db("hn");
$r = mssql_query("select * from hn.employee");
print_r(mssql_fetch_array($r));

>>I get this(as expected):
Array ( [0] => M4398648MG [id] => M4398648MG [1] => FRED [nome] => FRED
[2] => 105 roadhouse, av [addr] => 105 roadhouse, av [3] => NY [city]
=> NY [4] => NY [state] => NY [5] => 70272 [zip] => 70272 [6] => 280876
[id2] => 280876 [7] => FRED [nick] => FRED [8] => Mar 17 1973 12:00AM
[birth] => Mar 17 1973 12:00AM ) 
 
>>When using this:
ini_set('mssql.datetimeconvert',0);
$c = mssql_connect("172.16.0.1:1433", "hn", "hn");
mssql_select_db("hn");
$r = mssql_query("select * from hn.employee");
print_r(mssql_fetch_array($r));

>>I get a wrong month number (02 instead of 03):
Array ( [0] => M4398648MG [id] => M4398648MG [1] => FRED [nome] => FRED
[2] => 105 roadhouse, av [addr] => 105 roadhouse, av [3] => NY [city]
=> NY [4] => NY [state] => NY [5] => 70272 [zip] => 70272 [6] => 280876
[id2] => 280876 [7] => FRED [nick] => FRED [8] => 1973-02-17 00:00:00
[birth] => 1973-02-17 00:00:00 ) 






-- 
Edit this bug report at http://bugs.php.net/?id=22060&edit=1




#22061 [Opn->Csd]: file() fails to open a https URL when the site uses a self signed certificate

2003-02-04 Thread amith
 ID:   22061
 User updated by:  [EMAIL PROTECTED]
 Reported By:  [EMAIL PROTECTED]
-Status:   Open
+Status:   Closed
 Bug Type: URL related
 Operating System: Linux Redhat 7.3 - 2.4.18
 PHP Version:  4.3.0
 New Comment:

actually the problem is not with self signed certificates, its when the
name on the certificate doesn't match the URL used.  Since this is a
security issue, I doubt it will be changed.  I will ask on the mailing
list about what the right way to do this is.  This is not a bug


Previous Comments:


[2003-02-04 17:51:56] [EMAIL PROTECTED]

The function file() fails when I try to open a https URL where the site
uses a self-signed certificate.

Example:

https://mail.xalan.com');
var_dump($var);

?>

This script fails.  All that gets printed out is

bool(false)

In the apache error logs I get the following message:

[Tue Feb  4 18:10:28 2003] [error] PHP Warning:  file() [function.file]:
php_hostconnect: connect failed in
/usr/local/apache/htdocs/test_ssl.php on line 3
[Tue Feb  4 18:10:28 2003] [error] PHP Warning: 
file(https://mail.xalan.com) [function.file]: failed to
create stream: Connection timed out in
/usr/local/apache/htdocs/test_ssl.php on line 3

However, if I substitute the URL with a site that uses a trusted
certificate it works fine:

https://www.wachovia.com');
var_dump($var);

?>

 './configure' '--with-apxs=/usr/local/apache/bin/apxs'
'--with-openssl=/usr/local/ssl' '--with-bz2' '--with-pspell'
'--with-db3=/usr/lib' '--enable-ftp' '--with-gd'
'--with-imap=/usr/local/imap-2002b'
'--with-imap-ssl=/usr/local/imap-2002b' '--with-ldap'
'--with-jpeg-dir=/usr/lib' '--with-xpm-dir=/usr/lib'
'--with-freetype-dir=/usr/lib' '--enable-sigchild' '--with-gettext'
'--with-mcrypt' '--with-xml' '--with-mysql=/usr/local/mysql'
'--with-mhash' '--with-zlib' '--with-dom' '--with-dom-xslt'
'--with-dom-exslt' '--with-png-dir=/usr/lib' '--enable-mime-magic'

Also my max_execution_time = 9.  The URL loads in less than 2
seconds when I use my browser.





-- 
Edit this bug report at http://bugs.php.net/?id=22061&edit=1




#21339 [Com]: cannot compile gettext support

2003-02-04 Thread sjsobol
 ID:   21339
 Comment by:   [EMAIL PROTECTED]
 Reported By:  [EMAIL PROTECTED]
 Status:   Open
 Bug Type: Gettext related
 Operating System: Solaris 8
 PHP Version:  4.3.0
 New Comment:

Okay, now I'm really confused. I yanked the Configure command out of
the RPM. Here it is.

#!/bin/sh

EXTERNAL_MODULES="mysql pgsql gd imap ldap bcmath bz2 calendar com cpdf
crack curl cyrus db dba_bundle dbase dbx dio domxml dotnet exif fbsql
fdftk filepro fribidi gmp hwapi hyperwave iconv informix ingres_ii
interbase ircg java mcrypt mbstring mhash mime_magic ming mnogosearch
msession msql mssql ncurses notes oci8 odbc oracle ovrimos pcntl pdf
pfpro pspell qtdom readline recode rpc shmop snmp sockets swf sybase
sybase_ct sysvmsg wddx xml xmlrpc xslt yaz zip"

./configure \
--enable-discard-path \
--disable-force-cgi-redirect \
--enable-shared \
--disable-static \
--disable-debug \
--disable-rpath \
--enable-pic \
--enable-inline-optimization \
--enable-memory-limit \
--with-pear \
--enable-magic-quotes \
--enable-debugger \
--enable-track-vars \
--with-versioning \
--with-mod_charset \
--with-regex=php \
--enable-track-vars \
--enable-trans-sid \
--enable-safe-mode \
--with-ctype \
--with-ttf \
--with-zlib \
--enable-sysvsem \
--enable-sysvshm \
--enable-yp \
--enable-ftp \
--without-aspell \
--without-kerberos \
--with-gettext=/usr/local \
--without-dba \
--without-db2 \
--without-db3 \
--with-mysql=/usr/mysql \
`for i in $EXTERNAL_MODULES; do echo --without-${i} --disable-${i};
done` \
--without-gdbm 

and that worked. (I got rid of --with-freetype because
right now I don't have freetype installed on my system.)


Previous Comments:


[2003-02-04 16:39:14] [EMAIL PROTECTED]

More info... I am trying to rebuild a Mandrake RPM from the source RPM.
That's what has been failing, so I downloaded the December 27, 2002
tarball off the website earlier today (today is Tuesday, February 4th)
and built it. 

Using --disable-all --with-gettext=/usr/local worked.

So now I've copied over the configure command from the
RPM's spec file and am going to try it. 

At this point I suspect that one of the other configure options is
causing problems. Will post more info as soon 
as I have it.



[2003-02-04 05:40:12] [EMAIL PROTECTED]

I've tried compiling it with 
./configure --disable-all
--with-gettext=/path/to/gettext/install/prefix
but still failed. I've given up for now as I've other issues which are
more important...



[2003-02-03 12:08:51] [EMAIL PROTECTED]

I have now experienced this problem too. Found this ticket via
groups.google.com and would like to point out the difference in OS: I'm
running Red Hat Linux 7.3 (i386) and compiling PHP 4.3.0 also, with the
same issue. I did try configure --disable-all --with-gettext and that
didn't work either. I may be confused about what is supposed to go into
--with-gettext=/blah - is 'blah' a pointer to the library directory (in
my case /usr/local/lib) or the source tree? Also, 'make install' (in
gettext) installs the gettext libs into /usr/local/lib, but oddly
enough, does not install the headers into /usr/local/include and I'm
wondering if that might be part of my problem. Configure params are as
follows,

./configure \
--enable-discard-path \
--disable-force-cgi-redirect \
--enable-shared \
--disable-static \
--disable-debug \
--disable-rpath \
--enable-pic \
--enable-inline-optimization \
--enable-memory-limit \
--enable-magic-quotes \
--enable-debugger \
--enable-track-vars \
--with-versioning \
--with-mod_charset \
--with-regex=php \
--enable-track-vars \
--enable-trans-sid \
--enable-safe-mode \
--with-ctype \
--with-ttf \
--with-zlib \
--enable-sysvsem \
--enable-sysvshm \
--enable-yp \
--enable-ftp \
--without-aspell \
--without-kerberos \
--with-gettext=/usr \
--without-dba \
--without-db2 \
--without-db3 \
--with-mysql=/usr/mysql \
--without-gdbm 

(I suspect I'm pointing --with-gettext at the wrong place, but as
previously mentioned, --disable-all --with-gettext with no directory
didn't work either).



[2003-01-27 22:32:10] [EMAIL PROTECTED]

No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bu

#22061 [NEW]: file() fails to open a https URL when the site uses a self signed certificate

2003-02-04 Thread amith
From: [EMAIL PROTECTED]
Operating system: Linux Redhat 7.3 - 2.4.18
PHP version:  4.3.0
PHP Bug Type: URL related
Bug description:  file() fails to open a https URL when the site uses a self signed 
certificate

The function file() fails when I try to open a https URL where the site
uses a self-signed certificate.

Example:

https://mail.xalan.com');
var_dump($var);

?>

This script fails.  All that gets printed out is

bool(false)

In the apache error logs I get the following message:

[Tue Feb  4 18:10:28 2003] [error] PHP Warning:  file() [function.file]:
php_hostconnect: connect failed in /usr/local/apache/htdocs/test_ssl.php
on line 3
[Tue Feb  4 18:10:28 2003] [error] PHP Warning: 
file(https://mail.xalan.com) [function.file]: failed to
create stream: Connection timed out in
/usr/local/apache/htdocs/test_ssl.php on line 3

However, if I substitute the URL with a site that uses a trusted
certificate it works fine:

https://www.wachovia.com');
var_dump($var);

?>

 './configure' '--with-apxs=/usr/local/apache/bin/apxs'
'--with-openssl=/usr/local/ssl' '--with-bz2' '--with-pspell'
'--with-db3=/usr/lib' '--enable-ftp' '--with-gd'
'--with-imap=/usr/local/imap-2002b'
'--with-imap-ssl=/usr/local/imap-2002b' '--with-ldap'
'--with-jpeg-dir=/usr/lib' '--with-xpm-dir=/usr/lib'
'--with-freetype-dir=/usr/lib' '--enable-sigchild' '--with-gettext'
'--with-mcrypt' '--with-xml' '--with-mysql=/usr/local/mysql'
'--with-mhash' '--with-zlib' '--with-dom' '--with-dom-xslt'
'--with-dom-exslt' '--with-png-dir=/usr/lib' '--enable-mime-magic'

Also my max_execution_time = 9.  The URL loads in less than 2 seconds
when I use my browser.

-- 
Edit bug report at http://bugs.php.net/?id=22061&edit=1
-- 
Try a CVS snapshot: http://bugs.php.net/fix.php?id=22061&r=trysnapshot
Fixed in CVS:   http://bugs.php.net/fix.php?id=22061&r=fixedcvs
Fixed in release:   http://bugs.php.net/fix.php?id=22061&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=22061&r=needtrace
Try newer version:  http://bugs.php.net/fix.php?id=22061&r=oldversion
Not developer issue:http://bugs.php.net/fix.php?id=22061&r=support
Expected behavior:  http://bugs.php.net/fix.php?id=22061&r=notwrong
Not enough info:http://bugs.php.net/fix.php?id=22061&r=notenoughinfo
Submitted twice:http://bugs.php.net/fix.php?id=22061&r=submittedtwice
register_globals:   http://bugs.php.net/fix.php?id=22061&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=22061&r=php3
Daylight Savings:   http://bugs.php.net/fix.php?id=22061&r=dst
IIS Stability:  http://bugs.php.net/fix.php?id=22061&r=isapi
Install GNU Sed:http://bugs.php.net/fix.php?id=22061&r=gnused




#18654 [Csd->Opn]: unserialize can't handle float with E notation

2003-02-04 Thread k . schroeder
 ID:   18654
 Updated by:   [EMAIL PROTECTED]
 Reported By:  [EMAIL PROTECTED]
-Status:   Closed
+Status:   Open
 Bug Type: Variables related
-Operating System: Linux 2.2.16
+Operating System: Linux 2.2.16, Win 2000 server
-PHP Version:  4.3.0-dev
+PHP Version:  4.3.1-dev
 New Comment:

ext\standard\tests\serialize\003.phpt failed on W2k server with latest
php4-win32 snap:

 EXPECTED OUTPUT
d:100;
float(100)

d:5.2E+25;
float(5.2E+25)

d:8.529E-22;
float(8.529E-22)

d:9E-09;
float(9.E-9)
 ACTUAL OUTPUT
d:100;
float(100)

d:5.2E+025;
float(5.2E+25)

d:8.529E-022;
float(8.529E-22)

d:9E-009;
float(9.E-9)
 FAILED



Previous Comments:


[2002-08-19 15:55:13] [EMAIL PROTECTED]

This bug has been fixed in CVS.

In case this was a PHP problem, snapshots of the sources are packaged
every three hours; this change will be in the next snapshot. You can
grab the snapshot at http://snaps.php.net/.
 
In case this was a documentation problem, the fix will show up soon at
http://www.php.net/manual/.

In case this was a PHP.net website problem, the change will show
up on the PHP.net site and on the mirror sites in short time.
 
Thank you for the report, and for helping us make PHP better.





[2002-07-31 18:31:47] [EMAIL PROTECTED]

updated version. Same thing with 4.3.0-dev..




[2002-07-30 13:50:05] [EMAIL PROTECTED]

 d:1E+30; */

echo unserialize(serialize(1E+30));
/* Notice: unserialize() failed at offset 0 of 8 bytes in
bug_unserial.html on line 6 */

?>

Fail with php 4.3-CVS  too
Was working with 4.1.0  (untested with 4.1.1 -> 4.2.1)





-- 
Edit this bug report at http://bugs.php.net/?id=18654&edit=1




#21992 [Opn->Csd]: snmpget returns wrong value on negative integer

2003-02-04 Thread spoon
 ID:   21992
 User updated by:  [EMAIL PROTECTED]
 Reported By:  [EMAIL PROTECTED]
-Status:   Open
+Status:   Closed
 Bug Type: SNMP related
 Operating System: Windows XP Pro SP1
 PHP Version:  4CVS-2003-01-31 (stable)
 New Comment:

closed


Previous Comments:


[2003-02-04 17:31:37] [EMAIL PROTECTED]

G. PHP works FINE. When php grabs the data, it grabs the correct
number (even fixes the negative hoopla).

The reason i THOUGHT i was getting an error is becuase i store this
data in MYSQL, and it cannot do numbers past the max int either (in an
int column), which is why it was stopping at the hieghest number.

PROBLEM IS FALSE.



[2003-02-04 15:18:46] [EMAIL PROTECTED]

Any update on this? If it needs more information/some way of
confirmation, i would be happy to aid.



[2003-01-31 21:31:25] [EMAIL PROTECTED]

I believe i read somewhere that PHP's integer max was 2147483647?

If using snmp to pull bandwidth information from a device (such as
ifInOctets and ifOutOctets), the number DOES constandly rise. If using
a device with snmpv1 (32bit) the counter will only reach a certain
number before it rolls over the the opposite and negative number and
counts toward the maximum again.

The Max (and prolly min?) is the same as PHP's. 

"INTEGER(-2147483648..2147483647) -- corresponds to a signed 32-bit
int"


Well, once the counter turns over to the negative, php only returns
"2147483647" for every negative value it reads.


Such as, my ifInOctets for my cisco router is now reading
'-1980181848', and php's snmpget on that oid returns '2147483647', but
when the counter is positive, it returns the correct value.


(this is probably a problem on 64bit snmpv2 since i believe its maximum
is much higher, but thats probably not fix-able)




-- 
Edit this bug report at http://bugs.php.net/?id=21992&edit=1




#21992 [Com]: snmpget returns wrong value on negative integer

2003-02-04 Thread spoon
 ID:   21992
 Comment by:   [EMAIL PROTECTED]
 Reported By:  [EMAIL PROTECTED]
 Status:   Open
 Bug Type: SNMP related
 Operating System: Windows XP Pro SP1
 PHP Version:  4CVS-2003-01-31 (stable)
 New Comment:

G. PHP works FINE. When php grabs the data, it grabs the correct
number (even fixes the negative hoopla).

The reason i THOUGHT i was getting an error is becuase i store this
data in MYSQL, and it cannot do numbers past the max int either (in an
int column), which is why it was stopping at the hieghest number.

PROBLEM IS FALSE.


Previous Comments:


[2003-02-04 15:18:46] [EMAIL PROTECTED]

Any update on this? If it needs more information/some way of
confirmation, i would be happy to aid.



[2003-01-31 21:31:25] [EMAIL PROTECTED]

I believe i read somewhere that PHP's integer max was 2147483647?

If using snmp to pull bandwidth information from a device (such as
ifInOctets and ifOutOctets), the number DOES constandly rise. If using
a device with snmpv1 (32bit) the counter will only reach a certain
number before it rolls over the the opposite and negative number and
counts toward the maximum again.

The Max (and prolly min?) is the same as PHP's. 

"INTEGER(-2147483648..2147483647) -- corresponds to a signed 32-bit
int"


Well, once the counter turns over to the negative, php only returns
"2147483647" for every negative value it reads.


Such as, my ifInOctets for my cisco router is now reading
'-1980181848', and php's snmpget on that oid returns '2147483647', but
when the counter is positive, it returns the correct value.


(this is probably a problem on 64bit snmpv2 since i believe its maximum
is much higher, but thats probably not fix-able)




-- 
Edit this bug report at http://bugs.php.net/?id=21992&edit=1




#21907 [Opn->Fbk]: Fatal error: Call to undefined function: get_attribute_node()

2003-02-04 Thread sniper
 ID:   21907
 Updated by:   [EMAIL PROTECTED]
 Reported By:  [EMAIL PROTECTED]
-Status:   Open
+Status:   Feedback
 Bug Type: DOM XML related
 Operating System: Solaris 5.7
 PHP Version:  4.2.3
 New Comment:

Please try using this CVS snapshot:

  http://snaps.php.net/php4-STABLE-latest.tar.gz
 
For Windows:
 
  http://snaps.php.net/win32/php4-win32-STABLE-latest.zip


The compile error should really be fixed now.
If it still persists, let us know what compiler/version
you're using.



Previous Comments:


[2003-01-29 07:22:33] [EMAIL PROTECTED]

I try with the snapshot php4-STABLE-200301282030, and when i execute
make, appear this error:


In file included from
/opt/php/php4-STABLE-200301282030/main/php_scandir.c:20:
/opt/php/php4-STABLE-200301282030/main/php_scandir.h:15: warning:
`struct dirent' declared inside pa
rameter list
/opt/php/php4-STABLE-200301282030/main/php_scandir.h:15: warning: its
scope is only this definition
or declaration, which is probably not what you want.
/opt/php/php4-STABLE-200301282030/main/php_scandir.h:19: warning:
`struct dirent' declared inside pa
rameter list
/opt/php/php4-STABLE-200301282030/main/php_scandir.c:46: conflicting
types for `alphasort'
/opt/php/php4-STABLE-200301282030/main/php_scandir.h:15: previous
declaration of `alphasort'
/opt/php/php4-STABLE-200301282030/main/php_scandir.c:53: conflicting
types for `scandir'
/opt/php/php4-STABLE-200301282030/main/php_scandir.h:19: previous
declaration of `scandir'
/opt/php/php4-STABLE-200301282030/main/php_scandir.c: In function
`scandir':
/opt/php/php4-STABLE-200301282030/main/php_scandir.c:106: warning:
passing arg 4 of `qsort' from inc
ompatible pointer type
make: *** [main/php_scandir.lo] Error 1



[2003-01-28 12:14:57] [EMAIL PROTECTED]

Please try newer snapshot, this compiler error should
be fixed now.




[2003-01-28 12:01:24] [EMAIL PROTECTED]

U send me an email with u feedback:

Please try using this CVS snapshot:

http://snaps.php.net/php4-STABLE-latest.tar.gz

I try to install this version of PHP, with the next configuration:

./configure --with-apache=./../../Apache/apache_1.3.27 \
   --with-dom\
   --with-oci8=/Persa/Oracle \
   --with-gd \
   --with-freetype-dir \
   --enable-gd-native-ttf \
   --enable-gd-imgstrttf \
   --with-png-dir \
   --with-zlib \
   --enable-track-vars

And when i ejecute make... i retrive this error:

In file included from
/opt/php/php4-STABLE-200301281230/main/php_scandir.c:20:
/opt/php/php4-STABLE-200301281230/main/php_scandir.h:15: warning:
`struct dirent' declared inside parameter list
/opt/php/php4-STABLE-200301281230/main/php_scandir.h:15: warning: its
scope is only this definitionor declaration, which is probably not what
you want.
/opt/php/php4-STABLE-200301281230/main/php_scandir.h:19: warning:
`struct dirent' declared inside parameter list
/opt/php/php4-STABLE-200301281230/main/php_scandir.c:44: conflicting
types for `alphasort'
/opt/php/php4-STABLE-200301281230/main/php_scandir.h:15: previous
declaration of `alphasort'
/opt/php/php4-STABLE-200301281230/main/php_scandir.c:51: conflicting
types for `scandir'
/opt/php/php4-STABLE-200301281230/main/php_scandir.h:19: previous
declaration of `scandir'
/opt/php/php4-STABLE-200301281230/main/php_scandir.c: In function
`scandir':
/opt/php/php4-STABLE-200301281230/main/php_scandir.c:104: warning:
passing arg 4 of `qsort' from incompatible pointer type
make: *** [main/php_scandir.lo] Error 1


What can i do to resolve my problem ???

Thanks,

   Damian.-



[2003-01-27 17:05:37] [EMAIL PROTECTED]

Please try using this CVS snapshot:

  http://snaps.php.net/php4-STABLE-latest.tar.gz
 
For Windows:
 
  http://snaps.php.net/win32/php4-win32-STABLE-latest.zip





[2003-01-27 12:17:29] [EMAIL PROTECTED]

Hi, my name is Damian.

I'm programming in php and i'm using DOMXML in SOLARIS 5.7 (Apache
1.3.27).
I have the next problem:
I build a XML document with a function, and then i try to parse this
document with DOM XML, but sometimes i have a problem. In the web
appear this error:

Fatal error: Call to undefined function: get_attribute_node() 

This error is random, sometimes is work ok, and somtimes i have this
error.

Have u got any information about that ???

This is my code:









Pagina nueva 1






get_elements_by_tagname
($variable_metodo_get);

$atributo_desplegado_elemento_metodo_get=$elemento_metodo_get[0]->get_attribute_node("DESPLEGADO");

if($atributo_desplegado_elemento_met

#22060 [NEW]: mssql.datetimeconvert=0 gets wrong month

2003-02-04 Thread cunha17
From: [EMAIL PROTECTED]
Operating system: Linux 2.4
PHP version:  4.3.0
PHP Bug Type: MSSQL related
Bug description:  mssql.datetimeconvert=0 gets wrong month

>>When using this:

$c = mssql_connect("172.16.0.1:1433", "hn", "hn");
mssql_select_db("hn");
$r = mssql_query("select * from hn.employee");
print_r(mssql_fetch_array($r));

>>I get this(as expected):
Array ( [0] => M4398648MG [id] => M4398648MG [1] => FRED [nome] => FRED
[2] => 105 roadhouse, av [addr] => 105 roadhouse, av [3] => NY [city] =>
NY [4] => NY [state] => NY [5] => 70272 [zip] => 70272 [6] => 280876 [id2]
=> 280876 [7] => FRED [nick] => FRED [8] => Mar 17 1973 12:00AM [birth] =>
Mar 17 1973 12:00AM ) 
 
>>When using this:
ini_set('mssql.datetimeconvert',0);
$c = mssql_connect("172.16.0.1:1433", "hn", "hn");
mssql_select_db("hn");
$r = mssql_query("select * from hn.employee");
print_r(mssql_fetch_array($r));

>>I get a wrong month number (02 instead of 03):
Array ( [0] => M4398648MG [id] => M4398648MG [1] => FRED [nome] => FRED
[2] => 105 roadhouse, av [addr] => 105 roadhouse, av [3] => NY [city] =>
NY [4] => NY [state] => NY [5] => 70272 [zip] => 70272 [6] => 280876 [id2]
=> 280876 [7] => FRED [nick] => FRED [8] => 1973-02-17 00:00:00 [birth] =>
1973-02-17 00:00:00 ) 


-- 
Edit bug report at http://bugs.php.net/?id=22060&edit=1
-- 
Try a CVS snapshot: http://bugs.php.net/fix.php?id=22060&r=trysnapshot
Fixed in CVS:   http://bugs.php.net/fix.php?id=22060&r=fixedcvs
Fixed in release:   http://bugs.php.net/fix.php?id=22060&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=22060&r=needtrace
Try newer version:  http://bugs.php.net/fix.php?id=22060&r=oldversion
Not developer issue:http://bugs.php.net/fix.php?id=22060&r=support
Expected behavior:  http://bugs.php.net/fix.php?id=22060&r=notwrong
Not enough info:http://bugs.php.net/fix.php?id=22060&r=notenoughinfo
Submitted twice:http://bugs.php.net/fix.php?id=22060&r=submittedtwice
register_globals:   http://bugs.php.net/fix.php?id=22060&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=22060&r=php3
Daylight Savings:   http://bugs.php.net/fix.php?id=22060&r=dst
IIS Stability:  http://bugs.php.net/fix.php?id=22060&r=isapi
Install GNU Sed:http://bugs.php.net/fix.php?id=22060&r=gnused




#22059 [NEW]: ftp_chdir crashes apache

2003-02-04 Thread equilantang
From: [EMAIL PROTECTED]
Operating system: win2k/apache
PHP version:  4CVS-2003-02-04 (stable)
PHP Bug Type: FTP related
Bug description:  ftp_chdir crashes apache

Apache1 and Apache2 crashes when executing ftp_chdir().
I'm using win32 snap from Feb04.
Maybe similar Bug #4171



ini_set('display_errors',1);
$ftp = ftp_connect('server');
print_r($ftp);
$res = ftp_login($ftp, 'uid', 'pwd');
print_r($res);
$res = ftp_chdir($ftp, '/'); // crashes
print_r($res);




Microsoft (R) Windows 2000 (TM) Version 5.00 DrWtsn32
Copyright (C) 1985-1999 Microsoft Corp. All rights reserved.



Application exception occurred:
App:  (pid=2724)
When: 2/4/2003 @ 17:06:38.996
Exception number: c005 (access violation)

*> System Information <*
Computer Name: DNA0216352
User Name: SYSTEM
Number of Processors: 1
Processor Type: x86 Family 6 Model 5 Stepping 2
Windows 2000 Version: 5.0
Current Build: 2195
Service Pack: 3
Current Type: Uniprocessor Free
Registered Organization: TI
Registered Owner: TI

*> Task List <*
   0 Idle.exe
   8 System.exe
 136 SMSS.exe
 164 CSRSS.exe
 184 WINLOGON.exe
 212 SERVICES.exe
 224 LSASS.exe
 412 svchost.exe
 448 spoolsv.exe
 520 CBRegCap.exe
 552 clisvcl.exe
 568 CBLaunch.exe
 592 crons.exe
 612 cvsservice.exe
 624 cvslock.exe
 640 defwatch.exe
 656 svchost.exe
 680 mysqld-nt.exe
 728 ndserv.exe
 748 rtvscan.exe
 784 regsvc.exe
 800 mstask.exe
 844 cygrunsrv.exe
 888 WinMgmt.exe
 920 sshd.exe
 924 winvnc.exe
 972 svchost.exe
1016 Wuser32.exe
1036 SMSAPM32.exe
1044 XMail.exe
2164 MSGSYS.exe
2428 explorer.exe
2568 launch32.exe
2596 vptray.exe
2636 ApacheMonitor.e.exe
2656 CBSysTray.exe
2664 SMSMon32.exe
2724 Apache.exe
2088 sshd.exe
2472 bash.exe
2648 DRWTSN32.exe
   0 _Total.exe

(0040 - 00405000) 
<<< LINES REMOVED >>>
(1000 - 10006000) 

State Dump for Thread Id 0x418

eax= ebx= ecx= edx=004979b8 esi=004979b8
edi=
eip=100020c6 esp=0006f8d8 ebp=6ff0d7b0 iopl=0 nv up ei pl nz ac po
nc
cs=001b  ss=0023  ds=0023  es=0023  fs=0038  gs=
efl=0216


function: 
100020ad 90   nop
100020ae 90   nop
100020af 90   nop
100020b0 a140310010   mov eax,[10003140]
ds:10003140=007180f0
100020b5 8b542408 mov edx,[esp+0x8] 
ss:00bfceab=
100020b9 8b08 mov ecx,[eax] 
ds:=
100020bb 8b02 mov eax,[edx] 
ds:004979b8=005111c8
100020bd 8b4488fc mov eax,[eax+ecx*4+0xfc]  
ds:00b8d5d3=
100020c1 8b08 mov ecx,[eax] 
ds:=
100020c3 8b4074   mov eax,[eax+0x74]
ds:00b8d5d2=
FAULT ->100020c6 8b5104   mov edx,[ecx+0x4] 
ds:00b8d5d2=
100020c9 894244   mov [edx+0x44],eax
ds:01024f8a=
100020cc b80100   mov eax,0x1
100020d1 c3   ret
100020d2 90   nop
100020d3 90   nop
100020d4 90   nop
100020d5 90   nop
100020d6 90   nop
100020d7 90   nop
100020d8 90   nop
100020d9 90   nop

*> Stack Back Trace <*

FramePtr ReturnAd Param#1  Param#2  Param#3  Param#4  Function Name
6FF0D7B0 1424548B 1C24448D 24448B50 4C8B5114 006A1424 ! 
18244C8B       

*> Raw Stack Dump <*
0006f8d8  bc d8 5e 00 00 33 49 00 - b8 79 49 00 00 00 00 00 
..^..3I..yI.
0006f8e8  b8 79 49 00 fc f8 06 00 - 00 00 00 00 fc a4 f8 77 
.yIw
0006f8f8  03 01 00 00 98 bb 07 00 - 98 bb 07 00 14 f9 06 00 

0006f908  00 00 00 00 fc a4 f8 77 - 03 01 00 00 5c f9 06 00 
...w\...
0006f918  74 77 e8 77 e5 03 00 00 - 98 bb 07 00 fa 02 e9 77 
tw.w...w
0006f928  03 01 00 00 98 bb 07 00 - 68 bb 07 00 00 ba 07 00 
h...
0006f938  00 00 83 01 19 00 00 00 - 98 bb 07 00 80 08 83 01 

0006f948  60 01 83 01 00 00 00 00 - 14 00 00 00 98 bb 07 00 
`...
0006f958  00 bb 07 00 00 20 00 00 - 20 09 83 01 e8 09 83 01  . ..
...
0006f968  e0 02 83 01 80 08 83 01 - 88 08 83 01 a0 00 00 00 

0006f978  00 00 00 00 98 00 00 00 - 98 00 00 00 b0 ff 06 00 

0006f988  95 2b f8 77 08 36 f8 77 - ff ff ff ff 81 00 00 00 
.+.w.6.w
0006f998  22 84 69 00 00 00 83 01 - 01 00 00 00 98 00 00 00 
".i.
0006f9a8  80 00 00 00 08 fa 06 00 - b0 d7 f0 6f b8 79 49 00 
...o.yI.
0006f9b8  54 86 69 00 81 00 00 00 -

#22056 [Fbk->Opn]: when using Command-Line-Interpreter getting sgementation fault on Exit

2003-02-04 Thread php
 ID:   22056
 User updated by:  [EMAIL PROTECTED]
 Reported By:  [EMAIL PROTECTED]
-Status:   Feedback
+Status:   Open
 Bug Type: InterBase related
 Operating System: Linux (Kernel 2.4.20)
 PHP Version:  4.3.0
 New Comment:

installed supplied snapshot - 4.3.1-dev

Unfortunatly i get the same results!


Previous Comments:


[2003-02-04 15:36:02] [EMAIL PROTECTED]

Please try using this CVS snapshot:

  http://snaps.php.net/php4-STABLE-latest.tar.gz
 
For Windows:
 
  http://snaps.php.net/win32/php4-win32-STABLE-latest.zip





[2003-02-04 15:09:06] [EMAIL PROTECTED]

When executing a script from command line (php -f script.php) i get a
segmentation fault after successfully finishing the script.
This only happens, when using the ibase functions. Replacing them with
mysql everything works fine.
executing the script by calling it from a browser it works too.
This only happens, when using command-line-interface and
ibase-functions.

tried the following with same result:
- using ibase_prepare, ibase_execute instead of ibase_query
- explicit start and commit of transactions
- ibase_pconnect instead of ibase_connect

Here's the script i use:

http://gateway/accounting/ip.cgi";);
 $hnd=fopen("ip.cgi","r");
 If ($link=ibase_connect("bogus.gdb","xx","xx","WIN1250")) {
  while (!feof($hnd)) {
   If ($buf=fgets($hnd)) {
$src="";
$dst="";
$bytes="0";
$pack="0";
$buf=trim($buf);
if ($buf<>"") {
 list($src,$dst,$bytes,$pack,$rest)=split(" ",$buf,5);
 $sql="INSERT INTO AcctInfo(SRC,DST,Bytes,Packets) VALUES
('$src','$dst',$bytes,$pack)";
 ibase_query($link,$sql);
}
   }
  }
  ibase_close($link);
 }
 fclose($hnd);
 unlink("ip.cgi");
php?>




-- 
Edit this bug report at http://bugs.php.net/?id=22056&edit=1




#21310 [Opn]: no such file (paths)

2003-02-04 Thread jflemer
 ID:   21310
 Updated by:   [EMAIL PROTECTED]
 Reported By:  [EMAIL PROTECTED]
 Status:   Open
 Bug Type: *Directory/Filesystem functions
 Operating System: Solaris 8
 PHP Version:  4.3.0
 New Comment:

I am able to duplicate this on Solaris 8, Apache 1.3.27, PHP 4.3.0.  I
traced it to getcwd() (aka VCWD_GETCWD) returning null, and
errno=EACCES in fopen_wrappers.c:expand_filepath().  The same code
works on 4.2.3.  However, this test was done in a non-standard
environment using Kerberos and a distributed file system, so this test
may not be representative.

For those of you experiencing this problem, check to see that there is
read perms on the afflicted directory and all ancestors.


Previous Comments:


[2003-01-23 06:41:04] [EMAIL PROTECTED]

Not to jump in..

Theres a cron job i've been running on a few servers and
it's survived quite a few php upgrades.  I tested
php4.3.0 on one of those servers (upgrading cli from 4.2.3)
and now the cron job refuses to run.  Same issue as above.
It appears the cli is not honoring include path. (My path
has a . (dot), and relative paths from the directory of
the script do not work after the upgrade.  The application
running on the webserver works fine on 4.3.0.



[2003-01-17 20:10:38] [EMAIL PROTECTED]

oops..




[2003-01-17 10:41:19] [EMAIL PROTECTED]

[EMAIL PROTECTED]:
Instead of spamming the bugdb with your theories, *please* respond to
our requests for more information in your own bug report.
We need *facts* to be able to fix the problem, and so far you haven't
given us any.



[2003-01-17 10:21:26] [EMAIL PROTECTED]

I reported this same problem aka. (BUG) at Bug# 21674
I too was told this is not a bug. I just upgraded to 4.3.0 from 4.1.2.
This problem did not previously exist. I'm getting the exact same
messages. Why hasn't the tech group at php.net not recognized that this
is, in fact, a bug? Too many reported occurences and all seem related
to 4.3.0.

The issue is related to "include_path".

In my case, I have a file located at 
/home/sites/site2/web/IV/config.php

The above file contans the following lines:
include_once ('lang.php');
include ('extras.php'); 

I have another script located at 
/home/sites/site3/web/powerpage.php 
 -> which contains the following lines: < 
require_once ("/home/sites/site2/web/IV/config.php");
langtop();

At first I thought it was a permissions issue. But then I rechecked my
debug process and found the errors are still occuring. (Actually they
appeared with another script of was testing that does similar path
includes.)

Warning: main(lang.php) [function.main]: failed to create stream: No
such file or directory in /home/sites/site2/web/IV/config.php on line
97

Warning: main() [function.main]: Failed opening 'lang.php' for
inclusion (include_path='') in /home/sites/site2/web/IV/config.php on
line 97

Warning: main(extras.php) [function.main]: failed to create stream: No
such file or directory in /home/sites/site2/web/IV/config.php on line
98

Warning: main() [function.main]: Failed opening 'extras.php' for
inclusion (include_path='') in /home/sites/site2/web/IV/config.php on
line 98


This is my guess.  PHP 4.3.0 now incorporates Stream functionality to
allow for references such as https or ssl:

I think that somewhere in this functionality, there was introduced a
hard dependency on absolute file paths that have now negatively
impacted on include functions calls such that if the include does not
reference a file in the same exact path as the calling script, the
above referenced errors will return indicating a failure to create the
stream connection to the requested file.

Just a guess. Im not a php guru. But I do know common sense.
How can all of us who have been affected by this, fix this annoying
problem?

Is it an issue with the PHP.ini file?
Is it an issue with the build process?
Are we now required to use absolute paths for all required includes or
require functions.

Notice: in my case my require_once does not error because I have
referenced the absolute path.



[2003-01-16 05:38:45] [EMAIL PROTECTED]

Both files are located in the same directory.

In my humble opinion, the reason of the problem is, that PHP wants to
read directory with file being included.



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/21310

-- 
Edit this bug report at http://bugs.php.net/?id=21310&edit=1




#21810 [Fbk->NoF]: Not able to start HP/Apache 2.0.43 php-4.2.2 with informix support

2003-02-04 Thread sniper
 ID:   21810
 Updated by:   [EMAIL PROTECTED]
 Reported By:  [EMAIL PROTECTED]
-Status:   Feedback
+Status:   No Feedback
 Bug Type: Informix related
 Operating System: HP-UX 11.00
 PHP Version:  4.2.2
 New Comment:

No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Open". Thank you.




Previous Comments:


[2003-01-21 23:30:10] [EMAIL PROTECTED]

Please try using this CVS snapshot:

  http://snaps.php.net/php4-STABLE-latest.tar.gz
 
For Windows:
 
  http://snaps.php.net/win32/php4-win32-STABLE-latest.zip



[2003-01-21 18:19:33] [EMAIL PROTECTED]

Hi,

OS : HP-UX 11.00 32bit
Apache : HP Apache 2.0.43
 Server Built Oct 16 2002.
PHP: PHP-4.2.2
Informix: 7.2

 PHP-4.2.2 comes pre-complied with HP apache as dynamic module. 
When i tried to compile php with informix support, configure
and make goes fine. 

configured and compiled with following env. variables.

export IFX_LIBDIR="-L$INFORMIXDIR/lib -L$INFORMIXDIR/lib/esql"
export IFX_INCDIR="$INFORMIXDIR/incl/esql"
export IFX_LIBS="$INFORMIXDIR/lib/esql/libifsql.a \
$INFORMIXDIR/lib/libifasf.a \
$INFORMIXDIR/lib/esql/libifgen.a \
$INFORMIXDIR/lib/esql/libifos.a \
$INFORMIXDIR/lib/esql/libifgls.a \
-lgen -lgls -lm -ldl $INFORMIXDIR/lib/esql/checkapi.o \
$INFORMIXDIR/lib/esql/libifglx.a"
export
PATH=$PATH:.:/opt/bison/bin:/opt/binutils/bin:/opt/gcc/bin:/usr/local/bin



But when trying to start apache it gives following error.

# ./apachectl start
Syntax error on line 215 of /opt/hpapache2/conf/httpd.conf:
Cannot load /opt/hpapache2/modules/libphp4.so into server: Unresolved
symbol: ifx_checkAPI (code)  from /usr/informix/lib/esql/libthos.sl

I searched on this site for info and included the above libs in path
before configuring and making php. But still having same problem. Can
someone help me in solving this ?.

Thanks in advance.
Srini.







-- 
Edit this bug report at http://bugs.php.net/?id=21810&edit=1




#21775 [Fbk->NoF]: memory leak: emalloc(): Unable to alllocate 32 bytes

2003-02-04 Thread sniper
 ID:   21775
 Updated by:   [EMAIL PROTECTED]
 Reported By:  [EMAIL PROTECTED]
-Status:   Feedback
+Status:   No Feedback
 Bug Type: Reproducible crash
 Operating System: SuSE Linux 7.3
 PHP Version:  4.3.0
 New Comment:

No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Open". Thank you.




Previous Comments:


[2003-01-21 09:36:56] [EMAIL PROTECTED]

The PHP scripting engine (ZendEngine) doesn't perform conservative GC,
and 
any referenced object are marked as alive. Therefore there are some
cases
where the objects such as mutually-referenced ones remains undestroyed
even
though they are unreachable from the root set of variables. Your
bi-directional
linked list example is just one of such cases.




[2003-01-21 08:26:23] [EMAIL PROTECTED]

The memory limit option will not take effect unless you've compiled
your PHP with --enable-memory-limit.




[2003-01-21 07:26:32] [EMAIL PROTECTED]

Sorry, my bad. I missed "unset" statement.

As for the memory-limit problem it was a bug indeed. See bug #20802.




[2003-01-21 06:03:28] [EMAIL PROTECTED]

my http process rund out of memory after it blowed up
to 320 MB (have 256 MB RAM). in php.ini memory_limit = 8M.
IMHO this is not bogus!



[2003-01-20 11:38:05] [EMAIL PROTECTED]

PHP does not reclaim any memory no longer referenced?
No garbage collection?



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/21775

-- 
Edit this bug report at http://bugs.php.net/?id=21775&edit=1




#21756 [Fbk->NoF]: Accessing $_SERVER['PATH_INFO '] causes intermittent segfault in Apache

2003-02-04 Thread sniper
 ID:   21756
 Updated by:   [EMAIL PROTECTED]
 Reported By:  [EMAIL PROTECTED]
-Status:   Feedback
+Status:   No Feedback
 Bug Type: Reproducible crash
 Operating System: Linux/Apache (Debian 3.0r1)
 PHP Version:  4.3.0
 New Comment:

No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Open". Thank you.




Previous Comments:


[2003-01-20 04:50:25] [EMAIL PROTECTED]

Thank you for this bug report. To properly diagnose the problem, we
need a backtrace to see what is happening behind the scenes. To
find out how to generate a backtrace, please read
http://bugs.php.net/bugs-generating-backtrace.php

Once you have generated a backtrace, please submit it to this bug
report and change the status back to "Open". Thank you for helping
us make PHP better.


There you can find some info how to use GDB properly.

Can you provide a short, COMPLETE and self-contained
example script that can be used to reproduce this?

It's not much use for us to try guessing unless you don't 
give us the necessary information..




[2003-01-20 04:46:57] [EMAIL PROTECTED]

Yes, you're right, the include() statement in my toy example should
have been wrapped in a pair of braces - the actual code does not
contain calls to include() however...

I'm sorry I could not provide a backtrace - the thing refused to
misbehave when gdb was listening.  Prehaps someone who is more familiar
with the Apache (1.3) / PHP interface will know where to examine more
closely.



[2003-01-20 00:04:35] [EMAIL PROTECTED]

Sounds pretty unlikely for the crash being caused 
by unset variable/array index. 

And btw. If you conditionally include() files, then
you MUST use { } with the clauses:

http://www.php.net/manual/en/function.include.php
(Example 12-6)

Maybe this caused the crashes?





[2003-01-19 14:34:35] [EMAIL PROTECTED]

If the special global $_SERVER['PATH_INFO'] is accessed in scripts on
either my test or production server when it is not set (on load of home
page usually) it causes Apache to segfault intermittently (like 1/100
page views...).

eg, this is what caused me grief:
if( $_SERVER['PATH_INFO'] == 'whatever')
   include( 'whatever_else');

Wrapping in call to 'isset' stopped crashes:
if( isset($_SERVER['PATH_INFO']) )
if( $_SERVER['PATH_INFO'] == 'whatever')
   include( 'whatever_else');

Was really hard to reproduce.  In the end I sat at a split screen
comparing the error to the access log, second by second.  The error log
was reporting ~100-300 segfaults a day untill I used the call to isset,
when that dropped to zero.  (After a fun 6 hours trying to catch it
with gdb...)




-- 
Edit this bug report at http://bugs.php.net/?id=21756&edit=1




#21749 [Fbk->NoF]: webmail ( squirrelmail 1.2.10

2003-02-04 Thread sniper
 ID:   21749
 Updated by:   [EMAIL PROTECTED]
 Reported By:  [EMAIL PROTECTED]
-Status:   Feedback
+Status:   No Feedback
 Bug Type: *General Issues
 Operating System: freebsd 4.5
 PHP Version:  4.3.0
 New Comment:

No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Open". Thank you.




Previous Comments:


[2003-01-19 09:27:04] [EMAIL PROTECTED]

Thank you for this bug report. To properly diagnose the problem, we
need a backtrace to see what is happening behind the scenes. To
find out how to generate a backtrace, please read
http://bugs.php.net/bugs-generating-backtrace.php

Once you have generated a backtrace, please submit it to this bug
report and change the status back to "Open". Thank you for helping
us make PHP better.



[2003-01-19 09:22:34] [EMAIL PROTECTED]

When  i try to use my webmail ( squirrelmail 1.2.10 ) my browser says
document contains no data. If i use php 4.2.3, it works when it feels
like it, 4.2.3 is flaky with the webmail system. I use apache 2.0.43
and it compiled just fine, i compiled it the way squirrelmail wanted
it, still does not work.




-- 
Edit this bug report at http://bugs.php.net/?id=21749&edit=1




#21736 [Fbk->NoF]: fsockopen timeouts

2003-02-04 Thread sniper
 ID:   21736
 Updated by:   [EMAIL PROTECTED]
 Reported By:  [EMAIL PROTECTED]
-Status:   Feedback
+Status:   No Feedback
 Bug Type: Sockets related
 Operating System: Linux (kernel 2.4.18)
 PHP Version:  4.3.1-dev
 New Comment:

No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Open". Thank you.




Previous Comments:


[2003-01-20 09:04:25] [EMAIL PROTECTED]

Please try generating a backtrace as I asked, otherwise we will never
know what is causing this problem.



[2003-01-20 05:20:14] [EMAIL PROTECTED]

Don't worry so. I will ask to my developpers to look in fsock.c to
correct the problem.
You can close the bug if you want.
Have a good day.



[2003-01-19 23:57:22] [EMAIL PROTECTED]

FYI: I can NOT reproduce this with PHP 4.3.1-dev.





[2003-01-19 18:34:04] [EMAIL PROTECTED]

Hi,

I just tried :
http://snaps.php.net/php4-STABLE-latest.tar.gz
and the problem remains the same.

I'm sorry to bore you with that.



[2003-01-19 18:28:13] [EMAIL PROTECTED]

leaving marked as feedback until user reports back.



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/21736

-- 
Edit this bug report at http://bugs.php.net/?id=21736&edit=1




#21731 [Fbk->NoF]: imagettfbbox() and imagettftext() don't work

2003-02-04 Thread sniper
 ID:   21731
 Updated by:   [EMAIL PROTECTED]
 Reported By:  [EMAIL PROTECTED]
-Status:   Feedback
+Status:   No Feedback
 Bug Type: GD related
 Operating System: Linux
 PHP Version:  4.3.0
 New Comment:

No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Open". Thank you.




Previous Comments:


[2003-01-19 17:57:33] [EMAIL PROTECTED]

Please try using this CVS snapshot:

  http://snaps.php.net/php4-STABLE-latest.tar.gz
 
For Windows:
 
  http://snaps.php.net/win32/php4-win32-STABLE-latest.zip

I've tried both relative and full paths for the font files and it had
worked each time. Try using the latest CVS snapshot, it may solve the
problem



[2003-01-18 20:52:26] [EMAIL PROTECTED]

Well I have had the time to google a lot, and found out that
using realpath($fonte) the script work.

See http://bugs.php.net/bug.php?id=6960



[2003-01-18 16:03:41] [EMAIL PROTECTED]

damn, I don't know why .phps does not work either..
anyway that doesn't bother me you can see the source here

http://www.ditech.com.br/~alvaro/im.txt

the other links work fine



[2003-01-18 13:15:03] [EMAIL PROTECTED]

Please supply working examples, the provided URLs cannot be accessed.



[2003-01-18 13:04:16] [EMAIL PROTECTED]


This is what I get when trying to write a text over a PNG
(tried JPEG too) image.

Warning: imagettfbbox() [function.imagettfbbox]: Could not find/open
font in /home/alvaro/html/im.php on line 6

Warning: imagettftext() [function.imagettftext]: Could not find/open
font in /home/alvaro/html/im.php on line 14


file perms are ok.

PHP 4.3 compiled with bundled GD+external jpeg libs with gcc-3.2 on
Debian.

URL is http://www.ditech.com.br/~alvaro/im.php

source is http://www.ditech.com.br/~alvaro/im.phps

PHPinfo: http://www.ditech.com.br/~alvaro/php.php




-- 
Edit this bug report at http://bugs.php.net/?id=21731&edit=1




#21689 [Fbk->NoF]: fgetcsv suppresses some characters before a separator

2003-02-04 Thread sniper
 ID:   21689
 Updated by:   [EMAIL PROTECTED]
 Reported By:  [EMAIL PROTECTED]
-Status:   Feedback
+Status:   No Feedback
 Bug Type: Filesystem function related
 Operating System: OS/2
 PHP Version:  4.2.3
 New Comment:

No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Open". Thank you.




Previous Comments:


[2003-01-21 04:14:32] [EMAIL PROTECTED]

Please try using this CVS snapshot:

  http://snaps.php.net/php4-STABLE-latest.tar.gz
 
For Windows:
 
  http://snaps.php.net/win32/php4-win32-STABLE-latest.zip


Your example works just fine here (linux), using 4.3.1-dev.





[2003-01-21 04:04:38] [EMAIL PROTECTED]

Has refreshed soft:
PHP Version 4.3.0
Apache/1.3.27
But the error in operation of the function has remained



[2003-01-16 12:19:26] [EMAIL PROTECTED]

Thank you for taking the time to report a problem with PHP.
Unfortunately you are not using a current version of PHP -- 
the problem might already be fixed. Please download a new
PHP version from http://www.php.net/downloads.php

If you are able to reproduce the bug with one of the latest
versions of PHP, please change the PHP version on this bug report
to the version you tested and change the status back to "Open".
Again, thank you for your continued support of PHP.





[2003-01-16 10:41:56] [EMAIL PROTECTED]

fgetcsv suppresses some characters before a separator
[OS/2 kheldar 1 2.45 i386, PHP Version 4.2.3, Apache/1.3.22]
For example if the csv file has following content:

âàø|âåø|âàøå|àø|ø|øø

the comand $date = fgetcsv($f, 1000, "|");

gets the array('âà','âå','âàøå','à','','').
instead of
array('âàø','âåø','âàøå','àø','ø','øø').

Is installed, that Example works correctly with:
1.FreeBSD 4.1, PHP Version 4.1.2, Apache/1.3.19
2.Windows 98 4.10, PHP Version 4.1.1, Apache/1.3.6




-- 
Edit this bug report at http://bugs.php.net/?id=21689&edit=1




#21674 [Fbk->NoF]: Warning: main(lang.php) [function.main]: failed to create stream: No such file

2003-02-04 Thread sniper
 ID:   21674
 Updated by:   [EMAIL PROTECTED]
 Reported By:  [EMAIL PROTECTED]
-Status:   Feedback
+Status:   No Feedback
 Bug Type: *URL Functions
 Operating System: Cobalt RAQ4 Apache/Linux
 PHP Version:  4.3.0
 New Comment:

No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Open". Thank you.




Previous Comments:


[2003-01-22 22:25:22] [EMAIL PROTECTED]

The point of asking for var_dump(ini_get('include_path')); is so you'll
show the output of it.  This is a form of debugging.

The problem has to do with the include_path directive.  Now we're
trying to figure out why/where it gets set to '' before doing some of
these includes as this seems to be the case.

So, whenever you get this error:

Warning: main() [function.main]: Failed opening 'foo.php'...

Add this line above the include:

var_dump(array(ini_get('include_path'),__LINE__,__FILE));

This way we'll know some useful information.  Basically put this line
above EVERY one of these failed includes, such as the inclusion
config.php, extra.php, and lang.php.  

Please do this and show the output in your next reply.  Btw, I modified
Wez's debug dump a little so we can be a little more specific :)  Also,
be 100% sure you are not setting this directive in either httpd.conf or
.htaccess.



[2003-01-22 10:38:48] [EMAIL PROTECTED]

Hello Wez:

Not it does not look like that.  I was asked to include
var_dump(ini_get('include_path'));

before the require_once statement in the primary script,
phpbug21674.php

Remember there are two scripts located in different paths representing
two different virtual domains.

/home/site3/phpbug21674.php (contains a require_once
("/home/sites/site2/web/IV/config.php");

and /home/sites/site2/web/IV/config.php" ---> contains
include_once ('lang.php');
include ('extras.php'); 

However, I did go back and also added the var_dump to config.php to
reflect as follows:

var_dump(ini_get('include_path'));
include_once ('lang.php');
include ('extras.php'); 


Results: Same results = Failed to create stream:

Again, this script worked fine on PHP 4.1.2 Now it seems to get it to
work, I have to reference the absolute path.



[2003-01-22 05:00:55] [EMAIL PROTECTED]

Just to be extra sure:

in config.php, do lines 97 and 98 look like this:

var_dump(ini_get('include_path'));
include ('extras.php');

If not, please make sure they do and report back.
If they do, then something really strange is going on.



[2003-01-21 22:52:29] [EMAIL PROTECTED]

Hello PHP.NET:

So is this bug a stream related 4.3.0 bug or not?



[2003-01-18 02:31:51] [EMAIL PROTECTED]

Did you try ? :

chown o+r / /home /home/sites \
   /home/sites/site2 \
   /home/sites/site2/web \
   /home/sites/site2/web/IV

Up to 4.2.3 "x" permission is need on ALL directories to the include.
Since 4.3.0 "rx" permissions are required.

Don't know why. 

Cordialy.



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/21674

-- 
Edit this bug report at http://bugs.php.net/?id=21674&edit=1




#21452 [Fbk->NoF]: Apache dumps core inside php code

2003-02-04 Thread sniper
 ID:   21452
 Updated by:   [EMAIL PROTECTED]
 Reported By:  [EMAIL PROTECTED]
-Status:   Feedback
+Status:   No Feedback
 Bug Type: Apache2 related
 Operating System: Linux - Sparc64
 PHP Version:  4.3.0
 New Comment:

No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Open". Thank you.




Previous Comments:


[2003-01-21 14:21:52] [EMAIL PROTECTED]

Did this happen on a particular script and if so could you provide the
smallest possible version of the script with which the error can be
replicated.



[2003-01-06 00:35:26] [EMAIL PROTECTED]

Not sure why it dumped core, however I do have a backtrace to go with
this coredump.  Apache was running in prefork mode when this happened. 
I'm using Apache 2.0.43 as packaged by Debian.  PHP 4.3.0 was compiled
by hand.

(gdb) bt
#0  0x705e1794 in sapi_initialize_empty_request (tsrm_ls=0x101240) at
/tmp/php/php-4.3.0/main/SAPI.c:399
#1  0x705db460 in php_module_startup (sf=0x706742ac,
additional_modules=0x7067, num_additional_modules=1)
at /tmp/php/php-4.3.0/main/main.c:1035
#2  0x7062cfc0 in php_apache2_startup (sapi_module=0x706742ac) at
/tmp/php/php-4.3.0/sapi/apache2filter/sapi_apache2.c:269
#3  0x7062d85c in php_apache_server_startup (pconf=0xbb688,
plog=0xf3768, ptemp=0xf9780, s=0xbdcf0)
at /tmp/php/php-4.3.0/sapi/apache2filter/sapi_apache2.c:556
#4  0x00055fa0 in ap_run_post_config ()
#5  0x0005e9b8 in main ()
#6  0x703b08f0 in __libc_start_main () from /lib/libc.so.6





-- 
Edit this bug report at http://bugs.php.net/?id=21452&edit=1




#21159 [Fbk->NoF]: zend_ini_parser.y:215.4-6: unrecognized escape: `\\0'

2003-02-04 Thread sniper
 ID:   21159
 Updated by:   [EMAIL PROTECTED]
 Reported By:  [EMAIL PROTECTED]
-Status:   Feedback
+Status:   No Feedback
 Bug Type: Scripting Engine problem
 Operating System: linux
 PHP Version:  4CVS-2002-12-22 (dev)
 New Comment:

No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Open". Thank you.




Previous Comments:


[2003-01-20 21:59:22] [EMAIL PROTECTED]

Please try using this CVS snapshot:

  http://snaps.php.net/php4-STABLE-latest.tar.gz
 
For Windows:
 
  http://snaps.php.net/win32/php4-win32-STABLE-latest.zip


I'm have bison 1.28 and I don't get any errors..




[2002-12-23 00:16:47] [EMAIL PROTECTED]

During make the following exists.  First, the setup:

autoconf : 2.13
bison : (GNU Bison) 1.75

>From the output:

bison -y -p ini_ -v -d /cvs/php4/Zend/zend_ini_parser.y -o
Zend/zend_ini_parser.c
/cvs/php4/Zend/zend_ini_parser.y:215.4-6: unrecognized escape: `\\0'

PHP compiles but maybe this is something to consider.  It's the only
such warning I get.  One thread did talk a little about this specific
error but nothing came of it afaict.  Is this a bison bug?

http://marc.theaimsgroup.com/?l=php-dev&m=103680308111343

Line 215 looks like (aside from a little whitespace change):

|  '\0'  { $$.value.str.val = strdup(""); $$.value.str.len=0; $$.type =
IS_STRING; }




-- 
Edit this bug report at http://bugs.php.net/?id=21159&edit=1




#20607 [Fbk->NoF]: function included from parent script gets lost

2003-02-04 Thread sniper
 ID:   20607
 Updated by:   [EMAIL PROTECTED]
 Reported By:  [EMAIL PROTECTED]
-Status:   Feedback
+Status:   No Feedback
 Bug Type: Scripting Engine problem
 Operating System: red hat 7.2
 PHP Version:  4.2.3
 New Comment:

No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Open". Thank you.




Previous Comments:


[2003-01-20 21:56:38] [EMAIL PROTECTED]

Does PHP 4.3.0 work any better? And btw. the correct 
way to set error_reporting is to use this line:

error_reporting(E_ALL);





[2002-12-26 05:23:16] [EMAIL PROTECTED]

no Im pretty sure it's a apache module. 100% sure actually. changes to
the php.ini require a 'kill -USR1 ' to propagate to the php
interpreter. Ill check if there are any it_db.php's laying about
though. Ill check this out soon... on the local dev box. & ill be able
to chop & change lots more. sorry for not being too quick in trying the
cvs etc. christmas & all..



[2002-12-21 05:36:57] [EMAIL PROTECTED]

Sorry, not cli, I mean cgi.



[2002-12-21 05:22:37] [EMAIL PROTECTED]

Are you running your scripts on php-cli? I suspect another it_db.php,
which is slightly different from the one you intend to include, exists
in the same directory as where scripts run. Because in php-cli,
include() or require() always tries to first seek the files in the CWD
regardress of include_path.




[2002-12-12 07:45:36] [EMAIL PROTECTED]

ok ill try a cvs snapshot, 

btw the problem doesnt happen on our win2K test server (for once!
windows being nice??)

ill see if this also happens on our soon-to-be-live redhat dev-box, ill
be able to do lots more on that box than on the live one



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/20607

-- 
Edit this bug report at http://bugs.php.net/?id=20607&edit=1




#22052 [Fbk->Opn]: Ftp ftp_rawlist,ftp_nlist broken

2003-02-04 Thread ntrujillo
 ID:   22052
 User updated by:  [EMAIL PROTECTED]
 Reported By:  [EMAIL PROTECTED]
-Status:   Feedback
+Status:   Open
 Bug Type: Reproducible crash
 Operating System: FreeBSD 5.0-RELEASE #0
 PHP Version:  4.3.1-dev
 New Comment:

got a php dump finally:
gdb `which php` php.core.1
GNU gdb 5.2.1 (FreeBSD)
Copyright 2002 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and
you are
welcome to change it and/or distribute copies of it under certain
conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for
details.
This GDB was configured as "i386-undermydesk-freebsd"...
Core was generated by `php'.
Program terminated with signal 10, Bus error.
Reading symbols from /usr/local/lib/mysql/libmysqlclient.so.10...done.
Loaded symbols for /usr/local/lib/mysql/libmysqlclient.so.10
Reading symbols from /usr/local/lib/libming.so.3...done.
Loaded symbols for /usr/local/lib/libming.so.3
Reading symbols from /usr/lib/libm.so.2...done.
Loaded symbols for /usr/lib/libm.so.2
Reading symbols from /usr/local/lib/libgd.so.2...done.
Loaded symbols for /usr/local/lib/libgd.so.2
Reading symbols from /usr/local/lib/libfreetype.so.9...done.
Loaded symbols for /usr/local/lib/libfreetype.so.9
Reading symbols from /usr/local/lib/libpng.so.5...done.
Loaded symbols for /usr/local/lib/libpng.so.5
Reading symbols from /usr/lib/libz.so.2...done.
Loaded symbols for /usr/lib/libz.so.2
Reading symbols from /usr/local/lib/libjpeg.so.9...done.
Loaded symbols for /usr/local/lib/libjpeg.so.9
Reading symbols from /usr/lib/libcrypt.so.2...done.
Loaded symbols for /usr/lib/libcrypt.so.2
Reading symbols from /usr/lib/libc.so.5...done.
Loaded symbols for /usr/lib/libc.so.5
Reading symbols from /usr/libexec/ld-elf.so.1...done.
Loaded symbols for /usr/libexec/ld-elf.so.1
#0  _efree (ptr=0x0, __zend_filename=0x0, __zend_lineno=0,
__zend_orig_filename=0x0, __zend_orig_lineno=0)
at /usr/ports/www/mod_php4/work/php-4.3.0/Zend/zend_alloc.c:215
215 CALCULATE_REAL_SIZE_AND_CACHE_INDEX(p->size);
(gdb) bt
#0  _efree (ptr=0x0, __zend_filename=0x0, __zend_lineno=0,
__zend_orig_filename=0x0, __zend_orig_lineno=0)
at /usr/ports/www/mod_php4/work/php-4.3.0/Zend/zend_alloc.c:215
#1  0x0806c127 in ftp_chdir (ftp=0xffdc, dir=0x0) at
/usr/ports/www/mod_php4/work/php-4.3.0/ext/ftp/ftp.c:425
#2  0x080693e2 in zif_ftp_chdir (ht=0, return_value=0x8244724,
this_ptr=0x0, return_value_used=0)
at /usr/ports/www/mod_php4/work/php-4.3.0/ext/ftp/php_ftp.c:299
#3  0x0817a56b in execute (op_array=0x823f000) at
/usr/ports/www/mod_php4/work/php-4.3.0/Zend/zend_execute.c:1596
#4  0x0817a788 in execute (op_array=0x8237080) at
/usr/ports/www/mod_php4/work/php-4.3.0/Zend/zend_execute.c:1640
#5  0x0817a788 in execute (op_array=0x82201a4) at
/usr/ports/www/mod_php4/work/php-4.3.0/Zend/zend_execute.c:1640
#6  0x0816990c in zend_execute_scripts (type=8, retval=0x0,
file_count=3)
at /usr/ports/www/mod_php4/work/php-4.3.0/Zend/zend.c:864
#7  0x0813919b in php_execute_script (primary_file=0xbfbffb64) at
/usr/ports/www/mod_php4/work/php-4.3.0/main/main.c:1582
#8  0x08180183 in main (argc=2, argv=0xbfbffbc4) at
/usr/ports/www/mod_php4/work/php-4.3.0/sapi/cli/php_cli.c:753
#9  0x080647f5 in _start ()
(gdb) frame 3
#3  0x0817a56b in execute (op_array=0x823f000) at
/usr/ports/www/mod_php4/work/php-4.3.0/Zend/zend_execute.c:1596
1596   
((zend_internal_function *) EX(function_state).function)->
handler(EX(opline)->extended_value,
EX(Ts)[EX(opline)->result.u.var].var.ptr, EX(object).ptr,
return_value_used TSRMLS_CC)
;


Previous Comments:


[2003-02-04 14:31:07] [EMAIL PROTECTED]

Cannot replicate the bug on Linux using the latest CVS, possibly a BSD
only issue. Can you reproduce the crash using PHP's CLI sapi?
The backtrace does not indicate the the crash is the result of PHP
code, but rather something in Apache code(?).



[2003-02-04 14:20:57] [EMAIL PROTECTED]

Spider,
   The Stable branch is still breaking somewhere along the ftp
ftp_*list functions in FreeBSD5. These errors don't appear with the
list command commented out. Please Take note that it is now
seg-faulting twice as opposed to once as well as killing 2 child
procs:

tail - /var/log/httpd-error.log
..
[Wed Feb  5 04:18:19 2003] [notice] child pid 13087 exit signal
Segmentation fault (11)
[Wed Feb  5 04:18:19 2003] [notice] child pid 13070 exit signal
Segmentation fault (11)
[Wed Feb  5 04:18:24 2003] [notice] child pid 13145 exit signal
Segmentation fault (11)
[Wed Feb  5 04:18:24 2003] [notice] child pid 13088 exit signal
Segmentation fault (11)

I dl'ed the recommended
tarchive:http://snaps.p

#15630 [Fbk->NoF]: imap_utf7_decode appears to be broken

2003-02-04 Thread sniper
 ID:   15630
 Updated by:   [EMAIL PROTECTED]
 Reported By:  [EMAIL PROTECTED]
-Status:   Feedback
+Status:   No Feedback
 Bug Type: IMAP related
 Operating System: SGI Irix 6.5
 PHP Version:  4.2.2
 New Comment:

No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Open". Thank you.




Previous Comments:


[2003-01-20 13:37:05] [EMAIL PROTECTED]

Please try using this CVS snapshot:

  http://snaps.php.net/php4-STABLE-latest.tar.gz
 
For Windows:
 
  http://snaps.php.net/win32/php4-win32-STABLE-latest.zip

Seems to work properly with the latest CVS.



[2002-11-21 04:20:12] [EMAIL PROTECTED]

Has the IMAP maintainer responded?

As the patch produces UTF16-BE output/input,
would it be "legal" to call another PHP function
(iconv) within PHP or is it not allowed to depend
on another "PHP" function?

One could easily add an iconv call at the end of the functions to get
the output format right. Or even add an optional paramater for the
imap_utf7_decode function to specify the desired output format, "UTF8"
as default.



[2002-11-14 11:01:09] [EMAIL PROTECTED]

Ok, let fix imap_utf7_encode()/imap_utf7_decode() functions to return
UTF-8. In this case they will be BC, when IMAP folder has only
ISO-8859-1 (ASCII) characters in its name and will also support
international characters.

Gamid Isayev



[2002-11-14 10:28:43] [EMAIL PROTECTED]

>From my understanding Gamid's patches break BC.  This is a bad thing
typically, and repeated requests for users to voice an opinion have not
resulted in any feedback.  At this point I feel that the IMAP
maintainer should decide if this goes in or not, but he has not
answered any emails either.   So until I hear back from the IMAP
maintainer I don't see this being applied.



[2002-11-14 09:50:59] [EMAIL PROTECTED]

Hi,

since it's now two months since the last comment on this bug, will
Gamid Isayev's patches be applied or not?

People really have problems with this bug, as e.g. most webmail
applications won't work properly. At least
german/austrian/finnish/swedish people have Umlauts in their folder
names just to name a few.

Best regards,
Thomas



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/15630

-- 
Edit this bug report at http://bugs.php.net/?id=15630&edit=1




#21986 [Csd]: Apache won't start with libphp4.so compiled with OpenSSl 0.9.7

2003-02-04 Thread dev5
 ID:   21986
 User updated by:  [EMAIL PROTECTED]
 Reported By:  [EMAIL PROTECTED]
 Status:   Closed
 Bug Type: OpenSSL related
 Operating System: FreeBSD 4.6.2
 PHP Version:  4.3.1-dev(feb4 18:30)
 Assigned To:  iliaa
 New Comment:

I reinstalled apache and made sure the OpenSSL is indeed 0.9.7 

same effect... it won't start.

I will contact the openssl, mod_ssl and apache developers and try to
resolve this issue

Thanks again 

Peter


Previous Comments:


[2003-02-04 14:21:21] [EMAIL PROTECTED]

Could it be that your Apache & PHP are compiled against different
versions of OpenSSL and that is the cause the problem?



[2003-02-04 13:58:09] [EMAIL PROTECTED]

Apache still returns an error:
Syntax error on line 205 of /usr/local/apache/conf/httpd.conf:
Cannot load /usr/local/apache/libexec/libphp4.so into server:
/usr/local/apache/libexec/libphp4.so: Undefined symbol
"OPENSSL_add_all_algorithms_noconf"
/usr/local/apache/bin/apachectl startssl: httpd could not be started

system:
Apache 1.3.27
OpenSSL 0.9.7
modssl 2.8.12
php 4.3.1-dev (feb 4 18:30)

make test (php) did not FAIL on any OpenSSL functions, though.

I'm confused. Please help. 

Thank you 
Peter



[2003-02-04 13:18:35] [EMAIL PROTECTED]

issue is no longer a problem on FreeBSD 4.6.2

however bug #21600 came up 
Thank you for fixing :)



[2003-02-04 12:48:11] [EMAIL PROTECTED]

The problem still appears even in CVS 
tested on freeshly installed FreeBSD 4.7 with OpenSSL successfully
patched for FreeBSD

make test still Fails in OpenSSL on creating private keys



[2003-01-31 16:16:06] [EMAIL PROTECTED]

This bug has been fixed in CVS.

In case this was a PHP problem, snapshots of the sources are packaged
every three hours; this change will be in the next snapshot. You can
grab the snapshot at http://snaps.php.net/.
 
In case this was a documentation problem, the fix will show up soon at
http://www.php.net/manual/.

In case this was a PHP.net website problem, the change will show
up on the PHP.net site and on the mirror sites in short time.
 
Thank you for the report, and for helping us make PHP better.





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/21986

-- 
Edit this bug report at http://bugs.php.net/?id=21986&edit=1




#21339 [Com]: cannot compile gettext support

2003-02-04 Thread sjsobol
 ID:   21339
 Comment by:   [EMAIL PROTECTED]
 Reported By:  [EMAIL PROTECTED]
 Status:   Open
 Bug Type: Gettext related
 Operating System: Solaris 8
 PHP Version:  4.3.0
 New Comment:

More info... I am trying to rebuild a Mandrake RPM from the source RPM.
That's what has been failing, so I downloaded the December 27, 2002
tarball off the website earlier today (today is Tuesday, February 4th)
and built it. 

Using --disable-all --with-gettext=/usr/local worked.

So now I've copied over the configure command from the
RPM's spec file and am going to try it. 

At this point I suspect that one of the other configure options is
causing problems. Will post more info as soon 
as I have it.


Previous Comments:


[2003-02-04 05:40:12] [EMAIL PROTECTED]

I've tried compiling it with 
./configure --disable-all
--with-gettext=/path/to/gettext/install/prefix
but still failed. I've given up for now as I've other issues which are
more important...



[2003-02-03 12:08:51] [EMAIL PROTECTED]

I have now experienced this problem too. Found this ticket via
groups.google.com and would like to point out the difference in OS: I'm
running Red Hat Linux 7.3 (i386) and compiling PHP 4.3.0 also, with the
same issue. I did try configure --disable-all --with-gettext and that
didn't work either. I may be confused about what is supposed to go into
--with-gettext=/blah - is 'blah' a pointer to the library directory (in
my case /usr/local/lib) or the source tree? Also, 'make install' (in
gettext) installs the gettext libs into /usr/local/lib, but oddly
enough, does not install the headers into /usr/local/include and I'm
wondering if that might be part of my problem. Configure params are as
follows,

./configure \
--enable-discard-path \
--disable-force-cgi-redirect \
--enable-shared \
--disable-static \
--disable-debug \
--disable-rpath \
--enable-pic \
--enable-inline-optimization \
--enable-memory-limit \
--enable-magic-quotes \
--enable-debugger \
--enable-track-vars \
--with-versioning \
--with-mod_charset \
--with-regex=php \
--enable-track-vars \
--enable-trans-sid \
--enable-safe-mode \
--with-ctype \
--with-ttf \
--with-zlib \
--enable-sysvsem \
--enable-sysvshm \
--enable-yp \
--enable-ftp \
--without-aspell \
--without-kerberos \
--with-gettext=/usr \
--without-dba \
--without-db2 \
--without-db3 \
--with-mysql=/usr/mysql \
--without-gdbm 

(I suspect I'm pointing --with-gettext at the wrong place, but as
previously mentioned, --disable-all --with-gettext with no directory
didn't work either).



[2003-01-27 22:32:10] [EMAIL PROTECTED]

No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Open". Thank you.





[2003-01-14 19:19:45] [EMAIL PROTECTED]

Try this configure line:

./configure --disable-all
--with-gettext=/path/to/gettext/install/prefix

And if that causes the same problem, try this:

./configure --disable-all --with-gettext

This way we can rule out the possibility of other extensions
being the reason..




[2003-01-14 10:14:56] [EMAIL PROTECTED]

I've tried gettext 0.10.40 but got the same unreferenced symbol.



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/21339

-- 
Edit this bug report at http://bugs.php.net/?id=21339&edit=1




#18765 [Com]: FORM POST fields are missing

2003-02-04 Thread s . franke
 ID:   18765
 Comment by:   [EMAIL PROTECTED]
 Reported By:  [EMAIL PROTECTED]
 Status:   No Feedback
 Bug Type: *General Issues
 Operating System: Windows 95
 PHP Version:  4.2.2
 New Comment:

Using php.exe as CGI under WindowsXP and
PHP 4.3.0 or PHP 4.2.3 leads me to same problem:

Settings in PHP.ini:
register_globals = On
always_populate_raw_post_data = Off

_POST is not initialized.

CONTENT_TYPE is "multipart/form-data"

What I also detect: PHP does not touch the POST data - you can read the
POST data manually:

  $fp = fopen("php://stdin", "r");
  $buf = fread($fp, $_ENV["CONTENT_LENGTH"]);
  echo ">>>".$buf."<<<";

Displays the complete data.


Previous Comments:


[2002-12-15 14:43:28] [EMAIL PROTECTED]

i have the same problem with apache 2.0.43 and php-4.3rc3

checkout here: http://markus.dom.de/test/testform.html

if you like.

markus



[2002-11-05 14:04:42] [EMAIL PROTECTED]

Having the same problem under winXP PHP 4.2.3



[2002-10-17 01:00:02] [EMAIL PROTECTED]

No feedback was provided for this bug for over 2 weeks, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".



[2002-10-01 20:39:25] [EMAIL PROTECTED]

Please try using this CVS snapshot:

  http://snaps.php.net/php4-latest.tar.gz
 
For Windows:
 
  http://snaps.php.net/win32/php4-win32-latest.zip





[2002-08-19 23:45:04] [EMAIL PROTECTED]

It has already been two weeks since I posted this.  Is there anyone out
there who can help me with this problem?  Please =)



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/18765

-- 
Edit this bug report at http://bugs.php.net/?id=18765&edit=1




#22057 [Fbk->Bgs]: fgets function failure

2003-02-04 Thread iliaa
 ID:  22057
 Updated by:  [EMAIL PROTECTED]
 Reported By: [EMAIL PROTECTED]
-Status:  Feedback
+Status:  Bogus
 Bug Type:Filesystem function related
 PHP Version: 4.3.0
 New Comment:

Sorry, but your problem does not imply a bug in PHP itself.  For a
list of more appropriate places to ask for help using PHP, please
visit http://www.php.net/support.php as this bug system is not the
appropriate forum for asking support questions. 

Thank you for your interest in PHP.

The manual clearly states that no more then 1 line will be read by
fgets() function. This is not something new, the old code worked in the
exact same manner.
In my tests the outputs of PHP 4.2.3 & 4.3.0 are identical:
PHP 4.2.3
string(17) "HTTP/1.1 200 OK
"

PHP 4.3.0
string(17) "HTTP/1.1 200 OK
"



Previous Comments:


[2003-02-04 16:13:43] [EMAIL PROTECTED]

What error? And please give us a complete (but short!) example
script..




[2003-02-04 15:59:22] [EMAIL PROTECTED]

PHP manual doesn't tell why this function start to give an error in
version 4.3 while working fine with 4.2.x.

I also tried less efficient ways of getting http headers just for test
purposes and such 3-character long string never appears. That
inefficient method returns same string fgets in 4.2.3 used to return.
PHP manual says the function was modified regarding a fix about
binaries. does that affect the result?

As I say it is not about HTTP or server settings. Same code is not
working with 4.3 although it worked fine with 4.2.3. 

Sorry but your answer doesn't help to explain why this error happened
after upgrading to 4.3 while keeping all server and configuration
settings same.



[2003-02-04 15:39:24] [EMAIL PROTECTED]

Thank you for taking the time to write to us, but this is not
a bug. Please double-check the documentation available at
http://www.php.net/manual/ and the instructions on how to report
a bug at http://bugs.php.net/how-to-report.php

fgets() will only return a single line of data or the requested number
of bytes, which ever one is smallest will be returned. In case of HTTP,
the 1st line that will be sent to you by the webserver will be the
response code, which in many cases is just a number 3 bytes long.



[2003-02-04 15:29:19] [EMAIL PROTECTED]

The following code used to return correct  headers for the requested
page whit PHP 4.2.3.. $host, $port and $path variables are dynamically
assigned by the script.
Now it doesn't work without any configuration change other than PHP
upgrade. It returns a three-character string instead of the requested
information. Is this because of the change applied to fgets function in
PHP 4.3? Same code stopped working when migrated to 4.3 from 4.2.3, no
module or configuration change happened during upgrade, same settings
were kept.



$fp = fsockopen($host,$port);

$request =
"GET $path HTTP/1.1
Host: $host$port
Accept: */*
Accept-Charset: iso-8859-1
Accept-Encoding: identity

";
fputs($fp,$request);
$answer = fgets($fp,4096);





-- 
Edit this bug report at http://bugs.php.net/?id=22057&edit=1




#22057 [Opn->Fbk]: fgets function failure

2003-02-04 Thread sniper
 ID:  22057
 Updated by:  [EMAIL PROTECTED]
 Reported By: [EMAIL PROTECTED]
-Status:  Open
+Status:  Feedback
 Bug Type:Filesystem function related
 PHP Version: 4.3.0
 New Comment:

What error? And please give us a complete (but short!) example
script..



Previous Comments:


[2003-02-04 15:59:22] [EMAIL PROTECTED]

PHP manual doesn't tell why this function start to give an error in
version 4.3 while working fine with 4.2.x.

I also tried less efficient ways of getting http headers just for test
purposes and such 3-character long string never appears. That
inefficient method returns same string fgets in 4.2.3 used to return.
PHP manual says the function was modified regarding a fix about
binaries. does that affect the result?

As I say it is not about HTTP or server settings. Same code is not
working with 4.3 although it worked fine with 4.2.3. 

Sorry but your answer doesn't help to explain why this error happened
after upgrading to 4.3 while keeping all server and configuration
settings same.



[2003-02-04 15:39:24] [EMAIL PROTECTED]

Thank you for taking the time to write to us, but this is not
a bug. Please double-check the documentation available at
http://www.php.net/manual/ and the instructions on how to report
a bug at http://bugs.php.net/how-to-report.php

fgets() will only return a single line of data or the requested number
of bytes, which ever one is smallest will be returned. In case of HTTP,
the 1st line that will be sent to you by the webserver will be the
response code, which in many cases is just a number 3 bytes long.



[2003-02-04 15:29:19] [EMAIL PROTECTED]

The following code used to return correct  headers for the requested
page whit PHP 4.2.3.. $host, $port and $path variables are dynamically
assigned by the script.
Now it doesn't work without any configuration change other than PHP
upgrade. It returns a three-character string instead of the requested
information. Is this because of the change applied to fgets function in
PHP 4.3? Same code stopped working when migrated to 4.3 from 4.2.3, no
module or configuration change happened during upgrade, same settings
were kept.



$fp = fsockopen($host,$port);

$request =
"GET $path HTTP/1.1
Host: $host$port
Accept: */*
Accept-Charset: iso-8859-1
Accept-Encoding: identity

";
fputs($fp,$request);
$answer = fgets($fp,4096);





-- 
Edit this bug report at http://bugs.php.net/?id=22057&edit=1




#22057 [Bgs->Opn]: fgets function failure

2003-02-04 Thread elazizli
 ID:  22057
 User updated by: [EMAIL PROTECTED]
 Reported By: [EMAIL PROTECTED]
-Status:  Bogus
+Status:  Open
 Bug Type:Filesystem function related
 PHP Version: 4.3.0
 New Comment:

PHP manual doesn't tell why this function start to give an error in
version 4.3 while working fine with 4.2.x.

I also tried less efficient ways of getting http headers just for test
purposes and such 3-character long string never appears. That
inefficient method returns same string fgets in 4.2.3 used to return.
PHP manual says the function was modified regarding a fix about
binaries. does that affect the result?

As I say it is not about HTTP or server settings. Same code is not
working with 4.3 although it worked fine with 4.2.3. 

Sorry but your answer doesn't help to explain why this error happened
after upgrading to 4.3 while keeping all server and configuration
settings same.


Previous Comments:


[2003-02-04 15:39:24] [EMAIL PROTECTED]

Thank you for taking the time to write to us, but this is not
a bug. Please double-check the documentation available at
http://www.php.net/manual/ and the instructions on how to report
a bug at http://bugs.php.net/how-to-report.php

fgets() will only return a single line of data or the requested number
of bytes, which ever one is smallest will be returned. In case of HTTP,
the 1st line that will be sent to you by the webserver will be the
response code, which in many cases is just a number 3 bytes long.



[2003-02-04 15:29:19] [EMAIL PROTECTED]

The following code used to return correct  headers for the requested
page whit PHP 4.2.3.. $host, $port and $path variables are dynamically
assigned by the script.
Now it doesn't work without any configuration change other than PHP
upgrade. It returns a three-character string instead of the requested
information. Is this because of the change applied to fgets function in
PHP 4.3? Same code stopped working when migrated to 4.3 from 4.2.3, no
module or configuration change happened during upgrade, same settings
were kept.



$fp = fsockopen($host,$port);

$request =
"GET $path HTTP/1.1
Host: $host$port
Accept: */*
Accept-Charset: iso-8859-1
Accept-Encoding: identity

";
fputs($fp,$request);
$answer = fgets($fp,4096);





-- 
Edit this bug report at http://bugs.php.net/?id=22057&edit=1




#21312 [Opn]: session_register doesnt like null values

2003-02-04 Thread charlesk
 ID:   21312
 User updated by:  [EMAIL PROTECTED]
 Reported By:  [EMAIL PROTECTED]
 Status:   Open
 Bug Type: Session related
 Operating System: Windows 2000 Server
 PHP Version:  4.3.0
 New Comment:

Why has nobody from PHP looked at this in a month?

I would like to start using 4.3.0.


Previous Comments:


[2003-02-04 15:41:34] [EMAIL PROTECTED]

I reported this same bug back in November of last year, and have had no
luck with anyone at php.net replying with any acknowledgements to the
bug or fixes.

Here is the link to the bug I reported, with some of the php.net
developers' replies.

http://bugs.php.net/bug.php?id=20583



[2003-01-14 19:14:04] [EMAIL PROTECTED]

PHP 4.3.0, Apache/1.3.27, RedHat Linux 7.3.

The same problem with Horde webmail. Webmail works fine,
but it shows that f warning each time on login page:

Warning: Unknown(): Your script possibly relies on a session
side-effect which existed until PHP 4.2.3. Please be advised that the
session extension does not consider global variables as a source of
data, unless register_globals is enabled. You can disable this
functionality and this warning by setting session.bug_compat_42 or
session.bug_compat_warn to off, respectively. in Unknown on line 0

I've tried to play with
register_globals
session.bug_compat_42
session.bug_compat_warn
in /etc/php.ini file, each time I've restarted apache
of course :) but no luck.

Please, tell me what's wrong?



[2003-01-12 13:06:47] [EMAIL PROTECTED]

Is anyone taking a look at this?  I just want to know how long I should
wait.

Sorry if this sounds impatient, it isnt meant to be.  I am just
wondering.  :)

Charles



[2003-01-03 10:38:26] [EMAIL PROTECTED]

Tryed that and still the same results.



[2003-01-03 10:22:52] [EMAIL PROTECTED]

Try adding this to your php.ini file:

session.bug_compat_42 = 1
session.bug_compat_warn = 0



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/21312

-- 
Edit this bug report at http://bugs.php.net/?id=21312&edit=1




#21312 [Com]: session_register doesnt like null values

2003-02-04 Thread jseverson
 ID:   21312
 Comment by:   [EMAIL PROTECTED]
 Reported By:  [EMAIL PROTECTED]
 Status:   Open
 Bug Type: Session related
 Operating System: Windows 2000 Server
 PHP Version:  4.3.0
 New Comment:

I reported this same bug back in November of last year, and have had no
luck with anyone at php.net replying with any acknowledgements to the
bug or fixes.

Here is the link to the bug I reported, with some of the php.net
developers' replies.

http://bugs.php.net/bug.php?id=20583


Previous Comments:


[2003-01-14 19:14:04] [EMAIL PROTECTED]

PHP 4.3.0, Apache/1.3.27, RedHat Linux 7.3.

The same problem with Horde webmail. Webmail works fine,
but it shows that f warning each time on login page:

Warning: Unknown(): Your script possibly relies on a session
side-effect which existed until PHP 4.2.3. Please be advised that the
session extension does not consider global variables as a source of
data, unless register_globals is enabled. You can disable this
functionality and this warning by setting session.bug_compat_42 or
session.bug_compat_warn to off, respectively. in Unknown on line 0

I've tried to play with
register_globals
session.bug_compat_42
session.bug_compat_warn
in /etc/php.ini file, each time I've restarted apache
of course :) but no luck.

Please, tell me what's wrong?



[2003-01-12 13:06:47] [EMAIL PROTECTED]

Is anyone taking a look at this?  I just want to know how long I should
wait.

Sorry if this sounds impatient, it isnt meant to be.  I am just
wondering.  :)

Charles



[2003-01-03 10:38:26] [EMAIL PROTECTED]

Tryed that and still the same results.



[2003-01-03 10:22:52] [EMAIL PROTECTED]

Try adding this to your php.ini file:

session.bug_compat_42 = 1
session.bug_compat_warn = 0



[2003-01-01 12:19:47] [EMAIL PROTECTED]

i've the same problem with linux (apache 1.3.27) + mysql.
contents of nearly all variable are exchanged!

with a small function i had fixed this temporarly:

function dp_session_register($variable) {
  global ${$variable};
  if(is_null(${$variable}))
${$variable}="";
  return session_register($variable);
}

i hope, this will fixed as soon as posible. thanks.
daniel prior



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/21312

-- 
Edit this bug report at http://bugs.php.net/?id=21312&edit=1




#22057 [Opn->Bgs]: fgets function failure

2003-02-04 Thread iliaa
 ID:  22057
 Updated by:  [EMAIL PROTECTED]
 Reported By: [EMAIL PROTECTED]
-Status:  Open
+Status:  Bogus
 Bug Type:Filesystem function related
 PHP Version: 4.3.0
 New Comment:

Thank you for taking the time to write to us, but this is not
a bug. Please double-check the documentation available at
http://www.php.net/manual/ and the instructions on how to report
a bug at http://bugs.php.net/how-to-report.php

fgets() will only return a single line of data or the requested number
of bytes, which ever one is smallest will be returned. In case of HTTP,
the 1st line that will be sent to you by the webserver will be the
response code, which in many cases is just a number 3 bytes long.


Previous Comments:


[2003-02-04 15:29:19] [EMAIL PROTECTED]

The following code used to return correct  headers for the requested
page whit PHP 4.2.3.. $host, $port and $path variables are dynamically
assigned by the script.
Now it doesn't work without any configuration change other than PHP
upgrade. It returns a three-character string instead of the requested
information. Is this because of the change applied to fgets function in
PHP 4.3? Same code stopped working when migrated to 4.3 from 4.2.3, no
module or configuration change happened during upgrade, same settings
were kept.



$fp = fsockopen($host,$port);

$request =
"GET $path HTTP/1.1
Host: $host$port
Accept: */*
Accept-Charset: iso-8859-1
Accept-Encoding: identity

";
fputs($fp,$request);
$answer = fgets($fp,4096);





-- 
Edit this bug report at http://bugs.php.net/?id=22057&edit=1




#22056 [Opn->Fbk]: when using Command-Line-Interpreter getting sgementation fault on Exit

2003-02-04 Thread iliaa
 ID:   22056
 Updated by:   [EMAIL PROTECTED]
 Reported By:  [EMAIL PROTECTED]
-Status:   Open
+Status:   Feedback
 Bug Type: InterBase related
 Operating System: Linux (Kernel 2.4.20)
 PHP Version:  4.3.0
 New Comment:

Please try using this CVS snapshot:

  http://snaps.php.net/php4-STABLE-latest.tar.gz
 
For Windows:
 
  http://snaps.php.net/win32/php4-win32-STABLE-latest.zip




Previous Comments:


[2003-02-04 15:09:06] [EMAIL PROTECTED]

When executing a script from command line (php -f script.php) i get a
segmentation fault after successfully finishing the script.
This only happens, when using the ibase functions. Replacing them with
mysql everything works fine.
executing the script by calling it from a browser it works too.
This only happens, when using command-line-interface and
ibase-functions.

tried the following with same result:
- using ibase_prepare, ibase_execute instead of ibase_query
- explicit start and commit of transactions
- ibase_pconnect instead of ibase_connect

Here's the script i use:

http://gateway/accounting/ip.cgi";);
 $hnd=fopen("ip.cgi","r");
 If ($link=ibase_connect("bogus.gdb","xx","xx","WIN1250")) {
  while (!feof($hnd)) {
   If ($buf=fgets($hnd)) {
$src="";
$dst="";
$bytes="0";
$pack="0";
$buf=trim($buf);
if ($buf<>"") {
 list($src,$dst,$bytes,$pack,$rest)=split(" ",$buf,5);
 $sql="INSERT INTO AcctInfo(SRC,DST,Bytes,Packets) VALUES
('$src','$dst',$bytes,$pack)";
 ibase_query($link,$sql);
}
   }
  }
  ibase_close($link);
 }
 fclose($hnd);
 unlink("ip.cgi");
php?>




-- 
Edit this bug report at http://bugs.php.net/?id=22056&edit=1




#20473 [Com]: Cannot redeclare gc()

2003-02-04 Thread skerdog
 ID:   20473
 Comment by:   [EMAIL PROTECTED]
 Reported By:  [EMAIL PROTECTED]
 Status:   Closed
 Bug Type: Unknown/Other Function
 Operating System: Linux
 PHP Version:  4.3.0RC1
 New Comment:

SURELY someone knows how to fix this annoying error?  It was first
reported over 2 months ago and there are no postings on this problem
report showing a resolution.  Well?


Previous Comments:


[2003-01-02 07:42:13] [EMAIL PROTECTED]

This one also just hit me upgrading from 4.2.3 to 4.3.0 on 
Gentoo Linux.  Since I cannot seem to find a solution 
online, I will try and rename the PHPLIB functions.



[2002-12-06 21:56:44] [EMAIL PROTECTED]

Has anybody got a solution for this problem. The same thing is
happening to some of our websites. Is there some setting in php.ini
file that can be set to get around this problem.

Thanks,

Craig Marchant



[2002-11-18 01:56:50] [EMAIL PROTECTED]

seems that this is an enhancement of php - because the bug is really in
phplib. sorry.



[2002-11-18 01:30:18] [EMAIL PROTECTED]

Our webserver scripts make heavy use of the phplib.
with php4.3.0rc1 I will get the error

Fatal error: Cannot redeclare gc() in /usr/lib/php/phplib/session.inc
on line 461

thats because phplib defines a function named gc().

with the php4.3.pre1 and earlier versions this problem has not been
apeared - last but not least with the documentation I have not found a
hint about a gc() function within php itself.





-- 
Edit this bug report at http://bugs.php.net/?id=20473&edit=1




#22057 [NEW]: fgets function failure

2003-02-04 Thread elazizli
From: [EMAIL PROTECTED]
Operating system: 
PHP version:  4.3.0
PHP Bug Type: Filesystem function related
Bug description:  fgets function failure

The following code used to return correct  headers for the requested page
whit PHP 4.2.3.. $host, $port and $path variables are dynamically assigned
by the script.
Now it doesn't work without any configuration change other than PHP
upgrade. It returns a three-character string instead of the requested
information. Is this because of the change applied to fgets function in
PHP 4.3? Same code stopped working when migrated to 4.3 from 4.2.3, no
module or configuration change happened during upgrade, same settings were
kept.



$fp = fsockopen($host,$port);

$request =
"GET $path HTTP/1.1
Host: $host$port
Accept: */*
Accept-Charset: iso-8859-1
Accept-Encoding: identity

";
fputs($fp,$request);
$answer = fgets($fp,4096);

-- 
Edit bug report at http://bugs.php.net/?id=22057&edit=1
-- 
Try a CVS snapshot: http://bugs.php.net/fix.php?id=22057&r=trysnapshot
Fixed in CVS:   http://bugs.php.net/fix.php?id=22057&r=fixedcvs
Fixed in release:   http://bugs.php.net/fix.php?id=22057&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=22057&r=needtrace
Try newer version:  http://bugs.php.net/fix.php?id=22057&r=oldversion
Not developer issue:http://bugs.php.net/fix.php?id=22057&r=support
Expected behavior:  http://bugs.php.net/fix.php?id=22057&r=notwrong
Not enough info:http://bugs.php.net/fix.php?id=22057&r=notenoughinfo
Submitted twice:http://bugs.php.net/fix.php?id=22057&r=submittedtwice
register_globals:   http://bugs.php.net/fix.php?id=22057&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=22057&r=php3
Daylight Savings:   http://bugs.php.net/fix.php?id=22057&r=dst
IIS Stability:  http://bugs.php.net/fix.php?id=22057&r=isapi
Install GNU Sed:http://bugs.php.net/fix.php?id=22057&r=gnused




#21908 [Opn->Bgs]: File upload problems beginning in 4.3.0

2003-02-04 Thread iliaa
 ID:   21908
 Updated by:   [EMAIL PROTECTED]
 Reported By:  [EMAIL PROTECTED]
-Status:   Open
+Status:   Bogus
 Bug Type: *General Issues
 Operating System: NetBSD-1.5.2
 PHP Version:  4.3.0
 New Comment:

Sorry, but your problem does not imply a bug in PHP itself.  For a
list of more appropriate places to ask for help using PHP, please
visit http://www.php.net/support.php as this bug system is not the
appropriate forum for asking support questions. 

Thank you for your interest in PHP.

based on user comments the code works fine, the errors were due to
configuration issues or misunderstanding of the docs.


Previous Comments:


[2003-02-04 15:14:40] [EMAIL PROTECTED]

thank you. i am dumb. i saw the FILES stuff and blew it off as being
irrelevant, for whatever reason. thank you again.



[2003-02-04 11:48:38] [EMAIL PROTECTED]

For file uploads it's $_FILES, not $_POST.

Please read
.



[2003-02-04 10:41:43] [EMAIL PROTECTED]

hi -
i set the file upload dir but the problem is still happening and seems
to be a little different. my filename variable does not get passed over
in the post when in the same php program. i have not tried an html that
calls a standalone php yet, but the $afile variable below holds nothing
when you output contents while $crud does. maybe $_POST is not valid
for filenames? or? should i just write email directly to someone? i
promise i've looked at all the docs and grovelled for help locally.  
thank you. 
evatc



[2003-02-03 13:36:48] [EMAIL PROTECTED]

The problem for me was that upload_tmp_dir did not need to be set in
4.2.3.  By default, it used /tmp.  Now if it isn't set, nothing
happens.  However, now that it is set in the php.ini everything is
working again.



[2003-02-03 13:32:40] [EMAIL PROTECTED]

Hello.
I am also finding this error. I am actually running on Linux but
everything else is the same version. this is kind of stolen out of the
wrox book. the variable $afile is empty but $crud gets passed over just
fine. am i referring to it incorrectly? this is making me nuts and i
have an enduser crawling on me to get his scripts fixed. please help.

thank you

[kovacs@darth eva]$ more cispt1test.php
";
print "";
print "";
print "";
print "";
print "";
print "";

}

function upload_file() {
global $afile;
error_reporting(E_ALL);
$afile = $_POST["afile"];
$crud = $_POST["crud"];
print "some stuff";
print "$afile $crud";
if (!@copy($afile,"/tmp/crud")) die ("Can't upload");
var_dump($_FILES);

}
?>


test










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/21908

-- 
Edit this bug report at http://bugs.php.net/?id=21908&edit=1




#21992 [Com]: snmpget returns wrong value on negative integer

2003-02-04 Thread spoon
 ID:   21992
 Comment by:   [EMAIL PROTECTED]
 Reported By:  [EMAIL PROTECTED]
 Status:   Open
 Bug Type: SNMP related
 Operating System: Windows XP Pro SP1
 PHP Version:  4CVS-2003-01-31 (stable)
 New Comment:

Any update on this? If it needs more information/some way of
confirmation, i would be happy to aid.


Previous Comments:


[2003-01-31 21:31:25] [EMAIL PROTECTED]

I believe i read somewhere that PHP's integer max was 2147483647?

If using snmp to pull bandwidth information from a device (such as
ifInOctets and ifOutOctets), the number DOES constandly rise. If using
a device with snmpv1 (32bit) the counter will only reach a certain
number before it rolls over the the opposite and negative number and
counts toward the maximum again.

The Max (and prolly min?) is the same as PHP's. 

"INTEGER(-2147483648..2147483647) -- corresponds to a signed 32-bit
int"


Well, once the counter turns over to the negative, php only returns
"2147483647" for every negative value it reads.


Such as, my ifInOctets for my cisco router is now reading
'-1980181848', and php's snmpget on that oid returns '2147483647', but
when the counter is positive, it returns the correct value.


(this is probably a problem on 64bit snmpv2 since i believe its maximum
is much higher, but thats probably not fix-able)




-- 
Edit this bug report at http://bugs.php.net/?id=21992&edit=1




#21908 [Com]: File upload problems beginning in 4.3.0

2003-02-04 Thread evatckovacs
 ID:   21908
 Comment by:   [EMAIL PROTECTED]
 Reported By:  [EMAIL PROTECTED]
 Status:   Open
 Bug Type: *General Issues
 Operating System: NetBSD-1.5.2
 PHP Version:  4.3.0
 New Comment:

thank you. i am dumb. i saw the FILES stuff and blew it off as being
irrelevant, for whatever reason. thank you again.


Previous Comments:


[2003-02-04 11:48:38] [EMAIL PROTECTED]

For file uploads it's $_FILES, not $_POST.

Please read
.



[2003-02-04 10:41:43] [EMAIL PROTECTED]

hi -
i set the file upload dir but the problem is still happening and seems
to be a little different. my filename variable does not get passed over
in the post when in the same php program. i have not tried an html that
calls a standalone php yet, but the $afile variable below holds nothing
when you output contents while $crud does. maybe $_POST is not valid
for filenames? or? should i just write email directly to someone? i
promise i've looked at all the docs and grovelled for help locally.  
thank you. 
evatc



[2003-02-03 13:36:48] [EMAIL PROTECTED]

The problem for me was that upload_tmp_dir did not need to be set in
4.2.3.  By default, it used /tmp.  Now if it isn't set, nothing
happens.  However, now that it is set in the php.ini everything is
working again.



[2003-02-03 13:32:40] [EMAIL PROTECTED]

Hello.
I am also finding this error. I am actually running on Linux but
everything else is the same version. this is kind of stolen out of the
wrox book. the variable $afile is empty but $crud gets passed over just
fine. am i referring to it incorrectly? this is making me nuts and i
have an enduser crawling on me to get his scripts fixed. please help.

thank you

[kovacs@darth eva]$ more cispt1test.php
";
print "";
print "";
print "";
print "";
print "";
print "";

}

function upload_file() {
global $afile;
error_reporting(E_ALL);
$afile = $_POST["afile"];
$crud = $_POST["crud"];
print "some stuff";
print "$afile $crud";
if (!@copy($afile,"/tmp/crud")) die ("Can't upload");
var_dump($_FILES);

}
?>


test










[2003-02-03 07:29:34] [EMAIL PROTECTED]

Please try this script:







If $_FILES array is empty after submit and no errors are given, try
this script:

 

And check the file upload related settings from the output:

post_max_size
file_uploads
upload_tmp_dir
upload_max_filesize

Also check your Apache error_log for any errors.




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/21908

-- 
Edit this bug report at http://bugs.php.net/?id=21908&edit=1




#22056 [NEW]: when using Command-Line-Interpreter getting sgementation fault on Exit

2003-02-04 Thread php
From: [EMAIL PROTECTED]
Operating system: Linux (Kernel 2.4.20)
PHP version:  4.3.0
PHP Bug Type: InterBase related
Bug description:  when using Command-Line-Interpreter getting sgementation fault on 
Exit

When executing a script from command line (php -f script.php) i get a
segmentation fault after successfully finishing the script.
This only happens, when using the ibase functions. Replacing them with
mysql everything works fine.
executing the script by calling it from a browser it works too.
This only happens, when using command-line-interface and ibase-functions.

tried the following with same result:
- using ibase_prepare, ibase_execute instead of ibase_query
- explicit start and commit of transactions
- ibase_pconnect instead of ibase_connect

Here's the script i use:

http://gateway/accounting/ip.cgi";);
 $hnd=fopen("ip.cgi","r");
 If ($link=ibase_connect("bogus.gdb","xx","xx","WIN1250")) {
  while (!feof($hnd)) {
   If ($buf=fgets($hnd)) {
$src="";
$dst="";
$bytes="0";
$pack="0";
$buf=trim($buf);
if ($buf<>"") {
 list($src,$dst,$bytes,$pack,$rest)=split(" ",$buf,5);
 $sql="INSERT INTO AcctInfo(SRC,DST,Bytes,Packets) VALUES
('$src','$dst',$bytes,$pack)";
 ibase_query($link,$sql);
}
   }
  }
  ibase_close($link);
 }
 fclose($hnd);
 unlink("ip.cgi");
php?>
-- 
Edit bug report at http://bugs.php.net/?id=22056&edit=1
-- 
Try a CVS snapshot: http://bugs.php.net/fix.php?id=22056&r=trysnapshot
Fixed in CVS:   http://bugs.php.net/fix.php?id=22056&r=fixedcvs
Fixed in release:   http://bugs.php.net/fix.php?id=22056&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=22056&r=needtrace
Try newer version:  http://bugs.php.net/fix.php?id=22056&r=oldversion
Not developer issue:http://bugs.php.net/fix.php?id=22056&r=support
Expected behavior:  http://bugs.php.net/fix.php?id=22056&r=notwrong
Not enough info:http://bugs.php.net/fix.php?id=22056&r=notenoughinfo
Submitted twice:http://bugs.php.net/fix.php?id=22056&r=submittedtwice
register_globals:   http://bugs.php.net/fix.php?id=22056&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=22056&r=php3
Daylight Savings:   http://bugs.php.net/fix.php?id=22056&r=dst
IIS Stability:  http://bugs.php.net/fix.php?id=22056&r=isapi
Install GNU Sed:http://bugs.php.net/fix.php?id=22056&r=gnused




#18648 [Opn->Fbk]: Single entry form POST gives incorrect variable content

2003-02-04 Thread moriyoshi
 ID:   18648
 Updated by:   [EMAIL PROTECTED]
 Reported By:  [EMAIL PROTECTED]
-Status:   Open
+Status:   Feedback
 Bug Type: Apache2 related
 Operating System: All
 PHP Version:  5CVS-2003-01-29 (dev) / 4CVS-20020121 (stable)
 New Comment:

[To anyone who experiences this trouble]

Are you sure that your httpd.conf has just A SINGLE KIND OF PHP RELATED
DIRECTIVE?

Then try grep "\(OutputFilter\|InputFilter\|AddType\)" < httpd.conf or
whatsoever.

# bad example (a)
AddInputFilter PHP php
AddOutputFilter PHP php

...

AddType x-httpd-php .php

# bad example (b)
SetInputFilter PHP
SetOutputFilter PHP

...

AddType x-httpd-php .php

# not bad (c)
AddInputFilter PHP php
AddOutputFilter PHP php

# good (d)
AddType x-httpd-php .php



Previous Comments:


[2003-02-04 09:16:42] [EMAIL PROTECTED]

Tested in RH8.0 + PHP 4.2.2 + Apache 2.

- Is ok when you add the 'enctype="multipart/form-data"' propety to the
form tag.
- Is ok when you send using GET method instead POST.
- Is ok when you send more than one field: if you have a text and a
button, if you send it pressing enter only the text send and the
problem occurs. When you press the button, text and button are send and
the problem not occur.
ciao.



[2003-02-03 12:36:09] [EMAIL PROTECTED]

I can _NOT_ reproduce this with Apache 2.0.44 and PHP 4.3.1-dev..




[2003-02-03 11:55:47] [EMAIL PROTECTED]

array(4) {
  [0]=>
  string(1) "1"
  [1]=>
  string(1) "2"
  [2]=>
  string(1) "1"
  [3]=>
  string(1) "2"
}

>From the latest snap's (php4-STABLE, php5). cvs commit (?) :)



[2003-01-31 19:52:37] [EMAIL PROTECTED]

Have Apache/2.0.44 (RedHat8.0 (LastUpdates) mod_ssl/2.0.44
OpenSSL/0.9.6b PHP/4.3.0

Starting Apache answers - 
[root@delta bin]# httpd -DSSL
httpd: module "/usr/src/php-4.3.0/sapi/apache2filter/sapi_apache2.c" is
not comp
atible with this version of Apache.
Please contact the vendor for the correct version.

Where troubles ?



[2003-01-30 03:52:45] [EMAIL PROTECTED]

[EMAIL PROTECTED], Thank you for the info!

Okay, updating version.




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/18648

-- 
Edit this bug report at http://bugs.php.net/?id=18648&edit=1




#22055 [Fbk]: Memory leak with references in objects

2003-02-04 Thread derick
 ID:   22055
 Updated by:   [EMAIL PROTECTED]
 Reported By:  [EMAIL PROTECTED]
 Status:   Feedback
 Bug Type: Scripting Engine problem
 Operating System: RedHat 7.2
 PHP Version:  4.3.0
 New Comment:

oops!

you need to development snapshot from snaps.php.net, which should solve
this.

Derick


Previous Comments:


[2003-02-04 14:36:48] [EMAIL PROTECTED]

Please try using this CVS snapshot:

  http://snaps.php.net/php4-STABLE-latest.tar.gz
 
For Windows:
 
  http://snaps.php.net/win32/php4-win32-STABLE-latest.zip



[2003-02-04 14:35:56] [EMAIL PROTECTED]

/*
If you don't set the UP property,
garbage collection is done in real time

If you set the UP property,
garbage collection is done on script shutdown only
and the VmSize increase.

This is a test case
but if a sub-object (in some package) creates a 
circular reference with a sub-sub-object you leak 
memory without the knowledge of it.
*/
for($i=1;$i<=$nb_loop;$i++){
echo "loop $i";
flush();
for($j=1;$j<=$nb_by_loop;$j++){
$a=&new A(500);
$a->b=&new B(500);
$a->b->UP=&$a; // Memory Leak here
//  unset($a->b->up);
}
sleep($sleep_by_loop);
}





-- 
Edit this bug report at http://bugs.php.net/?id=22055&edit=1




#22055 [Opn->Fbk]: Memory leak with references in objects

2003-02-04 Thread derick
 ID:   22055
 Updated by:   [EMAIL PROTECTED]
 Reported By:  [EMAIL PROTECTED]
-Status:   Open
+Status:   Feedback
 Bug Type: Scripting Engine problem
 Operating System: RedHat 7.2
 PHP Version:  4.3.0
 New Comment:

Please try using this CVS snapshot:

  http://snaps.php.net/php4-STABLE-latest.tar.gz
 
For Windows:
 
  http://snaps.php.net/win32/php4-win32-STABLE-latest.zip


Previous Comments:


[2003-02-04 14:35:56] [EMAIL PROTECTED]

/*
If you don't set the UP property,
garbage collection is done in real time

If you set the UP property,
garbage collection is done on script shutdown only
and the VmSize increase.

This is a test case
but if a sub-object (in some package) creates a 
circular reference with a sub-sub-object you leak 
memory without the knowledge of it.
*/
for($i=1;$i<=$nb_loop;$i++){
echo "loop $i";
flush();
for($j=1;$j<=$nb_by_loop;$j++){
$a=&new A(500);
$a->b=&new B(500);
$a->b->UP=&$a; // Memory Leak here
//  unset($a->b->up);
}
sleep($sleep_by_loop);
}





-- 
Edit this bug report at http://bugs.php.net/?id=22055&edit=1




#22055 [NEW]: Memory leak with references in objects

2003-02-04 Thread jparneodo
From: [EMAIL PROTECTED]
Operating system: RedHat 7.2
PHP version:  4.3.0
PHP Bug Type: Scripting Engine problem
Bug description:  Memory leak with references in objects

/*
If you don't set the UP property,
garbage collection is done in real time

If you set the UP property,
garbage collection is done on script shutdown only
and the VmSize increase.

This is a test case
but if a sub-object (in some package) creates a 
circular reference with a sub-sub-object you leak 
memory without the knowledge of it.
*/
for($i=1;$i<=$nb_loop;$i++){
echo "loop $i";
flush();
for($j=1;$j<=$nb_by_loop;$j++){
$a=&new A(500);
$a->b=&new B(500);
$a->b->UP=&$a; // Memory Leak here
//  unset($a->b->up);
}
sleep($sleep_by_loop);
}

-- 
Edit bug report at http://bugs.php.net/?id=22055&edit=1
-- 
Try a CVS snapshot: http://bugs.php.net/fix.php?id=22055&r=trysnapshot
Fixed in CVS:   http://bugs.php.net/fix.php?id=22055&r=fixedcvs
Fixed in release:   http://bugs.php.net/fix.php?id=22055&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=22055&r=needtrace
Try newer version:  http://bugs.php.net/fix.php?id=22055&r=oldversion
Not developer issue:http://bugs.php.net/fix.php?id=22055&r=support
Expected behavior:  http://bugs.php.net/fix.php?id=22055&r=notwrong
Not enough info:http://bugs.php.net/fix.php?id=22055&r=notenoughinfo
Submitted twice:http://bugs.php.net/fix.php?id=22055&r=submittedtwice
register_globals:   http://bugs.php.net/fix.php?id=22055&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=22055&r=php3
Daylight Savings:   http://bugs.php.net/fix.php?id=22055&r=dst
IIS Stability:  http://bugs.php.net/fix.php?id=22055&r=isapi
Install GNU Sed:http://bugs.php.net/fix.php?id=22055&r=gnused




#22050 [Bgs]: lockup in jpgraph

2003-02-04 Thread iliaa
 ID:   22050
 Updated by:   [EMAIL PROTECTED]
 Reported By:  [EMAIL PROTECTED]
 Status:   Bogus
 Bug Type: GD related
 Operating System: HP-UX 10.20
 PHP Version:  4.3.0
 New Comment:

Oops, the correct bug report can be found here:
http://bugs.php.net/bug.php?id=21596


Previous Comments:


[2003-02-04 14:32:16] [EMAIL PROTECTED]

What are you talking about? 22042 is a postgresql issue on slackware?

This is a GD problem on hp-ux. How exactly are these related?



[2003-02-04 12:37:26] [EMAIL PROTECTED]

Please do not submit the same bug more than once. An existing
bug report already describes this very problem. Even if you feel
that your issue is somewhat different, the resolution is likely
to be the same. Because of this, we hope you add your comments
to the existing bug instead.

Thank you for your interest in PHP.

This is a known problem, bug #22042.



[2003-02-04 12:28:44] [EMAIL PROTECTED]

We have had nothing but problems with graphics under the 4.3.0 release
on HP-UX 10.20.

The most basic test case that we can find is canvaspiralex1.php from
the jpgraph library - this example works fine under 4.1.2, but will
either lock up the httpd with  4.3.0 or wait 30 seconds and time out.

I have tried removing freetype and compiling with older libpng
libraries to no avail.

Here are my compile directives:

export CFLAGS="-Ae -s -O +Onolimit +DA2.0 -I/usr/local/include"
export LDFLAGS="-L/usr/local/lib -s"
export ECHO="print -r"

./configure \
--with-zlib-dir \
--with-png-dir \
--with-gd \
--enable-gd-native-ttf \
--with-freetype-dir \
--with-gettext \
--with-mcrypt \
--with-system-regex \
--without-mysql \
--with-oracle --with-oci8 \
--enable-ftp \
--enable-sockets \
--enable-dbx \
--prefix=/pkg/prdcrm/apache/php \
--with-apache=../apache_1.3.27

What can I do?




-- 
Edit this bug report at http://bugs.php.net/?id=22050&edit=1




#22050 [Com]: lockup in jpgraph

2003-02-04 Thread charles_fisher
 ID:   22050
 Comment by:   [EMAIL PROTECTED]
 Reported By:  [EMAIL PROTECTED]
 Status:   Bogus
 Bug Type: GD related
 Operating System: HP-UX 10.20
 PHP Version:  4.3.0
 New Comment:

What are you talking about? 22042 is a postgresql issue on slackware?

This is a GD problem on hp-ux. How exactly are these related?


Previous Comments:


[2003-02-04 12:37:26] [EMAIL PROTECTED]

Please do not submit the same bug more than once. An existing
bug report already describes this very problem. Even if you feel
that your issue is somewhat different, the resolution is likely
to be the same. Because of this, we hope you add your comments
to the existing bug instead.

Thank you for your interest in PHP.

This is a known problem, bug #22042.



[2003-02-04 12:28:44] [EMAIL PROTECTED]

We have had nothing but problems with graphics under the 4.3.0 release
on HP-UX 10.20.

The most basic test case that we can find is canvaspiralex1.php from
the jpgraph library - this example works fine under 4.1.2, but will
either lock up the httpd with  4.3.0 or wait 30 seconds and time out.

I have tried removing freetype and compiling with older libpng
libraries to no avail.

Here are my compile directives:

export CFLAGS="-Ae -s -O +Onolimit +DA2.0 -I/usr/local/include"
export LDFLAGS="-L/usr/local/lib -s"
export ECHO="print -r"

./configure \
--with-zlib-dir \
--with-png-dir \
--with-gd \
--enable-gd-native-ttf \
--with-freetype-dir \
--with-gettext \
--with-mcrypt \
--with-system-regex \
--without-mysql \
--with-oracle --with-oci8 \
--enable-ftp \
--enable-sockets \
--enable-dbx \
--prefix=/pkg/prdcrm/apache/php \
--with-apache=../apache_1.3.27

What can I do?




-- 
Edit this bug report at http://bugs.php.net/?id=22050&edit=1




#22052 [Opn->Fbk]: Ftp ftp_rawlist,ftp_nlist broken

2003-02-04 Thread iliaa
 ID:   22052
 Updated by:   [EMAIL PROTECTED]
 Reported By:  [EMAIL PROTECTED]
-Status:   Open
+Status:   Feedback
 Bug Type: Reproducible crash
 Operating System: FreeBSD 5.0-RELEASE #0
 PHP Version:  4.3.1-dev
 New Comment:

Cannot replicate the bug on Linux using the latest CVS, possibly a BSD
only issue. Can you reproduce the crash using PHP's CLI sapi?
The backtrace does not indicate the the crash is the result of PHP
code, but rather something in Apache code(?).


Previous Comments:


[2003-02-04 14:20:57] [EMAIL PROTECTED]

Spider,
   The Stable branch is still breaking somewhere along the ftp
ftp_*list functions in FreeBSD5. These errors don't appear with the
list command commented out. Please Take note that it is now
seg-faulting twice as opposed to once as well as killing 2 child
procs:

tail - /var/log/httpd-error.log
..
[Wed Feb  5 04:18:19 2003] [notice] child pid 13087 exit signal
Segmentation fault (11)
[Wed Feb  5 04:18:19 2003] [notice] child pid 13070 exit signal
Segmentation fault (11)
[Wed Feb  5 04:18:24 2003] [notice] child pid 13145 exit signal
Segmentation fault (11)
[Wed Feb  5 04:18:24 2003] [notice] child pid 13088 exit signal
Segmentation fault (11)

I dl'ed the recommended
tarchive:http://snaps.php.net/php4-STABLE-latest.tar.gz
gunzipped,untarred,retarred,bzipped,md5'ed, and recomplied from the
source.

Here are my results:

recompiled : PHP Version 4.3.1-dev 
compile options:'./configure' '--with-apxs=/usr/local/sbin/apxs'
'--with-config-file-path=/usr/local/etc' '--enable-versioning'
'--with-regex=system' '--without-gd' '--without-mysql'
'--with-gd=/usr/local' '--enable-gd-native-ttf'
'--with-freetype-dir=/usr/local' '--with-jpeg-dir=/usr/local'
'--with-png-dir=/usr/local' '--with-zlib' '--with-mysql=/usr/local'
'--enable-ftp' '--enable-debug' '--with-ming=/usr/local'
'--enable-sockets' '--prefix=/usr/local' 'i386-portbld-freebsd5.0' 
gdb dump:
bsd# gdb `which httpd` httpd.core.Wed\ Feb\ \ 5\ 04:07:45\ PST\ 2003
GNU gdb 5.2.1 (FreeBSD)
Copyright 2002 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and
you are
welcome to change it and/or distribute copies of it under certain
conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for
details.
This GDB was configured as "i386-undermydesk-freebsd"...
(no debugging symbols found)...
Core was generated by `httpd'.
Program terminated with signal 5, Trace/breakpoint trap.
Reading symbols from /usr/lib/libcrypt.so.2...(no debugging symbols
found)...
done.
Loaded symbols for /usr/lib/libcrypt.so.2
Reading symbols from /usr/lib/libc.so.5...(no debugging symbols
found)...done.
Loaded symbols for /usr/lib/libc.so.5
Reading symbols from /usr/local/libexec/apache/mod_mmap_static.so...
(no debugging symbols found)...done.
Loaded symbols for /usr/local/libexec/apache/mod_mmap_static.so
Reading symbols from /usr/local/libexec/apache/mod_vhost_alias.so...
(no debugging symbols found)...done.
Loaded symbols for /usr/local/libexec/apache/mod_vhost_alias.so
Reading symbols from /usr/local/libexec/apache/mod_env.so...
(no debugging symbols found)...done.
Loaded symbols for /usr/local/libexec/apache/mod_env.so
Reading symbols from /usr/local/libexec/apache/mod_log_config.so...
(no debugging symbols found)...done.
Loaded symbols for /usr/local/libexec/apache/mod_log_config.so
Reading symbols from /usr/local/libexec/apache/mod_mime_magic.so...
(no debugging symbols found)...done.
Loaded symbols for /usr/local/libexec/apache/mod_mime_magic.so
Reading symbols from /usr/local/libexec/apache/mod_mime.so...
(no debugging symbols found)...done.
Loaded symbols for /usr/local/libexec/apache/mod_mime.so
Reading symbols from /usr/local/libexec/apache/mod_negotiation.so...
(no debugging symbols found)...done.
Loaded symbols for /usr/local/libexec/apache/mod_negotiation.so
Reading symbols from /usr/local/libexec/apache/mod_status.so...
(no debugging symbols found)...done.
Loaded symbols for /usr/local/libexec/apache/mod_status.so
Reading symbols from /usr/local/libexec/apache/mod_info.so...
(no debugging symbols found)...done.
Loaded symbols for /usr/local/libexec/apache/mod_info.so
Reading symbols from /usr/local/libexec/apache/mod_include.so...
(no debugging symbols found)...done.
Loaded symbols for /usr/local/libexec/apache/mod_include.so
Reading symbols from /usr/local/libexec/apache/mod_autoindex.so...
(no debugging symbols found)...done.
Loaded symbols for /usr/local/libexec/apache/mod_autoindex.so
Reading symbols from /usr/local/libexec/apache/mod_dir.so...
(no debugging symbols found)...done.
Loaded symbols for /usr/local/libexec/apache/mod_dir.so
Reading symbols from /usr/local/libexec/apache/mod_cgi.so...
(no debugging symbols found)...done.
Loaded sy

#21986 [Csd]: Apache won't start with libphp4.so compiled with OpenSSl 0.9.7

2003-02-04 Thread iliaa
 ID:   21986
 Updated by:   [EMAIL PROTECTED]
 Reported By:  [EMAIL PROTECTED]
 Status:   Closed
 Bug Type: OpenSSL related
 Operating System: FreeBSD 4.6.2
 PHP Version:  4.3.1-dev(feb4 18:30)
 Assigned To:  iliaa
 New Comment:

Could it be that your Apache & PHP are compiled against different
versions of OpenSSL and that is the cause the problem?


Previous Comments:


[2003-02-04 13:58:09] [EMAIL PROTECTED]

Apache still returns an error:
Syntax error on line 205 of /usr/local/apache/conf/httpd.conf:
Cannot load /usr/local/apache/libexec/libphp4.so into server:
/usr/local/apache/libexec/libphp4.so: Undefined symbol
"OPENSSL_add_all_algorithms_noconf"
/usr/local/apache/bin/apachectl startssl: httpd could not be started

system:
Apache 1.3.27
OpenSSL 0.9.7
modssl 2.8.12
php 4.3.1-dev (feb 4 18:30)

make test (php) did not FAIL on any OpenSSL functions, though.

I'm confused. Please help. 

Thank you 
Peter



[2003-02-04 13:18:35] [EMAIL PROTECTED]

issue is no longer a problem on FreeBSD 4.6.2

however bug #21600 came up 
Thank you for fixing :)



[2003-02-04 12:48:11] [EMAIL PROTECTED]

The problem still appears even in CVS 
tested on freeshly installed FreeBSD 4.7 with OpenSSL successfully
patched for FreeBSD

make test still Fails in OpenSSL on creating private keys



[2003-01-31 16:16:06] [EMAIL PROTECTED]

This bug has been fixed in CVS.

In case this was a PHP problem, snapshots of the sources are packaged
every three hours; this change will be in the next snapshot. You can
grab the snapshot at http://snaps.php.net/.
 
In case this was a documentation problem, the fix will show up soon at
http://www.php.net/manual/.

In case this was a PHP.net website problem, the change will show
up on the PHP.net site and on the mirror sites in short time.
 
Thank you for the report, and for helping us make PHP better.





[2003-01-31 13:02:36] [EMAIL PROTECTED]

Apache 1.3.27 with modssl 2.8.12:
OpenSSL 0.9.7
Returns an error something like:
"Undefined symbol OpenSSL_..._noconf"

php4.3.0 configured with the following line: 
'./configure' '--with-mysql=/usr/local/mysql'
'--with-apxs=/usr/local/apache/bin/apxs' '--enable-track-vars'
'--with-pdflib' '--with-gd' '--with-jpeg-dir=/usr/local/lib'
'--enable-gd-native-ttf' '--with-png-dir=/usr/local/lib'
'--with-xpm-dir=/usr/local/lib' '--with-freetype-dir=/usr/local/lib'
'--with-ttf' '--with-tiff-dir' '--with-zlib' '--enable-ftp'
'--enable-cli' '--with-pspell' --with-openssl


This bug is similar to bug #21947

it seems that there might be a problem with openSSL 0.9.7 and php 4.3.0
together
make test returned 2 FAILS (previously none with openssl 0.9.6e)

1. Fail on error handling
2. Fail on Open SSL create keys (or something like that)


Thanks for help and support

Peter




-- 
Edit this bug report at http://bugs.php.net/?id=21986&edit=1




#22052 [Fbk->Opn]: Ftp ftp_rawlist,ftp_nlist broken

2003-02-04 Thread ntrujillo
 ID:   22052
 User updated by:  [EMAIL PROTECTED]
 Reported By:  [EMAIL PROTECTED]
-Status:   Feedback
+Status:   Open
 Bug Type: Reproducible crash
 Operating System: FreeBSD 5.0-RELEASE #0
-PHP Version:  4.3.0
+PHP Version:  4.3.1-dev
 New Comment:

Spider,
   The Stable branch is still breaking somewhere along the ftp
ftp_*list functions in FreeBSD5. These errors don't appear with the
list command commented out. Please Take note that it is now
seg-faulting twice as opposed to once as well as killing 2 child
procs:

tail - /var/log/httpd-error.log
..
[Wed Feb  5 04:18:19 2003] [notice] child pid 13087 exit signal
Segmentation fault (11)
[Wed Feb  5 04:18:19 2003] [notice] child pid 13070 exit signal
Segmentation fault (11)
[Wed Feb  5 04:18:24 2003] [notice] child pid 13145 exit signal
Segmentation fault (11)
[Wed Feb  5 04:18:24 2003] [notice] child pid 13088 exit signal
Segmentation fault (11)

I dl'ed the recommended
tarchive:http://snaps.php.net/php4-STABLE-latest.tar.gz
gunzipped,untarred,retarred,bzipped,md5'ed, and recomplied from the
source.

Here are my results:

recompiled : PHP Version 4.3.1-dev 
compile options:'./configure' '--with-apxs=/usr/local/sbin/apxs'
'--with-config-file-path=/usr/local/etc' '--enable-versioning'
'--with-regex=system' '--without-gd' '--without-mysql'
'--with-gd=/usr/local' '--enable-gd-native-ttf'
'--with-freetype-dir=/usr/local' '--with-jpeg-dir=/usr/local'
'--with-png-dir=/usr/local' '--with-zlib' '--with-mysql=/usr/local'
'--enable-ftp' '--enable-debug' '--with-ming=/usr/local'
'--enable-sockets' '--prefix=/usr/local' 'i386-portbld-freebsd5.0' 
gdb dump:
bsd# gdb `which httpd` httpd.core.Wed\ Feb\ \ 5\ 04:07:45\ PST\ 2003
GNU gdb 5.2.1 (FreeBSD)
Copyright 2002 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and
you are
welcome to change it and/or distribute copies of it under certain
conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for
details.
This GDB was configured as "i386-undermydesk-freebsd"...
(no debugging symbols found)...
Core was generated by `httpd'.
Program terminated with signal 5, Trace/breakpoint trap.
Reading symbols from /usr/lib/libcrypt.so.2...(no debugging symbols
found)...
done.
Loaded symbols for /usr/lib/libcrypt.so.2
Reading symbols from /usr/lib/libc.so.5...(no debugging symbols
found)...done.
Loaded symbols for /usr/lib/libc.so.5
Reading symbols from /usr/local/libexec/apache/mod_mmap_static.so...
(no debugging symbols found)...done.
Loaded symbols for /usr/local/libexec/apache/mod_mmap_static.so
Reading symbols from /usr/local/libexec/apache/mod_vhost_alias.so...
(no debugging symbols found)...done.
Loaded symbols for /usr/local/libexec/apache/mod_vhost_alias.so
Reading symbols from /usr/local/libexec/apache/mod_env.so...
(no debugging symbols found)...done.
Loaded symbols for /usr/local/libexec/apache/mod_env.so
Reading symbols from /usr/local/libexec/apache/mod_log_config.so...
(no debugging symbols found)...done.
Loaded symbols for /usr/local/libexec/apache/mod_log_config.so
Reading symbols from /usr/local/libexec/apache/mod_mime_magic.so...
(no debugging symbols found)...done.
Loaded symbols for /usr/local/libexec/apache/mod_mime_magic.so
Reading symbols from /usr/local/libexec/apache/mod_mime.so...
(no debugging symbols found)...done.
Loaded symbols for /usr/local/libexec/apache/mod_mime.so
Reading symbols from /usr/local/libexec/apache/mod_negotiation.so...
(no debugging symbols found)...done.
Loaded symbols for /usr/local/libexec/apache/mod_negotiation.so
Reading symbols from /usr/local/libexec/apache/mod_status.so...
(no debugging symbols found)...done.
Loaded symbols for /usr/local/libexec/apache/mod_status.so
Reading symbols from /usr/local/libexec/apache/mod_info.so...
(no debugging symbols found)...done.
Loaded symbols for /usr/local/libexec/apache/mod_info.so
Reading symbols from /usr/local/libexec/apache/mod_include.so...
(no debugging symbols found)...done.
Loaded symbols for /usr/local/libexec/apache/mod_include.so
Reading symbols from /usr/local/libexec/apache/mod_autoindex.so...
(no debugging symbols found)...done.
Loaded symbols for /usr/local/libexec/apache/mod_autoindex.so
Reading symbols from /usr/local/libexec/apache/mod_dir.so...
(no debugging symbols found)...done.
Loaded symbols for /usr/local/libexec/apache/mod_dir.so
Reading symbols from /usr/local/libexec/apache/mod_cgi.so...
(no debugging symbols found)...done.
Loaded symbols for /usr/local/libexec/apache/mod_cgi.so
Reading symbols from /usr/local/libexec/apache/mod_asis.so...
(no debugging symbols found)...done.
Loaded symbols for /usr/local/libexec/apache/mod_asis.so
Reading symbols from /usr/local/libexec/apache/mod_imap.so...
(no debugging symbols found)...done.
Loaded symbols for /usr/local/libexec/apache/mod_i

#21788 [Opn->Sus]: array_multisort() changes array keys unexpectedly given numeric strings as keys

2003-02-04 Thread pollita
 ID:   21788
 Updated by:   [EMAIL PROTECTED]
 Reported By:  [EMAIL PROTECTED]
-Status:   Open
+Status:   Suspended
-Bug Type: Arrays related
+Bug Type: Scripting Engine problem
 Operating System: NT 4.0 SP6a
 PHP Version:  4.3.0
 New Comment:

This is due to Zend casting the array key as a numeric in the array
declarations.  When array_multisort calls zend_qsort any numeric keys
are reassigned beginning with 0.

I'm reclassifying this as a Suspended Scripting Engine Bug for now
(pending discussion), though it's technically expected behavior, and
may eventually be reflagged as "Won't Fix".

For the moment I'm going to say prefix all your array keys with an
extra 0 (or any non-numeric) to force their casting as strings.

For the sake of readability by others looking at this bug, the behavior
can be recreated with the following - simpler - script.

"Joe",
 '12'=>"Joe",
 '03'=>"Frank");
  $b = array('01'=>"Smith",
 '12'=>"Jones",
 '03'=>"Frederick");
  array_multisort($a,$b);
  print_r($a);
  print_r($b);
?>

The expected output would be:
Array
(
[03] => Frank
[12] => Joe
[01] => Joe
)
Array
(
[03] => Frederick
[12] => Jones
[01] => Smith
)


The actual output (because of key type casting) is:
Array
(
[03] => Frank
[0] => Joe
[01] => Joe
)
Array
(
[03] => Frederick
[0] => Jones
[01] => Smith
)



Previous Comments:


[2003-01-20 22:12:41] [EMAIL PROTECTED]

Sorting these 2 arrays
Array
(
[01] => Personal, Master
[02] => Information, Gorean
[03] => Information, Gorean
[04] => Books, Information
[05] => Books, Information
[06] => Information, Gorean
[07] => Information, Gorean
[08] => Books, Information
[09] => Books, Information
[10] => Group, Offline
[11] => Internet, Link Collection
[120011] => Internet, Link Exchange
[13] => Books, Discussion
[14] => Books, Discussion
[150014] => Books, Discussion
[15] => Books, Discussion
[16] => Books, Discussion
[17] => Books, Discussion
[18] => Books, Discussion
)
Array
(
[01] => APPROVED
[02] => APPROVED
[03] => APPROVED
[04] => APPROVED
[05] => APPROVED
[06] => APPROVED
[07] => APPROVED
[08] => APPROVED
[09] => APPROVED
[10] => APPROVED
[11] => APPROVED
[120011] => APPROVED
[13] => APPROVED
[14] => BROKEN
[150014] => BROKEN
[15] => APPROVED
[16] => BROKEN
[17] => BROKEN
[18] => BROKEN
)

Results in changed indices in the arrays
Array
(
[13] => Books, Discussion
[15] => Books, Discussion
[14] => Books, Discussion
[0] => Books, Discussion
[16] => Books, Discussion
[17] => Books, Discussion
[18] => Books, Discussion
[09] => Books, Information
[08] => Books, Information
[04] => Books, Information
[05] => Books, Information
[10] => Group, Offline
[03] => Information, Gorean
[02] => Information, Gorean
[06] => Information, Gorean
[07] => Information, Gorean
[11] => Internet, Link Collection
[1] => Internet, Link Exchange
[01] => Personal, Master
)
Array
(
[13] => APPROVED
[15] => APPROVED
[14] => BROKEN
[0] => BROKEN
[16] => BROKEN
[17] => BROKEN
[18] => BROKEN
[09] => APPROVED
[08] => APPROVED
[04] => APPROVED
[05] => APPROVED
[10] => APPROVED
[03] => APPROVED
[02] => APPROVED
[06] => APPROVED
[07] => APPROVED
[11] => APPROVED
[1] => APPROVED
[01] => APPROVED
)



[2003-01-20 22:05:01] [EMAIL PROTECTED]



/*
The following code produces an unexpected result from the
array_multisort() function.

The indices of the arrays are are modified for the two entries in which
the numeric value reaches the first position of the string index. 
Granted, all of the indices are numerical, and therefore may be
assigned to an integer when converted; however, the expected
replacement would be the integer value of the string representation.
(i.e. "150014" would become 150014)

In actuality, the indices "150014" and "120011" are converted to 1 and
0 respectively.  Therefore, the associative array is no longer
associative and the indices do not relate to the original arrays, even
though the sort order is correct and the two

#21986 [Csd]: Apache won't start with libphp4.so compiled with OpenSSl 0.9.7

2003-02-04 Thread dev5
 ID:   21986
 User updated by:  [EMAIL PROTECTED]
 Reported By:  [EMAIL PROTECTED]
 Status:   Closed
 Bug Type: OpenSSL related
 Operating System: FreeBSD 4.6.2
 PHP Version:  4.3.1-dev(feb4 18:30)
 Assigned To:  iliaa
 New Comment:

Apache still returns an error:
Syntax error on line 205 of /usr/local/apache/conf/httpd.conf:
Cannot load /usr/local/apache/libexec/libphp4.so into server:
/usr/local/apache/libexec/libphp4.so: Undefined symbol
"OPENSSL_add_all_algorithms_noconf"
/usr/local/apache/bin/apachectl startssl: httpd could not be started

system:
Apache 1.3.27
OpenSSL 0.9.7
modssl 2.8.12
php 4.3.1-dev (feb 4 18:30)

make test (php) did not FAIL on any OpenSSL functions, though.

I'm confused. Please help. 

Thank you 
Peter


Previous Comments:


[2003-02-04 13:18:35] [EMAIL PROTECTED]

issue is no longer a problem on FreeBSD 4.6.2

however bug #21600 came up 
Thank you for fixing :)



[2003-02-04 12:48:11] [EMAIL PROTECTED]

The problem still appears even in CVS 
tested on freeshly installed FreeBSD 4.7 with OpenSSL successfully
patched for FreeBSD

make test still Fails in OpenSSL on creating private keys



[2003-01-31 16:16:06] [EMAIL PROTECTED]

This bug has been fixed in CVS.

In case this was a PHP problem, snapshots of the sources are packaged
every three hours; this change will be in the next snapshot. You can
grab the snapshot at http://snaps.php.net/.
 
In case this was a documentation problem, the fix will show up soon at
http://www.php.net/manual/.

In case this was a PHP.net website problem, the change will show
up on the PHP.net site and on the mirror sites in short time.
 
Thank you for the report, and for helping us make PHP better.





[2003-01-31 13:02:36] [EMAIL PROTECTED]

Apache 1.3.27 with modssl 2.8.12:
OpenSSL 0.9.7
Returns an error something like:
"Undefined symbol OpenSSL_..._noconf"

php4.3.0 configured with the following line: 
'./configure' '--with-mysql=/usr/local/mysql'
'--with-apxs=/usr/local/apache/bin/apxs' '--enable-track-vars'
'--with-pdflib' '--with-gd' '--with-jpeg-dir=/usr/local/lib'
'--enable-gd-native-ttf' '--with-png-dir=/usr/local/lib'
'--with-xpm-dir=/usr/local/lib' '--with-freetype-dir=/usr/local/lib'
'--with-ttf' '--with-tiff-dir' '--with-zlib' '--enable-ftp'
'--enable-cli' '--with-pspell' --with-openssl


This bug is similar to bug #21947

it seems that there might be a problem with openSSL 0.9.7 and php 4.3.0
together
make test returned 2 FAILS (previously none with openssl 0.9.6e)

1. Fail on error handling
2. Fail on Open SSL create keys (or something like that)


Thanks for help and support

Peter




-- 
Edit this bug report at http://bugs.php.net/?id=21986&edit=1




#22054 [Opn]: Starting session from specified ID fails

2003-02-04 Thread tboardma
 ID:   22054
 User updated by:  [EMAIL PROTECTED]
 Reported By:  [EMAIL PROTECTED]
 Status:   Open
 Bug Type: Session related
 Operating System: Windows 2000
 PHP Version:  4.3.0
 New Comment:

Running

SERVER_SOFTWARE Microsoft-IIS/5.0 
Server API  ISAPI


Previous Comments:


[2003-02-04 13:04:10] [EMAIL PROTECTED]

I have a script that saves information to a session 
variable and then sends the session_id to another script 
via POST, which does something, then sends data to another 
PHP script by silent POST, including the session_id, which 
is to retrieve the original values saved in the session, 
specified by it's original session_id.

1st PHP script:
$USER_FORM = "a bunch of text";

session_register("USER_FORM");

$sess = session_id();

exit;


2nd PHP script:
/* We want to start our session from a session id that is 
passed
to us in POST data */
$sess = $HTTP_POST_VARS['sess'};

ini_set("session.auto_start", "0");
ini_set("session.cache_limiter", "public");

session_id($sess);
session_start(); 

global $USER_FORM;

/* Instead of printint the "bunch of text", it prints 
nothing */
print $USER_FORM;


This same code worked using PHP 4.0.6 running on UNIX.


In my php.ini, I have session_auto_start set to true, which 
is why I turn it off by setting the ini in the 2nd script.
Register globals is on.





-- 
Edit this bug report at http://bugs.php.net/?id=22054&edit=1




#21986 [Opn->Csd]: Apache won't start with libphp4.so compiled with OpenSSl 0.9.7

2003-02-04 Thread dev5
 ID:   21986
 User updated by:  [EMAIL PROTECTED]
 Reported By:  [EMAIL PROTECTED]
-Status:   Open
+Status:   Closed
 Bug Type: OpenSSL related
-Operating System: FreeBSD 4.7
+Operating System: FreeBSD 4.6.2
-PHP Version:  4.3.1-dev(feb 3 2:30 am)
+PHP Version:  4.3.1-dev(feb4 18:30)
 Assigned To:  iliaa
 New Comment:

issue is no longer a problem on FreeBSD 4.6.2

however bug #21600 came up 
Thank you for fixing :)


Previous Comments:


[2003-02-04 12:48:11] [EMAIL PROTECTED]

The problem still appears even in CVS 
tested on freeshly installed FreeBSD 4.7 with OpenSSL successfully
patched for FreeBSD

make test still Fails in OpenSSL on creating private keys



[2003-01-31 16:16:06] [EMAIL PROTECTED]

This bug has been fixed in CVS.

In case this was a PHP problem, snapshots of the sources are packaged
every three hours; this change will be in the next snapshot. You can
grab the snapshot at http://snaps.php.net/.
 
In case this was a documentation problem, the fix will show up soon at
http://www.php.net/manual/.

In case this was a PHP.net website problem, the change will show
up on the PHP.net site and on the mirror sites in short time.
 
Thank you for the report, and for helping us make PHP better.





[2003-01-31 13:02:36] [EMAIL PROTECTED]

Apache 1.3.27 with modssl 2.8.12:
OpenSSL 0.9.7
Returns an error something like:
"Undefined symbol OpenSSL_..._noconf"

php4.3.0 configured with the following line: 
'./configure' '--with-mysql=/usr/local/mysql'
'--with-apxs=/usr/local/apache/bin/apxs' '--enable-track-vars'
'--with-pdflib' '--with-gd' '--with-jpeg-dir=/usr/local/lib'
'--enable-gd-native-ttf' '--with-png-dir=/usr/local/lib'
'--with-xpm-dir=/usr/local/lib' '--with-freetype-dir=/usr/local/lib'
'--with-ttf' '--with-tiff-dir' '--with-zlib' '--enable-ftp'
'--enable-cli' '--with-pspell' --with-openssl


This bug is similar to bug #21947

it seems that there might be a problem with openSSL 0.9.7 and php 4.3.0
together
make test returned 2 FAILS (previously none with openssl 0.9.6e)

1. Fail on error handling
2. Fail on Open SSL create keys (or something like that)


Thanks for help and support

Peter




-- 
Edit this bug report at http://bugs.php.net/?id=21986&edit=1




#20583 [Opn]: Variable values inconsistent with assignment statements.

2003-02-04 Thread jseverson
 ID:   20583
 User updated by:  [EMAIL PROTECTED]
 Reported By:  [EMAIL PROTECTED]
 Status:   Open
 Bug Type: Session related
 Operating System: RedHat 7.2
 PHP Version:  4CVS-2002-11-22 (stable)
 New Comment:

Just wanted to check in on this bug and see if any progress has been
made...thanks.


Previous Comments:


[2003-01-27 17:45:14] [EMAIL PROTECTED]

Ok, sorry, I didn't realize we weren't allowed to use Oracle in our
samples. Can you please follow these steps then to reproduce the bug:

1. Copy and paste the following code into a file, save file with .php
extension.

___
PHP 4.3.0 BUG";
echo "r is ";
var_dump($r);
$w = "hello";
session_register( "r" );
$x = "bananas";
$y = 5;
$z = 777;
echo "w is " . $w . " (should be \"hello\")\n";
echo "x is " . $x . " (should be \"bananas\")\n";
echo "y is " . $y . " (should be 5)\n";
echo "z is " . $z . " (should be 777)\n";
?>


2. Open up the file you just saved in a web browser, copy the url in
your browser, and then close the browser. (Goal is to make sure
$HTTP_REFERER is null.)

3. Open up a clean browser, and paste the url to that file location and
press enter.

4. You should see the weird assignment statements there.

Just so you can see what my browser said, here is my output:

PHP 4.3.0 BUG
r is NULL 

w is hello (should be "hello") 

x is 777 (should be "bananas") 

y is 777 (should be 5) 

z is 777 (should be 777) 

Thanks, and sorry for not providing a short, complete, self-contained
sample script earlier. I misunderstood the definition of short,
complete, self-contained script.



[2003-01-27 17:35:48] [EMAIL PROTECTED]

So far every script in this report is buggy and can't
possibly work. So fix your scripts first.

Self-contained means that they can be run anywhere,
regardless if there is oracle available or not.
(ie. get rid of the oracle stuff in it)

Short means it's less that 15 lines.

Complete means it's all there, between  tags.





[2003-01-27 16:38:52] [EMAIL PROTECTED]

Oh, I should mention--- if you visit my demonstration, copy the link
into your browser, do not click on it from here.  If $HTTP_REFERER is
actually set to something other than NULL the bug does not occur.

Stephen.



[2003-01-27 16:27:48] [EMAIL PROTECTED]

Hi,
I am sorry to hear the frustration!
My script is self contained, and is of the minimum length to reproduce
the problem.  Just add some php tags!
If you want to see similar code in action, see here:
http://www.stephensykes.com/holwiz/

Note that the bug only occurs if you are creating the session for the
first time - hence the session destroy at the top.

If you session_register the variable $r before setting it, the bug does
not occur.

More specifically, it is only AFTER $r is registered that all variable
assignments begin to take on the last value assigned.

Regards
Stephen.



[2003-01-27 11:12:10] [EMAIL PROTECTED]

I'm completely baffled here. Can you please explain how the two
self-contained short scripts provided above are NOT samples of
"_SHORT_, _COMPLETE_ and _SELF CONTAINED_ example
scripts" ??

We've given you code to produce the bug in less than 20 lines. I don't
know how many lines you are expecting us to reproduce the bug with?

Thanks



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/20583

-- 
Edit this bug report at http://bugs.php.net/?id=20583&edit=1




#13551 [Asn->Csd]: BC functions apply decimal places argument also on arguments

2003-02-04 Thread pollita
 ID:   13551
 Updated by:   [EMAIL PROTECTED]
 Reported By:  [EMAIL PROTECTED]
-Status:   Assigned
+Status:   Closed
 Bug Type: BC math related
 Operating System: Linux 2.2.18
 PHP Version:  4.0.6
-Assigned To:  andi
+Assigned To:  pollita
 New Comment:

This bug has been fixed in CVS.

In case this was a PHP problem, snapshots of the sources are packaged
every three hours; this change will be in the next snapshot. You can
grab the snapshot at http://snaps.php.net/.
 
In case this was a documentation problem, the fix will show up soon at
http://www.php.net/manual/.

In case this was a PHP.net website problem, the change will show
up on the PHP.net site and on the mirror sites in short time.
 
Thank you for the report, and for helping us make PHP better.

bcmath functions now apply scale only to result.


Previous Comments:


[2003-01-02 18:28:39] [EMAIL PROTECTED]

Andi can you take a look? Or just close it if it's bogus.



[2001-10-05 09:02:55] [EMAIL PROTECTED]

That is incorrect. BC is for arbitrary percision arithmetic. Arguments
should be strings not integers. Just change the precision argument in
the example from 0 to 2 and you will see that it will consider the
decimal places of the multiplication arguments.

The problem is that the way PHP BC module is working is that it applies
the decimal places to arguments when it should only apply to the
result.

bcmul('8.78','100',2) should be '878.00'

and

bcmul('8.78','100',0) should be '878' and not '800', otherwise BC PHP
module is useless because you can't perform a calculation and control
the decimal places of the result without affecting the operands.

It should work like sprintf("%.2f",$operand_1*$operand_2) where 2 is
the number of decimal places of the output and and not of the operand
values because these may have much more decimal places than the
result.




[2001-10-05 02:21:10] [EMAIL PROTECTED]

It's not a bug, but a feature (tm). BC only works with integer values,
and all arguments must be integer values.
However, the documentation is not quite clear here.

Derick



[2001-10-04 19:49:04] [EMAIL PROTECTED]

Confirmed with latest CVS. Either the documentation is wrong or the
implementation. Both won't need rocket sience to fix ...

Btw, this seems to be true for all bc*() functions.

Probably the documentation isn't clear enough about the current
behaviour. Andi?

- Markus



[2001-10-04 19:18:17] [EMAIL PROTECTED]

BC functions apply decimal places also on arguments but it should only
apply them on the result.

For example bcmul('8.78','100',0) should return 878 and not 800 as it
does now.





-- 
Edit this bug report at http://bugs.php.net/?id=13551&edit=1




#22054 [NEW]: Starting session from specified ID fails

2003-02-04 Thread tboardma
From: [EMAIL PROTECTED]
Operating system: Windows 2000
PHP version:  4.3.0
PHP Bug Type: Session related
Bug description:  Starting session from specified ID fails

I have a script that saves information to a session 
variable and then sends the session_id to another script 
via POST, which does something, then sends data to another 
PHP script by silent POST, including the session_id, which 
is to retrieve the original values saved in the session, 
specified by it's original session_id.

1st PHP script:
$USER_FORM = "a bunch of text";

session_register("USER_FORM");

$sess = session_id();

exit;


2nd PHP script:
/* We want to start our session from a session id that is 
passed
to us in POST data */
$sess = $HTTP_POST_VARS['sess'};

ini_set("session.auto_start", "0");
ini_set("session.cache_limiter", "public");

session_id($sess);
session_start(); 

global $USER_FORM;

/* Instead of printint the "bunch of text", it prints 
nothing */
print $USER_FORM;


This same code worked using PHP 4.0.6 running on UNIX.


In my php.ini, I have session_auto_start set to true, which 
is why I turn it off by setting the ini in the 2nd script.
Register globals is on.

-- 
Edit bug report at http://bugs.php.net/?id=22054&edit=1
-- 
Try a CVS snapshot: http://bugs.php.net/fix.php?id=22054&r=trysnapshot
Fixed in CVS:   http://bugs.php.net/fix.php?id=22054&r=fixedcvs
Fixed in release:   http://bugs.php.net/fix.php?id=22054&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=22054&r=needtrace
Try newer version:  http://bugs.php.net/fix.php?id=22054&r=oldversion
Not developer issue:http://bugs.php.net/fix.php?id=22054&r=support
Expected behavior:  http://bugs.php.net/fix.php?id=22054&r=notwrong
Not enough info:http://bugs.php.net/fix.php?id=22054&r=notenoughinfo
Submitted twice:http://bugs.php.net/fix.php?id=22054&r=submittedtwice
register_globals:   http://bugs.php.net/fix.php?id=22054&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=22054&r=php3
Daylight Savings:   http://bugs.php.net/fix.php?id=22054&r=dst
IIS Stability:  http://bugs.php.net/fix.php?id=22054&r=isapi
Install GNU Sed:http://bugs.php.net/fix.php?id=22054&r=gnused




#22052 [Opn->Fbk]: Ftp ftp_rawlist,ftp_nlist broken

2003-02-04 Thread sniper
 ID:   22052
 Updated by:   [EMAIL PROTECTED]
 Reported By:  [EMAIL PROTECTED]
-Status:   Open
+Status:   Feedback
 Bug Type: Reproducible crash
 Operating System: FreeBSD 5.0-RELEASE #0
 PHP Version:  4.3.0
 New Comment:

Please try using this CVS snapshot:

  http://snaps.php.net/php4-STABLE-latest.tar.gz
 
For Windows:
 
  http://snaps.php.net/win32/php4-win32-STABLE-latest.zip


Previous Comments:


[2003-02-04 12:47:03] [EMAIL PROTECTED]

this module was compiled from a cvs'ed port to receive benefit of
asyncronous ftp support, however, the ftp_*list functions appear to be
very much broken.

A quick script summary:




A quasi-successful back trace:(no execs!!)

bsd# gdb `which httpd` /httpd.core
GNU gdb 5.2.1 (FreeBSD)
Copyright 2002 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and
you are
welcome to change it and/or distribute copies of it under certain
conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for
details.
This GDB was configured as "i386-undermydesk-freebsd"...
(no debugging symbols found)...
Core was generated by `httpd'.
Program terminated with signal 5, Trace/breakpoint trap.
Reading symbols from /usr/lib/libcrypt.so.2...(no debugging symbols
found)...
done.
Loaded symbols for /usr/lib/libcrypt.so.2
Reading symbols from /usr/lib/libc.so.5...(no debugging symbols
found)...done.
Loaded symbols for /usr/lib/libc.so.5
Reading symbols from /usr/local/libexec/apache/mod_mmap_static.so...
(no debugging symbols found)...done.
Loaded symbols for /usr/local/libexec/apache/mod_mmap_static.so
Reading symbols from /usr/local/libexec/apache/mod_vhost_alias.so...
(no debugging symbols found)...done.
Loaded symbols for /usr/local/libexec/apache/mod_vhost_alias.so
Reading symbols from /usr/local/libexec/apache/mod_env.so...
(no debugging symbols found)...done.
Loaded symbols for /usr/local/libexec/apache/mod_env.so
Reading symbols from /usr/local/libexec/apache/mod_log_config.so...
(no debugging symbols found)...done.
Loaded symbols for /usr/local/libexec/apache/mod_log_config.so
Reading symbols from /usr/local/libexec/apache/mod_mime_magic.so...
(no debugging symbols found)...done.
Loaded symbols for /usr/local/libexec/apache/mod_mime_magic.so
---Type  to continue, or q  to quit---
Reading symbols from /usr/local/libexec/apache/mod_mime.so...
(no debugging symbols found)...done.
Loaded symbols for /usr/local/libexec/apache/mod_mime.so
Reading symbols from /usr/local/libexec/apache/mod_negotiation.so...
(no debugging symbols found)...done.
Loaded symbols for /usr/local/libexec/apache/mod_negotiation.so
Reading symbols from /usr/local/libexec/apache/mod_status.so...
(no debugging symbols found)...done.
Loaded symbols for /usr/local/libexec/apache/mod_status.so
Reading symbols from /usr/local/libexec/apache/mod_info.so...
(no debugging symbols found)...done.
Loaded symbols for /usr/local/libexec/apache/mod_info.so
Reading symbols from /usr/local/libexec/apache/mod_include.so...
(no debugging symbols found)...done.
Loaded symbols for /usr/local/libexec/apache/mod_include.so
Reading symbols from /usr/local/libexec/apache/mod_autoindex.so...
(no debugging symbols found)...done.




-- 
Edit this bug report at http://bugs.php.net/?id=22052&edit=1




#22053 [Opn->Bgs]: Ftp ftp_rawlist,ftp_nlist broken

2003-02-04 Thread derick
 ID:   22053
 Updated by:   [EMAIL PROTECTED]
 Reported By:  [EMAIL PROTECTED]
-Status:   Open
+Status:   Bogus
 Bug Type: Reproducible crash
 Operating System: FreeBSD 5.0-RELEASE #0
 PHP Version:  4.3.0
 New Comment:

Please do not submit the same bug more than once. An existing
bug report already describes this very problem. Even if you feel
that your issue is somewhat different, the resolution is likely
to be the same. Because of this, we hope you add your comments
to the existing bug instead.

Thank you for your interest in PHP.

see 22052


Previous Comments:


[2003-02-04 12:47:04] [EMAIL PROTECTED]

this module was compiled from a cvs'ed port to receive benefit of
asyncronous ftp support, however, the ftp_*list functions appear to be
very much broken.

A quick script summary:




A quasi-successful back trace:(no execs!!)

bsd# gdb `which httpd` /httpd.core
GNU gdb 5.2.1 (FreeBSD)
Copyright 2002 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and
you are
welcome to change it and/or distribute copies of it under certain
conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for
details.
This GDB was configured as "i386-undermydesk-freebsd"...
(no debugging symbols found)...
Core was generated by `httpd'.
Program terminated with signal 5, Trace/breakpoint trap.
Reading symbols from /usr/lib/libcrypt.so.2...(no debugging symbols
found)...
done.
Loaded symbols for /usr/lib/libcrypt.so.2
Reading symbols from /usr/lib/libc.so.5...(no debugging symbols
found)...done.
Loaded symbols for /usr/lib/libc.so.5
Reading symbols from /usr/local/libexec/apache/mod_mmap_static.so...
(no debugging symbols found)...done.
Loaded symbols for /usr/local/libexec/apache/mod_mmap_static.so
Reading symbols from /usr/local/libexec/apache/mod_vhost_alias.so...
(no debugging symbols found)...done.
Loaded symbols for /usr/local/libexec/apache/mod_vhost_alias.so
Reading symbols from /usr/local/libexec/apache/mod_env.so...
(no debugging symbols found)...done.
Loaded symbols for /usr/local/libexec/apache/mod_env.so
Reading symbols from /usr/local/libexec/apache/mod_log_config.so...
(no debugging symbols found)...done.
Loaded symbols for /usr/local/libexec/apache/mod_log_config.so
Reading symbols from /usr/local/libexec/apache/mod_mime_magic.so...
(no debugging symbols found)...done.
Loaded symbols for /usr/local/libexec/apache/mod_mime_magic.so
---Type  to continue, or q  to quit---
Reading symbols from /usr/local/libexec/apache/mod_mime.so...
(no debugging symbols found)...done.
Loaded symbols for /usr/local/libexec/apache/mod_mime.so
Reading symbols from /usr/local/libexec/apache/mod_negotiation.so...
(no debugging symbols found)...done.
Loaded symbols for /usr/local/libexec/apache/mod_negotiation.so
Reading symbols from /usr/local/libexec/apache/mod_status.so...
(no debugging symbols found)...done.
Loaded symbols for /usr/local/libexec/apache/mod_status.so
Reading symbols from /usr/local/libexec/apache/mod_info.so...
(no debugging symbols found)...done.
Loaded symbols for /usr/local/libexec/apache/mod_info.so
Reading symbols from /usr/local/libexec/apache/mod_include.so...
(no debugging symbols found)...done.
Loaded symbols for /usr/local/libexec/apache/mod_include.so
Reading symbols from /usr/local/libexec/apache/mod_autoindex.so...
(no debugging symbols found)...done.
Loaded symbols for /usr/local/libexec/apache/mod_autoindex.so
Reading symbols from /usr/local/libexec/apache/mod_dir.so...
(no debugging symbols found)...done.
Loaded symbols for /usr/local/libexec/apache/mod_dir.so
Reading symbols from /usr/local/libexec/apache/mod_cgi.so...
(no debugging symbols found)...done.
Loaded symbols for /usr/local/libexec/apache/mod_cgi.so
Reading symbols from /usr/local/libexec/apache/mod_asis.so...
(no debugging symbols found)...done.
Loaded symbols for /usr/local/libexec/apache/mod_asis.so
Reading symbols from /usr/local/libexec/apache/mod_imap.so...
(no debugging symbols found)...done.
Loaded symbols for /usr/local/libexec/apache/mod_imap.so
Reading symbols from /usr/local/libexec/apache/mod_actions.so...
(no debugging symbols found)...done.
Loaded symbols for /usr/local/libexec/apache/mod_actions.so
Reading symbols from /usr/local/libexec/apache/mod_speling.so...
---Type  to continue, or q  to quit---
(no debugging symbols found)...done.
Loaded symbols for /usr/local/libexec/apache/mod_speling.so
Reading symbols from /usr/local/libexec/apache/mod_userdir.so...
(no debugging symbols found)...done.
Loaded symbols for /usr/local/libexec/apache/mod_userdir.so
Reading symbols from /usr/local/libexec/apache/mod_alias.so...
(no debugging symbols found)...done.
Loaded symbols for /usr/local/libexec/apache/mod_alias.so
Reading sym

#21986 [Csd->Opn]: Apache won't start with libphp4.so compiled with OpenSSl 0.9.7

2003-02-04 Thread dev5
 ID:   21986
 User updated by:  [EMAIL PROTECTED]
 Reported By:  [EMAIL PROTECTED]
-Status:   Closed
+Status:   Open
 Bug Type: OpenSSL related
-Operating System: FreeBSD 4.6.2
+Operating System: FreeBSD 4.7
-PHP Version:  4.3.0
+PHP Version:  4.3.1-dev(feb 3 2:30 am)
 Assigned To:  iliaa
 New Comment:

The problem still appears even in CVS 
tested on freeshly installed FreeBSD 4.7 with OpenSSL successfully
patched for FreeBSD

make test still Fails in OpenSSL on creating private keys


Previous Comments:


[2003-01-31 16:16:06] [EMAIL PROTECTED]

This bug has been fixed in CVS.

In case this was a PHP problem, snapshots of the sources are packaged
every three hours; this change will be in the next snapshot. You can
grab the snapshot at http://snaps.php.net/.
 
In case this was a documentation problem, the fix will show up soon at
http://www.php.net/manual/.

In case this was a PHP.net website problem, the change will show
up on the PHP.net site and on the mirror sites in short time.
 
Thank you for the report, and for helping us make PHP better.





[2003-01-31 13:02:36] [EMAIL PROTECTED]

Apache 1.3.27 with modssl 2.8.12:
OpenSSL 0.9.7
Returns an error something like:
"Undefined symbol OpenSSL_..._noconf"

php4.3.0 configured with the following line: 
'./configure' '--with-mysql=/usr/local/mysql'
'--with-apxs=/usr/local/apache/bin/apxs' '--enable-track-vars'
'--with-pdflib' '--with-gd' '--with-jpeg-dir=/usr/local/lib'
'--enable-gd-native-ttf' '--with-png-dir=/usr/local/lib'
'--with-xpm-dir=/usr/local/lib' '--with-freetype-dir=/usr/local/lib'
'--with-ttf' '--with-tiff-dir' '--with-zlib' '--enable-ftp'
'--enable-cli' '--with-pspell' --with-openssl


This bug is similar to bug #21947

it seems that there might be a problem with openSSL 0.9.7 and php 4.3.0
together
make test returned 2 FAILS (previously none with openssl 0.9.6e)

1. Fail on error handling
2. Fail on Open SSL create keys (or something like that)


Thanks for help and support

Peter




-- 
Edit this bug report at http://bugs.php.net/?id=21986&edit=1




#22053 [NEW]: Ftp ftp_rawlist,ftp_nlist broken

2003-02-04 Thread ntrujillo
From: [EMAIL PROTECTED]
Operating system: FreeBSD 5.0-RELEASE #0
PHP version:  4.3.0
PHP Bug Type: Reproducible crash
Bug description:  Ftp ftp_rawlist,ftp_nlist broken

this module was compiled from a cvs'ed port to receive benefit of
asyncronous ftp support, however, the ftp_*list functions appear to be
very much broken.

A quick script summary:




A quasi-successful back trace:(no execs!!)

bsd# gdb `which httpd` /httpd.core
GNU gdb 5.2.1 (FreeBSD)
Copyright 2002 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you
are
welcome to change it and/or distribute copies of it under certain
conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for
details.
This GDB was configured as "i386-undermydesk-freebsd"...
(no debugging symbols found)...
Core was generated by `httpd'.
Program terminated with signal 5, Trace/breakpoint trap.
Reading symbols from /usr/lib/libcrypt.so.2...(no debugging symbols
found)...
done.
Loaded symbols for /usr/lib/libcrypt.so.2
Reading symbols from /usr/lib/libc.so.5...(no debugging symbols
found)...done.
Loaded symbols for /usr/lib/libc.so.5
Reading symbols from /usr/local/libexec/apache/mod_mmap_static.so...
(no debugging symbols found)...done.
Loaded symbols for /usr/local/libexec/apache/mod_mmap_static.so
Reading symbols from /usr/local/libexec/apache/mod_vhost_alias.so...
(no debugging symbols found)...done.
Loaded symbols for /usr/local/libexec/apache/mod_vhost_alias.so
Reading symbols from /usr/local/libexec/apache/mod_env.so...
(no debugging symbols found)...done.
Loaded symbols for /usr/local/libexec/apache/mod_env.so
Reading symbols from /usr/local/libexec/apache/mod_log_config.so...
(no debugging symbols found)...done.
Loaded symbols for /usr/local/libexec/apache/mod_log_config.so
Reading symbols from /usr/local/libexec/apache/mod_mime_magic.so...
(no debugging symbols found)...done.
Loaded symbols for /usr/local/libexec/apache/mod_mime_magic.so
---Type  to continue, or q  to quit---
Reading symbols from /usr/local/libexec/apache/mod_mime.so...
(no debugging symbols found)...done.
Loaded symbols for /usr/local/libexec/apache/mod_mime.so
Reading symbols from /usr/local/libexec/apache/mod_negotiation.so...
(no debugging symbols found)...done.
Loaded symbols for /usr/local/libexec/apache/mod_negotiation.so
Reading symbols from /usr/local/libexec/apache/mod_status.so...
(no debugging symbols found)...done.
Loaded symbols for /usr/local/libexec/apache/mod_status.so
Reading symbols from /usr/local/libexec/apache/mod_info.so...
(no debugging symbols found)...done.
Loaded symbols for /usr/local/libexec/apache/mod_info.so
Reading symbols from /usr/local/libexec/apache/mod_include.so...
(no debugging symbols found)...done.
Loaded symbols for /usr/local/libexec/apache/mod_include.so
Reading symbols from /usr/local/libexec/apache/mod_autoindex.so...
(no debugging symbols found)...done.
Loaded symbols for /usr/local/libexec/apache/mod_autoindex.so
Reading symbols from /usr/local/libexec/apache/mod_dir.so...
(no debugging symbols found)...done.
Loaded symbols for /usr/local/libexec/apache/mod_dir.so
Reading symbols from /usr/local/libexec/apache/mod_cgi.so...
(no debugging symbols found)...done.
Loaded symbols for /usr/local/libexec/apache/mod_cgi.so
Reading symbols from /usr/local/libexec/apache/mod_asis.so...
(no debugging symbols found)...done.
Loaded symbols for /usr/local/libexec/apache/mod_asis.so
Reading symbols from /usr/local/libexec/apache/mod_imap.so...
(no debugging symbols found)...done.
Loaded symbols for /usr/local/libexec/apache/mod_imap.so
Reading symbols from /usr/local/libexec/apache/mod_actions.so...
(no debugging symbols found)...done.
Loaded symbols for /usr/local/libexec/apache/mod_actions.so
Reading symbols from /usr/local/libexec/apache/mod_speling.so...
---Type  to continue, or q  to quit---
(no debugging symbols found)...done.
Loaded symbols for /usr/local/libexec/apache/mod_speling.so
Reading symbols from /usr/local/libexec/apache/mod_userdir.so...
(no debugging symbols found)...done.
Loaded symbols for /usr/local/libexec/apache/mod_userdir.so
Reading symbols from /usr/local/libexec/apache/mod_alias.so...
(no debugging symbols found)...done.
Loaded symbols for /usr/local/libexec/apache/mod_alias.so
Reading symbols from /usr/local/libexec/apache/mod_rewrite.so...
(no debugging symbols found)...done.
Loaded symbols for /usr/local/libexec/apache/mod_rewrite.so
Reading symbols from /usr/local/libexec/apache/mod_access.so...
(no debugging symbols found)...done.
Loaded symbols for /usr/local/libexec/apache/mod_access.so
Reading symbols from /usr/local/libexec/apache/mod_auth.so...
(no debugging symbols found)...done.
Loaded symbols for /usr/local/libexec/apache/mod_auth.so
Reading symbols from /usr/local/libexec/apache/mod_auth_anon.so...
(

#22052 [NEW]: Ftp ftp_rawlist,ftp_nlist broken

2003-02-04 Thread ntrujillo
From: [EMAIL PROTECTED]
Operating system: FreeBSD 5.0-RELEASE #0
PHP version:  4.3.0
PHP Bug Type: Reproducible crash
Bug description:  Ftp ftp_rawlist,ftp_nlist broken

this module was compiled from a cvs'ed port to receive benefit of
asyncronous ftp support, however, the ftp_*list functions appear to be
very much broken.

A quick script summary:




A quasi-successful back trace:(no execs!!)

bsd# gdb `which httpd` /httpd.core
GNU gdb 5.2.1 (FreeBSD)
Copyright 2002 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you
are
welcome to change it and/or distribute copies of it under certain
conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for
details.
This GDB was configured as "i386-undermydesk-freebsd"...
(no debugging symbols found)...
Core was generated by `httpd'.
Program terminated with signal 5, Trace/breakpoint trap.
Reading symbols from /usr/lib/libcrypt.so.2...(no debugging symbols
found)...
done.
Loaded symbols for /usr/lib/libcrypt.so.2
Reading symbols from /usr/lib/libc.so.5...(no debugging symbols
found)...done.
Loaded symbols for /usr/lib/libc.so.5
Reading symbols from /usr/local/libexec/apache/mod_mmap_static.so...
(no debugging symbols found)...done.
Loaded symbols for /usr/local/libexec/apache/mod_mmap_static.so
Reading symbols from /usr/local/libexec/apache/mod_vhost_alias.so...
(no debugging symbols found)...done.
Loaded symbols for /usr/local/libexec/apache/mod_vhost_alias.so
Reading symbols from /usr/local/libexec/apache/mod_env.so...
(no debugging symbols found)...done.
Loaded symbols for /usr/local/libexec/apache/mod_env.so
Reading symbols from /usr/local/libexec/apache/mod_log_config.so...
(no debugging symbols found)...done.
Loaded symbols for /usr/local/libexec/apache/mod_log_config.so
Reading symbols from /usr/local/libexec/apache/mod_mime_magic.so...
(no debugging symbols found)...done.
Loaded symbols for /usr/local/libexec/apache/mod_mime_magic.so
---Type  to continue, or q  to quit---
Reading symbols from /usr/local/libexec/apache/mod_mime.so...
(no debugging symbols found)...done.
Loaded symbols for /usr/local/libexec/apache/mod_mime.so
Reading symbols from /usr/local/libexec/apache/mod_negotiation.so...
(no debugging symbols found)...done.
Loaded symbols for /usr/local/libexec/apache/mod_negotiation.so
Reading symbols from /usr/local/libexec/apache/mod_status.so...
(no debugging symbols found)...done.
Loaded symbols for /usr/local/libexec/apache/mod_status.so
Reading symbols from /usr/local/libexec/apache/mod_info.so...
(no debugging symbols found)...done.
Loaded symbols for /usr/local/libexec/apache/mod_info.so
Reading symbols from /usr/local/libexec/apache/mod_include.so...
(no debugging symbols found)...done.
Loaded symbols for /usr/local/libexec/apache/mod_include.so
Reading symbols from /usr/local/libexec/apache/mod_autoindex.so...
(no debugging symbols found)...done.
-- 
Edit bug report at http://bugs.php.net/?id=22052&edit=1
-- 
Try a CVS snapshot: http://bugs.php.net/fix.php?id=22052&r=trysnapshot
Fixed in CVS:   http://bugs.php.net/fix.php?id=22052&r=fixedcvs
Fixed in release:   http://bugs.php.net/fix.php?id=22052&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=22052&r=needtrace
Try newer version:  http://bugs.php.net/fix.php?id=22052&r=oldversion
Not developer issue:http://bugs.php.net/fix.php?id=22052&r=support
Expected behavior:  http://bugs.php.net/fix.php?id=22052&r=notwrong
Not enough info:http://bugs.php.net/fix.php?id=22052&r=notenoughinfo
Submitted twice:http://bugs.php.net/fix.php?id=22052&r=submittedtwice
register_globals:   http://bugs.php.net/fix.php?id=22052&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=22052&r=php3
Daylight Savings:   http://bugs.php.net/fix.php?id=22052&r=dst
IIS Stability:  http://bugs.php.net/fix.php?id=22052&r=isapi
Install GNU Sed:http://bugs.php.net/fix.php?id=22052&r=gnused




#22047 [Com]: PHP pollutes the namespace w/ (what looks like) its grammar tokens

2003-02-04 Thread szepe
 ID:   22047
 Comment by:   [EMAIL PROTECTED]
 Reported By:  [EMAIL PROTECTED]
 Status:   Wont fix
 Bug Type: *General Issues
 Operating System: Linux
 PHP Version:  4.3.0
 New Comment:

Guys, if this is how you deal with backwards
compatibility issues, then I'm scared.

I've been maintaining a big PHP project that's about
1MB of very clean code and I need to keep it alive.
This particular bug gave me quite a bit of a headache.
I've provided valid arguments on why a (trivial) change
should be made, and you seem to not really care.  That's
not giving me nice prospects into the future, is it?

Come on, we're talking about constants here!
If a constant is redefined by a program, then
that program is broken by definition and needs
to be told on an appropriate level.


Previous Comments:


[2003-02-04 12:31:13] [EMAIL PROTECTED]

It's fine as it is -> wont fix.



[2003-02-04 11:48:17] [EMAIL PROTECTED]

A NOTICE definitely is NOT sufficient.

Remember many setups running older PHP software set
"error_reporting = E_ALL & ~E_NOTICE", because the
amount of notices on undefined array indices and
undefined variables can be quite overwhelming --
and it is precisely these setups that are likely
to be bitten by this problem.

Redefinition of a constant should be a WARNING,
I must insist.



[2003-02-04 10:27:54] [EMAIL PROTECTED]

A notice is fine, we're not going to change this as it might break
scripts out there.



[2003-02-04 10:20:52] [EMAIL PROTECTED]

Good, thanks.

Let me clarify -

PHP does log a NOTICE such as

[04-Feb-2003 17:18:22] PHP Notice:
  Constant T_LIST already defined
  in x.php on line 3

but this definitely needs to be a WARNING
or even an ERROR.

-Tomas



[2003-02-04 10:13:58] [EMAIL PROTECTED]

That is a good idea, thought it did that. Assigned.



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/22047

-- 
Edit this bug report at http://bugs.php.net/?id=22047&edit=1




#22051 [NEW]: Two level relative paths broken

2003-02-04 Thread chris
From: [EMAIL PROTECTED]
Operating system: BSDI 4.x
PHP version:  4CVS-2003-02-04 (stable)
PHP Bug Type: Directory function related
Bug description:  Two level relative paths broken

Build line:
./configure --with-mysql=/usr/local --with-apache=../apache_1.3.27
--with-config-file-path=/etc --enable-ftp --enable-trans-sid


All of our include statements throughout about 15 scripts use two levels
of path levels "../.." for ease of implementation across separate web
servers.

Test is here:
http://norgate.wso.net/datafeed/test.php

PHP seems to have some serious path parsing issues when run from Apache
1.3.27 as a compiled module.

This is the entire script souce of the above URL:
 
";
echo getcwd() . "";
echo '';
 
echo 'chdir("..");';
chdir("..");
echo getcwd() . "";
echo '';
 
echo 'chdir ("datafeed/onlinestatus");';
chdir ("datafeed/onlinestatus");
echo getcwd() . "";
echo '';

?>

As you can see, fairly straightforward but it seems to barf when you
attempt more than one level of directory changes in a path.

We've also tried the regular 4.3.0 build, same issue.

Our previous build was 4.1.2 as a CGI and it didn't
have this problem.

Any help would be appreciated. Thank you!

-Chris
WSO

-- 
Edit bug report at http://bugs.php.net/?id=22051&edit=1
-- 
Try a CVS snapshot: http://bugs.php.net/fix.php?id=22051&r=trysnapshot
Fixed in CVS:   http://bugs.php.net/fix.php?id=22051&r=fixedcvs
Fixed in release:   http://bugs.php.net/fix.php?id=22051&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=22051&r=needtrace
Try newer version:  http://bugs.php.net/fix.php?id=22051&r=oldversion
Not developer issue:http://bugs.php.net/fix.php?id=22051&r=support
Expected behavior:  http://bugs.php.net/fix.php?id=22051&r=notwrong
Not enough info:http://bugs.php.net/fix.php?id=22051&r=notenoughinfo
Submitted twice:http://bugs.php.net/fix.php?id=22051&r=submittedtwice
register_globals:   http://bugs.php.net/fix.php?id=22051&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=22051&r=php3
Daylight Savings:   http://bugs.php.net/fix.php?id=22051&r=dst
IIS Stability:  http://bugs.php.net/fix.php?id=22051&r=isapi
Install GNU Sed:http://bugs.php.net/fix.php?id=22051&r=gnused




#22050 [Opn->Bgs]: lockup in jpgraph

2003-02-04 Thread iliaa
 ID:   22050
 Updated by:   [EMAIL PROTECTED]
 Reported By:  [EMAIL PROTECTED]
-Status:   Open
+Status:   Bogus
 Bug Type: GD related
 Operating System: HP-UX 10.20
 PHP Version:  4.3.0
 New Comment:

Please do not submit the same bug more than once. An existing
bug report already describes this very problem. Even if you feel
that your issue is somewhat different, the resolution is likely
to be the same. Because of this, we hope you add your comments
to the existing bug instead.

Thank you for your interest in PHP.

This is a known problem, bug #22042.


Previous Comments:


[2003-02-04 12:28:44] [EMAIL PROTECTED]

We have had nothing but problems with graphics under the 4.3.0 release
on HP-UX 10.20.

The most basic test case that we can find is canvaspiralex1.php from
the jpgraph library - this example works fine under 4.1.2, but will
either lock up the httpd with  4.3.0 or wait 30 seconds and time out.

I have tried removing freetype and compiling with older libpng
libraries to no avail.

Here are my compile directives:

export CFLAGS="-Ae -s -O +Onolimit +DA2.0 -I/usr/local/include"
export LDFLAGS="-L/usr/local/lib -s"
export ECHO="print -r"

./configure \
--with-zlib-dir \
--with-png-dir \
--with-gd \
--enable-gd-native-ttf \
--with-freetype-dir \
--with-gettext \
--with-mcrypt \
--with-system-regex \
--without-mysql \
--with-oracle --with-oci8 \
--enable-ftp \
--enable-sockets \
--enable-dbx \
--prefix=/pkg/prdcrm/apache/php \
--with-apache=../apache_1.3.27

What can I do?




-- 
Edit this bug report at http://bugs.php.net/?id=22050&edit=1




#22042 [Opn->Csd]: pg_result_seek($res, 0) sets the counter to 1, not 0

2003-02-04 Thread iliaa
 ID:   22042
 Updated by:   [EMAIL PROTECTED]
 Reported By:  [EMAIL PROTECTED]
-Status:   Open
+Status:   Closed
 Bug Type: PostgreSQL related
 Operating System: Slackware Linux
 PHP Version:  4.3.0
 New Comment:

This bug has been fixed in CVS.

In case this was a PHP problem, snapshots of the sources are packaged
every three hours; this change will be in the next snapshot. You can
grab the snapshot at http://snaps.php.net/.
 
In case this was a documentation problem, the fix will show up soon at
http://www.php.net/manual/.

In case this was a PHP.net website problem, the change will show
up on the PHP.net site and on the mirror sites in short time.
 
Thank you for the report, and for helping us make PHP better.




Previous Comments:


[2003-02-04 05:34:59] [EMAIL PROTECTED]

If I get the idea of pg_result_seek() right, instead of the following
script

$result = pg_query($db, $query);
// some outside loop
while ($whatever) {
for ($i = 0; $i < pg_num_rows($result); $i++) {
$row = pg_fetch_array($result, $i);
// do something
}
}

I should be able to write

$result = pg_query($db, $query);
// some outside loop
while ($whatever) {
pg_result_seek($result, 0);
while ($row = pg_fetch_array($result)) {
// do something
}
}

The problem is, when I use it this way, it misses the first row (it
looks like it iterated from the row nr 1, which is the second row in
the result). I even tried to call pg_result_seek($result, -1), but, not
surprisingly, it didn't work.

PostgreSQL 7.2.3 on i686-pc-linux-gnu, compiled by GCC egcs-2.91.66

Configure Command  './configure' '--with-pgsql=/usr/local/pgsql'
'--with-pdflib=/usr/local' '--with-swf'
'--with-apxs=/usr/local/apache/bin/apxs' '--enable-magic-quotes'
'--disable-track-vars' '--without-mysql' '--with-zlib'
'--with-openssl=/usr/local/ssl'
'--with-mnogosearch=/usr/local/mnogosearch' '--enable-sigchild'
'--enable-inline-optimization' '--with-jpeg-dir=/usr/lib'
'--with-png-dir=/usr/lib' '--with-tiff-dir=/usr/lib' '--with-pear'
'--with-gd' '--with-iconv' '--with-imap' 




-- 
Edit this bug report at http://bugs.php.net/?id=22042&edit=1




#22047 [WFx]: PHP pollutes the namespace w/ (what looks like) its grammar tokens

2003-02-04 Thread sniper
 ID:   22047
 Updated by:   [EMAIL PROTECTED]
 Reported By:  [EMAIL PROTECTED]
 Status:   Wont fix
 Bug Type: *General Issues
 Operating System: Linux
 PHP Version:  4.3.0
 New Comment:

It's fine as it is -> wont fix.


Previous Comments:


[2003-02-04 11:48:17] [EMAIL PROTECTED]

A NOTICE definitely is NOT sufficient.

Remember many setups running older PHP software set
"error_reporting = E_ALL & ~E_NOTICE", because the
amount of notices on undefined array indices and
undefined variables can be quite overwhelming --
and it is precisely these setups that are likely
to be bitten by this problem.

Redefinition of a constant should be a WARNING,
I must insist.



[2003-02-04 10:27:54] [EMAIL PROTECTED]

A notice is fine, we're not going to change this as it might break
scripts out there.



[2003-02-04 10:20:52] [EMAIL PROTECTED]

Good, thanks.

Let me clarify -

PHP does log a NOTICE such as

[04-Feb-2003 17:18:22] PHP Notice:
  Constant T_LIST already defined
  in x.php on line 3

but this definitely needs to be a WARNING
or even an ERROR.

-Tomas



[2003-02-04 10:13:58] [EMAIL PROTECTED]

That is a good idea, thought it did that. Assigned.



[2003-02-04 10:09:56] [EMAIL PROTECTED]

Hmm.  I'm convinced PHP should at least file a big fat
warning upon any attempted redefinition of a reserved
constant name, instead of ignoring the instruction
entirely.

Identifiers such as T_LIST are very often used in enums.



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/22047

-- 
Edit this bug report at http://bugs.php.net/?id=22047&edit=1




#22050 [NEW]: lockup in jpgraph

2003-02-04 Thread charles_fisher
From: [EMAIL PROTECTED]
Operating system: HP-UX 10.20
PHP version:  4.3.0
PHP Bug Type: GD related
Bug description:  lockup in jpgraph

We have had nothing but problems with graphics under the 4.3.0 release on
HP-UX 10.20.

The most basic test case that we can find is canvaspiralex1.php from the
jpgraph library - this example works fine under 4.1.2, but will either
lock up the httpd with  4.3.0 or wait 30 seconds and time out.

I have tried removing freetype and compiling with older libpng libraries
to no avail.

Here are my compile directives:

export CFLAGS="-Ae -s -O +Onolimit +DA2.0 -I/usr/local/include"
export LDFLAGS="-L/usr/local/lib -s"
export ECHO="print -r"

./configure \
--with-zlib-dir \
--with-png-dir \
--with-gd \
--enable-gd-native-ttf \
--with-freetype-dir \
--with-gettext \
--with-mcrypt \
--with-system-regex \
--without-mysql \
--with-oracle --with-oci8 \
--enable-ftp \
--enable-sockets \
--enable-dbx \
--prefix=/pkg/prdcrm/apache/php \
--with-apache=../apache_1.3.27

What can I do?
-- 
Edit bug report at http://bugs.php.net/?id=22050&edit=1
-- 
Try a CVS snapshot: http://bugs.php.net/fix.php?id=22050&r=trysnapshot
Fixed in CVS:   http://bugs.php.net/fix.php?id=22050&r=fixedcvs
Fixed in release:   http://bugs.php.net/fix.php?id=22050&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=22050&r=needtrace
Try newer version:  http://bugs.php.net/fix.php?id=22050&r=oldversion
Not developer issue:http://bugs.php.net/fix.php?id=22050&r=support
Expected behavior:  http://bugs.php.net/fix.php?id=22050&r=notwrong
Not enough info:http://bugs.php.net/fix.php?id=22050&r=notenoughinfo
Submitted twice:http://bugs.php.net/fix.php?id=22050&r=submittedtwice
register_globals:   http://bugs.php.net/fix.php?id=22050&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=22050&r=php3
Daylight Savings:   http://bugs.php.net/fix.php?id=22050&r=dst
IIS Stability:  http://bugs.php.net/fix.php?id=22050&r=isapi
Install GNU Sed:http://bugs.php.net/fix.php?id=22050&r=gnused




#21973 [Com]: 'configure' script can't find libpng.(a|so), openldap...

2003-02-04 Thread michael . mauch
 ID:   21973
 Comment by:   [EMAIL PROTECTED]
 Reported By:  [EMAIL PROTECTED]
 Status:   Open
 Bug Type: *Configuration Issues
 Operating System: Solaris 8
 PHP Version:  4.3.0
 New Comment:

Yes, you have to install libpng if you don't have it. The download URL
is in the manual, .


Previous Comments:


[2003-02-04 06:23:30] [EMAIL PROTECTED]

Hello there,

I'm having a similar problem as this one. I'm using a Sun Cobalt Qube 3
server on which I try to install PHP 4.3
I have searched for libpng on the harddisk but can't find it anywhere.
So how can I install GD when I don't have libpng on the server ??

Do I have to install libpng first, if yes then where can I get it?? I
guess this is the only problem I'm having right now, first I had a
problem because the qube requires php 4.0.6. for it's admin
functionality, but I managed to create a workaround for that problem.
When I finally have installed php 4.3 I can write a how-to so other
Qube users can update their php too. Sun doesn't support updating PHP
on a Qube just because they don't want to.



[2003-02-02 18:50:10] [EMAIL PROTECTED]

Back to dba:

I tried several combinations and having problems with
shared dba earlier than 3.3. I did some fixes and 
disallowed buildng shared dba with those versions for now.
However i got a short reply from sleepycat that they do
not have any idea how to explain what is happening.

Back to general linking:
I made a configure function which allows me to
handle all libraries required by gd and dba extension.
Since those are the most complicated cases i suppose we
could easily expand that function to handle all external
libraries. If that is done we may even add automatic
detection support for your directory structure.
I will post that function here and as a diff on php-dev
during the week 



[2003-02-01 01:08:15] [EMAIL PROTECTED]

> Anyway, in what version of PHP did LDAP configure
> work without any patches? 

The CVS tag is php_4_3_0pre2. I've done a fresh checkout
with that tag and can verify that the 'configure' script
generated by my copies of autoconf, etc, works. I tried
the following successful combinations:

 - autoconf 2.52, automake 1.5, libtool 1.4
 - autoconf 2.57, automake 1.7.2, libtool 1.4.3
 - flex 2.5.4 and bison 1.75 were used in all cases.

Compiler was gcc 3.2.1 for Sun UltraSPARC v9 using
Sun's CCS assembler Sun's CCS linker (typical scenario).

Notes:
 - first, I applied my int/long correctness patches
   (fortunately, these do not influence the configure step).
 - ldap configures and compiles with no warnings or
   errors. BUT I have to induce -lldap myself (other modules,
   such as database modules, seem to pick up their libraries
   okay, though). So really, ldap configuration wasn't
   entirely working in pre2 but the fault had a different
   manifestation than in the release, and had obvious
   output/cause/workaround.
 - the gd module configures with errors but I commented out
   the 'exit' commands and configure completes.
 - the ldap and gd modules then appear work fine with Apache.
 - I had to comment out _LT_AC_TRY_DLOPEN_SELF when using
   the second lot of auto tools.

But when I do a buildconf, configure, make with php_4_3_0, I
get the problem "Cannot find ldap libraries in $LDAP_LIBDIR."

Notes:
 - first, I applied my int/long correctness patches
   (fortunately, these do not influence the configure step).
 - I can work around the gd & ldap problems by manually
   deleting the 'exit' commands in the configure
   script or inserting the sparcv9 path element into the
   configure script, in which case the ldap module then
   picks up -lldap by itself.
 - the _LT_AC_TRY_DLOPEN_SELF problem has disappeared
   in 4.3.0 release.
 - the ldap and gd modules then appear work fine with Apache.

> Is the only problem really that we check that the actual
> library _file_ exists? Better way of course would be to
> use PHP_CHECK_LIBRARY macro always and not do the
> filesystem checks at all, like Marcus suggested..?

Yes, in my understanding.



[2003-01-31 07:55:59] [EMAIL PROTECTED]

I misunderstood the problem apparently, sorry for that.
Anyway, in what version of PHP did LDAP configure
work without any patches? 

Is the only problem really that we check that the actual library _file_
exists? Better way of course would be to use PHP_CHECK_LIBRARY macro
always and not do the filesystem checks at all, like Marcus
suggested..?





[2003-01-31 06:19:33] [EMAIL PROTECTED]

> we w

#22045 [Com]: Provider changed the PHP-Version

2003-02-04 Thread jensalfkersten
 ID:   22045
 Comment by:   [EMAIL PROTECTED]
 Reported By:  [EMAIL PROTECTED]
 Status:   Open
 Bug Type: Filesystem function related
 Operating System: WinME
 PHP Version:  4.3.0
 New Comment:

I will post you the error massage what i got :
___

Warning: fopen(mysql/pphl_x_logs.sql) [function.fopen]: failed to
create stream: No such file or directory in
/usr/local/httpd/htdocs/kunden/web152/html/libraries/load_sql.lib.php
on line 79

Warning: filesize() [function.filesize]: Stat failed for
mysql/pphl_x_logs.sql (errno=2 - No such file or directory) in
/usr/local/httpd/htdocs/kunden/web152/html/libraries/load_sql.lib.php
on line 79

Warning: fread(): supplied argument is not a valid stream resource in
/usr/local/httpd/htdocs/kunden/web152/html/libraries/load_sql.lib.php
on line 79

Warning: fopen(mysql/pphl_x_mpdl.sql) [function.fopen]: failed to
create stream: No such file or directory in
/usr/local/httpd/htdocs/kunden/web152/html/libraries/load_sql.lib.php
on line 79

Warning: filesize() [function.filesize]: Stat failed for
mysql/pphl_x_mpdl.sql (errno=2 - No such file or directory) in
/usr/local/httpd/htdocs/kunden/web152/html/libraries/load_sql.lib.php
on line 79

Warning: fread(): supplied argument is not a valid stream resource in
/usr/local/httpd/htdocs/kunden/web152/html/libraries/load_sql.lib.php
on line 79

Warning: Cannot modify header information - headers already sent by
(output started at
/usr/local/httpd/htdocs/kunden/web152/html/libraries/load_sql.lib.php:79)
in /usr/local/httpd/htdocs/kunden/web152/html/modules/usercreate.php on
line 63
___

Line 79 ist 
___
$sql_query = fread(fopen($sql_file, "r"), filesize($sql_file));
___

And that works before !

Thanx Alf


Previous Comments:


[2003-02-04 11:47:37] [EMAIL PROTECTED]

So I want to creat two new Tables with this funktionscript
__
exec_sql_lines(SQL_LOGS,"pphl_x_logs",   
$tbl_prefix.$id.$tbl_logs);
exec_sql_lines(SQL_MPDL,"pphl_x_mpdl",   
$tbl_prefix.$id.$tbl_mpdl);
__

The Funktion 'exec_sql_lines' is 
__
function exec_sql_lines($sql_file, $old_string = '', $new_string = '')
{

$sql_query = isset($sql_query) ? $sql_query : "";

if(!empty($sql_file) && $sql_file != "none") {
$sql_query = fread(fopen($sql_file, "r"), filesize($sql_file));
/* If magic_quotes_runtime is enabled, most functions that return
data from any sort of external source 
   including databases and text files will have quotes escaped with a
backslash.
*/
if (get_magic_quotes_runtime() == 1) $sql_query =
stripslashes($sql_query);
/* replace old_string with new_string if they are set */
if($old_string != '') {
$sql_query = ereg_replace($old_string,$new_string,$sql_query);
}
}
$sql_query = trim($sql_query);

if($sql_query != "") {
$sql_query   = remove_remarks($sql_query);
$pieces  = split_sql_file($sql_query,";");
$cnt_pieces  = count($pieces);
/* run multiple queries */
for ($i=0; $i<$cnt_pieces; $i++) {
$sql = trim($pieces[$i]);
if (!empty($sql) and $sql[0] != "#") $result = 
mysql_query($sql);
}
}
return true;
}
__

It works before my provider changed the php-version
and i don't changed anything on the script but the tables dosn't creat
and the script can't read it
when it dosn't exist.

I hope this information can help you to help me with my problem when
not tell me what information do you need.

Thanx alf from germany



[2003-02-04 10:26:06] [EMAIL PROTECTED]

WHAT part of that script does not work?
Please provide a short and COMPLETE script which 
clearly shows the 'bug'. Most likely the problem
is not any bug anyway...




[2003-02-04 09:29:27] [EMAIL PROTECTED]

Not enough information was provided for us to be able
to handle this bug. Please re-read the instructions at
http://bugs.php.net/how-to-report.php

If you can provide more information, feel free to add it
to this bug and chang

#21908 [Com]: File upload problems beginning in 4.3.0

2003-02-04 Thread michael . mauch
 ID:   21908
 Comment by:   [EMAIL PROTECTED]
 Reported By:  [EMAIL PROTECTED]
 Status:   Open
 Bug Type: *General Issues
 Operating System: NetBSD-1.5.2
 PHP Version:  4.3.0
 New Comment:

For file uploads it's $_FILES, not $_POST.

Please read
.


Previous Comments:


[2003-02-04 10:41:43] [EMAIL PROTECTED]

hi -
i set the file upload dir but the problem is still happening and seems
to be a little different. my filename variable does not get passed over
in the post when in the same php program. i have not tried an html that
calls a standalone php yet, but the $afile variable below holds nothing
when you output contents while $crud does. maybe $_POST is not valid
for filenames? or? should i just write email directly to someone? i
promise i've looked at all the docs and grovelled for help locally.  
thank you. 
evatc



[2003-02-03 13:36:48] [EMAIL PROTECTED]

The problem for me was that upload_tmp_dir did not need to be set in
4.2.3.  By default, it used /tmp.  Now if it isn't set, nothing
happens.  However, now that it is set in the php.ini everything is
working again.



[2003-02-03 13:32:40] [EMAIL PROTECTED]

Hello.
I am also finding this error. I am actually running on Linux but
everything else is the same version. this is kind of stolen out of the
wrox book. the variable $afile is empty but $crud gets passed over just
fine. am i referring to it incorrectly? this is making me nuts and i
have an enduser crawling on me to get his scripts fixed. please help.

thank you

[kovacs@darth eva]$ more cispt1test.php
";
print "";
print "";
print "";
print "";
print "";
print "";

}

function upload_file() {
global $afile;
error_reporting(E_ALL);
$afile = $_POST["afile"];
$crud = $_POST["crud"];
print "some stuff";
print "$afile $crud";
if (!@copy($afile,"/tmp/crud")) die ("Can't upload");
var_dump($_FILES);

}
?>


test










[2003-02-03 07:29:34] [EMAIL PROTECTED]

Please try this script:







If $_FILES array is empty after submit and no errors are given, try
this script:

 

And check the file upload related settings from the output:

post_max_size
file_uploads
upload_tmp_dir
upload_max_filesize

Also check your Apache error_log for any errors.




[2003-01-31 09:21:27] [EMAIL PROTECTED]

I also expirienced this problem. In my case I had "file_uploads = Off"
in php.ini and then "php_flag file_uploads on" for every virtual host
that require upload. That works perfectly in 4.2.3. According to
phpinfo() setting private flag have no effect for this option in 4.3.0.
I was forced to enable file uploads on system level in php.ini to solve
the problem.



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/21908

-- 
Edit this bug report at http://bugs.php.net/?id=21908&edit=1




#22047 [Com]: PHP pollutes the namespace w/ (what looks like) its grammar tokens

2003-02-04 Thread szepe
 ID:   22047
 Comment by:   [EMAIL PROTECTED]
 Reported By:  [EMAIL PROTECTED]
 Status:   Wont fix
 Bug Type: *General Issues
 Operating System: Linux
 PHP Version:  4.3.0
 New Comment:

A NOTICE definitely is NOT sufficient.

Remember many setups running older PHP software set
"error_reporting = E_ALL & ~E_NOTICE", because the
amount of notices on undefined array indices and
undefined variables can be quite overwhelming --
and it is precisely these setups that are likely
to be bitten by this problem.

Redefinition of a constant should be a WARNING,
I must insist.


Previous Comments:


[2003-02-04 10:27:54] [EMAIL PROTECTED]

A notice is fine, we're not going to change this as it might break
scripts out there.



[2003-02-04 10:20:52] [EMAIL PROTECTED]

Good, thanks.

Let me clarify -

PHP does log a NOTICE such as

[04-Feb-2003 17:18:22] PHP Notice:
  Constant T_LIST already defined
  in x.php on line 3

but this definitely needs to be a WARNING
or even an ERROR.

-Tomas



[2003-02-04 10:13:58] [EMAIL PROTECTED]

That is a good idea, thought it did that. Assigned.



[2003-02-04 10:09:56] [EMAIL PROTECTED]

Hmm.  I'm convinced PHP should at least file a big fat
warning upon any attempted redefinition of a reserved
constant name, instead of ignoring the instruction
entirely.

Identifiers such as T_LIST are very often used in enums.



[2003-02-04 10:05:43] [EMAIL PROTECTED]

The tokenizer extension needs those, and changing it now would be
breaking all scripts that make use of it. So there is little we can do
here...

Derick



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/22047

-- 
Edit this bug report at http://bugs.php.net/?id=22047&edit=1




#22045 [Fbk->Opn]: Provider changed the PHP-Version

2003-02-04 Thread jensalfkersten
 ID:   22045
 User updated by:  [EMAIL PROTECTED]
 Reported By:  [EMAIL PROTECTED]
-Status:   Feedback
+Status:   Open
 Bug Type: Filesystem function related
 Operating System: WinME
 PHP Version:  4.3.0
 New Comment:

So I want to creat two new Tables with this funktionscript
__
exec_sql_lines(SQL_LOGS,"pphl_x_logs",   
$tbl_prefix.$id.$tbl_logs);
exec_sql_lines(SQL_MPDL,"pphl_x_mpdl",   
$tbl_prefix.$id.$tbl_mpdl);
__

The Funktion 'exec_sql_lines' is 
__
function exec_sql_lines($sql_file, $old_string = '', $new_string = '')
{

$sql_query = isset($sql_query) ? $sql_query : "";

if(!empty($sql_file) && $sql_file != "none") {
$sql_query = fread(fopen($sql_file, "r"), filesize($sql_file));
/* If magic_quotes_runtime is enabled, most functions that return
data from any sort of external source 
   including databases and text files will have quotes escaped with a
backslash.
*/
if (get_magic_quotes_runtime() == 1) $sql_query =
stripslashes($sql_query);
/* replace old_string with new_string if they are set */
if($old_string != '') {
$sql_query = ereg_replace($old_string,$new_string,$sql_query);
}
}
$sql_query = trim($sql_query);

if($sql_query != "") {
$sql_query   = remove_remarks($sql_query);
$pieces  = split_sql_file($sql_query,";");
$cnt_pieces  = count($pieces);
/* run multiple queries */
for ($i=0; $i<$cnt_pieces; $i++) {
$sql = trim($pieces[$i]);
if (!empty($sql) and $sql[0] != "#") $result = 
mysql_query($sql);
}
}
return true;
}
__

It works before my provider changed the php-version
and i don't changed anything on the script but the tables dosn't creat
and the script can't read it
when it dosn't exist.

I hope this information can help you to help me with my problem when
not tell me what information do you need.

Thanx alf from germany


Previous Comments:


[2003-02-04 10:26:06] [EMAIL PROTECTED]

WHAT part of that script does not work?
Please provide a short and COMPLETE script which 
clearly shows the 'bug'. Most likely the problem
is not any bug anyway...




[2003-02-04 09:29:27] [EMAIL PROTECTED]

Not enough information was provided for us to be able
to handle this bug. Please re-read the instructions at
http://bugs.php.net/how-to-report.php

If you can provide more information, feel free to add it
to this bug and change the status back to "Open".

Thank you for your interest in PHP.




[2003-02-04 09:28:49] [EMAIL PROTECTED]

I' am sorry for my bad english, but I have a Problem with this Script.

function exec_sql_lines($sql_file, $old_string = '', $new_string = '')
{

$sql_query = isset($sql_query) ? $sql_query : "";

if(!empty($sql_file) && $sql_file != "none") {
$sql_query = fread(fopen($sql_file, "r"), filesize($sql_file));
/* If magic_quotes_runtime is enabled, most functions that return
data from any sort of external source 
   including databases and text files will have quotes escaped with a
backslash.
*/
if (get_magic_quotes_runtime() == 1) $sql_query =
stripslashes($sql_query);
/* replace old_string with new_string if they are set */
if($old_string != '') {
$sql_query = ereg_replace($old_string,$new_string,$sql_query);
}
}
$sql_query = trim($sql_query);

if($sql_query != "") {
$sql_query   = remove_remarks($sql_query);
$pieces  = split_sql_file($sql_query,";");
$cnt_pieces  = count($pieces);
/* run multiple queries */
for ($i=0; $i<$cnt_pieces; $i++) {
$sql = trim($pieces[$i]);
if (!empty($sql) and $sql[0] != "#") $result = 
mysql_query($sql);
}
}
return true;
}

My Provider changed the PHP-Verion to 4.3.0 and from this
time this Script dosn't work.

Is there a Bug, nobody can help me.

Thanx Alf

---

#21794 [Opn->Fbk]: Error Output for sanity check

2003-02-04 Thread sniper
 ID:   21794
 Updated by:   [EMAIL PROTECTED]
 Reported By:  [EMAIL PROTECTED]
-Status:   Open
+Status:   Feedback
 Bug Type: Compile Failure
 Operating System: RedHat 8.0
 PHP Version:  4.3.0
 New Comment:

Yes, I know. Please try what I asked.



Previous Comments:


[2003-02-04 08:07:48] [EMAIL PROTECTED]

But I have no error compiling PHP.. the error is when I compile apache
after installing PHP.



[2003-01-23 10:36:54] [EMAIL PROTECTED]

Try this configure line for PHP:

./configure --with-apache=../apache_1.3.27 --disable-all




[2003-01-21 07:57:13] [EMAIL PROTECTED]

[root@babe ~/work/apache_1.3.27]# ./configure
--prefix=/usr/local/etc/httpd
--activate-module=src/modules/php4/libphp4.a
Configuring for Apache, Version 1.3.27
 + using installation path layout: Apache (config.layout)
 + activated php4 module (modules/php4/libphp4.a)
Creating Makefile
Creating Configuration.apaci in src
Creating Makefile in src
 + configured for Linux platform
 + setting C compiler to gcc
 + setting C pre-processor to gcc -E
 + checking for system header files
 + adding selected modules
o php4_module uses ConfigStart/End
 + using builtin Expat
 + checking sizeof various data types
 + doing sanity check on compiler and options
** A test compilation with your Makefile configuration
** failed.  The below error output from the compilation
** test will give you an idea what is failing. Note that
** Apache requires an ANSI C Compiler, such as gcc.

 Error Output for sanity check 
cd ..; gcc  -DLINUX=22 -DUSE_EXPAT -I./lib/expat-lite -DNO_DL_NEEDED
`./apaci` -o helpers/dummy helpers/dummy.c  
-Wl,-rpath,/usr/X11R6/lib -Wl,-rpath,/root/work/swf/lib  -rdynamic
-L/usr/X11R6/lib -L/root/work/swf/lib -Lmodules/php4 -L../modules/php4
-L../../modules/php4 -lmodphp4 -export-symbols
/root/work/php-4.3.0/sapi/apache/php.sym   -rdynamic -L/usr/X11R6/lib
-L/root/work/swf/lib   -lswf -lt1 -lfreetype -lX11 -lXpm -lpng -lz
-ljpeg -lbz2 -lz -lcrypt -lresolv -lm -ldl -lnsl  -lcrypt   -lm
-lcrypt
/usr/bin/ld:/root/work/php-4.3.0/sapi/apache/php.sym: file format not
recognized; treating as linker script
/usr/bin/ld:/root/work/php-4.3.0/sapi/apache/php.sym:2: parse error
collect2: ld returned 1 exit status
make: *** [dummy] Error 1
= End of Error Report =

OBS: I used the next comand line to compile php:
[root@babe ~/work/apache_1.3.27]# ./configure
--with-apache=../apache_1.3.27 --with-gd --with-mysql
--enable-versioning --enable-track-vars --enable-force-cgi-redirect
--enable-discard-path --disable-short-tags --disable-display-source
--enable-safe-mode --with-swf=../swf --enable-trans-sid
--enable-calendar --enable-ftp --with-bz2 --enable-sockets
--enable-inline-optimization --enable-memory-limit
--with-xpm-dir=/usr/X11R6 --with-jpeg-dir=/usr --with-png-dir=/usr
--with-ttf --with-zlib --with-zlib-dir=/usr
--with-freetype-dir=/usr/include/freetype2 --with-t1lib





-- 
Edit this bug report at http://bugs.php.net/?id=21794&edit=1




#21908 [Com]: File upload problems beginning in 4.3.0

2003-02-04 Thread evatckovacs
 ID:   21908
 Comment by:   [EMAIL PROTECTED]
 Reported By:  [EMAIL PROTECTED]
 Status:   Open
 Bug Type: *General Issues
 Operating System: NetBSD-1.5.2
 PHP Version:  4.3.0
 New Comment:

hi -
i set the file upload dir but the problem is still happening and seems
to be a little different. my filename variable does not get passed over
in the post when in the same php program. i have not tried an html that
calls a standalone php yet, but the $afile variable below holds nothing
when you output contents while $crud does. maybe $_POST is not valid
for filenames? or? should i just write email directly to someone? i
promise i've looked at all the docs and grovelled for help locally.  
thank you. 
evatc


Previous Comments:


[2003-02-03 13:36:48] [EMAIL PROTECTED]

The problem for me was that upload_tmp_dir did not need to be set in
4.2.3.  By default, it used /tmp.  Now if it isn't set, nothing
happens.  However, now that it is set in the php.ini everything is
working again.



[2003-02-03 13:32:40] [EMAIL PROTECTED]

Hello.
I am also finding this error. I am actually running on Linux but
everything else is the same version. this is kind of stolen out of the
wrox book. the variable $afile is empty but $crud gets passed over just
fine. am i referring to it incorrectly? this is making me nuts and i
have an enduser crawling on me to get his scripts fixed. please help.

thank you

[kovacs@darth eva]$ more cispt1test.php
";
print "";
print "";
print "";
print "";
print "";
print "";

}

function upload_file() {
global $afile;
error_reporting(E_ALL);
$afile = $_POST["afile"];
$crud = $_POST["crud"];
print "some stuff";
print "$afile $crud";
if (!@copy($afile,"/tmp/crud")) die ("Can't upload");
var_dump($_FILES);

}
?>


test










[2003-02-03 07:29:34] [EMAIL PROTECTED]

Please try this script:







If $_FILES array is empty after submit and no errors are given, try
this script:

 

And check the file upload related settings from the output:

post_max_size
file_uploads
upload_tmp_dir
upload_max_filesize

Also check your Apache error_log for any errors.




[2003-01-31 09:21:27] [EMAIL PROTECTED]

I also expirienced this problem. In my case I had "file_uploads = Off"
in php.ini and then "php_flag file_uploads on" for every virtual host
that require upload. That works perfectly in 4.2.3. According to
phpinfo() setting private flag have no effect for this option in 4.3.0.
I was forced to enable file uploads on system level in php.ini to solve
the problem.



[2003-01-29 09:34:37] [EMAIL PROTECTED]

We are running both the apache module and the cgi.  The problem is
present in both.  However, it was not present in 4.2.3 (both the apache
module and the standalone version).



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/21908

-- 
Edit this bug report at http://bugs.php.net/?id=21908&edit=1




#22048 [NEW]: imap_header() crashes with bad To: or From: header

2003-02-04 Thread rlineweaver
From: [EMAIL PROTECTED]
Operating system: RedHat Linux 8.0 (2.4.18)
PHP version:  4CVS-2003-02-04 (stable)
PHP Bug Type: IMAP related
Bug description:  imap_header() crashes with bad To: or From: header

This is a very similar issue to bug #19280
(http://bugs.php.net/bug.php?id=19280), but that bug was closed and this
issue still exists.

php4-STABLE-200302041230
imap-2001a (from RedHat 8.0)
apache-2.0.44 (happens from CLI too, so probably irrelevant)

also occurs with php-4.3.0, apache-2.0.43

Strangely constructed To: or From: header causes a segfault, even from CLI
php.  Here are sample headers to reconstruct the problem:

---
>From [EMAIL PROTECTED]  Mon Feb  3 14:08:06 2003
Return-Path: <[EMAIL PROTECTED]>
Date: Mon,  3 Feb 2003 14:08:08 -0500
From: PHP Test Case <[EMAIL PROTECTED]>
To: \\\ <[EMAIL PROTECTED]>
Subject: test 4
MIME-Version: 1.0
Content-Type: text/plain
Content-Transfer-Encoding: 7bit
---

Swapping the To: and From: headers causes the same problem.

The following script will reproduce the segfault:

---
toaddress . "\n";
echo $header->fromaddress . "\n";

imap_close($mailbox);
?>
---

Notes:

In ext/imap/php_imap.c, if I change the define:
#define PHP_IMAP_ADDRESS_SIZE_BUF 10
to something larger, say 100, the segfault disappears.  Since
PHP_IMAP_ADDRESS_SIZE_BUF was added to solve bug #19280 I thought this may
be a related issue.

The badly constructed address above (\\\ <[EMAIL PROTECTED]>) was
the shortest test case I could come up with.  Note that reducing the
number of backslashes makes it work, but adding the same number of
alphanumeric characters back into the email address itself (between the
<>) breaks it again.

An older server running PHP 4.1.2, imap-2001a, Apache 1.3.27, Horde/IMP,
was not affected by the same messages.

Thanks for looking into this!  Let me know if you need additional
information.  PHP ./configure line pasted below:

'./configure' '--prefix=/usr/local/php4-STABLE-200302041230'
'--with-config-file-path=/etc' '--enable-force-cgi-redirect'
'--disable-debug' '--enable-pic' '--disable-rpath'
'--enable-inline-optimization' '--with-bz2' '--with-db4' '--with-zlib'
'--with-gd' '--with-png-dir=/usr' '--with-freetype-dir=/usr'
'--enable-gd-native-ttf' '--with-ttf' '--with-gdbm' '--with-gettext'
'--with-ncurses' '--with-gmp' '--with-iconv' '--with-jpeg-dir=/usr'
'--with-png' '--with-pspell' '--with-regex=system' '--with-xml'
'--with-expat-dir=/usr' '--enable-bcmath' '--enable-exif' '--enable-ftp'
'--enable-magic-quotes' '--enable-safe-mode=no' '--enable-sockets'
'--enable-sysvsem' '--enable-sysvshm' '--enable-discard-path'
'--enable-track-vars' '--enable-trans-sid' '--without-oci8'
'--with-pear=/usr/share/pear' '--with-imap=shared' '--with-imap-ssl'
'--with-ldap=shared' '--with-mysql=shared,/usr' '--enable-memory-limit'
'--enable-bcmath' '--enable-shmop' '--enable-versioning'
'--with-apxs2=/usr/local/apache-2.0.44/bin/apxs'
'--with-kerberos=/usr/kerberos'

-- 
Edit bug report at http://bugs.php.net/?id=22048&edit=1
-- 
Try a CVS snapshot: http://bugs.php.net/fix.php?id=22048&r=trysnapshot
Fixed in CVS:   http://bugs.php.net/fix.php?id=22048&r=fixedcvs
Fixed in release:   http://bugs.php.net/fix.php?id=22048&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=22048&r=needtrace
Try newer version:  http://bugs.php.net/fix.php?id=22048&r=oldversion
Not developer issue:http://bugs.php.net/fix.php?id=22048&r=support
Expected behavior:  http://bugs.php.net/fix.php?id=22048&r=notwrong
Not enough info:http://bugs.php.net/fix.php?id=22048&r=notenoughinfo
Submitted twice:http://bugs.php.net/fix.php?id=22048&r=submittedtwice
register_globals:   http://bugs.php.net/fix.php?id=22048&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=22048&r=php3
Daylight Savings:   http://bugs.php.net/fix.php?id=22048&r=dst
IIS Stability:  http://bugs.php.net/fix.php?id=22048&r=isapi
Install GNU Sed:http://bugs.php.net/fix.php?id=22048&r=gnused




#22047 [Asn->WFx]: PHP pollutes the namespace w/ (what looks like) its grammar tokens

2003-02-04 Thread derick
 ID:   22047
 Updated by:   [EMAIL PROTECTED]
 Reported By:  [EMAIL PROTECTED]
-Status:   Assigned
+Status:   Wont fix
 Bug Type: *General Issues
 Operating System: Linux
 PHP Version:  4.3.0
 Assigned To:  derick
 New Comment:

A notice is fine, we're not going to change this as it might break
scripts out there.


Previous Comments:


[2003-02-04 10:20:52] [EMAIL PROTECTED]

Good, thanks.

Let me clarify -

PHP does log a NOTICE such as

[04-Feb-2003 17:18:22] PHP Notice:
  Constant T_LIST already defined
  in x.php on line 3

but this definitely needs to be a WARNING
or even an ERROR.

-Tomas



[2003-02-04 10:13:58] [EMAIL PROTECTED]

That is a good idea, thought it did that. Assigned.



[2003-02-04 10:09:56] [EMAIL PROTECTED]

Hmm.  I'm convinced PHP should at least file a big fat
warning upon any attempted redefinition of a reserved
constant name, instead of ignoring the instruction
entirely.

Identifiers such as T_LIST are very often used in enums.



[2003-02-04 10:05:43] [EMAIL PROTECTED]

The tokenizer extension needs those, and changing it now would be
breaking all scripts that make use of it. So there is little we can do
here...

Derick



[2003-02-04 10:02:59] [EMAIL PROTECTED]

Since 4.3.0, PHP defines constants that are suspiciously
similar to its grammar tokens.  These cannot be redefined
and should clearly be considered namespace pollution.

For instance, the following example:



will output '345, 304'.
Needless to say, this broke one of my PHP creations
horribly. :)





-- 
Edit this bug report at http://bugs.php.net/?id=22047&edit=1




#22045 [Fbk]: Provider changed the PHP-Version

2003-02-04 Thread sniper
 ID:   22045
 Updated by:   [EMAIL PROTECTED]
 Reported By:  [EMAIL PROTECTED]
 Status:   Feedback
 Bug Type: Filesystem function related
 Operating System: WinME
 PHP Version:  4.3.0
 New Comment:

WHAT part of that script does not work?
Please provide a short and COMPLETE script which 
clearly shows the 'bug'. Most likely the problem
is not any bug anyway...



Previous Comments:


[2003-02-04 09:29:27] [EMAIL PROTECTED]

Not enough information was provided for us to be able
to handle this bug. Please re-read the instructions at
http://bugs.php.net/how-to-report.php

If you can provide more information, feel free to add it
to this bug and change the status back to "Open".

Thank you for your interest in PHP.




[2003-02-04 09:28:49] [EMAIL PROTECTED]

I' am sorry for my bad english, but I have a Problem with this Script.

function exec_sql_lines($sql_file, $old_string = '', $new_string = '')
{

$sql_query = isset($sql_query) ? $sql_query : "";

if(!empty($sql_file) && $sql_file != "none") {
$sql_query = fread(fopen($sql_file, "r"), filesize($sql_file));
/* If magic_quotes_runtime is enabled, most functions that return
data from any sort of external source 
   including databases and text files will have quotes escaped with a
backslash.
*/
if (get_magic_quotes_runtime() == 1) $sql_query =
stripslashes($sql_query);
/* replace old_string with new_string if they are set */
if($old_string != '') {
$sql_query = ereg_replace($old_string,$new_string,$sql_query);
}
}
$sql_query = trim($sql_query);

if($sql_query != "") {
$sql_query   = remove_remarks($sql_query);
$pieces  = split_sql_file($sql_query,";");
$cnt_pieces  = count($pieces);
/* run multiple queries */
for ($i=0; $i<$cnt_pieces; $i++) {
$sql = trim($pieces[$i]);
if (!empty($sql) and $sql[0] != "#") $result = 
mysql_query($sql);
}
}
return true;
}

My Provider changed the PHP-Verion to 4.3.0 and from this
time this Script dosn't work.

Is there a Bug, nobody can help me.

Thanx Alf




-- 
Edit this bug report at http://bugs.php.net/?id=22045&edit=1




#22047 [Com]: PHP pollutes the namespace w/ (what looks like) its grammar tokens

2003-02-04 Thread szepe
 ID:   22047
 Comment by:   [EMAIL PROTECTED]
 Reported By:  [EMAIL PROTECTED]
 Status:   Assigned
 Bug Type: *General Issues
 Operating System: Linux
 PHP Version:  4.3.0
 Assigned To:  derick
 New Comment:

Good, thanks.

Let me clarify -

PHP does log a NOTICE such as

[04-Feb-2003 17:18:22] PHP Notice:
  Constant T_LIST already defined
  in x.php on line 3

but this definitely needs to be a WARNING
or even an ERROR.

-Tomas


Previous Comments:


[2003-02-04 10:13:58] [EMAIL PROTECTED]

That is a good idea, thought it did that. Assigned.



[2003-02-04 10:09:56] [EMAIL PROTECTED]

Hmm.  I'm convinced PHP should at least file a big fat
warning upon any attempted redefinition of a reserved
constant name, instead of ignoring the instruction
entirely.

Identifiers such as T_LIST are very often used in enums.



[2003-02-04 10:05:43] [EMAIL PROTECTED]

The tokenizer extension needs those, and changing it now would be
breaking all scripts that make use of it. So there is little we can do
here...

Derick



[2003-02-04 10:02:59] [EMAIL PROTECTED]

Since 4.3.0, PHP defines constants that are suspiciously
similar to its grammar tokens.  These cannot be redefined
and should clearly be considered namespace pollution.

For instance, the following example:



will output '345, 304'.
Needless to say, this broke one of my PHP creations
horribly. :)





-- 
Edit this bug report at http://bugs.php.net/?id=22047&edit=1




#22047 [WFx->Asn]: PHP pollutes the namespace w/ (what looks like) its grammar tokens

2003-02-04 Thread derick
 ID:   22047
 Updated by:   [EMAIL PROTECTED]
 Reported By:  [EMAIL PROTECTED]
-Status:   Wont fix
+Status:   Assigned
 Bug Type: *General Issues
 Operating System: Linux
 PHP Version:  4.3.0
-Assigned To:  
+Assigned To:  derick
 New Comment:

That is a good idea, thought it did that. Assigned.


Previous Comments:


[2003-02-04 10:09:56] [EMAIL PROTECTED]

Hmm.  I'm convinced PHP should at least file a big fat
warning upon any attempted redefinition of a reserved
constant name, instead of ignoring the instruction
entirely.

Identifiers such as T_LIST are very often used in enums.



[2003-02-04 10:05:43] [EMAIL PROTECTED]

The tokenizer extension needs those, and changing it now would be
breaking all scripts that make use of it. So there is little we can do
here...

Derick



[2003-02-04 10:02:59] [EMAIL PROTECTED]

Since 4.3.0, PHP defines constants that are suspiciously
similar to its grammar tokens.  These cannot be redefined
and should clearly be considered namespace pollution.

For instance, the following example:



will output '345, 304'.
Needless to say, this broke one of my PHP creations
horribly. :)





-- 
Edit this bug report at http://bugs.php.net/?id=22047&edit=1




#22047 [Com]: PHP pollutes the namespace w/ (what looks like) its grammar tokens

2003-02-04 Thread szepe
 ID:   22047
 Comment by:   [EMAIL PROTECTED]
 Reported By:  [EMAIL PROTECTED]
 Status:   Wont fix
 Bug Type: *General Issues
 Operating System: Linux
 PHP Version:  4.3.0
 New Comment:

Hmm.  I'm convinced PHP should at least file a big fat
warning upon any attempted redefinition of a reserved
constant name, instead of ignoring the instruction
entirely.

Identifiers such as T_LIST are very often used in enums.


Previous Comments:


[2003-02-04 10:05:43] [EMAIL PROTECTED]

The tokenizer extension needs those, and changing it now would be
breaking all scripts that make use of it. So there is little we can do
here...

Derick



[2003-02-04 10:02:59] [EMAIL PROTECTED]

Since 4.3.0, PHP defines constants that are suspiciously
similar to its grammar tokens.  These cannot be redefined
and should clearly be considered namespace pollution.

For instance, the following example:



will output '345, 304'.
Needless to say, this broke one of my PHP creations
horribly. :)





-- 
Edit this bug report at http://bugs.php.net/?id=22047&edit=1




#22047 [Opn->WFx]: PHP pollutes the namespace w/ (what looks like) its grammar tokens

2003-02-04 Thread derick
 ID:   22047
 Updated by:   [EMAIL PROTECTED]
 Reported By:  [EMAIL PROTECTED]
-Status:   Open
+Status:   Wont fix
 Bug Type: *General Issues
 Operating System: Linux
 PHP Version:  4.3.0
 New Comment:

The tokenizer extension needs those, and changing it now would be
breaking all scripts that make use of it. So there is little we can do
here...

Derick


Previous Comments:


[2003-02-04 10:02:59] [EMAIL PROTECTED]

Since 4.3.0, PHP defines constants that are suspiciously
similar to its grammar tokens.  These cannot be redefined
and should clearly be considered namespace pollution.

For instance, the following example:



will output '345, 304'.
Needless to say, this broke one of my PHP creations
horribly. :)





-- 
Edit this bug report at http://bugs.php.net/?id=22047&edit=1




#22047 [NEW]: PHP pollutes the namespace w/ (what looks like) its grammar tokens

2003-02-04 Thread szepe
From: [EMAIL PROTECTED]
Operating system: Linux
PHP version:  4.3.0
PHP Bug Type: *General Issues
Bug description:  PHP pollutes the namespace w/ (what looks like) its grammar tokens

Since 4.3.0, PHP defines constants that are suspiciously
similar to its grammar tokens.  These cannot be redefined
and should clearly be considered namespace pollution.

For instance, the following example:



will output '345, 304'.
Needless to say, this broke one of my PHP creations
horribly. :)

-- 
Edit bug report at http://bugs.php.net/?id=22047&edit=1
-- 
Try a CVS snapshot: http://bugs.php.net/fix.php?id=22047&r=trysnapshot
Fixed in CVS:   http://bugs.php.net/fix.php?id=22047&r=fixedcvs
Fixed in release:   http://bugs.php.net/fix.php?id=22047&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=22047&r=needtrace
Try newer version:  http://bugs.php.net/fix.php?id=22047&r=oldversion
Not developer issue:http://bugs.php.net/fix.php?id=22047&r=support
Expected behavior:  http://bugs.php.net/fix.php?id=22047&r=notwrong
Not enough info:http://bugs.php.net/fix.php?id=22047&r=notenoughinfo
Submitted twice:http://bugs.php.net/fix.php?id=22047&r=submittedtwice
register_globals:   http://bugs.php.net/fix.php?id=22047&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=22047&r=php3
Daylight Savings:   http://bugs.php.net/fix.php?id=22047&r=dst
IIS Stability:  http://bugs.php.net/fix.php?id=22047&r=isapi
Install GNU Sed:http://bugs.php.net/fix.php?id=22047&r=gnused




#22044 [Opn->Bgs]: Did a Complie and then running Make genrated Failure

2003-02-04 Thread tal
 ID:   22044
 Updated by:   [EMAIL PROTECTED]
 Reported By:  [EMAIL PROTECTED]
-Status:   Open
+Status:   Bogus
 Bug Type: Compile Failure
 Operating System: Sun Solaris
 PHP Version:  4.3.0
 New Comment:

Due to a bug in the installed sed on your system the build
fails. Install GNU sed and it should be okay.
 
Thank you for your interest in PHP.

.


Previous Comments:


[2003-02-04 09:30:33] [EMAIL PROTECTED]

1. complied Apache 2.0.44
2. Make Install was successfull
3. compiled Php 4.3.0
./configure --with-apxs2=/usr/local/apache/bin/apxs
--with-apache2=/usr/local/apache/include --prefix=/usr/local/php
--with-config-file-path=/usr/local/php

4. Ran Make, got the following error and Make stopped
Output line too long.
Output line too long.
Output line too long.
gcc: TSR: No such file or directory
make: *** [sapi/cli/php] Error 1



[2003-02-04 09:27:19] [EMAIL PROTECTED]

Due to a bug in the installed sed on your system the build
fails. Install GNU sed and it should be okay.
 
Thank you for your interest in PHP.

.



[2003-02-04 09:20:58] [EMAIL PROTECTED]

How about, instead of only posting a lot of code, also posting your
actual comment? It would help us a lot :)



[2003-02-04 09:18:18] [EMAIL PROTECTED]

./configure --with-apxs2=/usr/local/apache/bin/apxs
--with-apache2=/usr/local/apache/include --prefix=/usr/local/php
--with-config-file-path=/usr/local/php



/bin/sh libtool --silent --mode=compile gcc  -Isapi/cli/
-I/usr/local/php/php-4.3.0/sapi/cli/ -DPHP_ATOM_INC
-I/usr/local/php/php-4.3.0/include -I/usr/local/php/php-4.3.0/main
-I/usr/local/php/php-4.3.0 -I/usr/local/apache/include
-I/usr/local/php/php-4.3.0/Zend
-I/usr/local/php/php-4.3.0/ext/xml/expat  -D_POSIX_PTHREAD_SEMANTICS
-I/usr/local/php/php-4.3.0/TSRM  -g -O2  -prefer-pic -c
/usr/local/php/php-4.3.0/sapi/cli/php_cli.c -o sapi/cli/php_cli.lo 
/bin/sh libtool --silent --mode=compile gcc  -Isapi/cli/
-I/usr/local/php/php-4.3.0/sapi/cli/ -DPHP_ATOM_INC
-I/usr/local/php/php-4.3.0/include -I/usr/local/php/php-4.3.0/main
-I/usr/local/php/php-4.3.0 -I/usr/local/apache/include
-I/usr/local/php/php-4.3.0/Zend
-I/usr/local/php/php-4.3.0/ext/xml/expat  -D_POSIX_PTHREAD_SEMANTICS
-I/usr/local/php/php-4.3.0/TSRM  -g -O2  -prefer-pic -c
/usr/local/php/php-4.3.0/sapi/cli/getopt.c -o sapi/cli/getopt.lo 
/bin/sh libtool --silent --mode=compile gcc  -Imain/
-I/usr/local/php/php-4.3.0/main/ -DPHP_ATOM_INC
-I/usr/local/php/php-4.3.0/include -I/usr/local/php/php-4.3.0/main
-I/usr/local/php/php-4.3.0 -I/usr/local/apache/include
-I/usr/local/php/php-4.3.0/Zend
-I/usr/local/php/php-4.3.0/ext/xml/expat  -D_POSIX_PTHREAD_SEMANTICS
-I/usr/local/php/php-4.3.0/TSRM  -g -O2  -prefer-pic -c
main/internal_functions_cli.c -o main/internal_functions_cli.lo 
/bin/sh libtool --silent --mode=link gcc -export-dynamic -g -O2 
-avoid-version -module -L/usr/ucblib
-L/opt/GNUall/lib/gcc-lib/sparc-sun-solaris2.6/2.8.1  -R /usr/ucblib -R
/opt/GNUall/lib/gcc-lib/sparc-sun-solaris2.6/2.8.1 ext/ctype/ctype.lo
ext/mysql/php_mysql.lo ext/mysql/libmysql/libmysql.lo
ext/mysql/libmysql/errmsg.lo ext/mysql/libmysql/net.lo
ext/mysql/libmysql/violite.lo ext/mysql/libmysql/password.lo
ext/mysql/libmysql/my_init.lo ext/mysql/libmysql/my_lib.lo
ext/mysql/libmysql/my_static.lo ext/mysql/libmysql/my_malloc.lo
ext/mysql/libmysql/my_realloc.lo ext/mysql/libmysql/my_create.lo
ext/mysql/libmysql/my_delete.lo ext/mysql/libmysql/my_tempnam.lo
ext/mysql/libmysql/my_open.lo ext/mysql/libmysql/mf_casecnv.lo
ext/mysql/libmysql/my_read.lo ext/mysql/libmysql/my_write.lo
ext/mysql/libmysql/errors.lo ext/mysql/libmysql/my_error.lo
ext/mysql/libmysql/my_getwd.lo ext/mysql/libmysql/my_div.lo
ext/mysql/libmysql/mf_pack.lo ext/mysql/libmysql/my_messnc.lo
ext/mysql/libmysql/mf_dirname.lo ext/mysql/libmysql/mf_fn_ext.lo
ext/mysql/libmysql/mf_wcomp.lo ext/mysql/libmysql/typelib.lo
ext/mysql/libmysql/safemalloc.lo ext/mysql/libmysql/my_alloc.lo
ext/mysql/libmysql/mf_format.lo ext/mysql/libmysql/mf_path.lo
ext/mysql/libmysql/mf_unixpath.lo ext/mysql/libmysql/my_fopen.lo
ext/mysql/libmysql/mf_loadpath.lo ext/mysql/libmysql/my_pthread.lo
ext/mysql/libmysql/my_thr_init.lo ext/mysql/libmysql/thr_mutex.lo
ext/mysql/libmysql/mulalloc.lo ext/mysql/libmysql/string.lo
ext/mysql/libmysql/default.lo ext/mysql/libmysql/my_compress.lo
ext/mysql/libmysql/array.lo ext/mysql/libmysql/my_once.lo
ext/mysql/libmysql/list.lo ext/mysql/libmysql/my_net.lo
ext/mysql/libmysql/dbug.lo ext/mysql/libmysql/strmov.lo
ext/mysql/libmysql/strxmov.lo ext/mysql/libmysql/strnmov.lo
ext/mysql/libmysql/strmake.lo ext/mysql/libmysql/strend.lo
ext/mysql/libmysql/strfill.lo ext/mysql/libmysql/is_prefix.l

#22044 [Bgs->Opn]: Did a Complie and then running Make genrated Failure

2003-02-04 Thread m_shah
 ID:   22044
 User updated by:  [EMAIL PROTECTED]
 Reported By:  [EMAIL PROTECTED]
-Status:   Bogus
+Status:   Open
 Bug Type: Compile Failure
 Operating System: Sun Solaris
 PHP Version:  4.3.0
 New Comment:

1. complied Apache 2.0.44
2. Make Install was successfull
3. compiled Php 4.3.0
./configure --with-apxs2=/usr/local/apache/bin/apxs
--with-apache2=/usr/local/apache/include --prefix=/usr/local/php
--with-config-file-path=/usr/local/php

4. Ran Make, got the following error and Make stopped
Output line too long.
Output line too long.
Output line too long.
gcc: TSR: No such file or directory
make: *** [sapi/cli/php] Error 1


Previous Comments:


[2003-02-04 09:27:19] [EMAIL PROTECTED]

Due to a bug in the installed sed on your system the build
fails. Install GNU sed and it should be okay.
 
Thank you for your interest in PHP.

.



[2003-02-04 09:20:58] [EMAIL PROTECTED]

How about, instead of only posting a lot of code, also posting your
actual comment? It would help us a lot :)



[2003-02-04 09:18:18] [EMAIL PROTECTED]

./configure --with-apxs2=/usr/local/apache/bin/apxs
--with-apache2=/usr/local/apache/include --prefix=/usr/local/php
--with-config-file-path=/usr/local/php



/bin/sh libtool --silent --mode=compile gcc  -Isapi/cli/
-I/usr/local/php/php-4.3.0/sapi/cli/ -DPHP_ATOM_INC
-I/usr/local/php/php-4.3.0/include -I/usr/local/php/php-4.3.0/main
-I/usr/local/php/php-4.3.0 -I/usr/local/apache/include
-I/usr/local/php/php-4.3.0/Zend
-I/usr/local/php/php-4.3.0/ext/xml/expat  -D_POSIX_PTHREAD_SEMANTICS
-I/usr/local/php/php-4.3.0/TSRM  -g -O2  -prefer-pic -c
/usr/local/php/php-4.3.0/sapi/cli/php_cli.c -o sapi/cli/php_cli.lo 
/bin/sh libtool --silent --mode=compile gcc  -Isapi/cli/
-I/usr/local/php/php-4.3.0/sapi/cli/ -DPHP_ATOM_INC
-I/usr/local/php/php-4.3.0/include -I/usr/local/php/php-4.3.0/main
-I/usr/local/php/php-4.3.0 -I/usr/local/apache/include
-I/usr/local/php/php-4.3.0/Zend
-I/usr/local/php/php-4.3.0/ext/xml/expat  -D_POSIX_PTHREAD_SEMANTICS
-I/usr/local/php/php-4.3.0/TSRM  -g -O2  -prefer-pic -c
/usr/local/php/php-4.3.0/sapi/cli/getopt.c -o sapi/cli/getopt.lo 
/bin/sh libtool --silent --mode=compile gcc  -Imain/
-I/usr/local/php/php-4.3.0/main/ -DPHP_ATOM_INC
-I/usr/local/php/php-4.3.0/include -I/usr/local/php/php-4.3.0/main
-I/usr/local/php/php-4.3.0 -I/usr/local/apache/include
-I/usr/local/php/php-4.3.0/Zend
-I/usr/local/php/php-4.3.0/ext/xml/expat  -D_POSIX_PTHREAD_SEMANTICS
-I/usr/local/php/php-4.3.0/TSRM  -g -O2  -prefer-pic -c
main/internal_functions_cli.c -o main/internal_functions_cli.lo 
/bin/sh libtool --silent --mode=link gcc -export-dynamic -g -O2 
-avoid-version -module -L/usr/ucblib
-L/opt/GNUall/lib/gcc-lib/sparc-sun-solaris2.6/2.8.1  -R /usr/ucblib -R
/opt/GNUall/lib/gcc-lib/sparc-sun-solaris2.6/2.8.1 ext/ctype/ctype.lo
ext/mysql/php_mysql.lo ext/mysql/libmysql/libmysql.lo
ext/mysql/libmysql/errmsg.lo ext/mysql/libmysql/net.lo
ext/mysql/libmysql/violite.lo ext/mysql/libmysql/password.lo
ext/mysql/libmysql/my_init.lo ext/mysql/libmysql/my_lib.lo
ext/mysql/libmysql/my_static.lo ext/mysql/libmysql/my_malloc.lo
ext/mysql/libmysql/my_realloc.lo ext/mysql/libmysql/my_create.lo
ext/mysql/libmysql/my_delete.lo ext/mysql/libmysql/my_tempnam.lo
ext/mysql/libmysql/my_open.lo ext/mysql/libmysql/mf_casecnv.lo
ext/mysql/libmysql/my_read.lo ext/mysql/libmysql/my_write.lo
ext/mysql/libmysql/errors.lo ext/mysql/libmysql/my_error.lo
ext/mysql/libmysql/my_getwd.lo ext/mysql/libmysql/my_div.lo
ext/mysql/libmysql/mf_pack.lo ext/mysql/libmysql/my_messnc.lo
ext/mysql/libmysql/mf_dirname.lo ext/mysql/libmysql/mf_fn_ext.lo
ext/mysql/libmysql/mf_wcomp.lo ext/mysql/libmysql/typelib.lo
ext/mysql/libmysql/safemalloc.lo ext/mysql/libmysql/my_alloc.lo
ext/mysql/libmysql/mf_format.lo ext/mysql/libmysql/mf_path.lo
ext/mysql/libmysql/mf_unixpath.lo ext/mysql/libmysql/my_fopen.lo
ext/mysql/libmysql/mf_loadpath.lo ext/mysql/libmysql/my_pthread.lo
ext/mysql/libmysql/my_thr_init.lo ext/mysql/libmysql/thr_mutex.lo
ext/mysql/libmysql/mulalloc.lo ext/mysql/libmysql/string.lo
ext/mysql/libmysql/default.lo ext/mysql/libmysql/my_compress.lo
ext/mysql/libmysql/array.lo ext/mysql/libmysql/my_once.lo
ext/mysql/libmysql/list.lo ext/mysql/libmysql/my_net.lo
ext/mysql/libmysql/dbug.lo ext/mysql/libmysql/strmov.lo
ext/mysql/libmysql/strxmov.lo ext/mysql/libmysql/strnmov.lo
ext/mysql/libmysql/strmake.lo ext/mysql/libmysql/strend.lo
ext/mysql/libmysql/strfill.lo ext/mysql/libmysql/is_prefix.lo
ext/mysql/libmysql/int2str.lo ext/mysql/libmysql/str2int.lo
ext/mysql/libmysql/strinstr.lo ext/mysql/libmysql/strcont.lo
ext/mysql/libmysql/strcend.lo ext/mysql/libmysql/bchange.lo
ext/mysql/libmysql/bmove.lo ext/mysql/libmysql/bmove_upp.lo
ext/mysql/libmysql/

  1   2   >