[PHP-DEV] Bug #15448 Updated: Part of Apache installation howto disappeared

2002-02-08 Thread alindeman

 ID:   15448
 Updated by:   [EMAIL PROTECTED]
 Reported By:  [EMAIL PROTECTED]
-Status:   Open
+Status:   Bogus
 Bug Type: Documentation problem
 Operating System: Linux
 PHP Version:  4.1.1
 New Comment:

This is intended.  The installation uses apxs.  This is a description
of apxs..

apxs is a tool for building and installing extension modules
 for  the  Apache  HyperText Transfer Protocol (HTTP) server.
 This is achieved by building a Dynamic Shared  Object  (DSO)
 from  one  or  more source or object files which then can be
 loaded into the Apache server under runtime via the  LoadMo-
 dule directive from mod_so.



Previous Comments:


[2002-02-08 06:44:08] [EMAIL PROTECTED]

On Manual / Installation / Servers: Apache on Unix there used to be
sections such as:

  11. cd ../apache_1.3.x
  12. for PHP 3: ./configure
-activate-module=src/modules/php3/libphp3.a
  for PHP 4: ./configure
--activate-module=src/modules/php4/libphp4.a
  13. make
  14. make install

These seem to have disappeared.




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


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




[PHP-DEV] Bug #11618 Updated: session and form data

2002-02-08 Thread alindeman

 ID:   11618
 Updated by:   [EMAIL PROTECTED]
 Reported By:  [EMAIL PROTECTED]
 Status:   Analyzed
 Bug Type: Documentation problem
 Operating System: linux 2.2.16-22
 PHP Version:  4.0.4
 New Comment:

Ok. Try telnetting to that page telnet yoursite.com 80  Type:

HEAD /thepage.php HTTP/1.1
Host: yoursite.com

Obviously replace thepage.php and yoursite.com with your actual site. 
See what the headers are (especially the Pragma: or Cache-Control
headers)


Previous Comments:


[2002-02-07 22:41:59] [EMAIL PROTECTED]

To answer the most recent question from alindeman (I apologize, but I
do not know your name):

The mention of nocache isn't exactly just HTTP/1.0, however the Pragma
header in fact is unique to HTTP/1.0 and was only included in HTTP/1.1
to maintain backwards compatibility. No directives exist for this
header except nocache.

HTTP/1.1 introduces the Cache-Control header, and with it comes many
available directives. In fact, nocache is still one of these. I'm
honestly not sure how the session_cache_limiter is implemented at the
protocol level, but I can try to figure it out if it would be helpful
to you.

guo_feng:

Though from your brief account I would say that you have now chosen the
most appropriate value for session_cache_limiter (assuming it affects
the value of the Cache-Control header), I would suggest learning more
about it so that you feel more confident in your implementation. To
briefly answer your question, however, public basically declares that
the content may be cached by anything. Private has a bit more unclear
definition to me (you might find more clarification in your research),
but it basically allows caching but not in a shared cache. An example
of a shared cache would be a proxy that many people are connected to,
so the content might be considered a bit too sensitive to be
accidentally returned to another user.

Hope that helps. Thanks for all your help guo_feng.

Chris



[2002-02-07 19:33:35] [EMAIL PROTECTED]

Wasn't nocache a HTTP/1.0 thing?  Is must-revalidate the HTTP/1.1
equivilant?  Can anybody verify this 
so that I can do something with the docs.




[2001-06-23 06:35:20] [EMAIL PROTECTED]

reclassified as documentation problem.
This should be explained better in the manual.




[2001-06-22 12:57:37] [EMAIL PROTECTED]

I have solve the problem when I set session.cache_limiter 
=must-revalidate
But I don't why!Can somebody tell me?



[2001-06-22 12:46:30] [EMAIL PROTECTED]


?
//test1.php
session_start();
$aaa=sfsdsdasdf;
$bbb=safsadfasdf;
session_register(aaa);
session_register(bbb);
?
FORM METHOD=POST ACTION=test2.php
INPUT TYPE=text NAME=a1
INPUT TYPE=text NAME=a2
INPUT TYPE=submit
/FORM

?
/---
?
//test2.php
session_start();
echo aaa:.$aaa.br;
echo bbb:.$bbb
?
a href=javascript:window.history.back()back/a
/---

When I set the session_cache_limiter = nocache ,that I submit my form
,and I can get the correct session.
But when I click then back link ,I lost the data in the form .
So I change the session_cache_limiter = private or public. That when I
back I can got the data in the form. And I have a new problem,I need
check the session in my program when the different user login(I check
use status using session ) ,
When I login use different user ,the session I got is not correct. And
I found I can't destroy the session.What shall I do?

What is the different about nocache,private,public?




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


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




[PHP-DEV] Bug #15251 Updated: Cannot upload one but two files

2002-02-07 Thread alindeman

 ID:   15251
 Updated by:   [EMAIL PROTECTED]
 Reported By:  [EMAIL PROTECTED]
-Status:   Critical
+Status:   Feedback
 Bug Type: HTTP related
 Operating System: Linux
 PHP Version:  4.2.0 2002-02-07
 New Comment:

Status - Feedback


Previous Comments:


[2002-02-07 07:17:02] [EMAIL PROTECTED]

Hmmm tjo,

you know the procedure...

1) Can you try it with IE5.5?
2) Is this exact the script you used? (remember the ;)
3) what is your config.nice (cause i wasnt able to reproduce) with my
plain installation





[2002-02-07 05:52:31] [EMAIL PROTECTED]

Oops. Problem still exists :(



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

I tested again. It works for me now :)
I don't actually change configuration. I upgraded to apache 1.3.23/mod
2.8.6, though.



[2002-02-04 09:37:57] [EMAIL PROTECTED]

Hmm. That's strange. One thing I can think of is mbstring module, but
mbstring module is designed not to convert multi-part form data

I'll try w/o mbstring when I have time.

BTW, I didn't notice parse error. I'll check if it's logged, also.



[2002-02-04 08:15:21] [EMAIL PROTECTED]

with no effect i mean: uploading one or two files worked without any
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/15251

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


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




[PHP-DEV] Bug #11297 Updated: swf_shapecurveto() description missing an element

2002-02-07 Thread alindeman

 ID:   11297
 Updated by:   [EMAIL PROTECTED]
 Reported By:  [EMAIL PROTECTED]
 Status:   Open
 Bug Type: Documentation problem
 Operating System: Not relevant
 PHP Version:  4.0.5
 New Comment:

I don't really know much about quadratic bezier curves.  Can anybody
verify that this is correct?



Previous Comments:


[2001-06-05 17:06:39] [EMAIL PROTECTED]

bezier curves need three points. I think the following sentence:
The swf_shapecurveto() function draws a quadratic bezier curve from
the x
coordinate given by x1 and the y coordinate given by y1 to the x
coordinate given by
x2 and the y coordinate given by y2.

should say:
The swf_shapecurveto() function draws a quadratic bezier curve from
the
current location, through the x coordinate given by x1 and the y
coordinate given by y1,
to the x coordinate given by x2 and the y coordinate given by y2.





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


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




[PHP-DEV] Bug #11618 Updated: session and form data

2002-02-07 Thread alindeman

 ID:   11618
 Updated by:   [EMAIL PROTECTED]
 Reported By:  [EMAIL PROTECTED]
 Status:   Analyzed
 Bug Type: Documentation problem
 Operating System: linux 2.2.16-22
 PHP Version:  4.0.4
 New Comment:

Wasn't nocache a HTTP/1.0 thing?  Is must-revalidate the HTTP/1.1
equivilant?  Can anybody verify this 
so that I can do something with the docs.



Previous Comments:


[2001-06-23 06:35:20] [EMAIL PROTECTED]

reclassified as documentation problem.
This should be explained better in the manual.




[2001-06-22 12:57:37] [EMAIL PROTECTED]

I have solve the problem when I set session.cache_limiter 
=must-revalidate
But I don't why!Can somebody tell me?



[2001-06-22 12:46:30] [EMAIL PROTECTED]


?
//test1.php
session_start();
$aaa=sfsdsdasdf;
$bbb=safsadfasdf;
session_register(aaa);
session_register(bbb);
?
FORM METHOD=POST ACTION=test2.php
INPUT TYPE=text NAME=a1
INPUT TYPE=text NAME=a2
INPUT TYPE=submit
/FORM

?
/---
?
//test2.php
session_start();
echo aaa:.$aaa.br;
echo bbb:.$bbb
?
a href=javascript:window.history.back()back/a
/---

When I set the session_cache_limiter = nocache ,that I submit my form
,and I can get the correct session.
But when I click then back link ,I lost the data in the form .
So I change the session_cache_limiter = private or public. That when I
back I can got the data in the form. And I have a new problem,I need
check the session in my program when the different user login(I check
use status using session ) ,
When I login use different user ,the session I got is not correct. And
I found I can't destroy the session.What shall I do?

What is the different about nocache,private,public?




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


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




[PHP-DEV] Bug #12434 Updated: confusing....

2002-02-07 Thread alindeman

 ID:   12434
 Updated by:   [EMAIL PROTECTED]
 Reported By:  [EMAIL PROTECTED]
-Status:   Open
+Status:   Assigned
 Bug Type: Documentation problem
 Operating System: na
 PHP Version:  4.0.6
-Assigned To:  
+Assigned To:  alindeman
 New Comment:

I'll fix this.

Status - Assigned (alindeman)



Previous Comments:


[2001-07-27 14:19:49] [EMAIL PROTECTED]

This is more an issue of the FAQ not really being maintained.  The
definitive installation documentation is in the INSTALL file in the
distribution where the instructions are actually perfect.



[2001-07-27 14:17:09] [EMAIL PROTECTED]

In the FAQ: Build Problems, here's what it says:

-
7. I can't figure out how to build PHP with Apache 1.3. 

This is actually quite easy. Follow these steps carefully: 


Grab the latest Apache 1.3 distribution from
http://www.apache.org/dist/. 

Ungzip and untar it somewhere, for example /usr/local/src/apache-1.3. 

Compile PHP by first running ./configure
--with-apache=/path/apache-1.3 (substitute path for the actual path
to your apache-1.3 directory. 

Type 'make' followed by 'make install' to build PHP and copy the
necessary files to the Apache distribution tree. 

Change directories into to your /path/apache-1.3/src directory and
edit the Configuration file. At the end of the file, add: AddModule
modules/php3/libphp3.a. 



Well, of course, the  AddModule line should read
libphp4.a. While this may seem obvious to the writer,
what happens is that the user thinks that might be
the name of a certain file in version 3, but that
the file name has changed in version 4. So the user
looks, and the file name is libmodphp4.a. So he
changes it to that name, and failure occurs.

Later, there's a remark about how the writers can't
be outsmarted - to make such a remark would mean
that the writer has to be PERFECT - and that's
impossible. 

Solution: the FAQ should point out that the filename
doesn't really exist, so just change 3 to 4. If a
user slavishly followed the docs, he would just use
3, so the writer has to help him out.

BTW, the AddModule line shouldn't be at the end - there
is another AddModule line that belongs at the end.

Suggestion: don't make comments about outsmarting the
docs writers. I can point out hundreds of errors in
the docs - users OFTEN have to read between the lines
to figure stuff out, and try to discern what the
writers really mean.

Thanx for listeningJP Harrison




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


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




[PHP-DEV] Bug #12434 Updated: confusing....

2002-02-07 Thread alindeman

 ID:   12434
 Updated by:   [EMAIL PROTECTED]
 Reported By:  [EMAIL PROTECTED]
-Status:   Assigned
+Status:   Closed
 Bug Type: Documentation problem
 Operating System: na
 PHP Version:  4.0.6
 Assigned To:  alindeman
 New Comment:

Done.  Fixed in CVS..will show up in a few days.



Previous Comments:


[2002-02-07 19:40:01] [EMAIL PROTECTED]

I'll fix this.

Status - Assigned (alindeman)




[2001-07-27 14:19:49] [EMAIL PROTECTED]

This is more an issue of the FAQ not really being maintained.  The
definitive installation documentation is in the INSTALL file in the
distribution where the instructions are actually perfect.



[2001-07-27 14:17:09] [EMAIL PROTECTED]

In the FAQ: Build Problems, here's what it says:

-
7. I can't figure out how to build PHP with Apache 1.3. 

This is actually quite easy. Follow these steps carefully: 


Grab the latest Apache 1.3 distribution from
http://www.apache.org/dist/. 

Ungzip and untar it somewhere, for example /usr/local/src/apache-1.3. 

Compile PHP by first running ./configure
--with-apache=/path/apache-1.3 (substitute path for the actual path
to your apache-1.3 directory. 

Type 'make' followed by 'make install' to build PHP and copy the
necessary files to the Apache distribution tree. 

Change directories into to your /path/apache-1.3/src directory and
edit the Configuration file. At the end of the file, add: AddModule
modules/php3/libphp3.a. 



Well, of course, the  AddModule line should read
libphp4.a. While this may seem obvious to the writer,
what happens is that the user thinks that might be
the name of a certain file in version 3, but that
the file name has changed in version 4. So the user
looks, and the file name is libmodphp4.a. So he
changes it to that name, and failure occurs.

Later, there's a remark about how the writers can't
be outsmarted - to make such a remark would mean
that the writer has to be PERFECT - and that's
impossible. 

Solution: the FAQ should point out that the filename
doesn't really exist, so just change 3 to 4. If a
user slavishly followed the docs, he would just use
3, so the writer has to help him out.

BTW, the AddModule line shouldn't be at the end - there
is another AddModule line that belongs at the end.

Suggestion: don't make comments about outsmarting the
docs writers. I can point out hundreds of errors in
the docs - users OFTEN have to read between the lines
to figure stuff out, and try to discern what the
writers really mean.

Thanx for listeningJP Harrison




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


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




[PHP-DEV] Bug #12131 Updated: misworded gmp_random documentation(?)

2002-02-06 Thread alindeman

 ID:  12131
 Updated by:  [EMAIL PROTECTED]
 Reported By: [EMAIL PROTECTED]
-Status:  Open
+Status:  Closed
 Bug Type:Documentation problem
 PHP Version: 4.0.6
 New Comment:

This bug has been fixed in CVS.


Previous Comments:


[2001-07-13 03:28:54] [EMAIL PROTECTED]

on:

http://php.net/manual/en/function.gmp-random.php

you say:

Generate a random number. The number will be up to limiter words long.
If limiter is negative, negative numbers are generated

you might have meant:

Generates a random number. The generated number will be between
_limiter_ and zero in value. If limiter is negative, negative numbers
are generated






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


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




[PHP-DEV] Bug #12978 Updated: Multiple isset

2002-02-06 Thread alindeman

 ID:   12978
 Updated by:   [EMAIL PROTECTED]
 Reported By:  [EMAIL PROTECTED]
-Status:   Open
+Status:   Closed
 Bug Type: Documentation problem
 Operating System: linux
 PHP Version:  4.0.6
-Assigned To:  
+Assigned To:  alindeman
 New Comment:

Changed it in the CVS, will take effect in a day or so.  Cool feature
;-)



Previous Comments:


[2002-01-29 12:44:13] [EMAIL PROTECTED]

Neat! Reopened as a documentation problem.



[2002-01-28 21:16:00] [EMAIL PROTECTED]

Implemented.



[2001-08-27 10:07:48] [EMAIL PROTECTED]

Hiya,

I'd like to see that isset would take more parameters to test
like:

$a = $b = $c = 1 ;

if (isset($a)) echo isset; // TRUE
if (isset($a, $b, $c)) echo isset; // TRUE
if (isset($a,$b,$d)) echo isset; // FALSE

you will get my point i guess

Greetz,

Wico




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


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




[PHP-DEV] Bug #13321 Updated: Documnetation

2002-02-06 Thread alindeman

 ID:   13321
 Updated by:   [EMAIL PROTECTED]
 Reported By:  [EMAIL PROTECTED]
-Status:   Open
+Status:   Feedback
 Bug Type: Documentation problem
 Operating System: Win 32
 PHP Version:  4.0.6
 New Comment:

Examples?  More info needed than that!



Previous Comments:


[2001-09-15 13:11:45] [EMAIL PROTECTED]

Many of the file function in the manual now works on Win32
Sure you know that, but the manual is not updated.




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


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




[PHP-DEV] Bug #13794 Updated: Unclear to PHP novice: minimum necessary config for hello

2002-02-06 Thread alindeman

 ID:   13794
 Updated by:   [EMAIL PROTECTED]
-Summary:  Unclear to PHP novice: minimum necessary config for
   hello
 Reported By:  [EMAIL PROTECTED]
-Status:   Open
+Status:   Feedback
 Bug Type: Documentation problem
 Operating System: RH Linux 7.0 / Apache / Netscape
 PHP Version:  4.0.6
 New Comment:

Which page is this? I'm looking for a URL here



Previous Comments:


[2001-10-23 01:30:26] [EMAIL PROTECTED]

Suggested change to introductory tutorial:

Section is Your first PHP-enabled page

Currently:

Create a file named hello.php and in it ...

Suggested update:

Create a file named hello.php in your server web directory and in it
...



Currently:

This program is extremely simple ...

Suggested update: add following sentence, preceding current.

Use your browser to access the file with your web access URL, ending
with the /hello.php file reference.





[2001-10-23 01:05:50] [EMAIL PROTECTED]

Situation: old, used programmer just learning Linux PHP by himself.
Took several hours to figure
 out simplest possible example execution. Main confusion: what example
file / content goes where,
 then how to access testfile, then defining and matching several Apache
file extensions (PHP,
 PHP3, PHP4).

Have two PHP books, your tutorial, your manual, and your examples.
Never found explicit directions
 on where PHP content could appear (so at first associated Hello
World attempts with browser side
 HTML.) (What I was trying was browser open page to access local PHP
testfile.)

Your tutorial does say server web directory, but not clearly enough
(to a PHP novice) that this is the 
only place (for Hello World.) (with access through a browser URL
reference)

The last few hours were spent learning a little about Apache's AddType
and LoadType, then getting
 testfile extensions to match Apache definitions (the ?php tags inside
a file are apparently not
 enough to get  Apache to trigger PHP.)




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


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




[PHP-DEV] Bug #14255 Updated: setcookie bug (Cookie is destroyed/Inaccessible)

2002-02-06 Thread alindeman

 ID:   14255
 Updated by:   [EMAIL PROTECTED]
 Reported By:  [EMAIL PROTECTED]
-Status:   Analyzed
+Status:   Suspended
 Bug Type: Documentation problem
 Operating System: Debian 2.2.19
 PHP Version:  4.0.6
 Assigned To:  hholzgra
 New Comment:

Is this even a bug?  It's under documentation problem.  Do I need to
change something in the documentation?



Previous Comments:


[2002-02-03 22:47:01] [EMAIL PROTECTED]

A couple of comments.

Kris, in regards to your comment on NOV-27-2001 at 1:48PM, that code
will fail because you cannot set a cookie and give a Location header in
the same HTTP response. Well, you *can*, but your cookie will not be
set. Since the server would not be able to identify the client without
the cookie, you get the unexpected behavior. This is a protocol-level
situation, but is generally *not* considered a bug in HTTP (in case you
got the feeling I was supporting that idea). Basically, PHP gives you
the freedom to specify your own headers in the HTTP response, but you
need to have a clear grasp of what they do to use them.

So, if this example was a clear illustration of the problem you've been
having, it's not a bug in PHP. You can spread that around to others who
are having the same problems.

Also, in regards to the time/date discussion, it is correct to say that
the browser uses the client time (obviously) to determine whether to
send a cookie along with subsequent HTTP requests. It is also correct
to say that the setcookie function uses the server time to set the
expiration date. However, since both are in GMT as [EMAIL PROTECTED]
explained (sorry, I don't know your name), this only matters if both
clocks are considerably out of sync or if the expiration time of the
cookie is extremely small. If this is a concern, consider using
client-side scripting to set the cookie, so that the browser itself
creates the cookie based on its own time. You can create the
client-side script itself using PHP, so that the cookie's value can
still be dynamically generated by your PHP scripts.

Hope that clears a few things up. If this didn't solve your problem,
please post another small example, and I'll try to reproduce your
environment.



[2001-12-05 06:52:05] [EMAIL PROTECTED]

Timezones do NOT matter. All times are GMT.
From a HTTP-response: 
Set-Cookie: CookieName=CookieValue; expires=Mon, 28-Jan-02 00:47:45
GMT
So the only thing that should be noted is that the time on client and
server should be in sync for correct behaviour.



[2001-11-28 04:39:25] [EMAIL PROTECTED]

ok, stupid me regarding the claim that a zero value
(or a string as parameter, evaluating to zero)
actualy deletes a cookie

it indeed defines the cookie to be a session cookie
which is valid until the browser is closed instead
of until a certain date/time is reached

for the time parameter itself:
the time() function returns the server time
while the browser deciedes when to delete
a cookie by the client time

if client and server are not in sync or live in
different time zones you will get exactly the 
problems you experienced

you either have to use expiration times in the range of days isntead of
hours (as timezone differences can sum up to slightly more than 24
hours in the worst case) or you have to use javascript Date.getTime()
to fetch the client time and transfer it to the server as a base for
expiration dates instead of using the time() function on the server

(will add a note to the setcookie documentation and work through the
notes later, bug type switched to documentation problem for now)




[2001-11-27 14:28:16] [EMAIL PROTECTED]

IIRC, no time (time=0) means that the cookie will not expire until the
session (read: your browser) has been closed.

Your scripts work fine for me at both Windows 2000 and Debian Linux
(Potato).



[2001-11-27 13:59:12] [EMAIL PROTECTED]

array(4) { [xfxdD]= string(4) Blah [wingrep]= array(4) {
[customer_cookie]= string(10) 1150232722 [customer_id]=
string(1) 1 [customer_name]= string(13) Mr. Wilkinson
[customer_province]= string(2) BC } [titancart]= array(1) {
[0]= string(72) 33a63c7718-component-1715-108.95-1-Adaptec
Fireconnect 4300 3 Port-2.00* } [wingrepship]= array(7) {
[ship_to]= string(18) Mr. Kris Wilkinson [unit_type]= string(5)
SUITE [unit_num]= string(3) 101 [street]= string(18) 10464
176th Street [city]= string(8) Edmonton [province]= string(2)
BC [postal]= string(7) T5R 3L6 } } 

is what it returns. nothing containing the CustomerCookie
defined previously.

these other values are from original cookies which had the 
 around 

[PHP-DEV] Bug #14663 Updated: Empty packets as result of serialization

2002-02-06 Thread alindeman

 ID:   14663
 Updated by:   [EMAIL PROTECTED]
 Reported By:  [EMAIL PROTECTED]
-Status:   Analyzed
+Status:   Suspended
 Bug Type: Documentation problem
 Operating System: Windows NT 4 sp 6a
 PHP Version:  4.1.0
 New Comment:

status - suspended (waiting till it becomes un-experimental ;)



Previous Comments:


[2001-12-22 16:22:10] [EMAIL PROTECTED]

the manual page is marked as EXPERIMENTAL.  so waiting for the
extension to become stable wil be the best. fixing the example now just
to change it again tomorrow is useless.



[2001-12-22 15:58:12] [EMAIL PROTECTED]

Making a documentation problem. Valid sample still have to be written.



[2001-12-22 15:50:49] [EMAIL PROTECTED]

Example code copy/pasted from
http://www.php.net/manual/en/html/ref.sockets.html :

?php
error_reporting (E_ALL);

echo h2TCP/IP Connection/h2\n;

/* Get the port for the WWW service. */
$service_port = getservbyname ('www', 'tcp');

/* Get the IP address for the target host. */
$address = gethostbyname ('www.php.net');

/* Create a TCP/IP socket. */
$socket = socket_create (AF_INET, SOCK_STREAM, 0);
if ($socket  0) {
echo socket_create() failed: reason:  . socket_strerror ($socket)
. \n;
} else {
socket_create() successful:  . socket_strerror ($socket) . \n;
}

echo Attempting to connect to '$address' on port '$service_port'...;
$result = socket_connect ($socket, $address, $service_port);
if ($result  0) {
echo socket_connect() failed.\nReason: ($result)  .
socket_strerror($result) . \n;
} else {
echo OK.\n;
}

$in = HEAD / HTTP/1.0\r\n\r\n;
$out = '';

echo Sending HTTP HEAD request...;
socket_write ($socket, $in, strlen ($in));
echo OK.\n;

echo Reading response:\n\n;
while (socket_read ($socket, $out, 2048)) {
echo $out;
}

echo Closing socket...;
socket_close ($socket);
echo OK.\n\n;
?


When run :

h2TCP/IP Connection/h2
br
bWarning/b:  socket_strerror() expects parameter 1 to be long,
resource given in b/usr/home/aragon/squeakbot/test2/b on line
b18/bbr
Attempting to connect to '209.61.157.217' on port '80'...OK.
Sending HTTP HEAD request...OK.
Reading response:

br
bWarning/b:  socket_read() expects parameter 2 to be long, string
given in b/usr/home/aragon/squeakbot/test2/b on line b38/bbr
Closing socket...OK.


Regards,
Aragon





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


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




[PHP-DEV] Bug #14663 Updated: Empty packets as result of serialization

2002-02-06 Thread alindeman

 ID:   14663
 Updated by:   [EMAIL PROTECTED]
 Reported By:  [EMAIL PROTECTED]
 Status:   Suspended
 Bug Type: Documentation problem
 Operating System: Windows NT 4 sp 6a
 PHP Version:  4.1.0
 New Comment:

status - suspended (waiting till it becomes un-experimental ;)



Previous Comments:


[2002-02-06 12:43:52] [EMAIL PROTECTED]

status - suspended (waiting till it becomes un-experimental ;)




[2001-12-22 16:22:10] [EMAIL PROTECTED]

the manual page is marked as EXPERIMENTAL.  so waiting for the
extension to become stable wil be the best. fixing the example now just
to change it again tomorrow is useless.



[2001-12-22 15:58:12] [EMAIL PROTECTED]

Making a documentation problem. Valid sample still have to be written.



[2001-12-22 15:50:49] [EMAIL PROTECTED]

Example code copy/pasted from
http://www.php.net/manual/en/html/ref.sockets.html :

?php
error_reporting (E_ALL);

echo h2TCP/IP Connection/h2\n;

/* Get the port for the WWW service. */
$service_port = getservbyname ('www', 'tcp');

/* Get the IP address for the target host. */
$address = gethostbyname ('www.php.net');

/* Create a TCP/IP socket. */
$socket = socket_create (AF_INET, SOCK_STREAM, 0);
if ($socket  0) {
echo socket_create() failed: reason:  . socket_strerror ($socket)
. \n;
} else {
socket_create() successful:  . socket_strerror ($socket) . \n;
}

echo Attempting to connect to '$address' on port '$service_port'...;
$result = socket_connect ($socket, $address, $service_port);
if ($result  0) {
echo socket_connect() failed.\nReason: ($result)  .
socket_strerror($result) . \n;
} else {
echo OK.\n;
}

$in = HEAD / HTTP/1.0\r\n\r\n;
$out = '';

echo Sending HTTP HEAD request...;
socket_write ($socket, $in, strlen ($in));
echo OK.\n;

echo Reading response:\n\n;
while (socket_read ($socket, $out, 2048)) {
echo $out;
}

echo Closing socket...;
socket_close ($socket);
echo OK.\n\n;
?


When run :

h2TCP/IP Connection/h2
br
bWarning/b:  socket_strerror() expects parameter 1 to be long,
resource given in b/usr/home/aragon/squeakbot/test2/b on line
b18/bbr
Attempting to connect to '209.61.157.217' on port '80'...OK.
Sending HTTP HEAD request...OK.
Reading response:

br
bWarning/b:  socket_read() expects parameter 2 to be long, string
given in b/usr/home/aragon/squeakbot/test2/b on line b38/bbr
Closing socket...OK.


Regards,
Aragon





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


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




[PHP-DEV] Bug #14032 Updated: Mail() always returns false but mail is sent

2002-02-06 Thread alindeman

 ID:   14032
 Updated by:   [EMAIL PROTECTED]
 Reported By:  [EMAIL PROTECTED]
-Status:   Open
+Status:   Feedback
 Bug Type: Mail related
 Operating System: FreeBSD 4.2
 PHP Version:  4.0.6
 New Comment:

Works fine for me...It might be a FreeBSD prob..What mailer are you
using?



Previous Comments:


[2001-11-12 09:39:33] [EMAIL PROTECTED]

I can see that this has been reported for Solaris too.

mail() always returns false but mail is sent successfully.

I'm running PHP 4.0.6 as an Apache module on a FreeBSD virtual server
host (at digitaldaze.com).

sendmail version is 8.11.6

I can reproduce this with a simple script:

if (mail([EMAIL PROTECTED],Test from PHP,Does this work?))
echo True;
else
echo False;

Thanks
Ross





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


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




[PHP-DEV] Bug #15366 Updated: Appendix A. History of PHP and related projects

2002-02-06 Thread alindeman

 ID:  15366
 Updated by:  [EMAIL PROTECTED]
 Reported By: [EMAIL PROTECTED]
-Status:  Open
+Status:  Assigned
 Bug Type:Documentation problem
 PHP Version: 4.1.1
-Assigned To: 
+Assigned To: alindeman
 New Comment:

Hehe, now that is funny.  Assigned to myself.  Should appear fixed in a
few days.



Previous Comments:


[2002-02-04 09:12:43] [EMAIL PROTECTED]

Appendix A. History of PHP and related projects
Publications about PHP

Articles about migrating PHP-based applications to PHP under Windows
you mean ASP-based ?





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


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




[PHP-DEV] Bug #15366 Updated: Appendix A. History of PHP and related projects

2002-02-06 Thread alindeman

 ID:  15366
 Updated by:  [EMAIL PROTECTED]
 Reported By: [EMAIL PROTECTED]
-Status:  Assigned
+Status:  Closed
 Bug Type:Documentation problem
 PHP Version: 4.1.1
 Assigned To: alindeman
 New Comment:

Status - Closed



Previous Comments:


[2002-02-06 14:22:03] [EMAIL PROTECTED]

Hehe, now that is funny.  Assigned to myself.  Should appear fixed in a
few days.




[2002-02-04 09:12:43] [EMAIL PROTECTED]

Appendix A. History of PHP and related projects
Publications about PHP

Articles about migrating PHP-based applications to PHP under Windows
you mean ASP-based ?





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


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




[PHP-DEV] Bug #15411 Updated: Mention 'AllowOverride Options' in the Apache configuration

2002-02-06 Thread alindeman

 ID:   15411
 Updated by:   [EMAIL PROTECTED]
-Summary:  Mention 'AllowOverride Options' in the Apache
   configuration
 Reported By:  [EMAIL PROTECTED]
-Status:   Open
+Status:   Assigned
 Bug Type: Documentation problem
 Operating System: Linux
 PHP Version:  4.1.1
 New Comment:

I see your point.  Assigned to myself.



Previous Comments:


[2002-02-06 17:19:56] [EMAIL PROTECTED]

The configuration section of the documentation refers to using
.htaccess files to override system wide PHP settings. However, it does
not mention that you need AllowOverride Options or higher in order
for this to work. Adding this to the documentation may save some people
some hours of frustration.

Thanks ;0)




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


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




[PHP-DEV] Bug #15411 Updated: Mention 'AllowOverride Options' in the Apache configuration

2002-02-06 Thread alindeman

 ID:   15411
 Updated by:   [EMAIL PROTECTED]
-Summary:  Mention 'AllowOverride Options' in the Apache
   configuration
 Reported By:  [EMAIL PROTECTED]
-Status:   Assigned
+Status:   Closed
 Bug Type: Documentation problem
 Operating System: Linux
 PHP Version:  4.1.1
 New Comment:

Fixed in CVS.  Will show up in a day or two.  Thanks



Previous Comments:


[2002-02-06 17:25:06] [EMAIL PROTECTED]

I see your point.  Assigned to myself.




[2002-02-06 17:19:56] [EMAIL PROTECTED]

The configuration section of the documentation refers to using
.htaccess files to override system wide PHP settings. However, it does
not mention that you need AllowOverride Options or higher in order
for this to work. Adding this to the documentation may save some people
some hours of frustration.

Thanks ;0)




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


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




[PHP-DEV] Bug #15415 Updated: [VOTE] case sensitive function/class names for PHP5

2002-02-06 Thread alindeman

 ID:   15415
 Updated by:   [EMAIL PROTECTED]
 Reported By:  [EMAIL PROTECTED]
 Status:   Open
 Bug Type: Feature/Change Request
 Operating System: ANY
 PHP Version:  PHP 5.0
 New Comment:

YES



Previous Comments:


[2002-02-06 20:24:58] [EMAIL PROTECTED]

Please vote YES if you *LIKE* case sensitive function/class/constant
names under PHP5.

Please vote NO if you *DO NOT LIKE* case sensitive
function/class/constant names under PHP5.

Thank you.


PS: I'm creating this report(vote) as a result of Zend Engine 2 and
php-dev list discussion. Don't cheat, please :)






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


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




[PHP-DEV] Bug #15415 Updated: [VOTE] case sensitive function/class names for PHP5

2002-02-06 Thread alindeman

 ID:   15415
 Updated by:   [EMAIL PROTECTED]
 Reported By:  [EMAIL PROTECTED]
 Status:   Open
 Bug Type: Feature/Change Request
 Operating System: ANY
 PHP Version:  PHP 5.0
 New Comment:

Oops, wrong place ;)



Previous Comments:


[2002-02-06 20:46:02] [EMAIL PROTECTED]

YES




[2002-02-06 20:24:58] [EMAIL PROTECTED]

Please vote YES if you *LIKE* case sensitive function/class/constant
names under PHP5.

Please vote NO if you *DO NOT LIKE* case sensitive
function/class/constant names under PHP5.

Thank you.


PS: I'm creating this report(vote) as a result of Zend Engine 2 and
php-dev list discussion. Don't cheat, please :)






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


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




[PHP-DEV] Bug #12688 Updated: preg_match doesn't return newlines in match array

2001-08-10 Thread alindeman

ID: 12688
Updated by: alindeman
Reported By: [EMAIL PROTECTED]
Old Status: Open
Status: Bogus
Bug Type: *Regular Expressions
Operating System: FreeBSD 4.2
PHP Version: 4.0.6
New Comment:

add an s to the end of your reg exp.

   
if (preg_match('/Here(.*)$/s',$someline,$matches)){
 ^
 
this mean treat everything as one line and it will parse the
newline.

Previous Comments:


[2001-08-10 02:20:48] [EMAIL PROTECTED]

This is not a core dump, but rather an output problem with preg_match.  Here is a 
short script:

$someline = Here is some line.\n;
if ( preg_match('/Here(.*)$/',$someline,$matches) ) {
  $out = $matches[1];
}

print pre[$out]/pre;

$out now contains no newline when this clearly should be included!

--Liam





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


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




[PHP-DEV] Bug #12680 Updated: mail() is sent with incorrect timezone

2001-08-10 Thread alindeman

ID: 12680
Updated by: alindeman
Reported By: [EMAIL PROTECTED]
Old Status: Open
Status: Feedback
Bug Type: Mail related
Operating System: Windows NT 4.0 SP6
PHP Version: 4.0.6
New Comment:

Is the timezone on your mailserver the same as the zone on your
computer???

Previous Comments:


[2001-08-09 17:35:02] [EMAIL PROTECTED]

Here's the headers from the email I sent via telnet:

Return-Path: [EMAIL PROTECTED]
Received: from XXX.wcomnet.com ([XXX.XXX.XXX.XXX]) by
  XXX.wcomnet.com (Netscape Messaging Server 4.15) with ESMTP
  id GHTIG600.IEW for [EMAIL PROTECTED]; Thu, 9 Aug 2001
  20:33:42 + 
Return-path: [EMAIL PROTECTED]
Received: from CONVERSION-DAEMON by XXX.wcomnet.com (PMDF V5.2-33 #42262)
 id [EMAIL PROTECTED] for [EMAIL PROTECTED]; Thu,
 9 Aug 2001 20:33:42 + (GMT)
Received: from XXX.wcomnet.com by XXX.wcomnet.com
 (PMDF V5.2-33 #42262) with SMTP id [EMAIL PROTECTED] for
 [EMAIL PROTECTED]; Thu, 09 Aug 2001 20:33:39 + (GMT)
Received: from XXX.wcomnet.com ([XXX.XXX.XXX.XXX])
 by XXX.wcomnet.com (PMDF V5.2-33 #42262)
 with ESMTP id [EMAIL PROTECTED] for
 [EMAIL PROTECTED]; Thu, 09 Aug 2001 20:32:57 + (GMT)
Received: from XXX.XXX.XXX.XXX by XXX.wcomnet.com  with Microsoft
 SMTPSVC(5.5.1774.114.11); Thu, 09 Aug 2001 15:24:25 -0500
Date: Thu, 09 Aug 2001 15:24:52 -0500
From: [EMAIL PROTECTED]
Bcc: 
Message-id: [EMAIL PROTECTED]

This is a test message 



[2001-08-09 17:32:37] [EMAIL PROTECTED]

Here's headers from a bad email:

Return-Path: [EMAIL PROTECTED]
Received: from XXX.wcomnet.com ([XXX.XXX.XXX.XXX]) by
  XXX.XXX.XXX.XXX (Netscape Messaging Server 4.15) with
ESMTP
  id GHT2IQ00.KNI; Thu, 9 Aug 2001 14:49:38 + 
Return-path: [EMAIL PROTECTED]
Received: from CONVERSION-DAEMON by dgismtp03.wcomnet.com (PMDF V5.2-33
#42262)
 id [EMAIL PROTECTED]; Thu,
 9 Aug 2001 14:49:37 + (GMT)
Received: from XXX.wcomnet.com by XXX.wcomnet.com
 (PMDF V5.2-33 #42262) with SMTP id
[EMAIL PROTECTED];
 Thu, 09 Aug 2001 14:49:36 + (GMT)
Received: from XXX.wcomnet.com ([XXX.XXX.XXX.XXX])
 by XXX.wcomnet.com (PMDF V5.2-33 #42262)
 with ESMTP id [EMAIL PROTECTED]; Thu,
 09 Aug 2001 14:49:14 + (GMT)
Received: from XXX.XXX.XXX.XXX by XXX.wcomnet.com  with Microsoft
 SMTPSVC(5.5.1774.114.11); Thu, 09 Aug 2001 09:41:11 -0500
Date: Thu, 09 Aug 2001 09:41:11 +0600
From: [EMAIL PROTECTED]
Subject: XXX
X-Sender: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Reply-to: [EMAIL PROTECTED]
Message-id: [EMAIL PROTECTED]



[2001-08-09 17:27:30] [EMAIL PROTECTED]

Here's the portion of the script that governs mail:

if (isset($mail_from) || isset($mail_cc)) {
  $mail_headers = From: $mail_from\r\nReply-to: $mail_from\r\n;

  if (isset($mail_cc)  ($mail_cc != )) {
$mail_headers = $mail_headers . Cc: $mail_cc\r\n;
  }
}
else {
  $mail_headers = ;
}

if (isset($mail_to)  isset($mail_subject)  isset($mail_body)  
isset($mail_headers)  ($submit == Submit)) {

  mail($mail_to, $mail_subject, $mail_body, $mail_headers);





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

I think I have a bug with the Win32 version of php.exe (perhaps the ISAPI version 
also?) where the SENT time on every email that goes out shows up as incorrect.  I've 
tried it several times, even with multiple versions (also tested 4.0.4pl1 and 4.0.5).  
No matter what I try, any email sent by php's mail() function is received with the 
wrong timezone (so mail time appears correct, but received from earlier time because 
of zone).

I am not using any addons for PHP.  I have IIS 4.0 using PHP in CGI mode, with the 
SMTP service loaded locally.  I am also running mySQL 3.23.37.

I can successfully telnet to port 25 on that server and send myself an email using 
SMTP commands.  I'll post my mail script shortly.

Any thoughts?





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


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




[PHP-DEV] Bug #12675 Updated: Link errors caused by new Oracle 8i LOB functions

2001-08-10 Thread alindeman

ID: 12675
Updated by: alindeman
Reported By: [EMAIL PROTECTED]
Old Status: Feedback
Status: Open
Bug Type: Compile Failure
Operating System: Digital Unix V4.0F (Rev. 1229)
PHP Version: 4.0.6
New Comment:

User Feedback (emailed)

./configure---with-apache=/afs/northstar.dartmouth.edu/uother/source/sys/apache/
apache_1.3.20 \
--with-oci8 \
--without-gdbm \
--with-xml \
--enable-wddx \
--disable-debug

The link errors were basic unresolved errors on:

OCILobOpen
OCILobClose
OCILobCreateTemp ?

My collegue who was doing this work said he found the unresolved symbols
(routines) in an unreferenced oracle library. He tried to make this work
by adding that library to the make file, but then he got all kinds of
other errors.

What version of Oracle do you have installed?

Thanks, David
---

Previous Comments:


[2001-08-09 17:15:42] [EMAIL PROTECTED]

I have the same version but I don't get any link errors.
What is your configure line and what exactly are the errors?

--Jani




[2001-08-09 13:40:24] [EMAIL PROTECTED]

When trying to link, the following dependancies were not satisfied by our Oracle 
release (8.1.6):

OCILobOpen
OCILobClose
OCILobCreateTemp ?

Evidently these routines are in a different library, but if that library is linked as 
well, many more errors are generated.

Perhaps the new LOB function additions will only build  work if you have a later (or 
different) version of Oracle?





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


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




[PHP-DEV] Bug #12680 Updated: mail() is sent with incorrect timezone

2001-08-10 Thread alindeman

ID: 12680
Updated by: alindeman
Reported By: [EMAIL PROTECTED]
Old Status: Open
Status: Feedback
Bug Type: Mail related
Operating System: Windows NT 4.0 SP6
PHP Version: 4.0.6
New Comment:

Does this happen with just PHP, or with any mail program
that you use?

Previous Comments:


[2001-08-10 10:26:31] [EMAIL PROTECTED]

Yes, the timezone and time have been verified on the server and on my workstation.  
Both are set to CDT (-0500).

The test email reflected the correct timezone, but the PHP-created one did not.



[2001-08-10 09:45:56] [EMAIL PROTECTED]

Is the timezone on your mailserver the same as the zone on your
computer???



[2001-08-09 17:35:02] [EMAIL PROTECTED]

Here's the headers from the email I sent via telnet:

Return-Path: [EMAIL PROTECTED]
Received: from XXX.wcomnet.com ([XXX.XXX.XXX.XXX]) by
  XXX.wcomnet.com (Netscape Messaging Server 4.15) with ESMTP
  id GHTIG600.IEW for [EMAIL PROTECTED]; Thu, 9 Aug 2001
  20:33:42 + 
Return-path: [EMAIL PROTECTED]
Received: from CONVERSION-DAEMON by XXX.wcomnet.com (PMDF V5.2-33 #42262)
 id [EMAIL PROTECTED] for [EMAIL PROTECTED]; Thu,
 9 Aug 2001 20:33:42 + (GMT)
Received: from XXX.wcomnet.com by XXX.wcomnet.com
 (PMDF V5.2-33 #42262) with SMTP id [EMAIL PROTECTED] for
 [EMAIL PROTECTED]; Thu, 09 Aug 2001 20:33:39 + (GMT)
Received: from XXX.wcomnet.com ([XXX.XXX.XXX.XXX])
 by XXX.wcomnet.com (PMDF V5.2-33 #42262)
 with ESMTP id [EMAIL PROTECTED] for
 [EMAIL PROTECTED]; Thu, 09 Aug 2001 20:32:57 + (GMT)
Received: from XXX.XXX.XXX.XXX by XXX.wcomnet.com  with Microsoft
 SMTPSVC(5.5.1774.114.11); Thu, 09 Aug 2001 15:24:25 -0500
Date: Thu, 09 Aug 2001 15:24:52 -0500
From: [EMAIL PROTECTED]
Bcc: 
Message-id: [EMAIL PROTECTED]

This is a test message 



[2001-08-09 17:32:37] [EMAIL PROTECTED]

Here's headers from a bad email:

Return-Path: [EMAIL PROTECTED]
Received: from XXX.wcomnet.com ([XXX.XXX.XXX.XXX]) by
  XXX.XXX.XXX.XXX (Netscape Messaging Server 4.15) with
ESMTP
  id GHT2IQ00.KNI; Thu, 9 Aug 2001 14:49:38 + 
Return-path: [EMAIL PROTECTED]
Received: from CONVERSION-DAEMON by dgismtp03.wcomnet.com (PMDF V5.2-33
#42262)
 id [EMAIL PROTECTED]; Thu,
 9 Aug 2001 14:49:37 + (GMT)
Received: from XXX.wcomnet.com by XXX.wcomnet.com
 (PMDF V5.2-33 #42262) with SMTP id
[EMAIL PROTECTED];
 Thu, 09 Aug 2001 14:49:36 + (GMT)
Received: from XXX.wcomnet.com ([XXX.XXX.XXX.XXX])
 by XXX.wcomnet.com (PMDF V5.2-33 #42262)
 with ESMTP id [EMAIL PROTECTED]; Thu,
 09 Aug 2001 14:49:14 + (GMT)
Received: from XXX.XXX.XXX.XXX by XXX.wcomnet.com  with Microsoft
 SMTPSVC(5.5.1774.114.11); Thu, 09 Aug 2001 09:41:11 -0500
Date: Thu, 09 Aug 2001 09:41:11 +0600
From: [EMAIL PROTECTED]
Subject: XXX
X-Sender: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Reply-to: [EMAIL PROTECTED]
Message-id: [EMAIL PROTECTED]



[2001-08-09 17:27:30] [EMAIL PROTECTED]

Here's the portion of the script that governs mail:

if (isset($mail_from) || isset($mail_cc)) {
  $mail_headers = From: $mail_from\r\nReply-to: $mail_from\r\n;

  if (isset($mail_cc)  ($mail_cc != )) {
$mail_headers = $mail_headers . Cc: $mail_cc\r\n;
  }
}
else {
  $mail_headers = ;
}

if (isset($mail_to)  isset($mail_subject)  isset($mail_body)  
isset($mail_headers)  ($submit == Submit)) {

  mail($mail_to, $mail_subject, $mail_body, $mail_headers);





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


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


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




[PHP-DEV] Bug #12680 Updated: mail() is sent with incorrect timezone

2001-08-10 Thread alindeman

ID: 12680
Updated by: alindeman
Reported By: [EMAIL PROTECTED]
Old Status: Open
Status: Suspended
Bug Type: Mail related
Operating System: Windows NT 4.0 SP6
PHP Version: 4.0.6
New Comment:

something similar has been reported as a bug in 4.0 and was
assigned to hholzgra.  I don't know if it has been fixed.

Suspended until I can contact him and see if he's fixed it.

If anybody else knows anything about this, second opinion is
welcome.

Previous Comments:


[2001-08-10 10:36:59] [EMAIL PROTECTED]

This happens with just PHP.  As I said, I can directly connect to port 25 and manually 
enter SMTP commands to send an email (see second mail header sample).  The timezone 
correctly shows -0500 for CDT.  The time listed in the PHP-created email shows the 
time correctly, but doesn't show the timezone correctly (see first mail header sample).



[2001-08-10 10:32:55] [EMAIL PROTECTED]

Does this happen with just PHP, or with any mail program
that you use?



[2001-08-10 10:26:31] [EMAIL PROTECTED]

Yes, the timezone and time have been verified on the server and on my workstation.  
Both are set to CDT (-0500).

The test email reflected the correct timezone, but the PHP-created one did not.



[2001-08-10 09:45:56] [EMAIL PROTECTED]

Is the timezone on your mailserver the same as the zone on your
computer???



[2001-08-09 17:35:02] [EMAIL PROTECTED]

Here's the headers from the email I sent via telnet:

Return-Path: [EMAIL PROTECTED]
Received: from XXX.wcomnet.com ([XXX.XXX.XXX.XXX]) by
  XXX.wcomnet.com (Netscape Messaging Server 4.15) with ESMTP
  id GHTIG600.IEW for [EMAIL PROTECTED]; Thu, 9 Aug 2001
  20:33:42 + 
Return-path: [EMAIL PROTECTED]
Received: from CONVERSION-DAEMON by XXX.wcomnet.com (PMDF V5.2-33 #42262)
 id [EMAIL PROTECTED] for [EMAIL PROTECTED]; Thu,
 9 Aug 2001 20:33:42 + (GMT)
Received: from XXX.wcomnet.com by XXX.wcomnet.com
 (PMDF V5.2-33 #42262) with SMTP id [EMAIL PROTECTED] for
 [EMAIL PROTECTED]; Thu, 09 Aug 2001 20:33:39 + (GMT)
Received: from XXX.wcomnet.com ([XXX.XXX.XXX.XXX])
 by XXX.wcomnet.com (PMDF V5.2-33 #42262)
 with ESMTP id [EMAIL PROTECTED] for
 [EMAIL PROTECTED]; Thu, 09 Aug 2001 20:32:57 + (GMT)
Received: from XXX.XXX.XXX.XXX by XXX.wcomnet.com  with Microsoft
 SMTPSVC(5.5.1774.114.11); Thu, 09 Aug 2001 15:24:25 -0500
Date: Thu, 09 Aug 2001 15:24:52 -0500
From: [EMAIL PROTECTED]
Bcc: 
Message-id: [EMAIL PROTECTED]

This is a test message 



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


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


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




[PHP-DEV] Bug #12672 Updated: ifx_connect does not return when base not present

2001-08-09 Thread alindeman

ID: 12672
Updated by: alindeman
Reported By: [EMAIL PROTECTED]
Old Status: Open
Status: Feedback
Bug Type: Informix related
Operating System: Linux RH 6.2
PHP Version: 4.0.6
New Comment:

please include a sample script...

Previous Comments:


[2001-08-09 04:09:35] [EMAIL PROTECTED]

(command line mode)
if the database (i.e. informix) is not up
the ifx_connect function hangs. 
One would expect to return some meaningfull information.

OS:
Linux giant-a 2.2.14-5.0smp #1 SMP Tue Mar 7 21:01:40 EST 2000 i686 unknown
conf:
./configure' --enable-trans-sid' '--enable-dbase' '--enable-track-vars' 
'--with-informix' '--with-t1lib=/usr/local/src/T1-1.0.1/' 
'--with-zlib-dir=/usr/local/src/zlib-1.1.3/' '--with-gd=/usr/local/src/gd-1.8.4/' 
'--with-jpeg-dir=/usr/local/src/jpeg-6b/' '--with-ttf=/usr/local/src/freetype-1.3.1/' 
'--with-png-dir=/usr/local/src/libpng-1.0.8/'





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


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




[PHP-DEV] Bug #12674 Updated: string +' true', types misunderstanding (?)

2001-08-09 Thread alindeman

ID: 12674
Updated by: alindeman
Reported By: [EMAIL PROTECTED]
Old Summary: string + 'true', types misunderstanding (?)
Old Status: Open
Status: Bogus
Bug Type: Scripting Engine problem
Operating System: Win2000 sp2
PHP Version: 4.0.6
New Comment:

any non-empty string will evaluate true!

Previous Comments:


[2001-08-09 08:18:08] [EMAIL PROTECTED]

Hmm... why is that ?
Am I reading manual too briefly, or is there something with the operators ? might be 
bogus, but please enlighten me:P

btw: I thought that there's no seperate boolean type =]

?
function foo(){
return true;
}

if(foo() == 'whatever you like'){
echo '!?!? why is that equal ?';
}
?

?
function paranoid(){
return 1;
}

if(!(paranoid() == (string) 'whatever you like')){
echo 'hmm??';
}
?





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


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




[PHP-DEV] Bug #12668 Updated: unexpected behavior of preg_replace

2001-08-09 Thread alindeman

ID: 12668
Updated by: alindeman
Reported By: [EMAIL PROTECTED]
Status: Analyzed
Bug Type: PCRE related
Operating System: FreeBSD 4.0
PHP Version: 4.0.6
New Comment:

how about creating either two different functions, or another
attribute to preg_replace, that you can set true/false to run
that add_slashes or not?

Previous Comments:


[2001-08-09 09:03:31] [EMAIL PROTECTED]

This is because preg_replace() runs addslashes() internally on the captured 
subpatterns before substrituting them into the replacement string. It didn't used to 
but a few people complained that it was really hard to pass $n to a function because 
of single and double-quote conflicts. To be frank, I'm not sure how to solve this 
problem adequately, one group of people want the addslashes() run, the other one 
doesn't.




[2001-08-08 21:06:50] [EMAIL PROTECTED]

Simple problem - the script:

?php
echo preg_replace(/'/e, \$0\, ');
// that's double-quote, slash, single-quote, slash, e, double-quote
// then double-quote, escaped double-quote, $0, escaped double-quote, double-quote
// then double-quote, single-quote, double-quote
// meaning = replace all occurrences of single-quote with the same string matched 
during the search - i.e. single-quote
?

should produce one plain single-quote, but instead it produces an escaped 
single-quote.

No other character seems to exhibit this behavior.

Configuration:
 './configure' '--prefix=/usr/local/php4' '--with-mysql' 
'--with-apxs=/usr/local/sbin/apxs' '--enable-track-vars' '--with-gd=/usr/local' 
'--with-zlib-dir=shared' '--with-ttf' '--with-jpeg-dir=/usr/local' 
'--with-png-dir=/usr/local' '--with-tiff-dir=/usr/local' '--with-mcrypt' 
'--with-pdflib'

No other unusual configuration setups






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


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




[PHP-DEV] Bug #12668 Updated: unexpected behavior of preg_replace

2001-08-09 Thread alindeman

ID: 12668
Updated by: alindeman
Reported By: [EMAIL PROTECTED]
Status: Analyzed
Bug Type: PCRE related
Operating System: FreeBSD 4.0
PHP Version: 4.0.6
New Comment:

of course I meant addslashes()

Previous Comments:


[2001-08-09 09:18:47] [EMAIL PROTECTED]

how about creating either two different functions, or another
attribute to preg_replace, that you can set true/false to run
that add_slashes or not?



[2001-08-09 09:03:31] [EMAIL PROTECTED]

This is because preg_replace() runs addslashes() internally on the captured 
subpatterns before substrituting them into the replacement string. It didn't used to 
but a few people complained that it was really hard to pass $n to a function because 
of single and double-quote conflicts. To be frank, I'm not sure how to solve this 
problem adequately, one group of people want the addslashes() run, the other one 
doesn't.




[2001-08-08 21:06:50] [EMAIL PROTECTED]

Simple problem - the script:

?php
echo preg_replace(/'/e, \$0\, ');
// that's double-quote, slash, single-quote, slash, e, double-quote
// then double-quote, escaped double-quote, $0, escaped double-quote, double-quote
// then double-quote, single-quote, double-quote
// meaning = replace all occurrences of single-quote with the same string matched 
during the search - i.e. single-quote
?

should produce one plain single-quote, but instead it produces an escaped 
single-quote.

No other character seems to exhibit this behavior.

Configuration:
 './configure' '--prefix=/usr/local/php4' '--with-mysql' 
'--with-apxs=/usr/local/sbin/apxs' '--enable-track-vars' '--with-gd=/usr/local' 
'--with-zlib-dir=shared' '--with-ttf' '--with-jpeg-dir=/usr/local' 
'--with-png-dir=/usr/local' '--with-tiff-dir=/usr/local' '--with-mcrypt' 
'--with-pdflib'

No other unusual configuration setups






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


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




[PHP-DEV] Bug #12678 Updated: gethostbyname returns hostname instead of adresss

2001-08-09 Thread alindeman

ID: 12678
Updated by: alindeman
Reported By: [EMAIL PROTECTED]
Old Status: Open
Status: Feedback
Bug Type: Network related
Operating System: Linux 2.2.16-22
PHP Version: 4.0.6
New Comment:

Can you access the internet from a browser?

gethostbyname() returns the hostname when it can't find the 
IP (invalid address.)

Make sure your nameserver's are setup correctly.

Previous Comments:


[2001-08-09 15:57:51] [EMAIL PROTECTED]

I'm having a problem where gethostbyname is returning the hostname not the IP address. 
 Resolving hosts works fine on the command line with nslookup, host, etc.

This is the exact problem as bug #8856.  Andy said it should be resolved in 4.06, but 
I'm having problems.

Thanks.

Adam





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


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




[PHP-DEV] Bug #9069 Updated: Unable

2001-08-08 Thread alindeman

ID: 9069
Updated by: alindeman
Reported By: [EMAIL PROTECTED]
Old Summary: Unable to fork error when trying to use external program execution.
Old Status: Open
Status: Feedback
Bug Type: Program Execution
Operating System: Win NT4 SP6
PHP Version: 4.0.6
Old Assigned To: derick
Assigned To: 
New Comment:

try latest CVS

http://zend.com/snapshots/

Previous Comments:


[2001-08-08 04:48:49] [EMAIL PROTECTED]

Upgraded to 4.0.6 but still the same problem!




[2001-04-27 12:55:17] [EMAIL PROTECTED]

fixed in cvs, wait for 4.0.6



[2001-02-25 10:54:49] [EMAIL PROTECTED]

Working on it



[2001-02-02 06:59:07] [EMAIL PROTECTED]

I use PHP 4.0.4 pl1 on a machine running Windows NT4 Server, with sp 6 and IIS4

When I try to use any of the functions exec(), system() or passthru(), I receive the 
following error:

Warning: Unable to fork [dir /w  c:\test.txt] in 
D:\Inetpub\wwwroot\cooldim.com\test.php on line 2.

This error was displayed when trying to run the following code:

?
passthru(dir /w  c:\\test.txt);
?

I tried a similar script on a Unix machine which worked fine...

Help Please!






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


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




[PHP-DEV] Bug #12656 Updated: strtotime started to malfunction after OS change

2001-08-08 Thread alindeman

ID: 12656
Updated by: alindeman
Reported By: [EMAIL PROTECTED]
Old Status: Open
Status: Closed
Bug Type: Date/time related
Operating System: Red Hat 7.1
PHP Version: 4.0.6
New Comment:

try...

print strtotime(Tue Aug 7 2001 18:48:28);

Previous Comments:


[2001-08-08 12:48:54] [EMAIL PROTECTED]

Example code :
print strtotime(Tue Aug  7 18:48:28 2001);

This sample code format used to work properly in all PHP releases this year when we 
used Red Hat 6.2. It could give the proper timestamp.

But after upgrading to Red Hat 7.1, this code only gives -1. I always use the same 
configure options when compiling. I run PHP as Apache module.

I have to take the first 11 characters of the etring to calculate the timestamp, but 
it is not precise without time and year information.

What do I do to have this code work properly again?







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


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




[PHP-DEV] Bug #12664 Updated: displaying list of groups (NNTP) from existing News Server

2001-08-08 Thread alindeman

ID: 12664
Updated by: alindeman
Reported By: [EMAIL PROTECTED]
Old Status: Open
Status: Bogus
Bug Type: IMAP related
Operating System: windows95
PHP Version: 4.0.6
New Comment:

needs more info...

read bugs-dos-and-don'ts before submitting a bug report.

Previous Comments:


[2001-08-08 17:47:49] [EMAIL PROTECTED]

error message:  stream pointer missing





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


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




[PHP-DEV] Bug #12665 Updated: mktime() is strange

2001-08-08 Thread alindeman

ID: 12665
Updated by: alindeman
Reported By: [EMAIL PROTECTED]
Status: Open
Bug Type: *General Issues
Operating System: Linux  Windows
PHP Version: 4.0.6
New Comment:

wierd...

your script says they are the same, but remove the 0's in front
of the 8 and 9 like

mktime (0,0,0,8,8,2001) (instead of mktime(0,0,0,08,08,2001))

it works as planed (not equal)

supposed to happen?? second opinion, please...



Previous Comments:


[2001-08-08 18:06:02] [EMAIL PROTECTED]

Hi all,

?
if ((mktime(0,0,0,08,08,2001)) == (mktime (0,0,0,08,09,2001))) echo Something 
wrong - I think!;
?

The result of both - mktime(0,0,0,08,08,2001) and mktime(0,0,0,08,09,2001) - is 
975538800.

Whats wrong?


Bye,
Oliver





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


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




[PHP-DEV] Bug #12666 Updated: undefined symbol: mxdriver when I start apache

2001-08-08 Thread alindeman

ID: 12666
Updated by: alindeman
Reported By: [EMAIL PROTECTED]
Old Status: Open
Status: Feedback
Bug Type: *Compile Issues
Operating System: Red Hat 7.1
PHP Version: 4.0.6
New Comment:

try reading

http://php.net/bugs.php?id=10759

tell me if this helps.

Previous Comments:


[2001-08-08 18:16:56] [EMAIL PROTECTED]

I'm having a problem when I try to compile APACHE + PHP + IMAP .

The OS that I using is:
2.4.2-SGI_XFS_1.0 #1 Fri Apr 27 19:30:49 CDT 2001 i
686 unknown
apache 1.3.20
php 4.0.6
imap-4.7c / imap-4.7a / imap-2001.BETA.SNAP-0107221451

Here is the problem

When I try to compile doing this: (here is the exact commands)
Firts I compile the apache with all modules (just in case)
cd apache_1.3.20
./configure --prefix=/usr/local/apache --enable-module=all
make
make install

and php with this
./configure --with-apxs --with-imap=../imap-4.7c --with-mysql --with-ldap
make
make install
/usr/local/apache/bin/apachectl start

Syntax error on line 762 of /usr/local/apache/conf/httpd.conf:
Cannot load /usr/local/php-4.0.6/libs/libphp4.so into server: 
/usr/local/php-4.0.6/libs/libphp4.so: undefined symbol: mxdriver
./apachectl start: httpd could not be started


I tried this with a lot a diferents source imap and still make me the same.

I trie puting that and still doesn't work
export LDFLAGS=-L/usr/kerberos/lib -lkrb5 -lgssapi_krb5 -lpam 
ldconfig BEFOR compiling Apache. 

Any assistance would be of great help! 

Thank 

Sebastian
[EMAIL PROTECTED]







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


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




[PHP-DEV] Bug #12624 Updated: Installation Apache/Php/Interbase

2001-08-07 Thread alindeman

ID: 12624
Updated by: alindeman
Reported By: [EMAIL PROTECTED]
Old Status: Open
Status: Bogus
Bug Type: Any
Operating System: Windows98
PHP Version: 4.0.5
New Comment:

read:

http://bugs.php.net/?id=12613

Previous Comments:


[2001-08-07 11:42:09] [EMAIL PROTECTED]

When I launch Apache (1.3.20) configurated with PHP (4.0.5) and Interbase, there is a 
Warning message:

PHP Warning:  Unable to load dynamic library 'C:/Program 
Files/PHP/extensions/php_interbase.dll' - Un périphérique ataché au système ne 
fonctionne pas correctement.
 in Unknown on line 0

I don't know if it is a bug or a problem of configuration, but I am working on 
Appache/PHP/Interbase for 2 month, and it was working without any pb. Today, I have 
install a new version of Interbase(5.5) and ... my Apache server is not running any 
more. Have you ever heared about a problème like this?

Perhaps is it a pb of Interbase or Apache, but the PHP is the link between those 2 
softs.

I would be very happy if you could answer me.
Thank you
(I hope that you understand what I write, I'm just a french programer.)





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


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




[PHP-DEV] Bug #12625 Updated: (latest) php_oci8.dll can not be loaded

2001-08-07 Thread alindeman

ID: 12625
Updated by: alindeman
Reported By: [EMAIL PROTECTED]
Old Status: Open
Status: Bogus
Bug Type: Oracle related
Operating System: win2000
PHP Version: 4.0.6
New Comment:

read:

http://bugs.php.net/?id=12502

Previous Comments:


[2001-08-07 12:15:47] [EMAIL PROTECTED]

Sir,

I download 4.06 install files yesterday.

I have tried a lot of ways to config php.ini in order to load php_oci8.dll functions.  

but I had php_oci8.dll can not be load information.

These are several tests I did 
(1) uncomment other dll (oracle) one
and it can be loaded  (working)

(2) download the binary code again and re-put the php_oci8.dll into current extensions 
dir  ( not working)

(3) download the Previous version binary code and 
only take out (V4.05) php_oci8.dll and put it into current extensions dir ( it's 
working)


so is there any thing wrong with the latest php_oci8.dll? 

tks !! 






 









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


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




[PHP-DEV] Bug #10800 Updated: File uploads take ~70 times longer than downloading files on Apache/PHP.

2001-08-07 Thread alindeman

ID: 10800
Updated by: alindeman
Reported By: [EMAIL PROTECTED]
Old Status: Open
Status: Feedback
Bug Type: HTTP related
Operating System: NT 2000
PHP Version: 4.0.5
New Comment:

status - feedback

Previous Comments:


[2001-07-21 21:46:17] [EMAIL PROTECTED]

Could you please include the script that accepts the form
input and uploads the file (the ACTION param of the form.)

-Andy



[2001-05-10 17:51:00] [EMAIL PROTECTED]

I logged this prior to PHP 4.0.5 and was told to do it again if it still occurs. 
Please help:

ID: 9294 
Updated by: andi 
Reported By: [EMAIL PROTECTED] 
Old-Status: Open 
Status: Closed 
Bug Type: Performance problem 
PHP Version: 4.0.2 
Assigned To:  
Comments: 
 
Please try PHP 4.0.4pl1 or 4.0.5 which is due out tomorrow and open a new bug report 
if this still happens. 
 
Previous Comments: 
--- 
 
[2001-02-16 03:59:04] [EMAIL PROTECTED] 
Sorry - I'm also using code like this to do the upload: 
 
FORM ENCTYPE=multipart/form-data ACTION=_URL_ METHOD=POST 
INPUT TYPE=hidden name=MAX_FILE_SIZE value=2 
Send this file: INPUT NAME=userfile TYPE=file 
INPUT TYPE=submit VALUE=Send File 
/FORM 
 
--- 
 
[2001-02-16 03:57:16] [EMAIL PROTECTED] 
When performing a file upload, PHP runs the CPU to 100% and takes 3.5-4 minutes on 
a Pentium III 850MHz CPU to upload a 10MB file when downloading the same file on 
Apache/PHP only takes 3 seconds on the same host and client. It appears the file 
is being parsed when being uploaded. Is there an option to tell PHP to upload the 
data and nothing else? Otherwise, it is roughly 70 times slower to upload a file 
than to download one. 
 
I'm using Nusphere's CD when installing the software. 
 





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


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




[PHP-DEV] Bug #12570 Updated: feof () - no break on eof of socket

2001-08-07 Thread alindeman

ID: 12570
Updated by: alindeman
Reported By: [EMAIL PROTECTED]
Old Status: Open
Status: Analyzed
Bug Type: Network related
Operating System: SuSE 7.0
PHP Version: 4.0.6


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


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




[PHP-DEV] Bug #12570 Updated: feof () - no break on eof of socket

2001-08-07 Thread alindeman

ID: 12570
Updated by: alindeman
Reported By: [EMAIL PROTECTED]
Status: Analyzed
Bug Type: Network related
Operating System: SuSE 7.0
PHP Version: 4.0.6
New Comment:

reproduced with latest CVS.

Previous Comments:


[2001-08-07 12:36:46] [EMAIL PROTECTED]

status - analyzed (!)



[2001-08-04 20:43:38] [EMAIL PROTECTED]

Hallo,

I have a problem with the fsock-Funktions:


$sock = fsockopen ($ip, $port, $errno, $errstr, 30);
while (!feof ($sock)) {
  echo fgetc ($sock);
  flush ()
}
fclose ($sock);


This function hangs after correct output of the initial Data. (It seems that feof () 
ist false also on end of the $sock)

Or is there an other way to check if the end is reached?

By(t)e,
  Matthias







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


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




[PHP-DEV] Bug #12630 Updated: BUG: cannot return

2001-08-07 Thread alindeman

ID: 12630
Updated by: alindeman
Reported By: [EMAIL PROTECTED]
Old Summary: BUG: cannot return'' with the function() or dosomething'' construct
Old Status: Open
Status: Bogus
Bug Type: Scripting Engine problem
Operating System: Red Hat Linux, Win2000 sp2
PHP Version: 4.0.6
New Comment:

this is not implemented in php

if you want to try something like that try...

if (!test())return;

Previous Comments:


[2001-08-07 13:59:07] [EMAIL PROTECTED]

Tested on Red Hat



[2001-08-07 13:54:44] [EMAIL PROTECTED]

Hello!

This seems quite odd...
In the ...

  function() or dosomething;

...construct it seems that PHP only allows the usage of standard operators and 
functions in the place of dosomething, so the 'return' doesn't work at all since 
it's a operator-like thingy.

The following snippet will produce a parse error:
--

function test(){
return false;
};

function test2(){
  test() or return;
}

--

Thanks in advance for a quick fix :)

Keep up the good work!





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


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




[PHP-DEV] Bug #12630 Updated: BUG: cannot return

2001-08-07 Thread alindeman

ID: 12630
Updated by: alindeman
Reported By: [EMAIL PROTECTED]
Old Status: Bogus
Status: Open
Old Bug Type: Scripting Engine problem
Bug Type: Feature/Change Request
Operating System: Red Hat Linux, Win2000 sp2
PHP Version: 4.0.6
New Comment:

I'll make this a feature request/change...

Previous Comments:


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

BOGUS ?
The above is just a workaround... I've used it, though it's the only reasonable way to 
code some routines. But it's quite a LONG workaround and makes the code quite 
obfuscated and unclear... not mentioning possible performance losses.

Any plans to implement that ? (haven't seen the php source yet, but I could imagine 
that preety simple to implement)



[2001-08-07 14:04:59] [EMAIL PROTECTED]

this is not implemented in php

if you want to try something like that try...

if (!test())return;



[2001-08-07 13:59:07] [EMAIL PROTECTED]

Tested on Red Hat



[2001-08-07 13:54:44] [EMAIL PROTECTED]

Hello!

This seems quite odd...
In the ...

  function() or dosomething;

...construct it seems that PHP only allows the usage of standard operators and 
functions in the place of dosomething, so the 'return' doesn't work at all since 
it's a operator-like thingy.

The following snippet will produce a parse error:
--

function test(){
return false;
};

function test2(){
  test() or return;
}

--

Thanks in advance for a quick fix :)

Keep up the good work!





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


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




[PHP-DEV] Bug #12633 Updated: --enable-gd-native-ttf vs. --enable-gd-native-tt

2001-08-07 Thread alindeman

ID: 12633
Updated by: alindeman
Reported By: [EMAIL PROTECTED]
Old Status: Open
Status: Bogus
Bug Type: *Compile Issues
Operating System: FreeBSD 4.3
PHP Version: 4.0.6
New Comment:

has been fixed in CVS for a long time

Previous Comments:


[2001-08-07 15:45:35] [EMAIL PROTECTED]

When configuring PHP it says to use --enable-gd-native-ttf, but if configure actually 
checks for --enable-gd-native-tt.

configure, line 496:

  --enable-gd-native-ttfGD: Enable TrueType string function in gd

configure, line 17676:

echo $ac_n checking whether to enable truetype string function in gd... $ac_c 16
echo configure:17678: checking whether to enable truetype string function in gd 5
# Check whether --enable-gd-native-tt or --disable-gd-native-tt was given.
if test ${enable_gd_native_tt+set} = set; then
  enableval=$enable_gd_native_tt
  PHP_GD_NATIVE_TT=$enableval
else
  PHP_GD_NATIVE_TT=no
fi





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


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