[PHP-DEV] Bug #12064 Updated: Truetype functions can't locate fonts

2001-07-23 Thread dbeu

ID: 12064
Updated by: dbeu
Reported By: [EMAIL PROTECTED]
Old Status: Feedback
Status: Closed
Bug Type: GD related
Operating System: Windows 2000 SP1
PHP Version: 4.0.6
New Comment:

already fixed in cvs.

Previous Comments:


[2001-07-22 19:22:09] [EMAIL PROTECTED]

That would take a good look at the source code to see how PHP is passing arguments to 
the GD library.



[2001-07-22 19:20:16] [EMAIL PROTECTED]

Fixing "null" status.

So, is this a GD Bug, or a PHP bug?



[2001-07-12 17:34:06] [EMAIL PROTECTED]

Ok, I checked out filemon.
Here's what's happening:
GD first tries to open files inside the Apache root (not the web root; for instance, 
on my box, C:\Program Files\Apache. So, if I've specified "C:\\path\\to\\font.ttf" in 
my path, I end up with:
C:\Program Files\Apache\C\C:\path\to\font.ttf.ttf

Next, it tries the current directory. However, it seems to be unable to process 
Windows drive letters, and so defaults to drive C: (my webroot's on D:, which is a 
problem), so I get
C:\path\to\script\C:\path\to\font.ttf.ttf

You get the idea. I made a directory structure on C: mimicing that of my D: webroot, 
but only containing the fonts; it worked fine (although the antialiasing was horrific, 
but that's a GD/FT2 issue).




[2001-07-12 17:18:32] [EMAIL PROTECTED]

Pretty sure, but it doesn't work the other way around either.



[2001-07-12 16:08:57] [EMAIL PROTECTED]

Are you sure that GD understands d:/path/to/font.ttf as a path?
Should it be d:\\path\\to\\font.ttf ?

--Wez.



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


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


-- 
PHP Development Mailing List 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP-DEV] Re: Bug #12299 Updated: Opening a new session truncates the html output

2001-07-23 Thread Dixie Flatline

Greetings!

> > Thanks for the fast response! So what this means then?
> > Is it a bug?
>
>   Seems like it. Which version of PHP did you try? I find it hard to
> believe that this was in PHP 4.0.6.
Sadly it is PHP 4.0.6, compiled as a module. I had 4.0.4pl1 before, it
worked fine.

I used the following source files:

http://ftp.debian.org/debian/pool/main/p/php4/php4_4.0.6-3.dsc
http://ftp.debian.org/debian/pool/main/p/php4/php4_4.0.6.orig.tar.gz
http://ftp.debian.org/debian/pool/main/p/php4/php4_4.0.6-3.diff.gz



Best Regards,

Dixie Flatline


-- 
PHP Development Mailing List 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP-DEV] Before Deleting Please Read This - It Could Make You A Lot Of Money

2001-07-23 Thread kurtn

Dear Friends & Future Millionaire: 

AS SEEN ON NATIONAL TV: 
Making over half million dollars every 4 to 5 months from your home for 
an investment of only $25 U.S. Dollars expense one time 
THANK'S TO THE COMPUTER AGE AND THE INTERNET ! 
== 
BE A MILLIONAIRE LIKE OTHERS WITHIN A YEAR!!! 
Before you say ''Bull'', please read the following. This is the letter you 
have been hearing about on the news lately. Due to the popularity of 
this letter on the Internet, a national weekly news program recently devoted 
an entire show to the investigation of this program described below, to see 
if it really can make people money. The show also investigated whether or 
not the program was legal. 
Their findings proved once and for all that there are ''absolutely NO Laws 
prohibiting the participation in the program and if people can -follow the 
simple instructions, they are bound to make some mega bucks with only 
$25 out of pocket cost''. DUE TO THE RECENT INCREASE OF 
POPULARITY & RESPECT THIS PROGRAM HAS ATTAINED, 
IT IS CURRENTLY WORKING BETTER THAN EVER. 
This is what one had to say: ''Thanks to this profitable opportunity. I 
was approached many times before but each time I passed on it. I am 
so gladI finally joined just to see what one could expect in return for the 
minimal effort and money required. To my astonishment, I received total $ 
610,470.00 in 21 weeks, with money still coming in." 
Pam Hedland, Fort Lee, New Jersey. 
=== 
Here is another testimonial: "This program has been around for a long 
time but I never believed in it. But one day when I received this again 
in the mail I decided to gamble my $25 on it. I followed the simple 
instructions and walaa . 3 weeks later the money started to come in. 
First month I only made $240.00 but the next 2 months after that I made 
a total of $290,000.00. So far, in the past 8 months by re-entering the 
program, I have made over $710,000.00 and I am playing it again. The 
key to success in this program is to follow the simple steps and NOT change 
anything.'' More testimonials later but first, 
= PRINT THIS NOW FOR YOUR FUTUREREFERENCE == 
$ 
If you would like to make at least $500,000 every 4 to 5 months easily and 
comfortably, please read the following...THEN READ IT AGAIN and AGAIN!!! 
$ 
FOLLOW THE SIMPLE INSTRUCTION BELOW AND YOUR FINANCIAL 
DREAMS WILL COME TRUE, GUARANTEED! INSTRUCTIONS: 
=Order all 5 reports shown on the list below = 
For each report, send $5 CASH, THE NAME & NUMBER OF THE REPORT 
YOU ARE ORDERING and YOUR E-MAIL ADDRESS to the person whose 
name appears ON THAT LIST next to the report. MAKE SURE YOUR RETURN 
ADDRESS IS ON YOUR ENVELOPE TOP LEFT CORNER in case of any mail 
problems. 
=== When you place your order, make sure you order each of the 5 reports. 
You will need all 5 reports so that you can save them on your computer 
and resell them. YOUR TOTAL COST $5 X 5=$25.00. 
Within a few days you will receive, vie e-mail, each of the 5 reports from 
these 5 different individuals. Save them on your computer so they will be 
accessible for you to send to the 1,000's of people who will order them 
from you. Also make a floppy of these reports and keep it on your desk in 
case something happen to your computer. 
IMPORTANT - DO NOT alter the names of the people who are listed next 
to each report, or their sequence on the list, in any way other than what is 
instructed below in step '' 1 through 6 '' or you will lose out on majority 
of your profits. Once you understand the way this works, you will also see 
how it does not work if you change it. Remember, this method has been 
tested, and if you alter, it will NOT work !!! People have tried to put their 
friends/relatives names on all five thinking they could get all the money. But 
it does not work this way. Believe us, we all have tried to be greedy and then 
nothing happened. So Do Not try to change anything other than what is 
instructed. Because if you do, it will not work for you. 
Remember, honesty reaps the reward!!! 
1 After you have ordered all 5 reports, take this advertisement and 
REMOVE the name & address of the person in REPORT # 5. This person 
has made it through the cycle and is no doubt counting their fortune. 
2 Move the name & address in REPORT # 4 down TO REPORT # 5. 
3 Move the name & address in REPORT # 3 down TO REPORT # 4. 
4 Move the name & address in REPORT # 2 down TO REPORT # 3. 
5 Move the name & address in REPORT # 1 down TO REPORT # 2 
6 Insert YOUR name & address in the REPORT # 1 Position. PLEASE MAKE 
SURE you copy every name & address ACCURATELY! 
== 
 Take this entire letter, with the modified list of names, and save it on y

Re: [PHP-DEV] Re: Bug #12299 Updated: Opening a new session truncatesthe html output

2001-07-23 Thread Sebastian Bergmann

Dixie Flatline wrote:
> Sadly it is PHP 4.0.6, compiled as a module. I had 4.0.4pl1 
> before, it worked fine.

  Sascha Schumann is looking into this.

-- 
  Sebastian Bergmann Measure Traffic & Usability
  http://sebastian-bergmann.de/http://phpOpenTracker.de/

-- 
PHP Development Mailing List 
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 #12313: parent resolving and deep require's

2001-07-23 Thread jan

From: [EMAIL PROTECTED]
Operating system: Linux
PHP version:  4.0.6
PHP Bug Type: Scripting Engine problem
Bug description:  parent resolving and deep require's

PHP seems to have a problem if it tries to resolve the 
parent of an object that is place in an external file 
which is include over multiple inclusions.

http://jan.kneschke.de/projects/phpbugs/

is telling the whole story including demo code.

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


-- 
PHP Development Mailing List 
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 #12314: include_path does not work

2001-07-23 Thread tarique

From: [EMAIL PROTECTED]
Operating system: WinME
PHP version:  4.0.6
PHP Bug Type: Dynamic loading
Bug description:  include_path does not work

Hello,

Just to let you know that include_path does not work at all under WinME 

So I just cant use require() or include(), it is not even defaulting to "."
i.e.; the current directory

Cheers
Tarique
-- 
Edit bug report at: http://bugs.php.net/?id=12314&edit=1


-- 
PHP Development Mailing List 
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 #11976 Updated: image_copy_resized does not work properly

2001-07-23 Thread yannbarrault

ID: 11976
User updated by: [EMAIL PROTECTED]
Reported By: [EMAIL PROTECTED]
Status: Feedback
Bug Type: GD related
Operating System: windows 98 SE
PHP Version: 4.0.6
New Comment:

When I removed the header function (or set it to "text/html"), I have this on my 
browser:
" PNG "??
If I keept "image/png" or "image/jpeg", I have a all-in black image??  

Previous Comments:


[2001-07-21 20:51:42] [EMAIL PROTECTED]

Works fine for me (I am using Linux.)  Try removing the
header function (or set it to "text/html") and see if there
are any errors/warnings that are corrupting the image.



[2001-07-09 10:04:13] [EMAIL PROTECTED]

I used this function in  a script with PHP 4.0.5. It works very well. I installed PHP 
4.0.6 and the script doesn't work anymore?
I found that it was this function who didn't work well.

Sorry about my English.

See my script:






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


-- 
PHP Development Mailing List 
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 #12314 Updated: include_path does not work

2001-07-23 Thread cynic

ID: 12314
Updated by: cynic
Reported By: [EMAIL PROTECTED]
Old Status: Open
Status: Feedback
Bug Type: Dynamic loading
Operating System: WinME
PHP Version: 4.0.6
New Comment:

have you read the Do's & Don'ts? What's your include_path setting? (Copy it here from 
your php.ini.)

Previous Comments:


[2001-07-23 05:48:57] [EMAIL PROTECTED]

Hello,

Just to let you know that include_path does not work at all under WinME 

So I just cant use require() or include(), it is not even defaulting to "." i.e.; the 
current directory

Cheers
Tarique





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


-- 
PHP Development Mailing List 
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 #12314 Updated: include_path does not work

2001-07-23 Thread tarique

ID: 12314
User updated by: [EMAIL PROTECTED]
Reported By: [EMAIL PROTECTED]
Status: Feedback
Bug Type: Dynamic loading
Operating System: WinME
PHP Version: 4.0.6
New Comment:

without being cynical and with all due respect - yes I have
read the do's and dont's of bug reporting

I also know that the similar bug has been reported for Win2K
and like I said - whatever the include_path setting it does
not work

for all practical purposes the setting in the php.ini is

include_path =

It would be nice if someone could let me know where to find
the Win binaries of PHP4.0.2 that is the latest confirmed
(of course by me) version which does not have this problem.

Also - under  Linux V 4.0.6 works fine

Tarique



Previous Comments:


[2001-07-23 06:30:02] [EMAIL PROTECTED]

have you read the Do's & Don'ts? What's your include_path setting? (Copy it here from 
your php.ini.)



[2001-07-23 05:48:57] [EMAIL PROTECTED]

Hello,

Just to let you know that include_path does not work at all under WinME 

So I just cant use require() or include(), it is not even defaulting to "." i.e.; the 
current directory

Cheers
Tarique





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


-- 
PHP Development Mailing List 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP-DEV] cvs socket extension

2001-07-23 Thread Markus Fischer

Morning ...

Has anyone a working example on using the new socket_select()
call with non-blocking connection-oriented sockets? blocking
sockets with socket_accept() work like a charm. But I can't get
socket_select() to work.

ty
- Markus

-- 
PHP Development Mailing List 
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 #12315: Buffering crashes PHP when there is an error with mail function

2001-07-23 Thread carlos . a . viana

From: [EMAIL PROTECTED]
Operating system: Win ME
PHP version:  4.0.6
PHP Bug Type: Output Control
Bug description:  Buffering crashes PHP when there is an error with mail function

I don't have an email server in my development computer, so when I turn
output buffering on with "ob_start('ob_gzhandler')" and try to send an
email with "mail (string to, string subject, string message) or die('Error
message')", PHP crashes. This doesn't happen in every script ans doesn't
happen at all, when I remove the "or die('Error message')" condition.
-- 
Edit bug report at: http://bugs.php.net/?id=12315&edit=1


-- 
PHP Development Mailing List 
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 #12314 Updated: include_path does not work

2001-07-23 Thread cynic

ID: 12314
Updated by: cynic
Reported By: [EMAIL PROTECTED]
Status: Feedback
Bug Type: Dynamic loading
Operating System: WinME
PHP Version: 4.0.6
New Comment:

well, I use include_path on NT 4 and NT 5 without problems. since you did not do what 
the Dos & Donts page tells you to do (include related php.ini settings in the report), 
I can only guess that you forgot to put the value in quotes.

Anyway, could you try this?

php.ini:
include_path = "./;./inc/"

somewhere/test.php:


somewhere/inc/include.inc:


and load somewhere/test.php. If it gives you any error, paste it here, please.

Thanks!

Previous Comments:


[2001-07-23 07:12:07] [EMAIL PROTECTED]

without being cynical and with all due respect - yes I have
read the do's and dont's of bug reporting

I also know that the similar bug has been reported for Win2K
and like I said - whatever the include_path setting it does
not work

for all practical purposes the setting in the php.ini is

include_path =

It would be nice if someone could let me know where to find
the Win binaries of PHP4.0.2 that is the latest confirmed
(of course by me) version which does not have this problem.

Also - under  Linux V 4.0.6 works fine

Tarique





[2001-07-23 06:30:02] [EMAIL PROTECTED]

have you read the Do's & Don'ts? What's your include_path setting? (Copy it here from 
your php.ini.)



[2001-07-23 05:48:57] [EMAIL PROTECTED]

Hello,

Just to let you know that include_path does not work at all under WinME 

So I just cant use require() or include(), it is not even defaulting to "." i.e.; the 
current directory

Cheers
Tarique





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


-- 
PHP Development Mailing List 
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 #12003 Updated: failed to locate host machine

2001-07-23 Thread jan . suchanek

ID: 12003
User updated by: [EMAIL PROTECTED]
Reported By: [EMAIL PROTECTED]
Status: Feedback
Bug Type: InterBase related
Operating System: Linux Red Hat 7.1 (2.4.2)
PHP Version: 4.0.6
New Comment:

This problem I have is on Linux server.
In /etc/services is gds_db3050/tcp
Are you sure with port 3060? 3050 is standard.

Systems.
I have Linux server as intranet server and W2000 station as testing server.

Previous Comments:


[2001-07-22 19:25:56] [EMAIL PROTECTED]

BTW, please also update this bug to actually tell us which
OS you are running. In the OS type above, you have said:
Linux Red Hat 7.1 (2.4.2)

But in the text of the bug report, you said:
W2000+Apache1.3.20+PHP4.06

Which is it?



[2001-07-22 19:24:07] [EMAIL PROTECTED]

The error message is implying that you have not made
the required updates to your /etc/services file that
Interbase requires.

Make sure the following line appears somewhere in your
/etc/services:

gds_db 3060/tcp

(This is assuming you haven't done anything silly which
would make interbase run on a port other than the default.)



[2001-07-11 07:06:45] [EMAIL PROTECTED]

Compilation of php was:
./configure --with-interbase=/opt/interbase --with-apxs=/usr/local/apache/bin/apxs 
--enable-debug.

Othervice ... I can't find a file php_interbase.so



[2001-07-11 02:06:04] [EMAIL PROTECTED]

Sure. This problem is only on the server, where interbase is running.



[2001-07-10 06:02:35] [EMAIL PROTECTED]

This does not like a PHP error, but PHP is rather relaying the error that InterBase 
gives.
Are you sure Interbase running and the name 'localhost' resolves into an IP address?

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/?id=12003


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


-- 
PHP Development Mailing List 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP-DEV] cvs socket extension

2001-07-23 Thread Chris Vandomelen

> Morning ...
>
> Has anyone a working example on using the new socket_select()
> call with non-blocking connection-oriented sockets? blocking
> sockets with socket_accept() work like a charm. But I can't get
> socket_select() to work.

That's because of the patches that were made. Try specifying 0x7FFF or
something equally large for max_fd (the first argument to select) and it
*should* work.

The reason it doesn't work is because file descriptors were changed from
ints to resources, and since the first argument to select() (and therefore
socket_select()) must be greater than the largest file descriptor in the
set, and resource number != file descriptor.. should be obvious. :)

Try something like:

--
$someport = 3334;

$fd = socket_create_listen($someport, 5);

$fd_set = socket_fd_alloc();
socket_fd_set($fd, $fd_set);

socket_select(0x7fff, $fd_set, 0, 0, 0, 0);
--

to force the select function to see all of the file descriptors in the set
(as the socket_fd_* functions do the Right Thing when dealing with the
resources).

Chris

>
> ty
> - Markus
>
> --
> PHP Development Mailing List 
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
>
>


-- 
PHP Development Mailing List 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP-DEV] cvs socket extension

2001-07-23 Thread Markus Fischer

Thanks for the quick response!

Exactly that was what I thought. I've used system select() before
and I knew what I needed for the first parameter but heck I got
no idea from which var/fucntion to retrieve this value.

thanks !

- Markus

On Mon, Jul 23, 2001 at 05:14:29AM -0700, Chris Vandomelen wrote : 
> > Morning ...
> >
> > Has anyone a working example on using the new socket_select()
> > call with non-blocking connection-oriented sockets? blocking
> > sockets with socket_accept() work like a charm. But I can't get
> > socket_select() to work.
> 
> That's because of the patches that were made. Try specifying 0x7FFF or
> something equally large for max_fd (the first argument to select) and it
> *should* work.
> 
> The reason it doesn't work is because file descriptors were changed from
> ints to resources, and since the first argument to select() (and therefore
> socket_select()) must be greater than the largest file descriptor in the
> set, and resource number != file descriptor.. should be obvious. :)
> 
> Try something like:
> 
> --
> $someport = 3334;
> 
> $fd = socket_create_listen($someport, 5);
> 
> $fd_set = socket_fd_alloc();
> socket_fd_set($fd, $fd_set);
> 
> socket_select(0x7fff, $fd_set, 0, 0, 0, 0);
> --
> 
> to force the select function to see all of the file descriptors in the set
> (as the socket_fd_* functions do the Right Thing when dealing with the
> resources).
> 
> Chris
> 
> >
> > ty
> > - Markus
> >
> > --
> > PHP Development Mailing List 
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> > To contact the list administrators, e-mail: [EMAIL PROTECTED]
> >
> >

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

-- 
PHP Development Mailing List 
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 #12314 Updated: include_path does not work

2001-07-23 Thread tarique

ID: 12314
User updated by: [EMAIL PROTECTED]
Reported By: [EMAIL PROTECTED]
Status: Feedback
Bug Type: Dynamic loading
Operating System: WinME
Old PHP Version: 4.0.6
PHP Version: 4.0.6 
New Comment:

Hmm... looks like very rarely do people really mean what they say in bug reports ;-)

OK! here goes 
--
Fatal error: Failed opening required 'countrylist2.inc' (include_path='./;./inc/') in 
c:\program files\apache group\apache\htdocs\bobp\latest\propertyadd.php3 on line 52
--

I have also tried the following variants

include_path=".\;.\inc\"
include_path=".;.\inc\"
include_path="."

No settings works for anything between Version 4.0.3 to 4.0.6 However the same is 
working on a live site running Ver4.0.2

and I dont know where to get Win binaries of 4.0.2 from  ... 

Cheers



Previous Comments:


[2001-07-23 07:49:30] [EMAIL PROTECTED]

well, I use include_path on NT 4 and NT 5 without problems. since you did not do what 
the Dos & Donts page tells you to do (include related php.ini settings in the report), 
I can only guess that you forgot to put the value in quotes.

Anyway, could you try this?

php.ini:
include_path = "./;./inc/"

somewhere/test.php:


somewhere/inc/include.inc:


and load somewhere/test.php. If it gives you any error, paste it here, please.

Thanks!



[2001-07-23 07:12:07] [EMAIL PROTECTED]

without being cynical and with all due respect - yes I have
read the do's and dont's of bug reporting

I also know that the similar bug has been reported for Win2K
and like I said - whatever the include_path setting it does
not work

for all practical purposes the setting in the php.ini is

include_path =

It would be nice if someone could let me know where to find
the Win binaries of PHP4.0.2 that is the latest confirmed
(of course by me) version which does not have this problem.

Also - under  Linux V 4.0.6 works fine

Tarique





[2001-07-23 06:30:02] [EMAIL PROTECTED]

have you read the Do's & Don'ts? What's your include_path setting? (Copy it here from 
your php.ini.)



[2001-07-23 05:48:57] [EMAIL PROTECTED]

Hello,

Just to let you know that include_path does not work at all under WinME 

So I just cant use require() or include(), it is not even defaulting to "." i.e.; the 
current directory

Cheers
Tarique





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


-- 
PHP Development Mailing List 
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 #12316: Have to increase memory_limit to be able to upload big files

2001-07-23 Thread jack

From: [EMAIL PROTECTED]
Operating system: Linux
PHP version:  4.0.5
PHP Bug Type: Feature/Change Request
Bug description:  Have to increase memory_limit to be able to upload big files

If you want to use file upload, you have to correctly set upload_max_size
and post_max_size. That's o.k. But you also have to set memory_limit and
max_execution_time to values high enough.

The former seems to be result of very poor design (I admit I haven't
checked the source code closely but as far as I can tell from a quick look
at main/rfc1867.c, the whole form is first read and stored in memory and
only then parsed and divided into files instead of being parsed on the
run).

I am not sure about the second issue since I don't know how exactly
max_exec*_time works. Is it counted from the very start of request or from
the moment script starts being executed? (that is -- if I set
max_execution_time to 30 secs and the upload takes 55 secs, will PHP die?
or will the upload finish and script will get 30secs to run?). I know I can
get around this limit -- I just wonder.
-- 
Edit bug report at: http://bugs.php.net/?id=12316&edit=1


-- 
PHP Development Mailing List 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP-DEV] CVS Account Request

2001-07-23 Thread CVS Account Request

Full name: Alexander Merz
Email: [EMAIL PROTECTED]
ID:alexmerz
Purpose:   Maintaining PEAR/Config and PEAR/IPv6. Commiting patches to other 
PEAR-classes. Martin Jansen asked me to request a CVS-Account

-- 
PHP Development Mailing List 
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 #9280 Updated: HTTP/1.1 Expect: header not honoured

2001-07-23 Thread andy

ID: 9280
Updated by: andy
Reported By: [EMAIL PROTECTED]
Old Status: Closed
Status: Open
Bug Type: Apache related
Operating System: Linux
PHP Version: 4.0.4pl1
New Comment:

[EMAIL PROTECTED] emailed me with his response.  I am
re-opening this bug.  This is what he said...
---

First I created a simple PHP script which does nothing.  I've
called it "null.php" and it's in the root of my servers.  It
contains simply:

 hello
  Now to test, I telnet to the web server port.
First I connect to
the machine with a stock PHP (4.0.4pl1) on it, and paste in the
following:

POST /null.php HTTP/1.1
Host: yellow.datatote.co.uk
Content-Type: application/x-www-form-urlencoded
Content-Length: 3
Accept: */*
Expect: 100-continue

Now I add an extra blank line after the Expect: header.  Nothing
happens.

Next I connect to the machine with my modified PHP on it, and
paste in:

POST /null.php HTTP/1.1
Host: etweb_qa.datatote.co.uk
Content-Type: application/x-www-form-urlencoded
Content-Length: 3
Accept: */*
Expect: 100-continue

Now I add an extra blank line after the Expect: header.  The
web server responds with:

HTTP/1.1 100 Continue

This is as per the HTTP 1.1 spec (RFC 2068, section 8.2).

To check that this behaviour is definitely PHP related, I
created
a dummy perl script (similar to the PHP one above) and return to
the http port of the original machine (with unmodified PHP) and
paste in:

POST /cgi-bin/null.pl HTTP/1.1
Host: yellow.datatote.co.uk
Content-Type: application/x-www-form-urlencoded
Content-Length: 3
Accept: */*
Expect: 100-continue

Adding an extra blank line after the Expect: produces the
correct
"HTTP/1.1 100 Continue" line.

This may not be quite what you wanted, but it should give you
all the information you need to see the fault and to see
that the
fix works.

Note that the two servers mentioned above are not publically
accessible (sorry - development machines).  I can provide public
access to a null.php on a box with my patched PHP if that is any
help.

Also,  we originally spotted this bug because someone was trying
to use a standard URL fetch method using JRE 1.3 (I'm not a Java
programmer so I don't know offhand what the method was).




Previous Comments:


[2001-07-22 12:49:35] [EMAIL PROTECTED]

no feedback after 38 days.



[2001-06-14 20:45:53] [EMAIL PROTECTED]

Do you have any example script that can be used to reproduce
this behaviour? (I'm being lazy here.. :)





[2001-02-15 09:10:32] [EMAIL PROTECTED]

When a PHP page is requested via HTTP/1.1, and the HTTP
header "Expect: 100-continue" is supplied, PHP does not
honour the request.  This is because it is failing
to call ap_should_client_block().

The file sapi/apache/mod_php4.c needs modification. The
following change has been tested and works. Hopefully
someone can make sense of this diff output:

--- sapi/apache/mod_php4.c   Wed Jan  3 22:07:59 2001
+++ sapi/apache_modified/mod_php4.c  Thu Feb 15 13:56:12 2001
@@ -159,14 +159,16 @@
void (*handler)(int);

handler = signal(SIGPIPE, SIG_IGN);
-   while (total_read_byteshttp://bugs.php.net/?id=9280&edit=1


-- 
PHP Development Mailing List 
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 #12317: Mailing list is bouncing back my email.

2001-07-23 Thread jeremy

From: [EMAIL PROTECTED]
Operating system: any
PHP version:  4.0.6
PHP Bug Type: *General Issues
Bug description:  Mailing list is bouncing back my email.

A copy of the email:

The error is saying that the email server does not accept messages shorter
than 2 bytes.

This happens every time I try and post to any of the lists.

I've already contacted pair.com and they said that they can not help
because they do not run the php listservs.

Thanks,
Jeremy




>From [EMAIL PROTECTED] Mon Jul 23 15:07:06 2001 +0200
Status: R
X-Status:
X-Keywords:
Return-Path: <>
X-Flags: 
Delivered-To: GMX delivery to [EMAIL PROTECTED]
Received: from rogue [127.0.0.1]
by localhost with POP3 (fetchmail-5.8.12)
for jeremy@localhost (single-drop); Mon, 23 Jul 2001 15:07:06 +0200
()
Received: (qmail 31969 invoked by uid 0); 23 Jul 2001 13:03:45 -
Received: from pb1.pair.com (216.92.131.4)
  by mx0.gmx.net (mx07) with SMTP; 23 Jul 2001 13:03:45 -
Received: (qmail 43903 invoked for bounce); 23 Jul 2001 13:03:55 -
Date: 23 Jul 2001 13:03:55 -
From: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: failure notice
Message-ID: <[EMAIL PROTECTED]>

Hi. This is the qmail-send program at pb1.pair.com.
I'm afraid I wasn't able to deliver your message to the following
addresses.
This is a permanent error; I've given up. Sorry it didn't work out.

<[EMAIL PROTECTED]>:
ezmlm-reject: fatal: Sorry, I don't accept messages shorter than 2 bytes
(#5.2.3)

--- Below this line is a copy of the message.

Return-Path: <[EMAIL PROTECTED]>
Received: (qmail 43867 invoked from network); 23 Jul 2001 13:03:37 -
Received: from unknown (HELO mail.gmx.net) (194.221.183.20)
  by pb1.pair.com with SMTP; 23 Jul 2001 13:03:37 -
Received: (qmail 11653 invoked by uid 0); 23 Jul 2001 13:03:20 -
Received: from unknown (HELO nirvani.net) (217.199.1.157)
  by mail.gmx.net (mp001-rz3) with SMTP; 23 Jul 2001 13:03:20 -
Received: (Initial drop from localhost [127.0.0.1] by mobile mail 1.0.0.
www.nirvani.net/software/); 23 Jul 2001 13:04:15 -
Date: Mon, 23 Jul 2001 03:02:20 +0200 (WEDT)
From: jeremy brand <[EMAIL PROTECTED]>
X-Sender:  
To: Jeremy <[EMAIL PROTECTED]>
cc:  <[EMAIL PROTECTED]>
Subject: Re: [PHP] bitwise AND is acting strange
In-Reply-To: <[EMAIL PROTECTED]>
Message-ID: 
X-Originally-From: <[EMAIL PROTECTED]>
X-Organization: http://www.smackdown.com/
X-finger: Not available
X-Yo-Mama: Whatchew talkin' 'bout Willis?
X-face: Not available
X-security: setec astronomy
X-OS: Linux
X-animal: Penguin
X-suck-o-meter: Microsoft
X-homepage: http://www.jeremybrand.com/Jeremy/Brand/Jeremy_Brand.html
X-pgp-key: GnuPG Ver. 1 key available at http://www.nirvani.net/pgp-key
X-GnuPG-Fingerprint: 7C1F 8AE1 9EE8 62D5 A68C  531A F36B AE2B C0E9 3420
X-Geekcode: http://www.nirvani.net/geekcode
X-Mailer: Pine (4.30) and proud!
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII

Hi Jeremy

I do all kinds of bit mask suff in my code. I've been doing it back since
version 3 _and_ ever since I've been doing it, I've never once had a
problem.

Your example:
(2 & 10)
works for me (my example)

  print (2 & 10). "\n";

It prints 2.

Most likely, you are missing something else in your code.  You might want
to double check something.

You might want to _echo_ your SQL queries out.  That is the most probable
place that something is haywire.

So, to answer your question (am I missing something)?. No, you are not.
:)

Hope this helps.
Jeremy

--
Jeremy Brand :: Sr. Software Engineer :: +393485323988 ::
[EMAIL PROTECTED]
http://www.JeremyBrand.com/Jeremy/Brand/Jeremy_Brand.html for more
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
"LINUX is obsolete"  -- Andy Tanenbaum, January 29th, 1992
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
  Get your own Free, Private email at http://www.smackdown.com/

On Sun, 22 Jul 2001, the following spilled from the mind of Jeremy:

> Date: Sun, 22 Jul 2001 19:32:53 -0700
> From: Jeremy <[EMAIL PROTECTED]>
> To: [EMAIL PROTECTED]
> Subject: [PHP] bitwise AND is acting strange
>
> The users on my website all have an "access" number that is used to
give
> them access to different parts of the site. Each bit represents a
different
> part of the site. So, if a user has an access of 10, which is 1010 in
> binary, they have access to the parts of the site that are represented
by
> the second and fourth bit. You know, standard bit masking stuff.
>
> So the part of the site that is represented by the second bit has a value
of
> 2 (0010), and the part that is represented by the fourth bit has a value
of
> 8 (1000)
>
> BUT, for some reason when I do (2 & 10) its giving me a result of zero,
when
> I believe it should be doing (0010 & 1010) and giving me an answer of
0010
> which is 

[PHP-DEV] Bug #12138 Updated: Image broken

2001-07-23 Thread andy

ID: 12138
Updated by: andy
Reported By: [EMAIL PROTECTED]
Old Status: Feedback
Status: Open
Bug Type: *Graphics related
Operating System: Sparc Solaris 8
PHP Version: 4.0.6
New Comment:

I was not able to reproduce this error, and think that it is bogus
(or is a problem with his browser.)Can anyone else verify
this?

Previous Comments:


[2001-07-21 20:42:20] [EMAIL PROTECTED]

Are you saying that the image works fine when it is
requested by itself (test.php), but not when it is
referenced by a html page (test.html)?



[2001-07-13 07:07:04] [EMAIL PROTECTED]

test.php




test.html


test

Hello




Configuration:

gd-1.8.4, apache-1.3.20, php-4.0.6

  ./configure\
--without-mysql\
--with-oci8 \
--with-oracle\
--with-imap\
--with-ldap\
--with-db3 \
--enable-sysvsem\
--enable-sysvshm\
--with-mm=/usr/local\
--enable-track-vars\
--enable-trans-sid\
--enable-shmop\
--with-gd \
--with-png-dir=/usr/local/lib \
--with-zlib-dir=/usr/local/lib \
--enable-inline-optimization \
--enable-bcmath \
--with-gettext \
--with-mcal=/usr/local/mcal \
--with-mcrypt \
--disable-debug \
--with-apxs=/usr/local/apache/bin/apxs

Desc:
When the Image (test.php) is referenced by a html file (test.html) it is shown as 
broken in the browser window.

When calling test.php directly the Image is shown correctly, but by shift-reloading 
the page (test.php) the image is broken again (a normal reload shows the image).

It did not occur with php-4.0.5





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


-- 
PHP Development Mailing List 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP-DEV] Before Deleting Please Read This - It Could Make You A Lot Of Money

2001-07-23 Thread Andy

Please don't send spam to the PHP-DEV mailing
list.

On Wed, 31 Dec 1969, kurtn wrote:
> Dear Friends & Future Millionaire: 
> 
> AS SEEN ON NATIONAL TV: 
> Making over half million dollars every 4 to 5 months from your home for 
> an investment of only $25 U.S. Dollars expense one time 
> THANK'S TO THE COMPUTER AGE AND THE INTERNET ! 
> == 
> BE A MILLIONAIRE LIKE OTHERS WITHIN A YEAR!!! 
> Before you say ''Bull'', please read the following. This is the letter you 
> have been hearing about on the news lately. Due to the popularity of 
> this letter on the Internet, a national weekly news program recently devoted 
> an entire show to the investigation of this program described below, to see 
> if it really can make people money. The show also investigated whether or 
> not the program was legal. 
> Their findings proved once and for all that there are ''absolutely NO Laws 
> prohibiting the participation in the program and if people can -follow the 
> simple instructions, they are bound to make some mega bucks with only 
> $25 out of pocket cost''. DUE TO THE RECENT INCREASE OF 
> POPULARITY & RESPECT THIS PROGRAM HAS ATTAINED, 
> IT IS CURRENTLY WORKING BETTER THAN EVER. 
> This is what one had to say: ''Thanks to this profitable opportunity. I 
> was approached many times before but each time I passed on it. I am 
> so gladI finally joined just to see what one could expect in return for the 
> minimal effort and money required. To my astonishment, I received total $ 
> 610,470.00 in 21 weeks, with money still coming in." 
> Pam Hedland, Fort Lee, New Jersey. 
> === 
> Here is another testimonial: "This program has been around for a long 
> time but I never believed in it. But one day when I received this again 
> in the mail I decided to gamble my $25 on it. I followed the simple 
> instructions and walaa . 3 weeks later the money started to come in. 
> First month I only made $240.00 but the next 2 months after that I made 
> a total of $290,000.00. So far, in the past 8 months by re-entering the 
> program, I have made over $710,000.00 and I am playing it again. The 
> key to success in this program is to follow the simple steps and NOT change 
> anything.'' More testimonials later but first, 
> = PRINT THIS NOW FOR YOUR FUTUREREFERENCE == 
> $ 
> If you would like to make at least $500,000 every 4 to 5 months easily and 
> comfortably, please read the following...THEN READ IT AGAIN and AGAIN!!! 
> $ 
> FOLLOW THE SIMPLE INSTRUCTION BELOW AND YOUR FINANCIAL 
> DREAMS WILL COME TRUE, GUARANTEED! INSTRUCTIONS: 
> =Order all 5 reports shown on the list below = 
> For each report, send $5 CASH, THE NAME & NUMBER OF THE REPORT 
> YOU ARE ORDERING and YOUR E-MAIL ADDRESS to the person whose 
> name appears ON THAT LIST next to the report. MAKE SURE YOUR RETURN 
> ADDRESS IS ON YOUR ENVELOPE TOP LEFT CORNER in case of any mail 
> problems. 
> === When you place your order, make sure you order each of the 5 reports. 
> You will need all 5 reports so that you can save them on your computer 
> and resell them. YOUR TOTAL COST $5 X 5=$25.00. 
> Within a few days you will receive, vie e-mail, each of the 5 reports from 
> these 5 different individuals. Save them on your computer so they will be 
> accessible for you to send to the 1,000's of people who will order them 
> from you. Also make a floppy of these reports and keep it on your desk in 
> case something happen to your computer. 
> IMPORTANT - DO NOT alter the names of the people who are listed next 
> to each report, or their sequence on the list, in any way other than what is 
> instructed below in step '' 1 through 6 '' or you will lose out on majority 
> of your profits. Once you understand the way this works, you will also see 
> how it does not work if you change it. Remember, this method has been 
> tested, and if you alter, it will NOT work !!! People have tried to put their 
> friends/relatives names on all five thinking they could get all the money. But 
> it does not work this way. Believe us, we all have tried to be greedy and then 
> nothing happened. So Do Not try to change anything other than what is 
> instructed. Because if you do, it will not work for you. 
> Remember, honesty reaps the reward!!! 
> 1 After you have ordered all 5 reports, take this advertisement and 
> REMOVE the name & address of the person in REPORT # 5. This person 
> has made it through the cycle and is no doubt counting their fortune. 
> 2 Move the name & address in REPORT # 4 down TO REPORT # 5. 
> 3 Move the name & address in REPORT # 3 down TO REPORT # 4. 
> 4 Move the name & address in REPORT # 2 down TO REPORT # 3. 
> 5 Move the name & address in REPORT # 1 down TO REPORT # 2 
> 6 Insert YOUR name

[PHP-DEV] Bug #10853 Updated: PConnect through firewall

2001-07-23 Thread cynic

ID: 10853
Updated by: cynic
Reported By: [EMAIL PROTECTED]
Old Status: Closed
Status: Feedback
Bug Type: Sybase (dblib) related
Operating System: RH6.2
PHP Version: 4.0.4pl1
New Comment:

user feedback:

> This email was sent because you didn't respond to 
> an email asking whether you could "try with server 
> that is NOT behind firewall?" it is an established 
> policy to close bug reports where the user doesn't 
> respond to developer feedback after certain period 
> of time. 

I didn't get that email, my answer would have been "yes" it works fine if I use a DB 
server in the same network. 
However I guess your answer would be "the problem is your firewall". 


while I can't say for sure you wouldn't recieve such answer, you can certainly help 
with squashing this problem if you:
* include a short self-contained script that still reproduces the problem (i. e. one 
that doesn't require any large external classes)
* give as much detail as possible, including the firewall software and version.

Previous Comments:


[2001-07-22 12:59:39] [EMAIL PROTECTED]

no feedback after 40 days.



[2001-06-12 17:43:55] [EMAIL PROTECTED]

Could you try with server that is NOT behind firewall?
Does this happen then?




[2001-05-14 11:54:38] [EMAIL PROTECTED]

When I use persistent connections to a MS Sql server that is behind a firewall, If I 
refresh the page fast enough (about 10 refreshes per second) one of the connections 
will be opened with problems. I'm using ADODB and the mssql extension. However I had 
the same problem with the raw functions of php. This is the code:

Class Data_Mensajes {

function Load(&$objMensajesNegocio) {
$objMensajes = &$objMensajesNegocio;

include('/usr/local/apache/componentes/adodb/adodb.inc.php');
ADOLoadCode('mssql');
//Nos conectamos al servidor de BD
$con = &ADONewConnection();

if($con->PConnect("200.52.76.2","Mexmatch","qf3ae$+as","MexMatch")) {
$query= "Select * From Mensaje Where IDUsuarioPara = 'WERA'";
$result = $con->Execute($query);
$i=0;
while(!$result->EOF) {
//$objBusiness_Mensaje[$i] = new Business_Mensaje();
$objBusiness_Mensaje = new Business_Mensaje();

$objBusiness_Mensaje->setIDMensaje($result->fields[0]);

$objBusiness_Mensaje->setIDUsuarioDe($result->fields[1]);

$objBusiness_Mensaje->setIDUsuarioPara($result->fields[2]);
$objBusiness_Mensaje->setSubject($result->fields[3]);
$objBusiness_Mensaje->setCuerpo($result->fields[4]);
$objBusiness_Mensaje->setFecha($result->fields[5]);
$objMensajes->setMensajes($objBusiness_Mensaje);
$result->MoveNext();
$i++;
}
}
$result->Close();
$con->Close();
}
} // Fin de Clase Data_Mensajes





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


-- 
PHP Development Mailing List 
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 #11976 Updated: image_copy_resized does not work properly

2001-07-23 Thread andy

ID: 11976
Updated by: andy
Reported By: [EMAIL PROTECTED]
Status: Feedback
Bug Type: GD related
Operating System: windows 98 SE
PHP Version: 4.0.6
New Comment:

so what is the problem.  The image works now...  Just make sure
you set the header to "image/png" or whatever file type
the image is.

Previous Comments:


[2001-07-23 06:24:34] [EMAIL PROTECTED]

When I removed the header function (or set it to "text/html"), I have this on my 
browser:
" PNG "??
If I keept "image/png" or "image/jpeg", I have a all-in black image??  



[2001-07-21 20:51:42] [EMAIL PROTECTED]

Works fine for me (I am using Linux.)  Try removing the
header function (or set it to "text/html") and see if there
are any errors/warnings that are corrupting the image.



[2001-07-09 10:04:13] [EMAIL PROTECTED]

I used this function in  a script with PHP 4.0.5. It works very well. I installed PHP 
4.0.6 and the script doesn't work anymore?
I found that it was this function who didn't work well.

Sorry about my English.

See my script:






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


-- 
PHP Development Mailing List 
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 #12318: ob_gzhandler screws-up included .js files

2001-07-23 Thread gilux

From: [EMAIL PROTECTED]
Operating system: redhat 6.2
PHP version:  4.0.6
PHP Bug Type: Output Control
Bug description:  ob_gzhandler screws-up included .js files

i put this in my apache1.3.12 httpd.conf:
-
 AddType application/x-httpd-php .js
-

this in a .htm file:

this



and this in titatest.js:

document.write('is a');



the output of this little script should have been:

this is a test


but instead, it gives me this error (in the javascript console):

JavaScript Error: http://www.devweb.nl/titatest.js, line 1:
illegal character.
ý
.^


i put this in my php.ini:
output_handler = ob_gzhandler 

but if i turn this off, all seems to work fine again.

other than the above error,
ob_gzhandler seems to work fine.

is this a bug or maybe im trying something here that isnt supposed to work
with ob_gzhandler anyway??

==
configure command:

'./configure' '--with-apxs' '--with-xml' '--with-zlib'
'--with-mysql=/usr' '--enable-track-vars'

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


-- 
PHP Development Mailing List 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP-DEV] HAL 2K1

2001-07-23 Thread Hellekin O. Wolf

As the Apache conference in Dublin is cancelled, I wanted to know if there 
is an alternative for meeting...

Are there some PHPers going to to the Netherlands on August 10-12 ? =8)

http://www.hal2001.org/

hellekin


-- 
PHP Development Mailing List 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP-DEV] cvs socket extension

2001-07-23 Thread Daniel Beulshausen

At 05:14 23.07.2001 -0700, Chris Vandomelen wrote:
> > Morning ...
> >
> > Has anyone a working example on using the new socket_select()
> > call with non-blocking connection-oriented sockets? blocking
> > sockets with socket_accept() work like a charm. But I can't get
> > socket_select() to work.
>
>That's because of the patches that were made. Try specifying 0x7FFF or
>something equally large for max_fd (the first argument to select) and it
>*should* work.
>
>The reason it doesn't work is because file descriptors were changed from
>ints to resources, and since the first argument to select() (and therefore
>socket_select()) must be greater than the largest file descriptor in the
>set, and resource number != file descriptor.. should be obvious. :)
>
>Try something like:
>
>--
>$someport = 3334;
>
>$fd = socket_create_listen($someport, 5);
>
>$fd_set = socket_fd_alloc();
>socket_fd_set($fd, $fd_set);
>
>socket_select(0x7fff, $fd_set, 0, 0, 0, 0);

we can add a support function which return's the php_socket->socket integer.

daniel

/*--
daniel beulshausen - [EMAIL PROTECTED]
using php on windows? http://www.php4win.de


-- 
PHP Development Mailing List 
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 #10904 Updated: php.exe accesses unreadable memory and crashes

2001-07-23 Thread pax

ID: 10904
User updated by: [EMAIL PROTECTED]
Reported By: [EMAIL PROTECTED]
Status: Feedback
Bug Type: Reproducible crash
Operating System: WINNT SP4
PHP Version: 4.0.5
New Comment:

Yes.
The little loop script still shows it.
Other scripts may or may not show it,
but it only appears with the second invocation.
It is easy to think it is gone because the first
time a script runs it usually doesn't happen.
If you haven't backed up the browser and opened the script a second time, it could be 
hiding.

Also, I am running WinNT 4 not w2k.  If I can suppress the bug by upgrading to w2k, I 
might.  I have been thinking I might have to move the server to Linux.  

I am currently running 4.0.4pl because I am not set up to link in the modules I need 
with 4.0.6.




Previous Comments:


[2001-07-22 09:20:36] [EMAIL PROTECTED]

can't repoduce this with the apache module or the cgi (4.0.6) under w2k.
is this bug still existant for you?



[2001-06-15 09:59:43] [EMAIL PROTECTED]

I installed the snapshot from 6/14/2001.
I know the installation was successful because PHP issued warnings about not being 
able to load modules such as GD.

I ran it against the small script that demonstrates the 
defect, and, unfortunately, the defect is still there.






[2001-06-14 22:20:21] [EMAIL PROTECTED]

please try the latest snapshot from http://www.zend.com/snapshots





[2001-05-18 10:50:53] [EMAIL PROTECTED]

I believe it is CGI.  Httpd.conf contains

ScriptAlias /php/ "C:/phpdev3/php/"
ScriptAlias /php2/ "C:/phpdev3/php/"
ScriptAlias /php3/ "C:/phpdev3/php/"

AddType application/x-httpd-php4 .phtml .pwml .htm
AddType application/x-httpd-php4 .php4 .php .php3 .php2 .htm

Action application/x-httpd-php4 "/php/php.exe"


---
I just performed a complete reinstallation, but the bug is still there.

I downloaded and installed the phpdev3 installation package from www.firepages.com.au.

This package installs Apache 1.3.19 , PHP 4.0.4pl, and MySQL. My application talks to 
Oracle and I don't use the MySQL.

I completely removed my old installation.
I made these configurations to the fresh installation.
In PHP.INI (which I copied to c:\winnt)
   - changed the memory limit to 16M
   - set the include path to "."
   - enabled the php_mhash extension
   - enabled the php_imap extension (can't recall if I actually use this)
in httpd.conf
   - changed the document root to "D:\www"
I copied all the dlls for php\dlls and php\extensions to my system32 directory (except 
I got he usual error with msvcrt.dll --- mine is 12/7/99 and the dist version is 
12/10/99).

Then I verified that my application still works and that the little demonstration app 
still shows the bug.

Steve



[2001-05-18 04:48:55] [EMAIL PROTECTED]

Can reproduce this.. what SAPI are you using (ISAPI or CGI?).

- James



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=10904


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


-- 
PHP Development Mailing List 
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 #10413 Updated: Error retrieving image field from MSSQL database

2001-07-23 Thread jesus . estrada

ID: 10413
User updated by: [EMAIL PROTECTED]
Reported By: [EMAIL PROTECTED]
Status: Closed
Bug Type: MSSQL related
Operating System: Win2k
PHP Version: 4.0.4pl1
New Comment:

Looks like it's working in php 4.0.6 
Thanks.

Previous Comments:


[2001-06-30 14:51:31] [EMAIL PROTECTED]

Handling of binary data was changed in php4.0.6. Please update and try again.



[2001-04-19 22:01:41] [EMAIL PROTECTED]

Looks like there's a problem in the Windows version of the mssql extension. I'm having 
the same problem as Leonid Freidin with queries that have a image in the result.
I'm using php4.04pl1.
This is the code.








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


-- 
PHP Development Mailing List 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP-DEV] cvs socket extension

2001-07-23 Thread Markus Fischer

On Mon, Jul 23, 2001 at 03:10:12PM +0200, Daniel Beulshausen wrote : 
> At 05:14 23.07.2001 -0700, Chris Vandomelen wrote:
> > > Morning ...
> > >
> > > Has anyone a working example on using the new socket_select()
> > > call with non-blocking connection-oriented sockets? blocking
> > > sockets with socket_accept() work like a charm. But I can't get
> > > socket_select() to work.
> >
> >That's because of the patches that were made. Try specifying 0x7FFF or
> >something equally large for max_fd (the first argument to select) and it
> >*should* work.
> >
> >The reason it doesn't work is because file descriptors were changed from
> >ints to resources, and since the first argument to select() (and therefore
> >socket_select()) must be greater than the largest file descriptor in the
> >set, and resource number != file descriptor.. should be obvious. :)
> >
> >Try something like:
> >
> >--
> >$someport = 3334;
> >
> >$fd = socket_create_listen($someport, 5);
> >
> >$fd_set = socket_fd_alloc();
> >socket_fd_set($fd, $fd_set);
> >
> >socket_select(0x7fff, $fd_set, 0, 0, 0, 0);
> 
> we can add a support function which return's the php_socket->socket integer.

Glad someone came up with this.

Since socket_select() always wants highest +1, couldn't this be
implemented into socket_select() to go through all socket sets
and get the number itself ?

Or are there good reasons to let the user specify the value on
its own ?

- Markus

-- 
PHP Development Mailing List 
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 #12297 Updated: printer

2001-07-23 Thread vere

ID: 12297
User updated by: [EMAIL PROTECTED]
Reported By: [EMAIL PROTECTED]
Status: Bogus
Bug Type: PHP options/info functions
Operating System: Windows 98
PHP Version: 4.0.6
New Comment:

I can't write to printer, because the message don't me allow: 

Fatal error: Call to undefined function: printer_open() in 
c:\apache\htdocs\sam\polizas\impresion.php on line 10

Thanks for help me


Previous Comments:


[2001-07-21 11:15:49] [EMAIL PROTECTED]

You need to either compile ext/printer or get it from www.php4win.de. Note: This only 
works on Windows.



[2001-07-21 11:08:48] [EMAIL PROTECTED]

I have to send to print a page from browser, but the function printer_open(); it is 
not known. it excuses my ingles. thanks to help me.






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


-- 
PHP Development Mailing List 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP-DEV] cvs socket extension

2001-07-23 Thread Markus Fischer

On Mon, Jul 23, 2001 at 07:20:34AM -0700, Chris Vandomelen wrote : 
> > > >
> > > >socket_select(0x7fff, $fd_set, 0, 0, 0, 0);
> > >
> > > we can add a support function which return's the php_socket->socket integer.
> >
> > Glad someone came up with this.
> >
> > Since socket_select() always wants highest +1, couldn't this be
> > implemented into socket_select() to go through all socket sets
> > and get the number itself ?
> >
> > Or are there good reasons to let the user specify the value on
> > its own ?
> >
> 
> In theory, the user isn't going to be specifying sockets that aren't
> accessible as resources.
> 
> The best way around this (IMHO) is to define a php_fd_set something like:
> 
> struct php_fd_set {
>   fd_set the_set;
>   intmax_fd;
> };
> 
> Then, whenver someone calls fd_set() or fd_zero(), change
> php_fd_set.max_fd appropriately as well as updating php_fd_set.the_set,
> and in socket_select(), check all of the max_fd values.
> 
> Removing the first arg to socket_select(), if that's implemented, wouldn't
> be a bad idea either.

+1

But, someone with good knowledge of socket should comment if it
ever makes sense not to specify highest+1 so we can really drop
the first parameter.

- Markus

-- 
PHP Development Mailing List 
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 #12319: Apache shutdowns with a distant MSSQL 6.5 if connection failed

2001-07-23 Thread benfadel

From: [EMAIL PROTECTED]
Operating system: win32
PHP version:  4.0.5
PHP Bug Type: MSSQL related
Bug description:  Apache shutdowns with a distant MSSQL 6.5  if connection failed 

Apache shutdowns when connection to a distant MSSQL 6.5  server failed (on
a local network). No problem if the connection parameters are correctly
intered (host name and password). Please let me know if you have a solution
!

Apache error message is:


Thanks in advance..


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


-- 
PHP Development Mailing List 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP-DEV] cvs socket extension

2001-07-23 Thread Chris Vandomelen

> > >
> > >socket_select(0x7fff, $fd_set, 0, 0, 0, 0);
> >
> > we can add a support function which return's the php_socket->socket integer.
>
> Glad someone came up with this.
>
> Since socket_select() always wants highest +1, couldn't this be
> implemented into socket_select() to go through all socket sets
> and get the number itself ?
>
> Or are there good reasons to let the user specify the value on
> its own ?
>

In theory, the user isn't going to be specifying sockets that aren't
accessible as resources.

The best way around this (IMHO) is to define a php_fd_set something like:

struct php_fd_set {
fd_set the_set;
intmax_fd;
};

Then, whenver someone calls fd_set() or fd_zero(), change
php_fd_set.max_fd appropriately as well as updating php_fd_set.the_set,
and in socket_select(), check all of the max_fd values.

Removing the first arg to socket_select(), if that's implemented, wouldn't
be a bad idea either.

Chris


-- 
PHP Development Mailing List 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP-DEV] problem

2001-07-23 Thread Rodrigo Meurer - Base51



Hi!  Im sorry 
for this, I read the instructions, but Im trying to unsubscribe sending an empty 
email to [EMAIL PROTECTED] 
and it is not working!!
 
I subscrided 4 days 
ago with the email [EMAIL PROTECTED]  
that is a redirection to [EMAIL PROTECTED], maybe it is this 
that is wrong.  So, I cant unsubscribe 
I dont know the 
admin email.  Please someone could help with this?
 

::: R o d r i g o M e u r e r [EMAIL PROTECTED]B 
a s e 5 1 - W e b p r o j e c t sTel 51 332.8813 / Fax 51 321.1405: : : 
www.base51.com.br : : 
:
 


Re: [PHP-DEV] problem

2001-07-23 Thread Andy

Please go to http://www.php.net/support.php and
click on the radio button corresponding to PHP
Development List.  Go down to the bottom and
type the email YOU SIGNED UP WITH.  Then click
unsubscribe.  You should get a confirmation
email.  Respond to that and you should be
unsubscribed.

On Mon, 23 Jul 2001, Rodrigo Meurer - Base51
wrote: > 
> Hi!  Im sorry for this, I read the instructions, but Im trying to
> unsubscribe sending an empty email to [EMAIL PROTECTED] and
> it is not working!!
> 
> I subscrided 4 days ago with the email [EMAIL PROTECTED]  that is
> a redirection to [EMAIL PROTECTED], maybe it is this that is wrong.  So,
> I cant unsubscribe 
> 
> I dont know the admin email.  Please someone could help with this?
> 
> ::: R o d r i g o M e u r e r 
> [EMAIL PROTECTED]
> B a s e 5 1 - W e b p r o j e c t s
> Tel 51 332.8813 / Fax 51 321.1405
> : : : www.base51.com.br : : :
> 
> 
> 


Content-Type: text/html; name="unnamed"
Content-Transfer-Encoding: quoted-printable
Content-Description: 


-- 
PHP Development Mailing List 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP-DEV] cvs socket extension

2001-07-23 Thread Markus Fischer

On Mon, Jul 23, 2001 at 07:20:34AM -0700, Chris Vandomelen wrote : 
> > > >
> > > >socket_select(0x7fff, $fd_set, 0, 0, 0, 0);
> > >
> > > we can add a support function which return's the php_socket->socket integer.
> >
> > Glad someone came up with this.
> >
> > Since socket_select() always wants highest +1, couldn't this be
> > implemented into socket_select() to go through all socket sets
> > and get the number itself ?
> >
> > Or are there good reasons to let the user specify the value on
> > its own ?
> >
> 
> In theory, the user isn't going to be specifying sockets that aren't
> accessible as resources.
> 
> The best way around this (IMHO) is to define a php_fd_set something like:
> 
> struct php_fd_set {
>   fd_set the_set;
>   intmax_fd;
> };

Btw, is this really enough information ?

Consider this:
You use FD_SET() to add a socket to the set (you just bump_up
max_fd if socket > max_Fd)

But when using FD_CLR() to remove a socket how do we know
which socket in this set has the highest number now
and whats the number anyway (beside 42) then ?

Seems like we need a list for every set containing the current
socket numbers in the set (if I'm not totally wrong :) because
AFAIK if you don't keep a list of the numbers of a set without
brute force you can't retrieve the list.


Maybe we should just stick to the single function which in
addition returns the handle of the socket itself.


- Markus

-- 
PHP Development Mailing List 
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 #12297 Updated: printer

2001-07-23 Thread hholzgra

ID: 12297
Updated by: hholzgra
Reported By: [EMAIL PROTECTED]
Status: Bogus
Bug Type: PHP options/info functions
Operating System: Windows 98
PHP Version: 4.0.6
New Comment:

yes, and sebastian has already explained why ...

do you have a php_printer.dll and removed the ';'
in front of the "extension=php_printer.dll" line
in your php.ini ?

by the way: this is *not* a php bug, so you
should ask for help on [EMAIL PROTECTED]
or maybe the Spanish mailing list mentioned
near the bottom of http://php.net/support.php

Previous Comments:


[2001-07-23 10:19:34] [EMAIL PROTECTED]

I can't write to printer, because the message don't me allow: 

Fatal error: Call to undefined function: printer_open() in 
c:\apache\htdocs\sam\polizas\impresion.php on line 10

Thanks for help me




[2001-07-21 11:15:49] [EMAIL PROTECTED]

You need to either compile ext/printer or get it from www.php4win.de. Note: This only 
works on Windows.



[2001-07-21 11:08:48] [EMAIL PROTECTED]

I have to send to print a page from browser, but the function printer_open(); it is 
not known. it excuses my ingles. thanks to help me.






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


-- 
PHP Development Mailing List 
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 #12287 Updated: Apache config fails with php module activated

2001-07-23 Thread grant

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

When I remove --with-imap from the PHP config, Apache will compile.

Previous Comments:


[2001-07-20 13:03:11] [EMAIL PROTECTED]

Apache's ./configure works fine, until I tell it to activate the module.  Then it 
fails with a compiler option sanity check.  The error report is blank.  Weird.  Apache 
1.3.20, PHP4.0.6.  Both downloaded from the main sites yesterday.

./configure --with-imap --with-pgsql --with-apache=../apache_1.3.20 
--enable-track-vars

./configure --activate-module=src/modules/php4/libphp4.a

Configuring for Apache, Version 1.3.20
 + using installation path layout: Apache (config.layout)
 + activated php4 module (modules/php4/libphp4.a)
Creating Makefile
Creating Configuration.apaci in src
cd ..; gcc  -DLINUX=22 -I/usr/src/php-4.0.6 -I/usr/src/php-4.0.6/main 
-I/usr/src/php-4.0.6/main -I/usr/src/php-4.0.6/Zend -I/usr/src/php-4.0.6/Zend 
-I/usr/src/php-4.0.6/TSRM -I/usr/src/php-4.0.6/TSRM -I/usr/src/php-4.0.6 -DUSE_EXPAT 
-I./lib/expat-lite -DNO_DL_NEEDED `./apaci` -o helpers/dummy helpers/dummy.c   
-Wl,-rpath,/usr/local/pgsql/lib  -rdynamic -L/usr/local/pgsql/lib -Lmodules/php4 
-L../modules/php4 -L../../modules/php4 -lmodphp4  -lpam -lc-client  -ldl -lpq -lpam 
-lcrypt -lresolv -lm -ldl -lnsl  -lresolv   -lm -lcrypt
/usr/lib/libc-client.so: undefined reference to `mm_expunged'
/usr/lib/libc-client.so: undefined reference to `mm_diskerror'
/usr/lib/libc-client.so: undefined reference to `mm_lsub'
/usr/lib/libc-client.so: undefined reference to `mm_flags'
/usr/lib/libc-client.so: undefined reference to `mm_fatal'
/usr/lib/libc-client.so: undefined reference to `mm_nocritical'
/usr/lib/libc-client.so: undefined reference to `mm_notify'
/usr/lib/libc-client.so: undefined reference to `mm_searched'
/usr/lib/libc-client.so: undefined reference to `mm_status'
/usr/lib/libc-client.so: undefined reference to `mm_login'
/usr/lib/libc-client.so: undefined reference to `mm_list'
/usr/lib/libc-client.so: undefined reference to `mm_critical'
/usr/lib/libc-client.so: undefined reference to `mm_exists'
/usr/lib/libc-client.so: undefined reference to `mm_log'
/usr/lib/libc-client.so: undefined reference to `mm_dlog'
collect2: ld returned 1 exit status
make: *** [dummy] Error 1
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
 + 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 
= End of Error Report =

 Aborting!






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


-- 
PHP Development Mailing List 
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 #12320: Nothing from getenv

2001-07-23 Thread stefan

From: [EMAIL PROTECTED]
Operating system: Win 2K
PHP version:  4.0.6
PHP Bug Type: IIS related
Bug description:  Nothing from getenv

Hi !

The combination of Win2K and IIS5 seams to prevent the nice function getenv
to return values. Infos like 'SERVER_SOFTWARE' and so are correctly stored
in $HTTP_SERVER_VARS, but why shoul I have 2 access the infos directly via
an awfull code like  $x= $GLOBALS[]... if I got an getenv-function ...

regards stefan

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


-- 
PHP Development Mailing List 
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 #10447 Updated: ccvs_*() functions segfault when given invalid session ID

2001-07-23 Thread bmcadams

ID: 10447
Updated by: bmcadams
Reported By: [EMAIL PROTECTED]
Status: Assigned
Bug Type: CCVS related
Operating System: Linux Mandrake 7.0
PHP Version: 4.0 Latest CVS (22/04/2001)
Assigned To: [EMAIL PROTECTED]
New Comment:

This issue is still outstanding.
FTR, the people at RedHat who wrote this code (Originally HKS Systems) were all laid 
off, and the project was assigned to the newly acquired 'Stronghold' division; none of 
whom have a clue about the CCVS Code.

They are more or less telling me it's our responsibility to preven the user from 
passing a bad session.  Anyone got any bright ideas on easy ways to track if a session 
being passed in was one created during this session of PHP? ...


Previous Comments:


[2001-04-22 20:38:14] [EMAIL PROTECTED]

The fix that sterling put in place will at the least check if the session being passed 
is a string value: this still doesn't protect from someone arbitrarily passing any old 
string (for example "crash_ccvs"). 

While obviously it is up to the programmer to be smart and not pass a bad session to 
CCVS, CCVS Should not be segfaulting if they pass a bad value.

I am looking into a way to trap this value from being bad.



[2001-04-22 20:29:54] [EMAIL PROTECTED]

No, he didn't. :) The problem itself is that session IDs
are completely exposed (i.e. not resource- or list-based)
and there is no error-checking in the module. The check
that was added didn't help; the same code still segfaults
and all of the other affected functions are still affected.




[2001-04-22 20:21:19] [EMAIL PROTECTED]

Sterling fixed this in CVS.

- James



[2001-04-22 20:17:11] [EMAIL PROTECTED]

I have duplicated this issue on my end and I am looking into it.

Fix imminent.



[2001-04-22 19:37:22] [EMAIL PROTECTED]

The ccvs functions segfault when given an invalid session ID.

This works fine:


This segfaults:


Backtrace:
/home/www/php
shanna% gdb php
GNU gdb 19991116
Copyright 1998 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 "i586-mandrake-linux"...
(gdb) run ./ccvstest
Starting program: /usr/local/bin/php ./ccvstest
X-Powered-By: PHP/4.0.6-dev
Content-type: text/html

Trying a presumably invalid configuration: 
Returned: ''; Return type: string

Trying a presumably valid configuration:
Adding an invoice to the session:
Looking up the new invoice:
PHP Warning:  Undefined variable:  sssion in ./ccvstest on line 17

Warning:  Undefined variable:  sssion in ./ccvstest on line 
17
./ccvstest(17) : Warning - Undefined variable:  sssion

Program received signal SIGSEGV, Segmentation fault.
0x4024b791 in strlen () from /lib/libc.so.6
(gdb) bt
#0  0x4024b791 in strlen () from /lib/libc.so.6
#1  0x8071a0d in php_if_ccvs_lookup (ht=3, return_value=0x831164c, this_ptr=0x0, 
return_value_used=1) at ccvs.c:486
#2  0x8171cba in execute (op_array=0x82f5a3c) at ./zend_execute.c:1494
#3  0x8138084 in zend_execute_scripts (type=8, file_count=3) at zend.c:743
#4  0x806a27f in php_execute_script (primary_file=0xb924) at main.c:1196
#5  0x806825c in main (argc=2, argv=0xb9b4) at cgi_main.c:735
(gdb) 






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


-- 
PHP Development Mailing List 
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 #11706 Updated: POSTs to CGI scripts on Apache 1.3.20 server fail

2001-07-23 Thread kalowsky

ID: 11706
Updated by: kalowsky
Reported By: [EMAIL PROTECTED]
Old Status: Feedback
Status: Closed
Bug Type: Apache related
Operating System: Solaris 7 Sparc 64-Bit
PHP Version: 4.0.6
New Comment:

no user feedback.  if this bug is still valid please reopen it.

Previous Comments:


[2001-06-27 09:25:19] [EMAIL PROTECTED]

I can not reproduce this. POST works just fine for me. 
I have also mod_perl (compiled as DSO) and PHP 4.0.6 compiled with a little more 
options than you.

Is there anything in your log files?
You could also try changing the load order of the DSO's.

--Jani





[2001-06-26 14:19:20] [EMAIL PROTECTED]

We recently upgraded our Apache server from 1.3.12 to
1.3.20.  In the process, we also upgraded to mod_perl 1.25
and decided to upgrade PHP from version 3 to version 4.0.6.
After compiling Apache with DSO support, I installed the new
server with the modules. We immediately noticed that every
CGI script (Perl, C compiled, etc) that received a POST
failed after the upgrade.

To test, I created a simple HTML form which posted to the
following Perl script:

* START test.pl *
#!/usr/bin/perl -w

use strict;

print "Content-Type: text/html; charset=ISO-8859-1\n\n";

print "\n";

while (my $elem = )
{
  print $elem . "\n";
}

print "\n";
* END test.pl *

When tested on an older server, we see:


recipient=bweldon%40georgefox.edu&subject=brad-test&First_Name=asdf&submit=submit


When tested on the new server, we see:




However, if I comment out from our apache httpd.conf:

LoadModule php4_modulelibexec/libphp4.so

the server starts working correctly (with the traditional
behavior for our perl and C compiled CGI scripts). This is a
show-stopper! Please advise on how to fix! Thank you in
advance!

PHP 4.0.6 compiled with:

./configure \
--prefix=/opt/php4 \
--with-apxs=/opt/apache-ssl/bin/apxs \
--with-ldap=/opt/ldap \
--with-mysql=/opt/mysql \
--enable-ftp \
--with-openssl=/opt/openssl \
--with-db2=/opt/BerkeleyDB \
--with-snmp=/opt/ucd-snmp \
--enable-ucd-snmp-hack \
--with-mm=/opt/mm \
--with-sybase=/opt/sybase/openclient \
--without-gdbm \
--enable-sockets





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


-- 
PHP Development Mailing List 
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 #11976 Updated: image_copy_resized does not work properly

2001-07-23 Thread yannbarrault

ID: 11976
User updated by: [EMAIL PROTECTED]
Reported By: [EMAIL PROTECTED]
Status: Feedback
Bug Type: GD related
Operating System: windows 98 SE
PHP Version: 4.0.6
New Comment:

My script should not draw a black image but a blue graph( blue rectangles).
Actually, with php4.0.6, my script draw a black square and with php4.0.5 my script 
draw a graphics with blue rectangles.
It works with php4.0.6 only if I don't use the function image_copy_resized. So In 
conclusion, I think that there is a problem with this function on php4.0.6 with W98 
OS??

Previous Comments:


[2001-07-23 09:33:38] [EMAIL PROTECTED]

so what is the problem.  The image works now...  Just make sure
you set the header to "image/png" or whatever file type
the image is.



[2001-07-23 06:24:34] [EMAIL PROTECTED]

When I removed the header function (or set it to "text/html"), I have this on my 
browser:
" PNG "??
If I keept "image/png" or "image/jpeg", I have a all-in black image??  



[2001-07-21 20:51:42] [EMAIL PROTECTED]

Works fine for me (I am using Linux.)  Try removing the
header function (or set it to "text/html") and see if there
are any errors/warnings that are corrupting the image.



[2001-07-09 10:04:13] [EMAIL PROTECTED]

I used this function in  a script with PHP 4.0.5. It works very well. I installed PHP 
4.0.6 and the script doesn't work anymore?
I found that it was this function who didn't work well.

Sorry about my English.

See my script:






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


-- 
PHP Development Mailing List 
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 #11649 Updated: Unable to Fork errors

2001-07-23 Thread kalowsky

ID: 11649
Updated by: kalowsky
Reported By: [EMAIL PROTECTED]
Status: Feedback
Bug Type: Program Execution
Operating System: Win98
PHP Version: 4.0.6
New Comment:

did this work with derick's suggestion?

Previous Comments:


[2001-06-25 05:35:09] [EMAIL PROTECTED]

Try it with the full path to the executable, like this:
exec ("c:\windows\playmp3.exe test.mp3");



[2001-06-25 03:56:26] [EMAIL PROTECTED]

According to the ChangeLog, the inablity to fork issue in the exec family has been 
fixed on Win32 in 4.0.6.  Unfortunately, this is not so.  Calling system(), exec(), or 
passthru() produces the following error msg:

Warning: Unable to fork [test.mp3] in exec.php at line 3

Calling escapeshellcmd() or escapeshellarg() does not give an error or warning 
message, but also does not execute the command.  The above mentions problems occur 
when the functions are called when running PHP as an Apache module, or by executing 
the script from command line.  Below is a description of my setup, please let me know 
if additional information is needed.

OS: Win98 - SE
Processor: AMD K6-2/350
RAM: 192 megs
Apache version: 1.3.20 (run as service)
PHP: 4.0.6 and 4.0.5 (with Zend Optimizer)
Enabled PHP extensions: php_bz2.dll, php_gd.dll, php_imap.dll, php_zlib.dll
Output Buffering: On
PHP-GTK: version 0.0.4





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


-- 
PHP Development Mailing List 
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 #11680 Updated: Submission errors

2001-07-23 Thread kalowsky

ID: 11680
Updated by: kalowsky
Reported By: [EMAIL PROTECTED]
Old Status: Feedback
Status: Closed
Bug Type: HTTP related
Operating System: Win2K Pro SP2
PHP Version: 4.0.6
New Comment:

closed due to lack of user feedback.  if this bug is still valid, please reopen the 
bug.

Previous Comments:


[2001-06-26 06:06:42] [EMAIL PROTECTED]

You have to include a short but COMPLETE script which
can be copypasted to a file and tested. This kind of
pieces of some large script are useless since they can not
be used to debug anything.





[2001-06-25 21:21:02] [EMAIL PROTECTED]

Ok, I will try this again, maybe I can provide some sort of script to help.

Whenever someone submits a vote or newsitem to my site it says "No input file 
specified"

As admin I can still edit my stuff, just not post a new news item (I can post polls 
but not vote).

Anyhow, here is a portion of my functions file that deals with voting, maybe it will 
help.

if (isset($HTTP_POST_VARS["poll"])) {
$pid = $HTTP_POST_VARS["pid"];
$vote = $HTTP_POST_VARS["vote"];

postVote($userinfo["user_id"], $pid, $vote, $REMOTE_ADDR);
}

and this error appears in my log:

Premature end of script headers: c:/php/php.exe

hope you guys can help, thanks.





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


-- 
PHP Development Mailing List 
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 #12320 Updated: Nothing from getenv

2001-07-23 Thread hholzgra

ID: 12320
Updated by: hholzgra
Reported By: [EMAIL PROTECTED]
Old Status: Open
Status: Bogus
Bug Type: IIS related
Operating System: Win 2K
PHP Version: 4.0.6
New Comment:

because $HTTP_SERVER_VARS is protable across server APIs
(although not every variable in it is set by every API)
while getenv() is specific to only some of them

remember that gentenv() is a generic environment access
function and as such OS-dependant (on some operating
systems you might even have no such environment at all)

Previous Comments:


[2001-07-23 11:36:53] [EMAIL PROTECTED]

Hi !

The combination of Win2K and IIS5 seams to prevent the nice function getenv to return 
values. Infos like 'SERVER_SOFTWARE' and so are correctly stored in $HTTP_SERVER_VARS, 
but why shoul I have 2 access the infos directly via an awfull code like  $x= 
$GLOBALS[]... if I got an getenv-function ...

regards stefan






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


-- 
PHP Development Mailing List 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP-DEV] cvs socket extension

2001-07-23 Thread Chris Vandomelen

> On Mon, Jul 23, 2001 at 07:20:34AM -0700, Chris Vandomelen wrote :
> > > > >
> > > > >socket_select(0x7fff, $fd_set, 0, 0, 0, 0);
> > > >
> > > > we can add a support function which return's the php_socket->socket integer.
> > >
> > > Glad someone came up with this.
> > >
> > > Since socket_select() always wants highest +1, couldn't this be
> > > implemented into socket_select() to go through all socket sets
> > > and get the number itself ?
> > >
> > > Or are there good reasons to let the user specify the value on
> > > its own ?
> > >
> >
> > In theory, the user isn't going to be specifying sockets that aren't
> > accessible as resources.
> >
> > The best way around this (IMHO) is to define a php_fd_set something like:
> >
> > struct php_fd_set {
> > fd_set the_set;
> > intmax_fd;
> > };
>
> Btw, is this really enough information ?
>
> Consider this:
> You use FD_SET() to add a socket to the set (you just bump_up
> max_fd if socket > max_Fd)
>
> But when using FD_CLR() to remove a socket how do we know
> which socket in this set has the highest number now
> and whats the number anyway (beside 42) then ?

If one is removed, it doesn't hurt the end result. If one is added outside
of max_fd and max_fd isn't raised appropriately, you run into trouble.

Chris


-- 
PHP Development Mailing List 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP-DEV] Bug #11976 Updated: image_copy_resized does not work properly

2001-07-23 Thread Andy

Ok, I put the script on my computer, and ran it. 
The result of the script is attached as a PNG
image.  Is this what it is supposed to look like?

On Mon, 23 Jul 2001, [EMAIL PROTECTED] wrote:
> ID: 11976
> User updated by: [EMAIL PROTECTED]
> Reported By: [EMAIL PROTECTED]
> Status: Feedback
> Bug Type: GD related
> Operating System: windows 98 SE
> PHP Version: 4.0.6
> New Comment:
> 
> My script should not draw a black image but a blue graph( blue rectangles).
> Actually, with php4.0.6, my script draw a black square and with php4.0.5 my script 
>draw a graphics with blue rectangles.
> It works with php4.0.6 only if I don't use the function image_copy_resized. So In 
>conclusion, I think that there is a problem with this function on php4.0.6 with W98 
>OS??
> 
> Previous Comments:
> 
> 
> [2001-07-23 09:33:38] [EMAIL PROTECTED]
> 
> so what is the problem.  The image works now...  Just make sure
> you set the header to "image/png" or whatever file type
> the image is.
> 
> 
> 
> [2001-07-23 06:24:34] [EMAIL PROTECTED]
> 
> When I removed the header function (or set it to "text/html"), I have this on my 
>browser:
> " PNG "??
> If I keept "image/png" or "image/jpeg", I have a all-in black image??  
> 
> 
> 
> [2001-07-21 20:51:42] [EMAIL PROTECTED]
> 
> Works fine for me (I am using Linux.)  Try removing the
> header function (or set it to "text/html") and see if there
> are any errors/warnings that are corrupting the image.
> 
> 
> 
> [2001-07-09 10:04:13] [EMAIL PROTECTED]
> 
> I used this function in  a script with PHP 4.0.5. It works very well. I installed 
>PHP 4.0.6 and the script doesn't work anymore?
> I found that it was this function who didn't work well.
> 
> Sorry about my English.
> 
> See my script:
>   Header("Content-type: image/png");
>  $x=400;
>  $y=400;
>  $data=array (3, 1, 7, 2, 5, 4, 6);
>  $im = imagecreate($x,$y);
>  $black = ImageColorAllocate($im, 0,0,0);
>  $blue = ImageColorAllocate($im, 0,36,135);
>  $white = ImageColorAllocate($im, 255,255,255);
>  ImageFilledRectangle($im,0,0,$x,$y,$white);
>  imageline($im,0,50,$x,50,$black);
>  imageline($im,$x-50,0,$x-50,$y,$black);
>  for($i=0;$i  {
>  ImageFilledRectangle($im,$i*50+15,51,$i*50+40,51+$data[$i]*30,$blue);
>  }
>  $image=imagecreate(500,500);
>  imagecopyresized($image,$im,0,0,0,0,400,400,400,400);
>  Imagepng($image);
> ?>
> 
> 
> 
> 
> 
> Edit this bug report at http://bugs.php.net/?id=11976&edit=1
> 
> 
> -- 
> PHP Development Mailing List 
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
 test.png

-- 
PHP Development Mailing List 
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 #11722 Updated: unable to fork with system command

2001-07-23 Thread kalowsky

ID: 11722
Updated by: kalowsky
Reported By: [EMAIL PROTECTED]
Old Status: Feedback
Status: Closed
Bug Type: Program Execution
Operating System: win98
PHP Version: 4.0.6
New Comment:

closed due to no user feedback.  if this bug is still valid, please reopen the bug.

Previous Comments:


[2001-06-27 22:07:52] [EMAIL PROTECTED]

You have a time machine? Can you give me a copy of PHP 4.1?  :)

I assume you meant PHP 4.0.1? 
system() works for me just fine with PHP 4.0.6.
Are you sure you have installed PHP correctly?
Is it run as CGI or as Apache module?





[2001-06-27 03:23:09] [EMAIL PROTECTED]

I am running a appache 1.3 webserver with PHP 4.1

wen i use the command: system('md xxx');
everything works fine

now i have installed php4.6 and i get the message 
"unable to fork" wenn i run the same script.
what am i doing wrong?
Do i need to start the process in background with an other program??? 

Many thanks in advance.
PHP is perfect.

Erik





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


-- 
PHP Development Mailing List 
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 #11726 Updated: undefined symbol alloca while building apache

2001-07-23 Thread kalowsky

ID: 11726
Updated by: kalowsky
Reported By: [EMAIL PROTECTED]
Old Status: Feedback
Status: Closed
Bug Type: Compile Failure
Operating System: AIX 4.3.3.0 ML08
PHP Version: 4.0.6
New Comment:

no user feedback.

Previous Comments:


[2001-06-27 11:55:17] [EMAIL PROTECTED]

Please add your configure line to this report.





[2001-06-27 04:18:02] [EMAIL PROTECTED]

while compiling apache 1.3.20 + PHP_4.0.6 + Oracle 8.1.7 on AIX 4.3.3 i have this.
this is the same pb as Bug id #10562

  cc  -DAIX=43 -DUSE_PTHREAD_SERIALIZED_ACCEPT -U__STR__ -DAIX_BIND_PROCESSOR 
-qnogenpcomp -qnousepcomp -I/home/root/php-4.0.6 -I/home/root/php-4.0.6/main 
-I/home/root/php-4.0.6/main -I/home/root/php-4.0.6/Zend -I/home/root/php-4.0.6/Zend 
-I/home/root/php-4.0.6/TSRM -I/home/root/php-4.0.6/TSRM -I/home/root/php-4.0.6 
-DUSE_EXPAT -I./lib/expat-lite -DNO_DL_NEEDED `./apaci` -lm -lpthread-o httpd 
buildmark.o modules.o  modules/php4/libphp4.a  modules/standard/libstandard.a  
main/libmain.a  ./os/unix/libos.a  ap/libap.a  lib/expat-lite/libexpat.a  
-R/oraker01/app/oracle/product/8.1.7/lib  -L/oraker01/app/oracle/product/8.1.7/lib 
-Lmodules/php4 -L../modules/php4 -L../../modules/php4 -lmodphp4   -ldl -lld -lbsd_r 
-lm -lodm -ldl -lcrypt -lbind -lm -ldl  -lclntsh  
ld: 0706-027 The -R /oraker01/app/oracle/product/8.1.7/lib flag is ignored.
ld: 0711-317 ERROR: Undefined symbol: .alloca
ld: 0711-345 Use the -bloadmap or -bnoquiet option to obtain more information.
make: The error code from the last command is 8.


Stop.
make: The error code from the last command is 2.


Stop.
make: The error code from the last command is 2.


Stop.


any idea ???

regards

JMB





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


-- 
PHP Development Mailing List 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP-DEV] Bug #11976 Updated: image_copy_resized does not work properly

2001-07-23 Thread Andy

On Mon, 23 Jul 2001, Andy wrote:
> 
> Ok, I put the script on my computer, and ran it. 
> The result of the script is attached as a PNG
> image.  Is this what it is supposed to look like?
> 
> On Mon, 23 Jul 2001, [EMAIL PROTECTED] wrote:
> > ID: 11976
> > User updated by: [EMAIL PROTECTED]
> > Reported By: [EMAIL PROTECTED]
> > Status: Feedback
> > Bug Type: GD related
> > Operating System: windows 98 SE
> > PHP Version: 4.0.6
> > New Comment:
> > 
> > My script should not draw a black image but a blue graph( blue rectangles).
> > Actually, with php4.0.6, my script draw a black square and with php4.0.5 my script 
>draw a graphics with blue rectangles.
> > It works with php4.0.6 only if I don't use the function image_copy_resized. So In 
>conclusion, I think that there is a problem with this function on php4.0.6 with W98 
>OS??
> > 
> > Previous Comments:
> > 
> > 
> > [2001-07-23 09:33:38] [EMAIL PROTECTED]
> > 
> > so what is the problem.  The image works now...  Just make sure
> > you set the header to "image/png" or whatever file type
> > the image is.
> > 
> > 
> > 
> > [2001-07-23 06:24:34] [EMAIL PROTECTED]
> > 
> > When I removed the header function (or set it to "text/html"), I have this on my 
>browser:
> > " PNG "??
> > If I keept "image/png" or "image/jpeg", I have a all-in black image??  
> > 
> > 
> > 
> > [2001-07-21 20:51:42] [EMAIL PROTECTED]
> > 
> > Works fine for me (I am using Linux.)  Try removing the
> > header function (or set it to "text/html") and see if there
> > are any errors/warnings that are corrupting the image.
> > 
> > 
> > 
> > [2001-07-09 10:04:13] [EMAIL PROTECTED]
> > 
> > I used this function in  a script with PHP 4.0.5. It works very well. I installed 
>PHP 4.0.6 and the script doesn't work anymore?
> > I found that it was this function who didn't work well.
> > 
> > Sorry about my English.
> > 
> > See my script:
> >  >  Header("Content-type: image/png");
> >  $x=400;
> >  $y=400;
> >  $data=array (3, 1, 7, 2, 5, 4, 6);
> >  $im = imagecreate($x,$y);
> >  $black = ImageColorAllocate($im, 0,0,0);
> >  $blue = ImageColorAllocate($im, 0,36,135);
> >  $white = ImageColorAllocate($im, 255,255,255);
> >  ImageFilledRectangle($im,0,0,$x,$y,$white);
> >  imageline($im,0,50,$x,50,$black);
> >  imageline($im,$x-50,0,$x-50,$y,$black);
> >  for($i=0;$i >  {
> >  ImageFilledRectangle($im,$i*50+15,51,$i*50+40,51+$data[$i]*30,$blue);
> >  }
> >  $image=imagecreate(500,500);
> >  imagecopyresized($image,$im,0,0,0,0,400,400,400,400);
> >  Imagepng($image);
> > ?>
> > 
> > 
> > 
> > 
> > 
> > Edit this bug report at http://bugs.php.net/?id=11976&edit=1
> > 
> > 
> > -- 
> > PHP Development Mailing List 
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> > To contact the list administrators, e-mail: [EMAIL PROTECTED]


Content-Type: image/png; name="test.png"
Content-Transfer-Encoding: 8bit
Content-Description: 



Content-Type: text/plain; name="unnamed"
Content-Transfer-Encoding: 7bit
Content-Description: 


-- 
PHP Development Mailing List 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




RE: [PHP-DEV] Bug #10447 Updated: ccvs_*() functions segfault when given invalid session ID

2001-07-23 Thread Brendan McAdams

So does anyone have ideas on how to fix this?  I'm hoping to come up
with a plan of action...

-
Brendan W. McAdams   |   [EMAIL PROTECTED]
Senior Applications Developer | (212) 208-9116
TheMuniCenter, LLC | www.themunicenter.com

"Always listen to experts. They'll tell you what can't be done, and why.
Then do it."
- Robert A. Heinlein

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Monday, July 23, 2001 11:38
To: [EMAIL PROTECTED]
Subject: [PHP-DEV] Bug #10447 Updated: ccvs_*() functions segfault when
given invalid session ID


ID: 10447
Updated by: bmcadams
Reported By: [EMAIL PROTECTED]
Status: Assigned
Bug Type: CCVS related
Operating System: Linux Mandrake 7.0
PHP Version: 4.0 Latest CVS (22/04/2001)
Assigned To: [EMAIL PROTECTED]
New Comment:

This issue is still outstanding.
FTR, the people at RedHat who wrote this code (Originally HKS Systems)
were all laid off, and the project was assigned to the newly acquired
'Stronghold' division; none of whom have a clue about the CCVS Code.

They are more or less telling me it's our responsibility to preven the
user from passing a bad session.  Anyone got any bright ideas on easy
ways to track if a session being passed in was one created during this
session of PHP? ...


Previous Comments:


[2001-04-22 20:38:14] [EMAIL PROTECTED]

The fix that sterling put in place will at the least check if the
session being passed is a string value: this still doesn't protect from
someone arbitrarily passing any old string (for example "crash_ccvs"). 

While obviously it is up to the programmer to be smart and not pass a
bad session to CCVS, CCVS Should not be segfaulting if they pass a bad
value.

I am looking into a way to trap this value from being bad.



[2001-04-22 20:29:54] [EMAIL PROTECTED]

No, he didn't. :) The problem itself is that session IDs
are completely exposed (i.e. not resource- or list-based)
and there is no error-checking in the module. The check
that was added didn't help; the same code still segfaults
and all of the other affected functions are still affected.




[2001-04-22 20:21:19] [EMAIL PROTECTED]

Sterling fixed this in CVS.

- James



[2001-04-22 20:17:11] [EMAIL PROTECTED]

I have duplicated this issue on my end and I am looking into it.

Fix imminent.



[2001-04-22 19:37:22] [EMAIL PROTECTED]

The ccvs functions segfault when given an invalid session ID.

This works fine:


This segfaults:


Backtrace:
/home/www/php
shanna% gdb php
GNU gdb 19991116
Copyright 1998 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 "i586-mandrake-linux"...
(gdb) run ./ccvstest
Starting program: /usr/local/bin/php ./ccvstest
X-Powered-By: PHP/4.0.6-dev
Content-type: text/html

Trying a presumably invalid configuration: 
Returned: ''; Return type: string

Trying a presumably valid configuration:
Adding an invoice to the session:
Looking up the new invoice:
PHP Warning:  Undefined variable:  sssion in ./ccvstest on line 17

Warning:  Undefined variable:  sssion in ./ccvstest on
line 17
./ccvstest(17) : Warning - Undefined variable:  sssion

Program received signal SIGSEGV, Segmentation fault.
0x4024b791 in strlen () from /lib/libc.so.6
(gdb) bt
#0  0x4024b791 in strlen () from /lib/libc.so.6
#1  0x8071a0d in php_if_ccvs_lookup (ht=3, return_value=0x831164c,
this_ptr=0x0, return_value_used=1) at ccvs.c:486
#2  0x8171cba in execute (op_array=0x82f5a3c) at ./zend_execute.c:1494
#3  0x8138084 in zend_execute_scripts (type=8, file_count=3) at
zend.c:743
#4  0x806a27f in php_execute_script (primary_file=0xb924) at
main.c:1196
#5  0x806825c in main (argc=2, argv=0xb9b4) at cgi_main.c:735
(gdb) 






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


-- 
PHP Development Mailing List 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]


--
PHP Development Mailing List 
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 #11489 Updated: Sybase query result is getting destructed

2001-07-23 Thread pwmoosman

ID: 11489
User updated by: [EMAIL PROTECTED]
Reported By: [EMAIL PROTECTED]
Status: Feedback
Bug Type: Sybase-ct (ctlib) related
Operating System: Solaris
PHP Version: 4.0.5
New Comment:

I was able to reproduce this problem in version 4.0.6. But, I was unable to reproduce 
it in the current cvs tree.
However, after looking at the mysql, and sybase (not sybase_ct) modules. I concluded 
that adding a reference to the global database connecting should be there. So I 
modified php_sybase_ct.c


Previous Comments:


[2001-06-28 01:16:27] [EMAIL PROTECTED]

Cannot reproduce with CVS.



[2001-06-14 10:15:16] [EMAIL PROTECTED]

The following script produces the following error the second time 
getAppName/sybase_fetch_row is called.

Error (warning):

   /users/pmoosman/test_data/test1.php(26) : Warning - 3 is not a valid Sybase result 
resource

Script:




Note: If I uncomment the "static $db" line, the error (warning) goes away.



I ran PHP in a debugger and it looks like the sybase connection is getting destructed 
when the sybase_query results are getting assigned to "$result".







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


-- 
PHP Development Mailing List 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP-DEV] Re: Bug #12314 Updated: include_path does not work

2001-07-23 Thread John Lim

The  following include path on Windows ME works fine fo me with PHP 4.0.6:

include_path=".;d:\inetpub\scripts\php\pear";

Perhaps a problem with relative paths?

<[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> ID: 12314
> User updated by: [EMAIL PROTECTED]
> Reported By: [EMAIL PROTECTED]
> Status: Feedback
> Bug Type: Dynamic loading
> Operating System: WinME
> Old PHP Version: 4.0.6
> PHP Version: 4.0.6
> New Comment:
>
> Hmm... looks like very rarely do people really mean what they say in bug
reports ;-)
>
> OK! here goes
> --
> Fatal error: Failed opening required 'countrylist2.inc'
(include_path='./;./inc/') in c:\program files\apache
group\apache\htdocs\bobp\latest\propertyadd.php3 on line 52
> --
>
> I have also tried the following variants
>
> include_path=".\;.\inc\"
> include_path=".;.\inc\"
> include_path="."
>
> No settings works for anything between Version 4.0.3 to 4.0.6 However the
same is working on a live site running Ver4.0.2
>
> and I dont know where to get Win binaries of 4.0.2 from  ...
>
> Cheers
>
>
>
> Previous Comments:
> 
>
> [2001-07-23 07:49:30] [EMAIL PROTECTED]
>
> well, I use include_path on NT 4 and NT 5 without problems. since you did
not do what the Dos & Donts page tells you to do (include related php.ini
settings in the report), I can only guess that you forgot to put the value
in quotes.
>
> Anyway, could you try this?
>
> php.ini:
> include_path = "./;./inc/"
>
> somewhere/test.php:
> 
>
> somewhere/inc/include.inc:
> 
>
> and load somewhere/test.php. If it gives you any error, paste it here,
please.
>
> Thanks!
>
> 
>
> [2001-07-23 07:12:07] [EMAIL PROTECTED]
>
> without being cynical and with all due respect - yes I have
> read the do's and dont's of bug reporting
>
> I also know that the similar bug has been reported for Win2K
> and like I said - whatever the include_path setting it does
> not work
>
> for all practical purposes the setting in the php.ini is
>
> include_path =
>
> It would be nice if someone could let me know where to find
> the Win binaries of PHP4.0.2 that is the latest confirmed
> (of course by me) version which does not have this problem.
>
> Also - under  Linux V 4.0.6 works fine
>
> Tarique
>
>
>
> 
>
> [2001-07-23 06:30:02] [EMAIL PROTECTED]
>
> have you read the Do's & Don'ts? What's your include_path setting? (Copy
it here from your php.ini.)
>
> 
>
> [2001-07-23 05:48:57] [EMAIL PROTECTED]
>
> Hello,
>
> Just to let you know that include_path does not work at all under WinME
>
> So I just cant use require() or include(), it is not even defaulting to
"." i.e.; the current directory
>
> Cheers
> Tarique
>
> 
>
>
>
> Edit this bug report at http://bugs.php.net/?id=12314&edit=1
>



-- 
PHP Development Mailing List 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP-DEV] cvs socket extension

2001-07-23 Thread Jason Greene

Just for curiosity, did you considered implementing poll instead of select? You would 
not have to worry about specifying 
max_fd - 1. 

-Jason

- Original Message - 
From: "Chris Vandomelen" <[EMAIL PROTECTED]>
To: "Markus Fischer" <[EMAIL PROTECTED]>
Cc: "Daniel Beulshausen" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Sent: Monday, July 23, 2001 9:20 AM
Subject: Re: [PHP-DEV] cvs socket extension


> > > >
> > > >socket_select(0x7fff, $fd_set, 0, 0, 0, 0);
> > >
> > > we can add a support function which return's the php_socket->socket integer.
> >
> > Glad someone came up with this.
> >
> > Since socket_select() always wants highest +1, couldn't this be
> > implemented into socket_select() to go through all socket sets
> > and get the number itself ?
> >
> > Or are there good reasons to let the user specify the value on
> > its own ?
> >
> 
> In theory, the user isn't going to be specifying sockets that aren't
> accessible as resources.
> 
> The best way around this (IMHO) is to define a php_fd_set something like:
> 
> struct php_fd_set {
> fd_set the_set;
> intmax_fd;
> };
> 
> Then, whenver someone calls fd_set() or fd_zero(), change
> php_fd_set.max_fd appropriately as well as updating php_fd_set.the_set,
> and in socket_select(), check all of the max_fd values.
> 
> Removing the first arg to socket_select(), if that's implemented, wouldn't
> be a bad idea either.
> 
> Chris
> 
> 
> -- 
> PHP Development Mailing List 
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
> 


-- 
PHP Development Mailing List 
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 #12321: ftruncate poorly named, suggest alias

2001-07-23 Thread dshadow

From: [EMAIL PROTECTED]
Operating system: Linux
PHP version:  4.0.6
PHP Bug Type: Filesystem function related
Bug description:  ftruncate poorly named, suggest alias

The ftruncate function is poorly named, as it can be used to enlarge a
file, not just truncate it. I suggest creating an alias to this function,
"fresize", to make it clear that a file can be arbitrarially resized. I
also suggest that the manual be updated to indicate that ftruncate can
enlarge a file as well: "Changes a file's size", rather than, "truncates a
file to a given length.
-- 
Edit bug report at: http://bugs.php.net/?id=12321&edit=1


-- 
PHP Development Mailing List 
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 #12321 Updated: ftruncate poorly named, suggest alias

2001-07-23 Thread andy

ID: 12321
Updated by: andy
Reported By: [EMAIL PROTECTED]
Status: Open
Old Bug Type: Filesystem function related
Bug Type: Feature/Change Request
Operating System: Linux
PHP Version: 4.0.6
New Comment:

reclassified

Previous Comments:


[2001-07-23 13:22:48] [EMAIL PROTECTED]

The ftruncate function is poorly named, as it can be used to enlarge a file, not just 
truncate it. I suggest creating an alias to this function, "fresize", to make it clear 
that a file can be arbitrarially resized. I also suggest that the manual be updated to 
indicate that ftruncate can enlarge a file as well: "Changes a file's size", rather 
than, "truncates a file to a given length.





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


-- 
PHP Development Mailing List 
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 #11489 Updated: Sybase query result is getting destructed

2001-07-23 Thread pwmoosman

ID: 11489
User updated by: [EMAIL PROTECTED]
Reported By: [EMAIL PROTECTED]
Old Status: Feedback
Status: Closed
Bug Type: Sybase-ct (ctlib) related
Operating System: Solaris
PHP Version: 4.0.5


Previous Comments:


[2001-06-28 01:16:27] [EMAIL PROTECTED]

Cannot reproduce with CVS.



[2001-06-14 10:15:16] [EMAIL PROTECTED]

The following script produces the following error the second time 
getAppName/sybase_fetch_row is called.

Error (warning):

   /users/pmoosman/test_data/test1.php(26) : Warning - 3 is not a valid Sybase result 
resource

Script:




Note: If I uncomment the "static $db" line, the error (warning) goes away.



I ran PHP in a debugger and it looks like the sybase connection is getting destructed 
when the sybase_query results are getting assigned to "$result".







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


-- 
PHP Development Mailing List 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP-DEV] RE: Bug #12130 Updated: field values in multipart/form

2001-07-23 Thread Erick Calder

thanks for responding.  I cannot upgrade right now but just wanted to report
that the 4.0.4pl1 version is broken in that way.  glad it's ok in later
versions.  I only use RPMs and latest version not yet available.

- e r i c k

-Original Message-
From:   Bug Database [mailto:[EMAIL PROTECTED]]
Sent:   Sunday, July 22, 2001 1:20 PM
To: [EMAIL PROTECTED]
Subject:Bug #12130 Updated: field values in multipart/form

ID: 12130
Updated by: andy
Reported By: [EMAIL PROTECTED]
Old Status: Open
Status: Feedback
Bug Type: Unknown/Other Function
Operating System: RedHat 7.0
PHP Version: 4.0.4pl1
New Comment:

works fine for me.  Please update to the latest version and
tell me if it still doesn't work.

Previous Comments:


[2001-07-13 03:26:25] [EMAIL PROTECTED]

when using ENCTYPE="multipart/form" for a , PHP receives the values of
fields with a prepended \n e.g. with:









if I enter "Hello" into the field and submit the form I get:

/
Hello/

what's the deal?? I've read through all the user comments on the file
uploads section but no one seems to have run into this.  is it a bug or did
I miss some docs somewhere?

1k thx - e r i c k






ATTENTION! Do NOT reply to this email!
To reply, use the web interface found at
http://bugs.php.net/?id=12130&edit=2


-- 
PHP Development Mailing List 
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 #11658 Updated: Getting values by reference don't work

2001-07-23 Thread phanto

ID: 11658
Updated by: phanto
Reported By: [EMAIL PROTECTED]
Old Status: Open
Status: Closed
Bug Type: COM related
Operating System: Windows NT 4.0 SP 6
PHP Version: 4.0.6
New Comment:

doesn't work with VBScript either and due to the provided typelib i assume that it is 
a user (component) error.

-harald.

Previous Comments:


[2001-07-05 20:43:44] [EMAIL PROTECTED]

but by definition every interface derived from IDispatch that should support 
references must expect VARIANT *var instead of  *var . am i wrong ?



[2001-07-02 05:08:05] [EMAIL PROTECTED]

I think it's very simple.

The COM-Object that I use is compiled with
Microsoft Visual C++ 6.0, if it matters.


The definition looks like this:

interface ICObject: IDispatch
{
  [id(1), helpstring("Methode Init")]
  HRESULT Init(BSTR bstrUser,
   long lwinID,
   BSTR bstrCustomer);
  [id(2), helpstring("Methode CheckLogin")]
  HRESULT CheckLogin(BSTR bstrUser,
 BSTR bstrServer,
 long *laccess);
  [id(3), helpstring("Methode CloseData")]
  HRESULT CloseData();
};

Note, that there is no VARIANT Type!
It's only BSTR and LONG.
So I get always a type mismatch, when I try to pass
variables with
$var = new VARIANT(8, VT_I4|VT_BYREF);
or 
$var = new VARIANT("test", VT_BSTR);
It doesn't matter, if it's passed by reference or not.
I think it's a more general problem. PHP tries to pass
the values as type VARIANT, but the interface is of another
type (here BSTR or LONG). Of course, I could be wrong.
When I pass the values directly as PHP-variables, then I
don't get the type-mismatch warning, but the variables
passed by reference don't change, as you can see in the
first message.

I hope, I maked it clear.





[2001-07-01 17:25:28] [EMAIL PROTECTED]

type mismatch means, that your com object expects another type. as you see the error 
message is german so the error doesn't happen in php but in the com-marshaller. you 
have to check what type your object expects and change the VT_I4 to the corresponding 
value.

if you can provide me an other example so that i can reproduce this on my machine i 
could help you more detailed



[2001-06-28 03:12:59] [EMAIL PROTECTED]

still closed?



[2001-06-27 04:16:21] [EMAIL PROTECTED]

It didn't work!
I get this:

Warning: Invoke() failed: Typ paßt nicht.
in D:\www\webze\application\index.php on line 10

translated: ...: Type mismatch.

Line 10 looks like this:
$instance->CheckLogin($user, COM_REMOTE_SERVER, $allowed);

I have tried all of the combinations I could think of,
VT_UI1|BYREF, VT_UI2|BYREF, VT_UI4|BYREF, VT_I1|BYREF,
VT_I2|BYREF, VT_I4|BYREF, VT_INT|BYREF, VT_UINT|BYREF
It doesn't matter. I get always the same type mismatch warning.

Note that the variable $allowed in the function of the
COM-Object is defined as "long".

Please help me to get this working.




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=11658


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


-- 
PHP Development Mailing List 
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 #12321 Updated: ftruncate poorly named, suggest alias

2001-07-23 Thread hholzgra

ID: 12321
Updated by: hholzgra
Reported By: [EMAIL PROTECTED]
Status: Open
Bug Type: Feature/Change Request
Operating System: Linux
PHP Version: 4.0.6
New Comment:

it's just the name of the C function/system call
 doing the same job

Previous Comments:


[2001-07-23 13:34:22] [EMAIL PROTECTED]

reclassified



[2001-07-23 13:22:48] [EMAIL PROTECTED]

The ftruncate function is poorly named, as it can be used to enlarge a file, not just 
truncate it. I suggest creating an alias to this function, "fresize", to make it clear 
that a file can be arbitrarially resized. I also suggest that the manual be updated to 
indicate that ftruncate can enlarge a file as well: "Changes a file's size", rather 
than, "truncates a file to a given length.





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


-- 
PHP Development Mailing List 
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 #12321 Updated: ftruncate poorly named, suggest alias

2001-07-23 Thread dshadow

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

Yes, it is, but that doesn't mean that it's a good name. I'm not suggesting renaming 
ftruncate. All I want is an alias like fresize so that when looking at the function 
list, it's easier to find this function, and the documentation updated so that it's 
clear that ftruncate can make a file larger. Try doing a search for "resize file" or 
"change file size" on the website. You won't find anything useful.

Previous Comments:


[2001-07-23 13:51:00] [EMAIL PROTECTED]

it's just the name of the C function/system call
 doing the same job



[2001-07-23 13:34:22] [EMAIL PROTECTED]

reclassified



[2001-07-23 13:22:48] [EMAIL PROTECTED]

The ftruncate function is poorly named, as it can be used to enlarge a file, not just 
truncate it. I suggest creating an alias to this function, "fresize", to make it clear 
that a file can be arbitrarially resized. I also suggest that the manual be updated to 
indicate that ftruncate can enlarge a file as well: "Changes a file's size", rather 
than, "truncates a file to a given length.





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


-- 
PHP Development Mailing List 
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 #12322: php does not load as a dso

2001-07-23 Thread meyrptr

From: [EMAIL PROTECTED]
Operating system: SuSE Linux 6.1
PHP version:  4.0.6
PHP Bug Type: Apache related
Bug description:  php does not load as a dso

php cant load as a dso in the following configuration

SuSE Linux 6.1
apache 1.3.20
php 4.0.6

apache was installed with:

./configure --prefix=/usr/local/apache --enable-module=so
make
make install

php was installed with:

./configure --with-mysql --with-apxs=/usr/local/apache/bin/apxs
make
make install

When the server was started with:

./apxs start

The following error message responding:

Syntax error on line 207 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: __mempcpy
./apachectl start: httpd could not be started 
-- 
Edit bug report at: http://bugs.php.net/?id=12322&edit=1


-- 
PHP Development Mailing List 
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 #12130 Updated: field values in multipart/form

2001-07-23 Thread andy

ID: 12130
Updated by: andy
Reported By: [EMAIL PROTECTED]
Old Status: Feedback
Status: Closed
Bug Type: Unknown/Other Function
Operating System: RedHat 7.0
PHP Version: 4.0.4pl1
New Comment:

clsoing...

Previous Comments:


[2001-07-22 16:20:03] [EMAIL PROTECTED]

works fine for me.  Please update to the latest version and
tell me if it still doesn't work.



[2001-07-13 03:26:25] [EMAIL PROTECTED]

when using ENCTYPE="multipart/form" for a , PHP receives the values of fields 
with a prepended \n e.g. with:









if I enter "Hello" into the field and submit the form I get:

/
Hello/

what's the deal?? I've read through all the user comments on the file uploads section 
but no one seems to have run into this.  is it a bug or did I miss some docs 
somewhere?

1k thx - e r i c k






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


-- 
PHP Development Mailing List 
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 #11620 Updated: PHP has encountered an Access Violation at 012D24B6

2001-07-23 Thread jmoore

ID: 11620
Updated by: jmoore
Reported By: [EMAIL PROTECTED]
Old Status: Feedback
Status: Closed
Bug Type: IIS related
Operating System: W2K Server
PHP Version: 4.0.5
New Comment:

No feedback, probably a threadsafe issue but lots of other similar reports that have 
more information.

Previous Comments:


[2001-06-26 04:57:06] [EMAIL PROTECTED]

Please include shortest possible script which can be used
to reproduce this.




[2001-06-26 04:56:22] [EMAIL PROTECTED]

User feedback (next time, use the web interface to answer):
.--
>Yes, I installed 4.0.6 this AM and it's still happening.
>
>PHP has encountered an Access Violation at 013124B6
>
>Error log entry
>
>The HTTP server encountered an unhandled exception while processing the
>ISAPI Application '
>php4ts!zend_hash_copy + 0x1B
>  + 0xA05E5983
>'.
>
>php4isapi - 20,480 bytes  6/22/01 2:58:32 PM





[2001-06-23 07:37:20] [EMAIL PROTECTED]

Does this happen with PHP 4.0.6 ?




[2001-06-22 14:45:03] [EMAIL PROTECTED]

The binary distribution of PHP 4.0.5 for win32

Base install

IIS 5.0
Win2k Server SP2 + all security hot fixes for IIS as of 6/20/01

Restart Server, php script runs fine. After a period of time
(machine is being used to build new site, so php not used much yet) an attemp to use a 
php script hangs and never returns.

The event viewer says
  php4ts!zend_hash_copy + 0x1b
  + 0xA05E5983

if web server is restarted, get 

  PHP has encountered an Access Violation at 012D24B6

displayed to the browser







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


-- 
PHP Development Mailing List 
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 #11829 Updated: memory access violation

2001-07-23 Thread jmoore

ID: 11829
Updated by: jmoore
Reported By: [EMAIL PROTECTED]
Old Status: Feedback
Status: Closed
Bug Type: IIS related
Operating System: win2000professional
PHP Version: 4.0.4pl1
New Comment:

Looks like a Mem Access violation, probably from some thread safe issue, this also 
doesnt seem IIS related as you mention the console, Please remove all extensions from 
your php.ini and see if the memory access violations continue if they stop then add 
the extensions gradually and tell us which one causes the mem access violation to 
occur as it probably isnt thread safe although this shouldnt effect the console. 
Anyway there isnt enough information here if you can reproduce it reliably please 
reopen this bug report including how you reproduce it with a short script.

- James

Previous Comments:


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

Is it possible that you can shorten down your script to the point where the problem 
still occurs, or provide the script in this bug report?

Derick



[2001-07-02 02:31:01] [EMAIL PROTECTED]

I've writed a scheduling program with C to execute php application all day in the 
console mode.Sometimes will happen the following error message:
 
   The instruction at "0x78003abf" referenced memory at "0x0111a000".The memory could 
not be "read".

This situation would not crash my C program.I only have to do is close the error 
message.But it will happen again after 3 or 4 hours.
 
Do you have any idea about this situation?

Thanks!!





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


-- 
PHP Development Mailing List 
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 #7910 Updated: urlp arameters not available in the default page

2001-07-23 Thread jmoore

ID: 7910
Updated by: jmoore
Reported By: [EMAIL PROTECTED]
Old Status: Open
Status: Closed
Bug Type: IIS related
Operating System: Windows NT 4.0
PHP Version: 4.0.4
New Comment:

This is a known problem with IIS where it nolonger conforms to the CGI standards.. 
talk to MSFT about a fix :)

- James

Previous Comments:


[2001-04-26 14:11:12] [EMAIL PROTECTED]

This seems like a IIS problem rather than a PHP one. We probably need to test this 
with other isapi and cgi dlls under IIS to confirm this then pass a bug report about 
the behaviour on to msft if this is the case.





[2000-12-27 12:32:35] [EMAIL PROTECTED]

I updated to PHP 4.0.4

I still have the same problem in ISAPI AND in CGI mode 



[2000-11-21 17:20:10] [EMAIL PROTECTED]

I am using PGP as an ISAPI extension woth IIS 4.0

IIS is configured to laak for a default page named index.php3

If I pass a parameter in the URL with the folowing syntax 
"http://www.domaine.com/?page=1"; the variable page is empty in the my php script.

If I include the name of the page in the URL 
"http://www.domaine.com/index.php3?page=1"; everything working my page vraiable contain 
1






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


-- 
PHP Development Mailing List 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP-DEV] cvs socket extension

2001-07-23 Thread Markus Fischer

On Mon, Jul 23, 2001 at 11:15:49PM +0200, Stig Venaas wrote : 
> On Mon, Jul 23, 2001 at 05:16:13PM +0200, Markus Fischer wrote:
> > On Mon, Jul 23, 2001 at 07:20:34AM -0700, Chris Vandomelen wrote : 
> > > > Since socket_select() always wants highest +1, couldn't this be
> > > > implemented into socket_select() to go through all socket sets
> > > > and get the number itself ?
> 
> Why all sets? Isn't it enough to use max for the set that got passed to
> socket_select()?
> 
> > > The best way around this (IMHO) is to define a php_fd_set something like:
> > > 
> > > struct php_fd_set {
> > >   fd_set the_set;
> > >   intmax_fd;
> > > };
> > 
> > Btw, is this really enough information ?
> 
> Yes, that's my doubt as well, I'm not sure how much of a problem
> it is though.
> 
> > Consider this:
> > You use FD_SET() to add a socket to the set (you just bump_up
> > max_fd if socket > max_Fd)
> > 
> > But when using FD_CLR() to remove a socket how do we know
> > which socket in this set has the highest number now
> > and whats the number anyway (beside 42) then ?
> > 
> > Seems like we need a list for every set containing the current
> > socket numbers in the set (if I'm not totally wrong :) because
> > AFAIK if you don't keep a list of the numbers of a set without
> > brute force you can't retrieve the list.
> 
> In order to be portable we can't inspect the actual bits in the
> set I think, so the only way I see is to have a list of the
> numbers. So for every call to socket_fd_set(), you add to the
> list, and in socket_fd_clear() you remove. In order to not look
> for max every time you call select, you might also store the
> max somewhere maybe. I think you should have one such list per
> set, and create an empty list in socket_fd_alloc().

Chris mentioned something that its not needed to restore the last
highest value for the max_fd if you drop the current highest one.

This makes me wondering why we not ever pass something like
0x to select() [of course there is some legal reason not
to do this, i'm just curious now].


One the other hand, Daniel [afaik??] suggested to let the user
retrieve the handle id for a socket and calculate the hightest
value on its own. Something like

$fd = socket_get_fd( $socket);

comes into my mind.


The first one would be more nice for the users while the later is
much less programming effort :-)


I'm just wondering if there can be ever any drawback if we don't
let the user specify the first parameter to the select() call.

As I'm not an expert I can't tell.

regards,

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

-- 
PHP Development Mailing List 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP-DEV] Re: Bug #10664 Updated: php4.0.5 ISAPI dll gives "procedure not found"

2001-07-23 Thread vlm

Jupp.
Did already.Doesnt work either.Is still a 500 I think, but now I'll get this
'cause I deactivated "short HTML error msgs" in IE.

Server Application Error
The server has encountered an error while loading an application during the
processing of your request. Please refer to the event log for more detail
information. Please contact the server administrator for assistance.


Der Server konnte Anwendung '/LM/W3SVC/1/ROOT' nicht laden. Fehler
'Allgemeiner "Zugriff verweigert"-Fehler
'.
Weitere Informationen zu dieser Meldung finden Sie auf der
Microsoft-Onlinesupportsite: http://www.microsoft.com/contentredirect.asp.
Cat:keine
EventID:36
Q:w3svc

Its the same some other people reported "the server couldnt load
"LM/W3SVC/". Unspecified access denied error.
Some suggested compiling PHP in debug mode but I wasnt able to figure that
out (maybe if you could give me some advice).
And starting PHP with --enable-debug didn't work either, or I did something
wrong.


Hmm, jo and BTW I didnt supply a PWD for BugID#10466 so I'm not able to put
comments in your DB, maybes theres a way you can put a pass there?
Thanx
dD




- Original Message -
From: "Bug Database" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, July 23, 2001 8:38 PM
Subject: Bug #10664 Updated: php4.0.5 ISAPI dll gives "procedure not found"


> ID: 10664
> Updated by: jmoore
> Reported By: [EMAIL PROTECTED]
> Old Status: Open
> Status: Feedback
> Bug Type: IIS related
> Operating System: Windows 2000 Advanced server
> PHP Version: 4.0.5
> New Comment:
>
> can you try some other ISAPI dll's it suggests perhaps it is corrupted and
IIS cant find the correct interfaces within the DLL to initialise PHP.
Please try the 4.0.6 isapi dll.
>
> - James
>
> Previous Comments:
> 
[...]


-- 
PHP Development Mailing List 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP-DEV] cvs socket extension

2001-07-23 Thread Stig Venaas

On Mon, Jul 23, 2001 at 11:57:44PM +0200, Markus Fischer wrote:
> On Mon, Jul 23, 2001 at 11:15:49PM +0200, Stig Venaas wrote : 
> Chris mentioned something that its not needed to restore the last
> highest value for the max_fd if you drop the current highest one.

I agree, it would only be for efficiency. I think now that the
best solution is to just store the max. If clear.. is called
with the current max, we can start at max and going downwards
we can do FD_ISSET on each number until we find something that
is set. Then we have the new max.

> This makes me wondering why we not ever pass something like
> 0x to select() [of course there is some legal reason not
> to do this, i'm just curious now].

Maybe, but I don't like it. Are you sure there are may not be bad
things happening if the number is outside the size of the set?

> One the other hand, Daniel [afaik??] suggested to let the user
> retrieve the handle id for a socket and calculate the hightest
> value on its own. Something like
> 
>   $fd = socket_get_fd( $socket);
> 
> comes into my mind.
> 
> 
> The first one would be more nice for the users while the later is
> much less programming effort :-)

Yes, I think we should be nice to the users though (: There's less
time wasted by doing it once in C than having many PHP programmers
doing it over and over again...

> I'm just wondering if there can be ever any drawback if we don't
> let the user specify the first parameter to the select() call.
> 
> As I'm not an expert I can't tell.

I'm no expert, but I really can't see why it's needed (:

Stig

-- 
PHP Development Mailing List 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP-DEV] please do _not_ touch oci8.c

2001-07-23 Thread Thies C. Arntzen


i have a huge update pending on this - so please do not work
on it before i have tested and committed my changes!

re,
tc

-- 
PHP Development Mailing List 
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 #12319 Updated: Apache shutdowns with a distant MSSQL 6.5 if connection failed

2001-07-23 Thread andy

ID: 12319
Updated by: andy
Reported By: [EMAIL PROTECTED]
Old Status: Open
Status: Feedback
Bug Type: MSSQL related
Operating System: win32
PHP Version: 4.0.5
New Comment:

Does this happen with the latest version of PHP

(*Andy*)

Previous Comments:


[2001-07-23 10:32:04] [EMAIL PROTECTED]

Apache shutdowns when connection to a distant MSSQL 6.5  server failed (on a local 
network). No problem if the connection parameters are correctly intered (host name and 
password). Please let me know if you have a solution !

Apache error message is:


Thanks in advance..







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


-- 
PHP Development Mailing List 
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 #12323: "//" comment tag does not work

2001-07-23 Thread lael

From: [EMAIL PROTECTED]
Operating system: Mac OS X
PHP version:  4.0.6
PHP Bug Type: Output Control
Bug description:  "//" comment tag does not work 

When I use the "//" as the comment, the text behind the tag 
is displayed out to the user.  I can replace it with a "/*" 
and put a "*/" at the end to make it work.  But I was 
hoping I had missed some compile option or something that 
is causing this to not work.





To make the installs on my G3 PowerMac Laptop, I have used 
the instructions found at: http://www.devshed.com/
Server_Side/Administration/BuildingOnOSX/

Any suggestions are welcome.

Thanks,
Lael

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


-- 
PHP Development Mailing List 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP-DEV] Bug #11489 Updated: Sybase query result is gettingdestructed

2001-07-23 Thread Joey Smith

Paul:
Right. It seems the other situations that caused the bug to
appear have closed, but I still intend to apply your patch as soon as I
have a spare moment. Thanks. :)


-- 
PHP Development Mailing List 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP-DEV] cvs socket extension

2001-07-23 Thread Stig Venaas

On Mon, Jul 23, 2001 at 05:16:13PM +0200, Markus Fischer wrote:
> On Mon, Jul 23, 2001 at 07:20:34AM -0700, Chris Vandomelen wrote : 
> > > Since socket_select() always wants highest +1, couldn't this be
> > > implemented into socket_select() to go through all socket sets
> > > and get the number itself ?

Why all sets? Isn't it enough to use max for the set that got passed to
socket_select()?

> > The best way around this (IMHO) is to define a php_fd_set something like:
> > 
> > struct php_fd_set {
> > fd_set the_set;
> > intmax_fd;
> > };
> 
> Btw, is this really enough information ?

Yes, that's my doubt as well, I'm not sure how much of a problem
it is though.

> Consider this:
> You use FD_SET() to add a socket to the set (you just bump_up
> max_fd if socket > max_Fd)
> 
> But when using FD_CLR() to remove a socket how do we know
> which socket in this set has the highest number now
> and whats the number anyway (beside 42) then ?
> 
> Seems like we need a list for every set containing the current
> socket numbers in the set (if I'm not totally wrong :) because
> AFAIK if you don't keep a list of the numbers of a set without
> brute force you can't retrieve the list.

In order to be portable we can't inspect the actual bits in the
set I think, so the only way I see is to have a list of the
numbers. So for every call to socket_fd_set(), you add to the
list, and in socket_fd_clear() you remove. In order to not look
for max every time you call select, you might also store the
max somewhere maybe. I think you should have one such list per
set, and create an empty list in socket_fd_alloc().

Stig

-- 
PHP Development Mailing List 
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 #12323 Updated: "//" comment tag does not work

2001-07-23 Thread cnewbill

ID: 12323
Updated by: cnewbill
Reported By: [EMAIL PROTECTED]
Status: Open
Bug Type: Output Control
Operating System: Mac OS X
PHP Version: 4.0.6
New Comment:

The only situation I can think of where this would happen is



i.e. one liners

If this is your case this is expected behavior IIRC.  Otherwsie submit a small script 
that reproduces the problem.

-Chris

Previous Comments:


[2001-07-23 17:19:38] [EMAIL PROTECTED]

When I use the "//" as the comment, the text behind the tag 
is displayed out to the user.  I can replace it with a "/*" 
and put a "*/" at the end to make it work.  But I was 
hoping I had missed some compile option or something that 
is causing this to not work.





To make the installs on my G3 PowerMac Laptop, I have used 
the instructions found at: http://www.devshed.com/
Server_Side/Administration/BuildingOnOSX/

Any suggestions are welcome.

Thanks,
Lael






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


-- 
PHP Development Mailing List 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP-DEV] cvs socket extension

2001-07-23 Thread Markus Fischer

On Mon, Jul 23, 2001 at 11:15:49PM +0200, Stig Venaas wrote : 
> On Mon, Jul 23, 2001 at 05:16:13PM +0200, Markus Fischer wrote:
> > On Mon, Jul 23, 2001 at 07:20:34AM -0700, Chris Vandomelen wrote : 
> > > > Since socket_select() always wants highest +1, couldn't this be
> > > > implemented into socket_select() to go through all socket sets
> > > > and get the number itself ?
> 
> Why all sets? Isn't it enough to use max for the set that got passed to
> socket_select()?

But you can pass three different sets to socket_select(); thats
what I meant with 'go through all socket sets'.

- Markus

-- 
PHP Development Mailing List 
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 #12191 Updated: Certificate Environment Variables missing with ISAPI

2001-07-23 Thread jmoore

ID: 12191
Updated by: jmoore
Reported By: [EMAIL PROTECTED]
Old Status: Open
Status: Feedback
Bug Type: IIS related
Operating System: Win2K
PHP Version: 4.0.6
Old Assigned To: 
Assigned To: jmoore
New Comment:

Can you send me a list of these variables names and we can get this fixed.

Thanks,

- James

Previous Comments:


[2001-07-16 11:51:34] [EMAIL PROTECTED]

I am using the PHP 4.0.2 ISAPI-Modul with IIS 5.0 on Win2K which set the certificate 
environment variables 
(e.g. $HTTP_SEVER_VARS["CERT_SUBJECT"]) correctly.

Now I want to switch to PHP 4.0.6 but the variables are
missing in the ISAPI-Modul (phpinfo() shows them under
ISAPI but NOT under Environment!) but in CGI they are
here again.

greetings
  Christian







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


-- 
PHP Development Mailing List 
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 #12323 Updated: "//" comment tag does not work

2001-07-23 Thread cnewbill

ID: 12323
Updated by: cnewbill
Reported By: [EMAIL PROTECTED]
Status: Open
Bug Type: Output Control
Operating System: Mac OS X
PHP Version: 4.0.6
New Comment:

Okay it would happen on more than one liners.

basically if you have a ?> on the same line as the // comment it will do this.

I know there is some other bugs on this same problem, but I don't have the numbers 
handy.

-Chris

Previous Comments:


[2001-07-23 18:31:24] [EMAIL PROTECTED]

The only situation I can think of where this would happen is



i.e. one liners

If this is your case this is expected behavior IIRC.  Otherwsie submit a small script 
that reproduces the problem.

-Chris



[2001-07-23 17:19:38] [EMAIL PROTECTED]

When I use the "//" as the comment, the text behind the tag 
is displayed out to the user.  I can replace it with a "/*" 
and put a "*/" at the end to make it work.  But I was 
hoping I had missed some compile option or something that 
is causing this to not work.





To make the installs on my G3 PowerMac Laptop, I have used 
the instructions found at: http://www.devshed.com/
Server_Side/Administration/BuildingOnOSX/

Any suggestions are welcome.

Thanks,
Lael






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


-- 
PHP Development Mailing List 
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 #10704 Updated: $HTTP_SERVER_VARS["PATH_INFO"] is not set on IIS4

2001-07-23 Thread jmoore

ID: 10704
Updated by: jmoore
Reported By: [EMAIL PROTECTED]
Old Status: Open
Status: Bogus
Bug Type: IIS related
Operating System: NT4sp1
PHP Version: 4.0.5
New Comment:

PHP just passes on the variables that IIS sets, it does not standardise them although 
perhaps we should for PHP 5. Bogusing this report.

- James

Previous Comments:


[2001-05-07 10:29:35] [EMAIL PROTECTED]


using this simple example I get the right result with the previous version (4.04pl1)
and "not set" with the latest version (4.05)

if(isset($HTTP_SERVER_VARS["PATH_INFO"]))
   echo "value=".$HTTP_SERVER_VARS["PATH_INFO"];
else
   echo "not set";

web server: IIS4
php version: 4.0.5 compiled from source code.

Dror





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


-- 
PHP Development Mailing List 
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 #10571 Updated: blank browser with Xitami

2001-07-23 Thread andy

ID: 10571
Updated by: andy
Reported By: [EMAIL PROTECTED]
Old Status: Feedback
Status: Closed
Bug Type: Other web server
Operating System: win2000
PHP Version: 4.0.4pl1
New Comment:

no feedback after 30 days.

Previous Comments:


[2001-06-23 14:55:41] [EMAIL PROTECTED]

Does this happen with PHP 4.0.6 ?




[2001-05-01 01:04:17] [EMAIL PROTECTED]

I am running a Xitami (v2.4c1) server on win2000.
I used the install shield to install PHP 4.0.4.
All the filters and stuff seem to be set up right in Xitami. I have installed and used 
PHP 3 with the same server and followed the same steps to configure it for PHP 4.
I have set the "doc_root" in the php.ini file to "C:\Nigel\VWS".

However, when I run a script nothing happens: I get a blank browser screen. Setting 
the "display_startup_errors" in the php.ini file I get the message:
"Fatal error: Unable to open C:\Nigel\VWS\ in Unknown on line 0"

I tried commenting out the "doc_root" setting in the php.ini file and I get the same 
error only it's pointing to the cgi-bin directory of Xitami (even though I have told 
it to use "c:\Nigel\VSM\" for files). 
I tried pointing the "doc_root" to the complete path of the php script file including 
it's filename and that worked and processed the file normally... every time the server 
started up php for any page.

I really am stumped. Thanks in advance.




[2001-05-01 01:02:02] [EMAIL PROTECTED]

I am running a Xitami (v2.4c1) server on win2000.
I used the install shield to install PHP 4.0.4.
All the filters and stuff seem to be set up right in Xitami. I have installed and used 
PHP 3 with the same server and followed the same steps to configure it for PHP 4.
I have set the "doc_root" in the php.ini file to "C:\Nigel\VWS".

However, when I run a script nothing happens: I get a blank browser screen. Setting 
the "display_startup_errors" in the php.ini file I get the message:
"Fatal error: Unable to open C:\Nigel\VWS\ in Unknown on line 0"

I tried commenting out the "doc_root" setting in the php.ini file and I get the same 
error only it's pointing to the cgi-bin directory of Xitami (even though I have told 
it to use "c:\Nigel\VSM\" for files). 
I tried pointing the "doc_root" to the complete path of the php script file including 
it's filename and that worked and processed the file normally... every time the server 
started up php for any page.

I really am stumped. Thanks in advance.




[2001-05-01 00:45:21] [EMAIL PROTECTED]

Not enough information.

See http://www.php.net/bugs-dos-and-donts.php

-Chris



[2001-05-01 00:32:46] [EMAIL PROTECTED]







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


-- 
PHP Development Mailing List 
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 #10664 Updated: php4.0.5 ISAPI dll gives "procedure not found"

2001-07-23 Thread jmoore

ID: 10664
Updated by: jmoore
Reported By: [EMAIL PROTECTED]
Old Status: Open
Status: Feedback
Bug Type: IIS related
Operating System: Windows 2000 Advanced server
PHP Version: 4.0.5
New Comment:

can you try some other ISAPI dll's it suggests perhaps it is corrupted and IIS cant 
find the correct interfaces within the DLL to initialise PHP. Please try the 4.0.6 
isapi dll.

- James

Previous Comments:


[2001-06-26 09:47:15] [EMAIL PROTECTED]

Also, if you look in your event log, you will see this message:

Event Type: Error
Event Source:   W3SVC
Event Category: None
Event ID:   14
Date:   6/25/2001
Time:   1:56:44 PM
User:   N/A
Computer:   D1WAR01
Description:
The HTTP Filter DLL C:\Inetpub\Scripts\PHP\sapi\php4isapi.dll failed to load.  The 
data is the error. 
For additional information specific to this message please visit the Microsoft Online 
Support site located at: http://www.microsoft.com/contentredirect.asp. 
Data:
: 7f 00 00 00   ...




[2001-05-04 10:33:17] [EMAIL PROTECTED]

Problem occures with any .php file. IIS just gives error 500 and "die angegebene 
Prozedur wurde nicht gefunden." (I'm using German 2k). 
PHP installed in c:\winnt\PHP4.
Standard install.
Works fine with php.exe.
php.ini:
[PHP]
; $Id: php.ini-dist,v 1.73.2.2 2001/04/22 11:58:49 phanto Exp $
...


; Language Options ;


; Enable the PHP scripting language engine under Apache.
engine = On

; Allow the  tags are recognized.
short_open_tag = On

; Allow ASP-style <% %> tags.
asp_tags = Off

; The number of significant digits displayed in floating point numbers.
precision=  14

; Enforce year 2000 compliance (will cause problems with non-compliant browsers)
y2k_compliance = Off

; Output buffering allows you to send header lines (including cookies) even
; after you send body content, at the price of slowing PHP's output layer a
; bit.  You can enable output buffering during runtime by calling the output
; buffering functions.  You can also enable output buffering for all files by
; setting this directive to On.
output_buffering = Off

; You can redirect all of the output of your scripts to a function.  For
; example, if you set output_handler to "ob_gzhandler", output will be
; transparently compressed for browsers that support gzip or deflate encoding.
; Setting an output handler automatically turns on output buffering.
output_handler =

; Transparent output compression using the zlib library
; Valid values for this option are 'off', 'on', or a specific buffer size
; to be used for compression (default is 4KB)
zlib.output_compression = Off

; Implicit flush tells PHP to tell the output layer to flush itself
; automatically after every output block.  This is equivalent to calling the
; PHP function flush() after each and every call to print() or echo() and each
; and every HTML block.  Turning this option on has serious performance
; implications and is generally recommended for debugging purposes only.
implicit_flush = Off

; Whether to enable the ability to force arguments to be passed by reference
; at function call time.  This method is deprecated and is likely to be
; unsupported in future versions of PHP/Zend.  The encouraged method of
; specifying which arguments should be passed by reference is in the function
; declaration.  You're encouraged to try and turn this option Off and make
; sure your scripts work properly with it in order to ensure they will work
; with future versions of the language (you will receive a warning each time
; you use this feature, and the argument will be passed by value instead of by
; reference).
allow_call_time_pass_reference = On


;
; Safe Mode
;
safe_mode = Off

safe_mode_exec_dir =

; Setting certain environment variables may be a potential security breach.
; This directive contains a comma-delimited list of prefixes.  In Safe Mode,
; the user may only alter environment variables whose names begin with the
; prefixes supplied here.  By default, users will only be able to set
; environment variables that begin with PHP_ (e.g. PHP_FOO=BAR).
;
; Note:  If this directive is empty, PHP will let the user modify ANY
; environment variable!
safe_mode_allowed_env_vars = PHP_

; This directive contains a comma-delimited list of environment variables that
; the end user won't be able to change using putenv().  These variables will be
; protected even if safe_mode_allowed_env_vars is set to allow to change them.
safe_mode_protected_env_vars = LD_LIBRARY_PATH

; This directive allows you to disable certain functions for security reasons.
; It receives a comma-deliminated list of function names.  This directive is
; *NOT* affected by whether Safe Mode i

[PHP-DEV] Bug #11623 Updated: Warning: mail() is not supported in this PHP build

2001-07-23 Thread andy

ID: 11623
Updated by: andy
Reported By: [EMAIL PROTECTED]
Old Status: Feedback
Status: Closed
Bug Type: *Mail Related
Operating System: Red Hat 7.1
PHP Version: 4.0.5
New Comment:

no feedback after 30 days.

Previous Comments:


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

Does this happen with PHP 4.0.6 ?




[2001-06-23 02:31:42] [EMAIL PROTECTED]

Warning: mail() is not supported in this PHP build.

The first time I installed php there was not installed sendmail so the 'define 
HAVE_SENDMAIL 1' was not present in php_config.h.
Then I have installed sendmail and recompiled php.
Now the define HAVE_SENDMAIL is present, but mail function problem is persistent.
The file /usr/sbin/sendmail is ok
I have to recompile apache ? 



[2001-06-23 02:25:52] [EMAIL PROTECTED]







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


-- 
PHP Development Mailing List 
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 #11625 Updated: ln: libZend.la: Operation not supported

2001-07-23 Thread andy

ID: 11625
Updated by: andy
Reported By: [EMAIL PROTECTED]
Old Status: Feedback
Status: Closed
Bug Type: Compile Failure
Operating System: FreeBSD 4.3
PHP Version: 4.0.5
New Comment:

no feedback

Previous Comments:


[2001-06-23 07:40:35] [EMAIL PROTECTED]

Does this happen with PHP 4.0.6 ?
(although this seems more like problem within your system..)




[2001-06-23 04:09:57] [EMAIL PROTECTED]

./configure
gmake install

When I try compile PHP I receive error:


rm: .libs/libZend.*: Invalid argument
rm: .libs/libZend.*: Invalid argument
ln: libZend.la: Operation not supported
gmake[1]: *** [libZend.la] Error 1
gmake[1]: Leaving directory `/c/php/Zend'
gmake: *** [all-recursive] Error 1






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


-- 
PHP Development Mailing List 
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 #1432 Updated: fgets() fails on certain sockets

2001-07-23 Thread andy

ID: 1432
Updated by: andy
Reported By: [EMAIL PROTECTED]
Old Status: Open
Status: Feedback
Bug Type: Sockets related
Operating System: Win32
PHP Version: 4.0
New Comment:

does this happen in the latest version?

Previous Comments:


[2001-07-22 12:29:58] [EMAIL PROTECTED]

reclassified



[2001-02-10 13:17:18] [EMAIL PROTECTED]

refiling as a bug against 4.0.



[1999-05-28 07:52:28] [EMAIL PROTECTED]

fgets recognizes a carriage return (CR, '\n', 0xod)  as a end-of-line only. The site 
in question uses line feeds (LF, ´\r´, 0x0a) as line delimiters.

Moving the report over to feature requests.



[1999-05-21 04:28:24] [EMAIL PROTECTED]

I use PHP/3.06 win32 for writing a web crawler which
indexes URL's.

The indexer has no problems, except on ONE url that I
know of so far which seems to be, as far as I
can ascertain related to the fgets()
function failing to work.

fgets() will not read data from any socket connected
via fsockopen to www.hutman.com port 80. I know this might
seem very strange, but fgets() never seems to be able to determine EOF and hence sits 
there forever doing nothing.
I have used a raw telnet session to try and debug this and cannot find why PHP would 
do this -- it works fine on every
other URL in the database.

Here is some code that may help:

$sock = fsockopen("www.hutman.com",80);

if ($sock)
{
  fputs($sock,"HEAD /dreg/facade/songs/aftk.mp3 HTTP/1.1\n");
  fputs($sock,"Host: www.hutman.com\n");
  fputs($sock,"User-Agent: HTTP-crawler/1.0\n");
  fputs($sock,"Connection: close\n\n");

/* at this point the server responds .. and it indeed does in a telnet session, but 
PHP simply wont read the data returned AT ALL. */

  while ($buf = fgets($sock,128))
  {
$response = $response . $buf;
echo $buf;
  }

No variations of this will work.. the fgets() function will timeout after a while.

i have tried while (!feof($sock)) as well, which exhibits similar behaviour, but seems 
to NEVER return from the fgets() call .. never times out.







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


-- 
PHP Development Mailing List 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP-DEV] Am I still subscribed

2001-07-23 Thread Andy

Um...
Am I still subscribed to PHP-DEV list?  I have
not recieved mail from this list for a while. 
When I updated a bug, I didn't get a message
about it like I used to.  I tried emailing myself
and it worked fine.

Is there a problem?

(*Andy*)

-- 
PHP Development Mailing List 
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 #5653 Updated: PIKE specific: with setcookie(), only the last cookie is written

2001-07-23 Thread andy

ID: 5653
Updated by: andy
Reported By: [EMAIL PROTECTED]
Status: Open
Bug Type: Other web server
Operating System: Linux
PHP Version: 4.0.5
New Comment:

this is probably a browser related problem (the browser only
lets you set noe cookie per site.)  Does anyone else agree
or has somebody actually reproduced this one?

Previous Comments:


[2001-05-06 16:45:56] [EMAIL PROTECTED]

is this still the case with the latest 4.0.5 release?



[2001-05-06 12:31:46] [EMAIL PROTECTED]

This bug is still present in 4.0.5.



[2000-10-30 09:40:14] [EMAIL PROTECTED]

reclassified.



[2000-09-14 16:33:52] [EMAIL PROTECTED]

This behaviour is still visible in PHP 4.0.2 with Roxen (pike 7.0.58).




[2000-08-17 16:19:50] [EMAIL PROTECTED]

This is not a session-related issue. Reclassifying.



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=5653


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


-- 
PHP Development Mailing List 
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 #5653 Updated: PIKE specific: with setcookie(), only the last cookie is written

2001-07-23 Thread andy

ID: 5653
Updated by: andy
Reported By: [EMAIL PROTECTED]
Status: Open
Bug Type: Other web server
Operating System: Linux
PHP Version: 4.0.5
New Comment:

i meant to say "only lets you set ONE"

Previous Comments:


[2001-07-23 19:25:30] [EMAIL PROTECTED]

this is probably a browser related problem (the browser only
lets you set noe cookie per site.)  Does anyone else agree
or has somebody actually reproduced this one?



[2001-05-06 16:45:56] [EMAIL PROTECTED]

is this still the case with the latest 4.0.5 release?



[2001-05-06 12:31:46] [EMAIL PROTECTED]

This bug is still present in 4.0.5.



[2000-10-30 09:40:14] [EMAIL PROTECTED]

reclassified.



[2000-09-14 16:33:52] [EMAIL PROTECTED]

This behaviour is still visible in PHP 4.0.2 with Roxen (pike 7.0.58).




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=5653


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


-- 
PHP Development Mailing List 
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 #6960 Updated: Cannot find/load truetype font

2001-07-23 Thread danradigan

ID: 6960
User updated by: [EMAIL PROTECTED]
Reported By: [EMAIL PROTECTED]
Old Status: Closed
Status: Open
Bug Type: *Graphics related
Operating System: Win 2000
PHP Version: 4.0.2
New Comment:

Bug has reappeared in 4.0.6 when i downloaded the zip version of PHP.

Previous Comments:


[2000-10-18 07:51:17] [EMAIL PROTECTED]

fixed in cvs



[2000-09-30 10:25:15] [EMAIL PROTECTED]

the file adventure.ttf is in the same dir as the script --Dan



[2000-09-30 10:23:46] [EMAIL PROTECTED]

I ran the PHP Easy installer for windows and get this error on my win2k system.  The 
behavior exists on NT4 as well.  It seems to run OK on Linux though.

PHP OUTPUT---

Warning:  Could not find/open font in 
c:\inetpub\wwwroot\freeways\test\gd2.php3 on line 5

Warning:  Could not find/open font in 
c:\inetpub\wwwroot\freeways\test\gd2.php3 on line 15

Warning:  Could not find/open font in 
c:\inetpub\wwwroot\freeways\test\gd2.php3 on line 16
‰PNG


IHDRýÑÞ_  PLTE,m¯°ØõpŠ>IDATxœíÁ1 õOm
 >
ÐõQJýIEND®B`‚
Warning:  Unknown list entry type in request shutdown (15605704) in 
c:\inetpub\wwwroot\freeways\test\gd2.php3 on line 18

MY CODE---









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


-- 
PHP Development Mailing List 
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 #12324: arg_separator.output broken

2001-07-23 Thread voudras

From: [EMAIL PROTECTED]
Operating system: linux
PHP version:  4.0.6
PHP Bug Type: *Configuration Issues
Bug description:  arg_separator.output broken

I've tested this problem on both php4.0.5 and 4.0.6, and it has also
reproduced on other machines. I will not however, that this problem does
not seem to occur on windows/apache machines.

the problem is that get vars using an arg_separator.output other than '&'
will be ignored when attempting to parse HTTP_GET_VARS.

there is an example avaliable at
http://wart.phpking.org/test.php
the source is visible at
http://wart.phpking.org/test.phps

a side note - it would seem that the transparent session info appended to a
url by php will also not follow a new 'arg_separator.output' value.. for
example - if i set the arg_separator.output to ';'..  my PHPSESSID will
still be appended to the url with a '&'

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


-- 
PHP Development Mailing List 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP-DEV] CVS Account Request

2001-07-23 Thread CVS Account Request

Full name: Yavor Shahpasov
Email: [EMAIL PROTECTED]
ID:yavo
Purpose:   PEAR Development

-- 
PHP Development Mailing List 
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 #12325: Query_string not defined

2001-07-23 Thread danradigan

From: [EMAIL PROTECTED]
Operating system: Win 2k
PHP version:  4.0.6
PHP Bug Type: Unknown/Other Function
Bug description:  Query_string not defined

Here is the code I am trying to run:

if ($QUERY_STRING != "") {
$insertFormAction .= "?" . $QUERY_STRING;

When I call the page from the browser with no querystring I get:

Warning: Undefined variable: QUERY_STRING in
c:\inetpub\wwwroot\gabe\deleteParam.php on line 3

This only reproduces when using the installer for windows
from the download section at php.net.  I cannot reproduce on
Linux or OSX.  Also I installed the zip version and cannot
reproduce it.  Only the installer.
-- 
Edit bug report at: http://bugs.php.net/?id=12325&edit=1


-- 
PHP Development Mailing List 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




RE: [PHP-DEV] Am I still subscribed

2001-07-23 Thread Chris Newbill

Not that it may be the same thing, but I had my server setup for ORBS RBL
and somehow the lists.php.net server got on that list.  I'm not even sure if
ORBS is active.

-Chris

-Original Message-
From: Andy [mailto:[EMAIL PROTECTED]]
Sent: Monday, 23 July, 2001 3:31 PM
To: [EMAIL PROTECTED]
Subject: [PHP-DEV] Am I still subscribed


Um...
Am I still subscribed to PHP-DEV list?  I have
not recieved mail from this list for a while.
When I updated a bug, I didn't get a message
about it like I used to.  I tried emailing myself
and it worked fine.

Is there a problem?

(*Andy*)

--
PHP Development Mailing List 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]


-- 
PHP Development Mailing List 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP-DEV] cvs socket extension

2001-07-23 Thread Chris Vandomelen

> On Mon, Jul 23, 2001 at 11:57:44PM +0200, Markus Fischer wrote:
> > On Mon, Jul 23, 2001 at 11:15:49PM +0200, Stig Venaas wrote :
> > Chris mentioned something that its not needed to restore the last
> > highest value for the max_fd if you drop the current highest one.
>
> I agree, it would only be for efficiency. I think now that the
> best solution is to just store the max. If clear.. is called
> with the current max, we can start at max and going downwards
> we can do FD_ISSET on each number until we find something that
> is set. Then we have the new max.

You can store the max, but it's not necessary to decrease it if someone
does FD_CLR() on a FD in the set. The only negative effect specifying a
larger value to select() has is extra loops in kernel space.

>
> > This makes me wondering why we not ever pass something like
> > 0x to select() [of course there is some legal reason not
> > to do this, i'm just curious now].
>
> Maybe, but I don't like it. Are you sure there are may not be bad
> things happening if the number is outside the size of the set?

See above.

BTW, you never specify 0x to select() anyway.
0x = (int) -1. :)

>
> > One the other hand, Daniel [afaik??] suggested to let the user
> > retrieve the handle id for a socket and calculate the hightest
> > value on its own. Something like
> >
> > $fd = socket_get_fd( $socket);
> >
> > comes into my mind.
> >
> >
> > The first one would be more nice for the users while the later is
> > much less programming effort :-)
>
> Yes, I think we should be nice to the users though (: There's less
> time wasted by doing it once in C than having many PHP programmers
> doing it over and over again...
>

I can't see why a user would ever need access to the actual file
descriptor returned.

> > I'm just wondering if there can be ever any drawback if we don't
> > let the user specify the first parameter to the select() call.
> >
> > As I'm not an expert I can't tell.
>
> I'm no expert, but I really can't see why it's needed (:
>

Nor do i. :)

Chris



-- 
PHP Development Mailing List 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP-DEV] cvs socket extension

2001-07-23 Thread Chris Vandomelen

On Mon, 23 Jul 2001, Jason Greene wrote:
> Just for curiosity, did you considered implementing poll instead of select? You 
>would not have to worry about specifying
> max_fd - 1.
>
> -Jason
>

I had considered poll. But it's a bit more of a hassle, and it's not
avaliable everywhere (AFAIK).

Chris


-- 
PHP Development Mailing List 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP-DEV] cvs socket extension

2001-07-23 Thread Markus Fischer

On Mon, Jul 23, 2001 at 07:50:22PM -0700, Chris Vandomelen wrote : 
> > On Mon, Jul 23, 2001 at 11:57:44PM +0200, Markus Fischer wrote:
> > > On Mon, Jul 23, 2001 at 11:15:49PM +0200, Stig Venaas wrote :
> > > Chris mentioned something that its not needed to restore the last
> > > highest value for the max_fd if you drop the current highest one.
> >
> > I agree, it would only be for efficiency. I think now that the
> > best solution is to just store the max. If clear.. is called
> > with the current max, we can start at max and going downwards
> > we can do FD_ISSET on each number until we find something that
> > is set. Then we have the new max.
> 
> You can store the max, but it's not necessary to decrease it if someone
> does FD_CLR() on a FD in the set. The only negative effect specifying a
> larger value to select() has is extra loops in kernel space.
> 
> >
> > > This makes me wondering why we not ever pass something like
> > > 0x to select() [of course there is some legal reason not
> > > to do this, i'm just curious now].
> >
> > Maybe, but I don't like it. Are you sure there are may not be bad
> > things happening if the number is outside the size of the set?
> 
> See above.
> 
> BTW, you never specify 0x to select() anyway.
> 0x = (int) -1. :)
> 
> >
> > > One the other hand, Daniel [afaik??] suggested to let the user
> > > retrieve the handle id for a socket and calculate the hightest
> > > value on its own. Something like
> > >
> > >   $fd = socket_get_fd( $socket);
> > >
> > > comes into my mind.
> > >
> > >
> > > The first one would be more nice for the users while the later is
> > > much less programming effort :-)
> >
> > Yes, I think we should be nice to the users though (: There's less
> > time wasted by doing it once in C than having many PHP programmers
> > doing it over and over again...
> >
> 
> I can't see why a user would ever need access to the actual file
> descriptor returned.
> 
> > > I'm just wondering if there can be ever any drawback if we don't
> > > let the user specify the first parameter to the select() call.
> > >
> > > As I'm not an expert I can't tell.
> >
> > I'm no expert, but I really can't see why it's needed (:
> >
> 
> Nor do i. :)

Great :-)

So we're seeing this getting implemented soon ?

Volunteers, anyone ? :-))

- Markus

-- 
PHP Development Mailing List 
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 #12326: Resources (like a file descriptor) don't persist correctly

2001-07-23 Thread ivans

From: [EMAIL PROTECTED]
Operating system: Windows 2000 Server
PHP version:  4.0.4
PHP Bug Type: Session related
Bug description:  Resources (like a file descriptor) don't persist correctly

If you try session_remember()ing a variable that contains a resource, for
instance one that you acquired via pfsockopen(), the value will be mangled,
and the resource will become unavailable.

For instance:

";
if (!$socket) {
$socket = fsockopen("www.php.net", 80);
session_register("socket");
}
echo gettype($socket),"";
?>

The second time you visit the page, the output is "integerresource". It
pretty much tells me that my resource gets saved as an integer, and then
nobody remebers to turn it back into a resource again :(

Can this be done? Am I thinking in the wrong direction if I need file
descriptor persistance?

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


-- 
PHP Development Mailing List 
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 #12327: Php does not start

2001-07-23 Thread tohunter

From: [EMAIL PROTECTED]
Operating system: win95 OSR
PHP version:  4.0.6
PHP Bug Type: Any
Bug description:  Php does not start

I just downloaded php 4.0.6 It successfully installed on mY PC in my server
configurations I did not use any configuration wile setup coz the server I
use is not listed. I use sambar server 5.06. On running of the Php

I get the following mesage.
The php4ts.dll is linked to missing OLE32.dll:CoCreateInstanceEx.

followed by 
php.exe Adevice attached to the system is not functioning
I tried to search Your website but it did not help. I tried to reinstall
but no luck all the .dll files are in my windows\system directory. I also
tried copying the required .dll to the php directory where I have installed
the software but it still does'nt seem to work.

Pls advice the earliest.

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


-- 
PHP Development Mailing List 
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 #5653 Updated: PIKE specific: with setcookie(), only the last cookie is written

2001-07-23 Thread schulte

ID: 5653
User updated by: [EMAIL PROTECTED]
Reported By: [EMAIL PROTECTED]
Status: Open
Bug Type: Other web server
Operating System: Linux
PHP Version: 4.0.5
New Comment:

This is not a browser-specific bug. It's only pike-specifc (roxen) .

I spent some time to undaerstand the roxen-sapi-code, but at last I'm not able to fix 
it.
This 'bug' is already mentioned in the README
..sorry. 

So this 'bug' should be listed in 'missing features' or 'todo's' but not maybe not in 
'bugs'



Previous Comments:


[2001-07-23 19:26:00] [EMAIL PROTECTED]

i meant to say "only lets you set ONE"



[2001-07-23 19:25:30] [EMAIL PROTECTED]

this is probably a browser related problem (the browser only
lets you set noe cookie per site.)  Does anyone else agree
or has somebody actually reproduced this one?



[2001-05-06 16:45:56] [EMAIL PROTECTED]

is this still the case with the latest 4.0.5 release?



[2001-05-06 12:31:46] [EMAIL PROTECTED]

This bug is still present in 4.0.5.



[2000-10-30 09:40:14] [EMAIL PROTECTED]

reclassified.



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=5653


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


-- 
PHP Development Mailing List 
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 #11829 Updated: memory access violation

2001-07-23 Thread edward_chen

ID: 11829
User updated by: [EMAIL PROTECTED]
Reported By: [EMAIL PROTECTED]
Status: Closed
Bug Type: IIS related
Operating System: win2000professional
PHP Version: 4.0.4pl1
New Comment:

Failure to release memory is the first thing we look at when this error occurs.  So 
there are two ways to look at this problem.  First, the php function may cause memory 
leaking.  Second, C program does not do a decent job on releasing the resource.  Since 
my program consistently uses C to recall the function fsockopen() from php to open 
websites.  I decided to abandon the function fsockopen() in php and decided to adopt C 
in order to fix the problem. However the problem persistently occurred, so I 
re-examined 
the C program and found out that during the creation process the program fails to 
complete the close handle progress.  After fixing the problem, I did a few more tests 
and found out that the Memory Access violation problem no longer exists.


Previous Comments:


[2001-07-23 14:31:01] [EMAIL PROTECTED]

Looks like a Mem Access violation, probably from some thread safe issue, this also 
doesnt seem IIS related as you mention the console, Please remove all extensions from 
your php.ini and see if the memory access violations continue if they stop then add 
the extensions gradually and tell us which one causes the mem access violation to 
occur as it probably isnt thread safe although this shouldnt effect the console. 
Anyway there isnt enough information here if you can reproduce it reliably please 
reopen this bug report including how you reproduce it with a short script.

- James



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

Is it possible that you can shorten down your script to the point where the problem 
still occurs, or provide the script in this bug report?

Derick



[2001-07-02 02:31:01] [EMAIL PROTECTED]

I've writed a scheduling program with C to execute php application all day in the 
console mode.Sometimes will happen the following error message:
 
   The instruction at "0x78003abf" referenced memory at "0x0111a000".The memory could 
not be "read".

This situation would not crash my C program.I only have to do is close the error 
message.But it will happen again after 3 or 4 hours.
 
Do you have any idea about this situation?

Thanks!!





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


-- 
PHP Development Mailing List 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




  1   2   >