[PHP-DEV] Bug #15392 Updated: configration

2002-02-05 Thread jimw

 ID:   15392
 Updated by:   [EMAIL PROTECTED]
 Reported By:  [EMAIL PROTECTED]
-Status:   Open
+Status:   Bogus
 Bug Type: *Configuration Issues
 Operating System: window98
 PHP Version:  4.1.1
 New Comment:

The bug system is not the appropriate forum for asking support
questions. For a list of a range of more appropriate places to ask
for help using PHP, please visit http://www.php.net/support.php


Previous Comments:


[2002-02-05 15:53:26] [EMAIL PROTECTED]

dear sir,
i am ASP programmer and now starting PHP.I have installed window98 and
server is PWS.
how can i config my system for PHP and PWS  on window98.
please send me the slotion and program  files if necessary.
bye
amir
address 672 shad bagh lahore 54900 pakistan




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


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




[PHP-DEV] Bug #15358 Updated: CSS problem: Huge text

2002-02-03 Thread jimw

ID:   15358
Updated by:   [EMAIL PROTECTED]
Reported By:  [EMAIL PROTECTED]
Status:   Open
Bug Type: Documentation problem
Operating System: Linux and Windoze
PHP Version:  4.1.1
New Comment:

This bug has been fixed in CVS.


Previous Comments:


[2002-02-03 12:33:29] [EMAIL PROTECTED]

A fairly large number of pages in the online docs show up with
extremely big font, at least in Netscape 4.7x on both Windooze and X.
The installation-all 'configure' options seems to be one of the
worst.






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


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




[PHP-DEV] Bug #14841 Updated: this is a test bug report.

2002-02-01 Thread jimw

ID: 14841
Updated by: [EMAIL PROTECTED]
Reported By: [EMAIL PROTECTED]
Status: Bogus
Bug Type: Website problem
PHP Version: 4.1.1
New Comment:

The bug system is not the appropriate forum for asking support
questions. For a list of a range of more appropriate places to ask
for help using PHP, please visit http://www.php.net/support.php


Previous Comments:


[2002-02-01 14:50:02] [EMAIL PROTECTED]

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

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




[2002-02-01 14:49:03] [EMAIL PROTECTED]

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

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




[2002-02-01 14:20:07] [EMAIL PROTECTED]

oops, the from address wasn't quite right. take 2.



[2002-02-01 14:17:21] [EMAIL PROTECTED]

just testing.



[2002-01-15 07:13:55] [EMAIL PROTECTED]

Shoudn't we make this bug a bogus so it doesn't show up in the stats???



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


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


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




[PHP-DEV] Bug #15299 Updated: getdate function returns 'March' for month 2 and month 3

2002-01-30 Thread jimw

ID: 15299
Updated by: jimw
Old Summary: getdate function returns 'March' for month 2 and month 3
Reported By: [EMAIL PROTECTED]
Old Status: Open
Status: Bogus
Bug Type: Calendar related
Operating System: Linux, Windows98
PHP Version: 4.1.1
New Comment:

the thirtieth day of february is in march.


Previous Comments:


[2002-01-30 09:24:56] [EMAIL PROTECTED]

PHP Version 4.0B2 (Linux) and PHP Version 4.0.6 (Windows) both show
same problem

$month=2 or $month=3 both produce 'March' as output ($monthName)

$day=date(j);
$year=date(Y);
$dateArray=getdate(mktime(0,0,0,$month,$day,$year));
$monthName=$dateArray[month];
return $monthName;






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


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




[PHP-DEV] Bug #15061 Updated: strtotime

2002-01-15 Thread jimw

ID: 15061
Updated by: jimw
Reported By: [EMAIL PROTECTED]
Old Status: Open
Status: Bogus
Bug Type: Date/time related
Operating System: linux
PHP Version: 4.0.5
New Comment:

daylight savings time.


Previous Comments:


[2002-01-15 19:54:50] [EMAIL PROTECTED]

result from following operation is 23 hours instead of expected 24:

echo ((StrToTime ('02-04-01') - StrToTime ('02-03-31')) / 3600)

everything seems to work, for example, in this case:

echo ((StrToTime ('02-04-02') - StrToTime ('02-04-01')) / 3600)





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


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




[PHP-DEV] Bug #14973 Updated: Mail sent by www-data on behalf of the user

2002-01-10 Thread jimw

ID: 14973
Updated by: jimw
Reported By: [EMAIL PROTECTED]
Old Status: Open
Status: Bogus
Bug Type: IMAP related
Operating System: Debian Linux Woody
PHP Version: 4.1.0
New Comment:

this is a mta configuration issue.


Previous Comments:


[2002-01-10 12:44:00] [EMAIL PROTECTED]

We are using HORDE 2 and IMP 3. Mail sent via IMP webmail comes From
www-data on behalf of the imp user.  www-data is the apache account, of
course. 

As far as I can tell, this only happens with local routing via IMP, not
via Outlook routing locally, or with IMP sending to outside accounts.

The problem is that this breaks the Outlook search from feature.  One
must search for www-data in the Inbox, which of course is not
correct.

Past postings to the IMP list indicate this is a PHP-IMAP issue..?

PHP Version: 4.1.0RC2 
PHP Major Version: 4.1 
PHP Minor Version: 0 
PHP Version Classification: dev 
You are running a supported version of PHP.
MTA = postfix-20011008snapshot-1
IMAP = courier






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


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




[PHP-DEV] Bug #14879 Updated: ereg_replace incorrectly functioning

2002-01-05 Thread jimw

ID: 14879
Updated by: jimw
Reported By: [EMAIL PROTECTED]
Status: Bogus
Bug Type: Scripting Engine problem
Operating System: Linux-Mandrake 8.1
PHP Version: 4.0.6
New Comment:

ereg_replace is behaving as designed, more or less. the behavior of an
empty first parameter is undefined (although with the bundled regular
expression engine, it will leave the string unchanged and display an
error message). i'd argue the behavior you're seeing is correct. it is
replacing the empty spaces in the strings with the replacement string.
(preg_replace() behaves this way.)

you are seeing the html tags unescaped because that is what some
browsers do with invalid-looking html tags (like you'll get with a pipe
between every character). php doesn't do any internal escaping of html
characters.

Previous Comments:


[2002-01-05 19:01:19] [EMAIL PROTECTED]

No idea what your points are.

The first one gives a warning REG_EMPTY and the second does what it is
expected to do: replace all space characters with pipe symbols (tested
with 4.0.6 and 4.1.1).

And, really, separate code from description.



[2002-01-05 18:35:56] [EMAIL PROTECTED]

?  
## Assign a bit of HTML to two source variables
#
$space_source_text  = 
$null_source_text   = bPHP/b iis/i a useful utool/u;


## Replace a substring within the the source variables
#   with another substring
$null_source_text   = ereg_replace(,  | $null_source_text);
$space_source_text  = ereg_replace( , |, $space_source_text);


## Print the new values of the source variables
#
print(This is the result of calling ereg_replace with an empty
parameter.hr$null_source_textbrbrbr);
print(This is the result of calling ereg_replace with a space as the
value of the parameter.hr$space_source_text);


## Conclusion
#
#   To me it seems that there are two significant points to make about the
behaviour of ereg_replace as demonstrated
#   in this example.
#   
#   The first point is that, when passing an empty value in the first
parameter, the ereg_replace function inserts
#   the second parameter between every character in the string, therefor
increasing the overall size of the string.
#   It is inserting -- not replacing as the function name implies
#
#   The second point is that, when passing an empty value in the first
parameter, the ereg_replace function does
#   not evaluate the HTML tags so that they are correctly rendered to the
browser.
#
#   Please keep in mind that I have yet to see the definition of
ereg_replace.
#
#   At first, I thought the ereg_replace function was possibly checking to
see if the first parameter was empty, and if
#   so, return execution immediatly to the caller. However, this doesn't
appear to be the case because it is obviously
#   transversing the character array because it is inserting the second
parameter between each character.
#
#   I'm guessing that PHP does some internal escaping of HTML characters
and the empty first parameter is somehow
#   goofing up the translation back to clean HTML
#
##
?




[2002-01-05 18:33:02] [EMAIL PROTECTED]

?  
## Assign a bit of HTML to two source variables
#
$space_source_text  = 
$null_source_text   = bPHP/b iis/i a useful utool/u;


## Replace a substring within the the source variables
#   with another substring
$null_source_text   = ereg_replace(,  |,
$null_source_text);
$space_source_text  = ereg_replace( , |,
$space_source_text);


## Print the new values of the source variables
#
print(This is the result of calling ereg_replace with an empty
parameter.hr$null_source_textbrbrbr);
print(This is the result of calling ereg_replace with a space as the
value of the parameter.hr$space_source_text);


## Conclusion
#
#   To me it seems that there are two significant points to make about
the behaviour of ereg_replace as demonstrated
#   in this example.
#   
#   The first point is that, when passing an empty value in the first
parameter, the ereg_replace function inserts
#   the second parameter between every character in the string, therefor
increasing the overall size of the string.
#   It is inserting -- not replacing as the function name implies
#
#   The second point is that, when passing an empty value in the first
parameter, the ereg_replace function does
#   not evaluate the HTML tags so

[PHP-DEV] Bug #13362 Updated: function wordwrap bug

2002-01-04 Thread jimw

ID: 13362
Updated by: jimw
Reported By: [EMAIL PROTECTED]
Old Status: Analyzed
Status: Closed
Bug Type: Strings related
Operating System: Linux Mandrake 8.0
PHP Version: 4.0.4pl1
New Comment:

this current behavior is correct. wordwrap() will only cut a word when
it is, by itself, longer than the line length. whenever it can cut the
line between words, it does.

it is easier to see what is going on using:

?
$text=A very long wrd.;
echo wordwrap($text, 8, |, 1);

which prints:

A very|long|wooo|ord.

Previous Comments:


[2001-10-21 05:06:16] [EMAIL PROTECTED]

4.2.0dev shows:
A very long wr d.



[2001-10-20 22:25:30] [EMAIL PROTECTED]

Reproduced with PHP 4.1.0RC1




[2001-09-18 07:33:45] [EMAIL PROTECTED]

?
$text=A very long wrd.;
$newtext=wordwrap($text,8, ,1);
echo $newtext\n;
?
return:
 
A very long w rd.
 
not
A very long wooo ord.
 
php 4.0.4pl1






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


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




[PHP-DEV] Bug #13362 Updated: function wordwrap bug

2002-01-04 Thread jimw

ID: 13362
Updated by: jimw
Reported By: [EMAIL PROTECTED]
Old Status: Closed
Status: Bogus
Bug Type: Strings related
Operating System: Linux Mandrake 8.0
PHP Version: 4.0.4pl1
New Comment:

oops, meant to flag as bogus, since this is not a bug.

Previous Comments:


[2002-01-04 14:40:38] [EMAIL PROTECTED]

this current behavior is correct. wordwrap() will only cut a word when
it is, by itself, longer than the line length. whenever it can cut the
line between words, it does.

it is easier to see what is going on using:

?
$text=A very long wrd.;
echo wordwrap($text, 8, |, 1);

which prints:

A very|long|wooo|ord.



[2001-10-21 05:06:16] [EMAIL PROTECTED]

4.2.0dev shows:
A very long wr d.



[2001-10-20 22:25:30] [EMAIL PROTECTED]

Reproduced with PHP 4.1.0RC1




[2001-09-18 07:33:45] [EMAIL PROTECTED]

?
$text=A very long wrd.;
$newtext=wordwrap($text,8, ,1);
echo $newtext\n;
?
return:
 
A very long w rd.
 
not
A very long wooo ord.
 
php 4.0.4pl1






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


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




[PHP-DEV] Bug #12768 Updated: wordwrap crashes with 4 parameters and width=0

2002-01-04 Thread jimw

ID: 12768
Updated by: jimw
Reported By: [EMAIL PROTECTED]
Old Status: Open
Status: Closed
Bug Type: Reproducible crash
Operating System: Linux
PHP Version: 4.0.6
Assigned To: elixer
New Comment:

forcing a cut with a zero width doesn't make any sense. but segfault
fixed in cvs and this case now issues a warning. (but also found and
fixed a related crash if a multi-character break was used with a zero
width.)

Previous Comments:


[2001-08-15 12:00:10] [EMAIL PROTECTED]

hi,

i discovered a small bug in wordwrap. if you call this function with 4
parameters and a width of 0 your php-script will crash/timeout.

pre
?php
 $string = the quick brown fox ...;
 echo wordwrap($string, 0, \n, 1),\n;
?
/pre

here is an inconsistency with the 2-parameter version, which returns all
words separated by \n in this case

regards marc







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


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




[PHP-DEV] Bug #4769 Updated: Params passed by reference in extension functions

2002-01-04 Thread jimw

ID: 4769
Updated by: jimw
Reported By: [EMAIL PROTECTED]
Old Status: Open
Status: Closed
Bug Type: Feature/Change Request
Operating System: Linux Mandrake 7.0
PHP Version: 4.0.0 Release
New Comment:

the func_arg_types field of the function_entry structure makes it
possible to force parameters to be passed by reference. (L0t3k
[EMAIL PROTECTED] pointed out this could be closed on php-dev.)

Previous Comments:


[2000-06-02 10:12:11] [EMAIL PROTECTED]

i'm working on a functions (sscanf/fscanf) to be registered with the
scripting engine which requires that variables be passed by reference.
this is easily done in user-land ($variable), but there seems to be no
obvious way to inform the compiler that the parameters accepted by c
level functions should be pushed by ref.

any guidance ?





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


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




[PHP-DEV] Bug #13791 Updated: just a test. ignore.

2002-01-03 Thread jimw

ID: 13791
Updated by: jimw
Reported By: [EMAIL PROTECTED]
Status: Bogus
Bug Type: *General Issues
Operating System: bogus
PHP Version: 4.0.6
New Comment:

just claiming this bug for myself, for further testing.

Previous Comments:


[2001-10-22 16:55:52] [EMAIL PROTECTED]

testing.






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


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




[PHP-DEV] Bug #14795: array_sum() modifies the specified array

2002-01-02 Thread jimw

From: [EMAIL PROTECTED]
Operating system: Debian unstable
PHP version:  4.1.0
PHP Bug Type: Arrays related
Bug description:  array_sum() modifies the specified array

the documentation claims this behavior was changed after 4.0.6, but it
appears to behave the same in 4.1.0. (and i don't see a commit to
ext/standard/array.c that indicates any such change to array_sum.)

$a = array(1, 2, foo);
print_r($a);
echo array_sum($a);
print_r($a);

results in:

Array
(
[0] = 1
[1] = 2
[2] = foo
)
3Array
(
[0] = 1
[1] = 2
[2] = 0
)

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


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




[PHP-DEV] Bug #14796 Updated: error in calculating with minus

2002-01-02 Thread jimw

ID: 14796
Updated by: jimw
Reported By: [EMAIL PROTECTED]
Old Status: Open
Status: Bogus
Bug Type: *General Issues
Operating System: suse linux 7.1
PHP Version: 4.1.0
New Comment:

floating point numbers are not exact. see 
http://www.php.net/manual/en/language.types.float.php

Previous Comments:


[2002-01-02 07:30:29] [EMAIL PROTECTED]

Its tested with 4.1.1

I tested with 
128.1 - 128.0

I think this error just occours if the result 1.0 and the numbers =128.0.





[2002-01-02 07:20:10] [EMAIL PROTECTED]

php allways returns after echo 166.3 - 166.6;

-0.28

but the right result is -0.3

is there a fix for this problem?

thanx

-OLIMAC





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


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




[PHP-DEV] Bug #14810 Updated: ob_clean() undefined

2002-01-02 Thread jimw

ID: 14810
Updated by: jimw
Reported By: [EMAIL PROTECTED]
Old Status: Open
Status: Bogus
Bug Type: Scripting Engine problem
Operating System: Windows 2000
PHP Version: 4.0.6
New Comment:

and as the page says, this function is only available in the CVS version right now.

Previous Comments:


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

According to PHP Manual, dated 4-12-2001, the ob_clean() function is available. When I 
code it on a page I get:

Fatal error: Call to undefined function: ob_clean() in 
C:\Inetpub\wwwroot\PHP_Library\SPCG_ACCESS_Form2.php on line 21.

I did a print_r( get_defined_funcs() ). ob_clean() is not shown in the function list.

ob_start and ob_end_clean() work fine.

I did a standard/default install.


Ed






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


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




[PHP-DEV] Bug #4669 Updated: Need a session_end() ??

2002-01-02 Thread jimw

ID: 4669
Updated by: jimw
Reported By: [EMAIL PROTECTED]
Old Status: Open
Status: Closed
Bug Type: Feature/Change Request
Operating System: Solaris 2.6
PHP Version: 4.0 Release Candidate 1
New Comment:

session_write_close, added in 4.0.4, does this.

Previous Comments:


[2000-05-29 16:09:51] [EMAIL PROTECTED]

May be I missed something, but
1/ session_start() will flock() the session file
2/ there is no way to unlock the file, except
   session_destroy(), but session_destroy() will
   unlink the session file (therefore session
   cannot be reused).
My need is : user opens 2 web pages (both multipart/mixed,
i.e. the scripts never end), 
none of them are changing the session variables, 
but both of them need their value.
I therefore need a session_end() that does exactly 
the same job as session_destroy() except it does
not call PS(mod)-destroy.
 
(changes are in session.c and php_session.h)





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


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




[PHP-DEV] Bug #14759 Updated: Incorrect version listed as start version of feature

2002-01-02 Thread jimw

ID: 14759
Updated by: jimw
Reported By: [EMAIL PROTECTED]
Old Status: Open
Status: Bogus
Bug Type: Documentation problem
Operating System: OS/2 Warp 4
PHP Version: 4.1.1
New Comment:

4.2.0 is what the first released version of what is now the CVS HEAD will be. so the 
first public php version for which the length parameter to fgets will be optional will 
be php 4.2.0.

Previous Comments:


[2001-12-30 03:04:05] [EMAIL PROTECTED]

http://www.php.net/manual/en/function.fgets.php

says, in part, 
Note: The length parameter became optional in PHP 4.2.0 

AFAIK, we're only working with 4.1.1 so far ??

Regards,
Al S.
Portland, Ore.





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


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




[PHP-DEV] Bug #14629 Updated: request link_target()

2001-12-20 Thread jimw

ID: 14629
Updated by: jimw
Reported By: [EMAIL PROTECTED]
Old Status: Open
Status: Closed
Bug Type: Feature/Change Request
Operating System: debian
PHP Version: 4.1.0
New Comment:

http://www.php.net/readlink

Previous Comments:


[2001-12-20 13:23:43] [EMAIL PROTECTED]

As a sister function to is_link($f), link_target($f) would return the target of the 
link $f, NULL if it's a dead link, or false if $f isn't a link.

- Colin





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


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




[PHP-DEV] Bug #14635 Updated: last week in october Monday displays twice!

2001-12-20 Thread jimw

ID: 14635
Updated by: jimw
Reported By: [EMAIL PROTECTED]
Old Status: Open
Status: Bogus
Bug Type: Date/time related
Operating System: Windows 2000 Professional
PHP Version: 4.0.6
New Comment:

october 28 was 25 hours long. daylight savings time.

Previous Comments:


[2001-12-20 20:36:49] [EMAIL PROTECTED]

When iterating from a start mktime to another using the date() function the First Day 
of the Last Week in October messes up.

The same problem appears when using Apache or IIS.

Just cut and paste below to see what I mean.

?php
$today = getdate(mktime (0,11,0,10,1,2001));

print Notice Problem with Octoberbr.full_calendar_month ($today,$PHP_SELF, 
null);
$today = getdate();
print Notice No Problembr.full_calendar_month ($today,$PHP_SELF, null);


/*
DISPLAY A FULL MONTH CALENDAR
*/

function full_calendar_month ($today,$url, $arrevent) {
GLOBAL $cbouser;
$user = null;
if ($cbouser) { $user = cbouser=$cbouser;}//display the userid
if (!$today) {$today = getdate();}
//NEED TO CONVERT $today to midnight!
$today = getdate(mktime(0,0,0,$today[mon],$today[mday],$today[year]));
$mktoday = mktime (0,0,0,$today[mon],1,$today[year]);
$mkday = 86400; //1 day in mktime 24 hr * 60 min * 60 sec.
$fday = date(w,$mktoday); //first day of the month w - day of the week, 
numeric, i.e. 0 (Sunday) to 6 (Saturday) 
$mth_num = date(n,$mktoday);  //the month number ie. Nov 11
$cell_bgcolor = #C0C0C0;
/*
DETERMINE THE FIRST DAY OF THE MONTH
*/
if ($fday == 0) {   //SUNDAY NEED TO GET TO MONDAY
$mkstart = $mktoday - $mkday * 6;
} elseif ($fday != 1) {//need to make the last part of last week.
$mkstart = $mktoday - $mkday * ($fday-1);
} else {//THE MONTH STARTS WITH MONDAY
$mkstart = $mktoday;
}

//FIND THE LAST DAY OF THE MONTH
$mkend = $mktoday + $mkday * (date(t,$mktoday)-1);//t - number of days 
in the given month; i.e. 28 to 31 

if (date(w,$mkend) != 0) {$mkend = $mkend + $mkday * (7-date(w,$mkend));}
#echo date(w D M j Y ,$mkend).br;

//BEGIN THE OUTPUT
/* FOR DROP BOX
select size=\1\ name=\month_now\ 
size=\1\.month_dropbox($mth_num)./select nbsp;
select size=\1\ name=\year_now\ 
size=\1\.year_dropbox(date(Y,$mktoday)).
nbsp;input type=\submit\ name=\submit\ value=\Go\
*/

 $table = table border=\1\ width=\100%\
trthinput type=\submit\ name=\submit\ 
value=\\/th
th colspan=\4\ align=\center\.date(F Y,$mktoday).
 
/ththinput type=\submit\ name=\submit\ 
value=\\/th/tr

trthMonday/ththTuesday/ththWednesday/ththThursday/ththFriday/ththSat/Sun/th/tr;

//SHADE THE DAYS THAT ARE NOT IN THE MONTH
if ($today[0] == $mkstart) { 
$bgcolor = bgcolor=\#00\ bordercolor=\#FF\;
} elseif ($mth_num != date(n,$mkstart)) { 
$bgcolor = bgcolor=\$cell_bgcolor\; 
} else {
$bgcolor = ;
}
$event_date = a 
href=\$url?event_date=.date(Y-m-d,$mkstart).rdocalendar_view=30$user\.date(F 
j,$mkstart)./a;
//THE FIRST DAY
 $table .= trtd align=\right\ valign=\top\ $bgcolor$event_date/td;

for ($i=$mkstart+$mkday;$i$mkend;$i+=$mkday) {
$event_date = 
event_date=.date(Y-m-d,$i).rdocalendar_view=30$user;
//background color
if ($today[0] == $i) { 
$bgcolor = bgcolor=\#00\ bordercolor=\#FF\ 
border=1;
} elseif ($mth_num != date(n,$i)) { 
$bgcolor = bgcolor=\$cell_bgcolor\ border=0; 
} else {
$bgcolor = ;
}
//date display
if (date(j,$i) == 1) { $the_day = date(F j,$i); } else { $the_day 
= date(j,$i);}

switch (date(w,$i)) { // day of the week, numeric, i.e. 0 (Sunday) 
to 6 (Saturday) 
case 1: #monday
$table .= trtd align=\right\ valign=\top\ 
$bgcolora href=\$url?$event_date\$the_day/a/td;
break;
case 6: #saturday - sunday
$table .= td
table width=100% $bgcolor
trtd align=\right\ 
valign=\top\a href=\$url?$event_date\$the_day/a/td/tr
/table

[PHP-DEV] Bug #14550 Updated: Basic Authentication fails

2001-12-16 Thread jimw

ID: 14550
Updated by: jimw
Reported By: [EMAIL PROTECTED]
Status: Open
Old Bug Type: Website problem
Bug Type: *Web Server problem
Operating System: Debian Linux 2.4.12
PHP Version: 4.1.0
New Comment:

fixing type. (website problem is for problems with php.net websites.)

Previous Comments:


[2001-12-16 15:25:20] [EMAIL PROTECTED]

HTTP: Basic Authentication fails


PHP: 4.1.0
Server API: Apache (1.3.22)
OS: Linux 2.4.12 (Debian)


The following PHP script should trigger a basic authentication dialog in the client 
browser (see http://www.zend.com/manual/features.http-auth.php):


?php

if(!isset($PHP_AUTH_USER))
{
header(WWW-Authenticate: Basic realm=\MyRealm\);
header(HTTP/1.0 401 Unauthorized);
echo Text to send if user hits Cancel button\n;
exit;
}
else
{
  echo pHello $PHP_AUTH_USER./p;
  echo pYou entered $PHP_AUTH_PW as your password./p;
}

?

Under PHP 4.0.6. the script worked fine and the user was prompted for username and 
password.

After the upgrade to PHP 4.1.0. the script does not produce the expected results, but 
leads to browser errors on the client side in most cases.

In rare cases the authentication dialog appears and the script works as expected. Most 
of the times the browser reports an error message or shows an empty document:

Netscape 4.77/Linux: the document contained no data
Lynx/Linux: Unexpected network read error; connection aborted.

Netscape 4.7/Win2k: the document contained no data
Netscape 3.0/Win2k: the document contained no data
IE 6.0/Win2k: server or dns not found
Opera 5.01/Win2k: The server requested a login authentication method that is not 
supported

Opera 6.0 (Beta TP1) / Linux: shows an empty document

If examined via telnet, the server closes the connection after the URL with the above 
script has been requested, e.g.

telnet (domain name) 80
GET /auth.php HTTP/1.1
Host: (domain name)

- connection closed by server

16.12.2001





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


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




[PHP-DEV] Bug #14526 Updated: Auto-appended ampersand characters cause problems with W3C compliance

2001-12-14 Thread jimw

ID: 14526
Updated by: jimw
Reported By: [EMAIL PROTECTED]
Old Status: Open
Status: Bogus
Bug Type: Session related
Operating System: SunOS
PHP Version: 4.0.6
New Comment:

not a bug. in php.ini, set arg_separator.output = amp;

Previous Comments:


[2001-12-14 17:43:41] [EMAIL PROTECTED]

When using sessions, PHP auto-appends '' characters to be links. This is a problem if 
I then run my code through the W3C HTML Validator. It gives the error:

Error: unknown entity PHPSESSID 

When it sees PHPSESSID= etc... appended to my links.

Would it be possible to have the auto-appended ampersands replaced by 'amp;' as 
described here

http://www.w3.org/TR/html401/appendix/notes.html#h-B.2.2

as then sites using PHP and sessions will pass the W3C Validity check.





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


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




[PHP-DEV] Bug #14043 Updated: gmtime() function would be nice

2001-11-13 Thread jimw

ID: 14043
Updated by: jimw
Reported By: [EMAIL PROTECTED]
Old Status: Open
Status: Bogus
Bug Type: Feature/Change Request
Operating System: 
PHP Version: 4.0.6
New Comment:

the output of time() is already in gmt.

Previous Comments:


[2001-11-13 14:00:18] [EMAIL PROTECTED]

It would be great to have a gmtime() function, just like the other gm time 
functions.

Currently, we use something to the effect of:

function gmtime()
{

$t = time();
$gm_time = gmdate('D M ',$t).sprintf('%2d',(int)gmdate('d',$t)).gmdate(' H:i:s 
Y',$t);
return strtotime($gm_time);

}






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


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




[PHP-DEV] Bug #13922 Updated: FORMAT() output in MySQL can't use str_replace

2001-11-04 Thread jimw

ID: 13922
Updated by: jimw
Reported By: [EMAIL PROTECTED]
Old Status: Open
Status: Bogus
Bug Type: MySQL related
Operating System: Redhat 7.1
PHP Version: 4.0.5
New Comment:

$TimeIndex = str_replace(,,,$TimeIndex);

str_replace doesn't modify the string you give it.



Previous Comments:


[2001-11-04 16:13:45] [EMAIL PROTECTED]

TO reproduce the problem:

Run a mysql query with the following:

   SELECT FORMAT((1004763843/1800),0) as TimeIndex

This will yeild 558,202. (Including the comma). 

As output from the sample script shows (see below for script):

   Before str_replace = 558,202

This needs to be converted to type int, but doing a settype to integer will return 
only 558. So any resourceful (pronounced lazy) php programmer would suggest using 
str_replace to remove the comma. This does not work: 

   After str_replace = 558,202

So doing the settype still yeilds this: 

   After settype = 558

Is there a way to have settype deal with commas (depending on the locale of course)? 
Of course the real solution is to use the MYSQL FLOOR, CEILING and ROUND functions, 
which I have done, but it was still perplexing as to why str_replace wouldn't work 
correctly on this string. The database library used here is phpDB. 

Script:
$query = SELECT FORMAT((1004763843/1800),0) as TimeIndex;

echo $query.br\n;

$rs = $db-execute($query);

$TimeIndex = $rs-fields[TimeIndex];
echo Before str_replace = $TimeIndex BR\n;
str_replace(,,,$TimeIndex);
echo After str_replace = $TimeIndex BR\n;
settype($TimeIndex,integer);
echo After settype = $TimeIndex BR\n;







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


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




[PHP-DEV] Re: Proposal: interface improvement for exec(), system(), and passthru().

2001-11-02 Thread jimw

Arcady Genkin [EMAIL PROTECTED] wrote:
 o If the first argument is an array, we assume that:
  - the first element of the array is the command to be executed,
  - and all other elements are command-line parameters
  - if PHP is in safe mode, quote each parameter separately

wouldn't it be better to just use execvp() and make escpaing each
parameter not be an issue? (that also makes it easier to pass arguments
with spaces, etc, and i think it would be useful even outside of safe
mode.)

that doesn't solve the 21 problem, but perhaps that could be handled
as a special case. using /bin/sh to run things from exec() and system()
just always gives me the willies. :)

jim

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




Re: [PHP-DEV] [PATCH] for safe_mode

2001-10-29 Thread jimw

Tomek Lipski [EMAIL PROTECTED] wrote:
 This is another version of my patch, allowing to set multiple dirs.

there already is a safe_mode_include_dir directive in cvs (and it's been
there since july.) it doesn't handle multiple directories, though.

the related code in fopen_wrapper.c could use some refactoring. there's
a big chunk of duplicated logic for the absolute path and relative path
cases.

jim

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




[PHP-DEV] Bug #13781 Updated: error in the french documentation at getprotobynumber()

2001-10-21 Thread jimw

ID: 13781
Updated by: jimw
Reported By: [EMAIL PROTECTED]
Status: Open
Old Bug Type: Website problem
Bug Type: Documentation problem
Operating System: 
PHP Version: 4.0.6
New Comment:

reclassifying.

Previous Comments:


[2001-10-21 14:09:38] [EMAIL PROTECTED]

Hi,

There is an mistake in the online French documentation at the page : 



http://fr.php.net/manual/fr/function.getprotobynumber.php



It is written :

getprotobynumber() retourne le numéro de protocole associé avec le nom de protocole 
name, comme dans /etc/protocols. 

But it is false... this is the definition of getprotobyname(), in reallity it's that :

getprotobynumber() retourne le nom de protocole associé avec le numéro de protocole 
number, comme dans /etc/protocols.

Bye... and thank you very much... for this excellent documentation...

Christian Wiederseiner
mandraNET 
http://www.mandranet.com





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


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




[PHP-DEV] Re: manual PDFs broken?

2001-10-04 Thread jimw

it should get updated with a complete version tomorrow. building the
pdf version is a bit tricky because of the massive size (which doesn't
play nicely with some of tex's standard built-in limits).

jim

Avi Lewin [EMAIL PROTECTED] wrote:
 hey all,
 
 the manual PDF appears to be incomplete.
 
 the file i downloaded was php_manual_en.pdf.zip,
 and its MD5 sum was 9fe96228a33da5e005a374895ba51a2.
 
 it totals 574 pages and finishes on fdf_set_ap().
 
 anyone have an idea as to what could be wrong?
 
 thanks,
 
 - avi
 

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




[PHP-DEV] Re: configure error in PHP3

2001-10-02 Thread jimw

apparently there's a bad combination of automake/autoconf/libtool
versions on the machine that generates the snapshots. i'll try and
sort it out later today.

jim

Colin Viebrock [EMAIL PROTECTED] wrote:
 Well, this was solved by removing the configure script that came with the
 snap, and running ./buildconf (thanks Derick).
 
 I'm guessing that the script that automagically generates these snaps is
 building a bad configure file ... somehow.
 
 - Colin
 
 
 Colin Viebrock [EMAIL PROTECTED] wrote in message
 [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
 FWIW, I get the same error with just a simple ./configure with no flags.

 The configure file is available to see at
 http://tex.privateworld.com/~cmv/configure

 - Colin


 
 

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




[PHP-DEV] Bug #13443 Updated: gethostbyname returns the name not the IP addr.

2001-09-26 Thread jimw

ID: 13443
Updated by: jimw
Reported By: [EMAIL PROTECTED]
Status: Duplicate
Bug Type: Unknown/Other Function
Operating System: BSDI 4.1
PHP Version: 4.0.6
New Comment:

php does not require a local dns server to be running unless your system's C library 
gethostbyname() call does (which seems extraordinarily unlikely).

here's a small c program you can use to test your system's gethostbyname(). if it says 
that no ip address is found, that's the exact same situation in which php's 
gethostbyname() will return the original hostname.

#include stdlib.h
#include stdio.h
#include netdb.h
#include sys/socket.h
#include netinet/in.h
#include arpa/inet.h

int main(int argc, char **argv) {
  struct hostent *host;
  struct in_addr in;

  if (argc != 2) {
fprintf(stderr,usage: %s hostname\n, argv[0]);
exit(1);
  }

  host = gethostbyname(argv[1]);

  if (host-h_length) {
memcpy(in.s_addr, *(host-h_addr_list), sizeof(in.s_addr));
fprintf(stderr,%s\n,inet_ntoa(in));
  }
  else {
fprintf(stderr,no ip address found for %s\n, argv[1]);
exit(1);
  }

  exit(0);
}


Previous Comments:


[2001-09-26 17:33:02] [EMAIL PROTECTED]

Does PHP require a local bind running?  Everything seems to point in that direction.  
The resolver libs are doing a lookup to the address of 0.0.0.0 vs. the servers as 
configured in resolv.conf.

;; Querying server (# 1) address = 0.0.0.0



[2001-09-25 17:16:30] [EMAIL PROTECTED]

IMHO this is not the same as #13423, which is why I didn't list it in the original 
report.  Although the data returned is the same (hostname instead of IP address) the 
reason for the failure is seems very different.



[2001-09-25 16:45:51] [EMAIL PROTECTED]

duplicate of 13423, among the others listed in the report. gethostbyname() returns the 
hostname it is passed when the C-level gethostbyname() call fails.



[2001-09-25 16:22:34] [EMAIL PROTECTED]

This is basically the same report as 8754, 12678, and 8856.  The gethostbyname 
function returns the name instead of the IP address.  The host is configured correctly 
and names can be resolved from the shell using nslookup, dig, etc.  This bug first 
appeared in 4.0.4 (although I didn't know it until now) and is present in 4.0.6 and 
4.0.8-dev (php4-200109251335.tar.gz - latest from the snapshots dir as of 9/26/01).  I 
regressed the bug back to my previous version of 3.0.14 and the bug is not present in 
that version.  I have tried both gethostbyname (returns the name) and gethostbynamel 
(returns 0 items in the array).





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


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




[PHP-DEV] Re: 403 on www.php.net (fwd)

2001-09-25 Thread jimw

Derick Rethans [EMAIL PROTECTED] wrote:
 I get a 403 (Permission denied) on bugs and www.php.net from home... any
 idea's? Works fine from my work location.

you didn't happen to have something that hit lstats.php every minute,
did you? i blocked a machine within chello.nl that was doing that.

jim

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




[PHP-DEV] Bug #13443 Updated: gethostbyname returns the name not the IP addr.

2001-09-25 Thread jimw

ID: 13443
Updated by: jimw
Reported By: [EMAIL PROTECTED]
Old Status: Open
Status: Duplicate
Bug Type: Unknown/Other Function
Operating System: BSDI 4.1
PHP Version: 4.0.6
New Comment:

duplicate of 13423, among the others listed in the report. gethostbyname() returns the 
hostname it is passed when the C-level gethostbyname() call fails.

Previous Comments:


[2001-09-25 16:22:34] [EMAIL PROTECTED]

This is basically the same report as 8754, 12678, and 8856.  The gethostbyname 
function returns the name instead of the IP address.  The host is configured correctly 
and names can be resolved from the shell using nslookup, dig, etc.  This bug first 
appeared in 4.0.4 (although I didn't know it until now) and is present in 4.0.6 and 
4.0.8-dev (php4-200109251335.tar.gz - latest from the snapshots dir as of 9/26/01).  I 
regressed the bug back to my previous version of 3.0.14 and the bug is not present in 
that version.  I have tried both gethostbyname (returns the name) and gethostbynamel 
(returns 0 items in the array).





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


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




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

2001-09-25 Thread jimw

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

duplicate of 13243. (yes, that's a later bug. but it documents the problem more 
concisely.)

Previous Comments:


[2001-08-10 13:06:52] [EMAIL PROTECTED]

?php
  $domain = www.yahoo.com;
  echo gethostbyname($domain) . br\n;
  print_r (gethostbynamel($domain));
? 

www.yahoo.com
Array ()


As I've thought about this some, I believe I started having problems with this only 
after upgrading to 4.06.  It may have worked with 4.05 and I know it was working for 
me with 4.04plx   Maybe this has something to do with my Linux Disto?  I'm using 
RedHat 7.0

Thanks for your thoughts.  For now, I'm just hard coding the ip address I need, so 
it's not like this is bogging me down.

Adam




[2001-08-09 21:51:12] [EMAIL PROTECTED]

Could you please try gethostbynamel() with the same 
hostname? 

(these both work for me just fine..)

--Jani




[2001-08-09 16:13:52] [EMAIL PROTECTED]

 Can you access the internet from a browser?

Yes, I can resolve any hostname using nslookup, host, etc.  This machine accesses the 
internet just fine.

ie.  from the command line:

[hydro@mail htdocs]$ host calc.intershipper.net
calc.intershipper.net is a nickname for www.intershipper.net
www.intershipper.net has address 216.58.153.11
[hydro@mail htdocs]$ 

but from PHP
?php
echo gethostbyname (calc.intershipper.net);
?

calc.intershipper.net



 Make sure your nameserver's are setup correctly.

To the best of my knowledge, they are.





[2001-08-09 16:02:33] [EMAIL PROTECTED]

Can you access the internet from a browser?

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

Make sure your nameserver's are setup correctly.



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

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

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

Thanks.

Adam





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


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




Re: [PHP-DEV] Bug #13443 Updated: gethostbyname returns the name not the IP addr.

2001-09-25 Thread jimw

Kevin Brooks [EMAIL PROTECTED] wrote:
 I completely agree with you.  I just think we're talking about 2 different
 things.  I agree that the php_gethostbyname call should NOT return the
 hostname if it fails.  My problem is that it is failing for no good
 reason, as it seems others have reported.  My server is a production 4.1
 BSDI system with perfectly functioning resolver libraries.

your example works fine for me. it sounds like you may have some sort
of local configuration problem. does gethostbyname() ever work? does
it only fail on particular domain names? php's gethostbyname() is a
very thin wrapper over the C gethostbyname(), so it seems extremely
unlikely that any failure to resolve is going to be in the php code.

jim

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




[PHP-DEV] Bug #13423 Updated: gethostbyname() returns hostname when ip address is part of hostname

2001-09-24 Thread jimw

ID: 13423
Updated by: jimw
Reported By: [EMAIL PROTECTED]
Old Status: Open
Status: Analyzed
Bug Type: Unknown/Other Function
Operating System: 
PHP Version: 4.0.4pl1
New Comment:

actually, what is going on is that php's gethostbyname() simply returns the name when 
it can't be resolved. (that seems like rather silly behavior to me, and is probably 
worth changing.)

Previous Comments:


[2001-09-24 18:12:03] [EMAIL PROTECTED]

When you pass a host name such as ip-255-255-255-255.reverse.mobilenetics.com to 
gethostbyname() it returns the hostname, not the ip address.

Regular hostnames like google.com work.





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


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




Re: [PHP-DEV] [RFC] Versioning rules for PHP/Zend/PEAR/Extensions

2001-09-24 Thread jimw

Stig Sæther Bakken [EMAIL PROTECTED] wrote:
 Huh?  Does strnatcmp() know the that 2.0RC4 is newer than 2.0b2? :-)

probably not. i've always thought that the change needed to make php's
version numbers make more sense is relatively small -- stop ignoring
the middle digit, and use it to signify releases. so instead of
4.0.7RC1, you'd get 4.1.0 (on BRANCH_4_1 or whatever). if bugs were
found, 4.1.1 would get released. when one of those releases is deemed
stable (what would be just 4.0.7 in our current scheme), make it
available for download on the download page. (meanwhile, head
development is on 4.2.0-dev.)

this also avoids the '4.0.6pl1' nonsense we've had to do before, too.
just release a new version in that 4.x branch.

(and the number of cases where people should need to check version
numbers for functionality should be vanishingly small. that's why we
have things like function_exists().)

i think tying the numbers to some definition of feature additions and
bug fixes only provides fodder for rules lawyers. i believe the
versioning scheme should be firmly rooted in the development process
that actually exists, not some ideal of what it should be.

jim

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




[PHP-DEV] Bug #11879 Updated: error al ejecuta make

2001-09-23 Thread jimw

ID: 11879
Updated by: jimw
Reported By: [EMAIL PROTECTED]
Old Status: 
Status: Assigned
Bug Type: Compile Failure
Operating System: NCR WM 4300 unix systema V MP-RA
PHP Version: 4.0.6
Old Assigned To: 
Assigned To: derick
New Comment:

fixing status that was not set.

Previous Comments:


[2001-07-13 11:53:52] [EMAIL PROTECTED]

i send the files to e-mail [EMAIL PROTECTED] is ok

thanks's



[2001-07-05 10:16:33] [EMAIL PROTECTED]

true... can you put them up in a gzip file on a website?

Derick



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

how Can i add my main/php_config.h, config.log, config.debug into this bugreport
what is your e-mail
the file's is very long 
the number lines for files
   1981  ./main/php_config.h
494  ./config.log
the file config.debug not exist, 
 only file config* are this
config.cache
config.guess
config.log
config.nice
config.status
config.sub
config_vars.mk
configure
configure.in

thanks...



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

It seems that PHP/autoconf/automake is not very compatible with the NCR system.
Can you add your main/php_config.h, config.log, config.debug into this bugreport, or 
place them on some URL?

Derick



[2001-07-04 10:45:11] [EMAIL PROTECTED]

1.-
$./configure --with-informix=yes --with-apache=/admvos/apache/apache_1.3.19 
--enable-sysvsem 
--enable-sysvshm --without-mysql --enable-track-vars   
# ok no error
2.-
$make# last's lines
cc  -I. -I/admvos/sistgczo/php-4.0.6/ext/posix 
-I/admvos/sistgczo/php-4.0.6/main 
-I/admvos/sistgczo/php-4.0.6/admvos/apache/apache_1.3.19/src/include 
-I/admvos/apache/apache_1.3.19/src/os/unix 
-I/admvos/sistgczo/php-4.0.6/Zend/usr/informix/incl/esql 
-I/admvos/sistgczo/php-4.0.6/ext/xml/expat/xmltok 
-I/admvos/sistgczo/php-4.0.6/ext/xml/expat/xparse -I/admvos/sistgczo/php-4.0.6/TSRM  
-DSUPPORT_UTF8 -DXML_BYTE_ORDER=12   -c posix.c  touch posix.lo
NCR High Performance C Compiler R3.0c
(c) Copyright 1994-97, NCR Corporation
(c) Copyright 1987-97, MetaWare Incorporated
w /admvos/sistgczo/php-4.0.6/Zend/zend_execute.h,L185/C5(#257):   '=' 
encountered where '==' may have been intend.
w /admvos/sistgczo/php-4.0.6/Zend/zend_execute.h,L198/C4(#257):   '=' 
encountered where '==' may have been intend.
w /admvos/sistgczo/php-4.0.6/ext/standard/php_string.h,L125/C5(#257): '=' 
encountered where '==' may have been intend.
E posix.c,L357/C17(#237): NGROUPS_MAX: Identifier is undeclared.
E posix.c,L357/C9(#445):  gidlist
|Type of variable is an array of zero length.
E posix.c,L361/C21(#237): NGROUPS_MAX: Identifier is undeclared.
w (#657):   (info) How referenced files were included:
|File /admvos/sistgczo/php-4.0.6/Zend/zend_execute.h from 
|/admvos/sistgczo/php-4.0.6/Zend/zend_API.h from /admvos/stgczo/php-4.0.6/main/php.h 
|from posix.c.
|File /admvos/sistgczo/php-4.0.6/ext/standard/php_string.h from posix.c.
3 user errors   4 warnings
*** Error code 3 (bu21)

make: fatal error.
*** Error code 1 (bu21)

make: fatal error.
*** Error code 1 (bu21)

make: fatal error.
*** Error code 1 (bu21)

make: fatal error.
$
TAHNKS






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


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




Re: [PHP-DEV] Bug #13094 Updated: Upload very slow

2001-09-02 Thread jimw

there's code to do this (for apache) in libapreq
(http://httpd.apache.org/apreq/). this is probably something that php
should fix in the sapi layer. while the libapreq code obviously won't
work for other servers, it may be a good source of code.

jim

Andi Gutmans [EMAIL PROTECTED] wrote:
 I think the problem is the fact that we read all of the file into Memory 
 (and therefore probably swap). I couldn't see any erealloc()'s in the code 
 so I'd bet on the former problem. Maybe ASP writes out the file while it's 
 arriving.
 Anyone have any ideas?
 
 Andi
 
 At 03:17 PM 9/2/2001 +, [EMAIL PROTECTED] wrote:
ID: 13094
Updated by: jeroen
Reported By: [EMAIL PROTECTED]
Status: Open
Bug Type: Performance problem
Operating System: Windows 2000
PHP Version: 4.0.6
New Comment:

Seems duplicate of 2291, but that one should be fixed in 4.0.6

Previous Comments:


[2001-09-02 07:34:53] [EMAIL PROTECTED]

?php
if(is_uploaded_file($userfile))
  {
 $FileNameAdd = 
 $FileName;   //Prefix for 
 filename using uniqid();
 $FileNameAddDB = 
 $DBFileName;   //Including prefix used for database
 $filename = 
 $HTTP_POST_FILES['userfile']['name'];   //Filename as selected by user
 $FileExt = substr(strrchr($filename, .), 1);
 if(array_search($FileExt, $Extensions) == FALSE)
 {
?
 font class=warningNot allowed to upload this file./font
?php
 exit();
 }
 $DBFileSize = $HTTP_POST_FILES['userfile']['size'];
 $DBFileName = $FileNameAddDB.$filename;
 move_uploaded_file($userfile, $Mapping . $FileNameAdd.$filename);
?

Didn't compile anything just use the compiled version as download from 
website.

When I upload a file bigger than 10 MB, it takes a very long time (if it 
uploads) I adjusted all the needed variables in php.ini.
I'm using it for files (150MB) over a Lan network.
I've tried a ASP uploader and it does the same file in less then three 
minutes. PHP was working for 30 minutes and still wasn't done.
I think this is a bug in the code.

Marcel van Leeuwen
Netherlands





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


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

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




[PHP-DEV] Bug #13046 Updated: automatically backslashing backslashes

2001-08-29 Thread jimw

ID: 13046
Updated by: jimw
Reported By: [EMAIL PROTECTED]
Old Status: Open
Status: Bogus
Bug Type: *General Issues
Operating System: linux
PHP Version: 4.0.6
New Comment:

search for magicquotes on www.php.net.

Previous Comments:


[2001-08-29 19:11:08] [EMAIL PROTECTED]

If a backslash (ASCII 0x5C) is passed to a PHP script, the script automatically 
backslashes it, making the value \\ rather than \.





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


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




[PHP-DEV] Bug #13047 Updated: black and red ant thiung

2001-08-29 Thread jimw

ID: 13047
Updated by: jimw
Reported By: [EMAIL PROTECTED]
Old Status: Open
Status: Bogus
Bug Type: *General Issues
Operating System: 
PHP Version: 4.0.6


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


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




[PHP-DEV] Re: cvs: php4 / NEWS

2001-08-18 Thread jimw

Zeev Suraski [EMAIL PROTECTED] wrote:
 +?? ??? 200?, Version 4.0.8-dev
 +- Fixed a crash in dbase_replace_record (Patch by [EMAIL PROTECTED]).

is there a reason not to merge this into the 4.0.7 branch?

jim

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




Re: [PHP-DEV] Setting up RFC

2001-08-14 Thread jimw

Sterling Hughes [EMAIL PROTECTED] wrote:
Actually, (+-) 0 are really terms and votes, in other projects I've
been involved in, there interpreted as I don't like it, but I won't
stop you and I like it, but its not something I think is
absolutely necessary

right.

http://dev.apache.org/guidelines.html is probably worth reading for
folks not familiar with the apache project's process.

this presentation is worth checking out, too:

  http://www.ics.uci.edu/~fielding/talks/apache98/index.htm

jim

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




Re: [PHP-DEV] Setting up RFC

2001-08-14 Thread jimw

Zak Greant [EMAIL PROTECTED] wrote:
 :) I should have chosen the symbols more carefully. 
 They seem to have generated more comments than the original proposal...
 
 Does anyone have any comments pertaining to the *concept*? :)

i was trying to drive at the point that you've just restated a
slightly weaker form of the apache project guidelines.

(now, a tool to make it easier to implement those guidelines may be a
good idea. but i see that as distinct from the process itself. and i
think anything that moves discussion out of email is doomed to fail.)

the real problem is determining who gets to vote.

jim

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




[PHP-DEV] Bug #12224 Updated: unsubscribe

2001-07-21 Thread jimw

ID: 12224
Updated by: jimw
Reported By: [EMAIL PROTECTED]
Old Status: Open
Status: Bogus
Bug Type: *General Issues
Operating System: 
PHP Version: 4.0.6
New Comment:

it was php-gtk. they're unsubscribed now.

Previous Comments:


[2001-07-21 18:46:05] [EMAIL PROTECTED]

Can you tell me the subjects of some of the emails, please?
 If I know the subjects I can figure out what list you are
subscribed to.

If you got a Welcome message, this should tell you how to
unsubscribe.



[2001-07-18 04:35:33] [EMAIL PROTECTED]

Hello, 
I'm doing all to unsubscribe from your list but I'm still getting mails from you.
please unsubscribe me now.
my email: [EMAIL PROTECTED]

Thanks
Irit





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


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




[PHP-DEV] Bug #12196 Updated: sesssion handling problems

2001-07-17 Thread jimw

ID: 12196
Updated by: jimw
Reported By: [EMAIL PROTECTED]
Old Status: Open
Status: Bogus
Bug Type: Session related
Operating System: linux
PHP Version: 4.0.4
New Comment:

not enough info.

Previous Comments:


[2001-07-17 01:38:12] [EMAIL PROTECTED]

unable to  achieve effiecient session handling





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


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




[PHP-DEV] Bug #12197 Updated: sesssion handling problems

2001-07-17 Thread jimw

ID: 12197
Updated by: jimw
Reported By: [EMAIL PROTECTED]
Old Status: Open
Status: Bogus
Bug Type: Session related
Operating System: linux
PHP Version: 4.0.4
New Comment:

not enough info on this one, either.

Previous Comments:


[2001-07-17 01:49:44] [EMAIL PROTECTED]

unable to  achieve effiecient session handling





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


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




Re: [PHP-DEV] Is there any value in having functions defined which do nothing.

2001-07-10 Thread jimw

from a support perspective, it might be nice to have a
quasi-implemented type of function that returns false for
function_exists but if the function is actually called, it would
return an error like imagecopyresampled() does (that is, a more
specific error than function not supported). that would help cut
down on bug reports about unsupported functions, i think.

(but given the option of the function not existing at all, or the
current behavior of functions like imagecopyresampled(), i'd prefer
the function not exist when it won't work so that smart people can
work around it with function_exists().)

jim

Stig Bakken [EMAIL PROTECTED] wrote:
 yes it would be better to not define it.  that has been the way in php 3
 and 4.  only back in v2 we had those blah is not enabled messages.
 
 - Stig
 
 On Tue, 10 Jul 2001, Jeremy Bettis wrote:
 
 Why is the habit of PHP modules to define functions that might or might not
 work depending on library dependancies.
 
 For example, ImageCopyResampled gives this error if libgd  2.0:
 ImageCopyResampled required libgd 2.0
 
 But that makes this code useless:
 
 if (function_exists('ImageCopyResampled')) {
 // doit the good way
 ImageCopyResampled(.);
 } else {
 ImageCopyResized(.);
 }
 
 My point was to have the php script work regardless of what version of php
 was installed, but even if the function exists, it might not work.  Wouldn't
 it have been better if the function just didn't exist at all?

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




[PHP-DEV] Bug #11959 Updated: security

2001-07-08 Thread jimw

ID: 11959
Updated by: jimw
Reported By: [EMAIL PROTECTED]
Old Status: Open
Status: Bogus
Bug Type: unknown
Operating System: 
PHP Version: 4.0.6
New Comment:

it is just ignoring the hostname. that's the source of our index.php.

Previous Comments:


[2001-07-08 08:32:14] [EMAIL PROTECTED]

if i put this as address
http://www.php.net/source.php?url=www.eldalie.it/index.php

explorer give me in output this (excuse me for my ba english)




?php
/* if you're reading this, it isn't because you've found a security hole.
   this is an open source website. read and learn! */

require_once 'prepend.inc';

$SIDEBAR_DATA = '
h3What is PHP?/h3

p
PHP is a server-side, cross-platform, HTML embedded scripting
language.  If you are completely new to PHP and want to get some idea
of how it works, have a look at the ' . make_link(/tut.php, introductory tutorial) 
. '.
Once you get beyond that, have a look at the example archive sites and some of the 
other resources available in the ' . make_link(/links.php, links section) . '.
/p

p
PHP is a project of the '.make_link(http://www.apache.org/,;





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


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




[PHP-DEV] Bug #11960 Updated: I dont know is this an bug?

2001-07-08 Thread jimw

ID: 11960
Updated by: jimw
Reported By: [EMAIL PROTECTED]
Old Status: Open
Status: Closed
Bug Type: Date/time related
Operating System: win2000 - IIS5
PHP Version: 4.0.5
New Comment:

march 25 looks to me like the day that parts of western europe transition to daylight 
savings time, which would mean that 23 hours is correct.

Previous Comments:


[2001-07-08 10:17:06] [EMAIL PROTECTED]

Please sorry for my bad english... :-)

I use PHP 4.0.5 on Win2000 Server and IIS5.

I have seen this:

one day has 86400 seconds ! 

now this:

$a=getdate(3370 * 86400); //result the 25.3.1979 1:00:00 
and... 
$a=getdate(3371 * 86400); //result the 26.3.1979 2:00:00 

Whay is this so?
Had the 25.3.1979 only 23 hours?
Or think i not korrect?

Please mail me if this is an bug or not.
([EMAIL PROTECTED])

Thanks for your time
Greetings from germany
Oliver







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


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




[PHP-DEV] Bug #11956 Updated: the bug database should handle website problems

2001-07-07 Thread jimw

ID: 11956
Updated by: jimw
Reported By: [EMAIL PROTECTED]
Old Status: Open
Status: Closed
Bug Type: Website problem
Operating System: 
PHP Version: 4.0.6
Assigned To: 
New Comment:

well, not only does it do that, it even sets the sender to the php-mirrors list. 
pretty special.

Previous Comments:


[2001-07-08 00:14:18] [EMAIL PROTECTED]

it should just send the bugs to [EMAIL PROTECTED]





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


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




[PHP-DEV] Bug #11955 Updated: development question

2001-07-07 Thread jimw

ID: 11955
Updated by: jimw
Reported By: [EMAIL PROTECTED]
Old Status: Open
Status: Duplicate
Bug Type: Scripting Engine problem
Operating System: windows 2000
PHP Version: 4.0.6
Assigned To: 


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


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




[PHP-DEV] Bug #11954 Updated: development question

2001-07-07 Thread jimw

ID: 11954
Updated by: jimw
Reported By: [EMAIL PROTECTED]
Old Status: Open
Status: Closed
Bug Type: unknown
Operating System: Windows 2000
PHP Version: 4.0.6
Assigned To: 
New Comment:

the cgi version of php can be run as a standalone application, but you'll need some 
kind of web server to talk to display the pages through an http client.

Previous Comments:


[2001-07-07 23:59:36] [EMAIL PROTECTED]

Is there any way to just have a PHP interpreter with no
web server ?

I was trying to develop an HTML applicaton and deploy it on single PCs without sending 
out a web server for each PC.
Do you know if this is possible with PHP ?

Thanks.
   Jack





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


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




[PHP-DEV] Bug #10850 Updated: imap_uid() does not produce an Unique ID Number from POP Servers

2001-07-07 Thread jimw

ID: 10850
Updated by: jimw
Reported By: [EMAIL PROTECTED]
Old Status: Open
Status: Closed
Bug Type: Documentation problem
Operating System: linux
PHP Version: 4.0.5
Assigned To: 
New Comment:

added note to manual.

Previous Comments:


[] 





[] 





[] 





[] 





[2001-05-14 09:38:37] [EMAIL PROTECTED]

The following code should echo out the Unique ID's generated by UIDL on the IMAP/POP 
Server, but echo's out a sequencial number starting with 1 instead...

It should probably produce ID's like, 3afffb530001, 3afffb530002, etc. etc.


$mbox = imap_open ({your.imap.host:143}, username, password);

$headers = imap_headers ($mbox);

if ($headers == true) {
while (list ($key,$val) = each ($headers)) {
echo imap_uid($mbox, $key);
}
} else {
echo No messages in inbox;
}





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


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




[PHP-DEV] Bug #11046 Updated: mkdir doesnt sets permissions

2001-07-07 Thread jimw

ID: 11046
Updated by: jimw
Reported By: [EMAIL PROTECTED]
Old Status: Analyzed
Status: Closed
Bug Type: Documentation problem
Operating System: Linux
PHP Version: 4.0.4pl1
Assigned To: 
New Comment:

noted in documentation.

Previous Comments:


[] 





[] 





[] 





[2001-05-23 05:19:07] [EMAIL PROTECTED]

mkdir(test,0777)

the directory is dwrx-rx-rx, not dwrxwrxwrx :)

why?

or it is my server with some rare php config?





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


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




[PHP-DEV] Bug #11609 Updated: documentation packaging format

2001-07-07 Thread jimw

ID: 11609
Updated by: jimw
Reported By: [EMAIL PROTECTED]
Old Status: Open
Status: Closed
Bug Type: Documentation problem
Operating System: debian
PHP Version: 4.0 Latest CVS (2001-06-21)
Assigned To: 
New Comment:

works for me. .tar.bz2 archives will get generated now.

it would probably make sense to drop .zip. there are tools to handle .tar.gz (and 
probably .tar.bz2) on windows, and the .zip files are quite piggish.

Previous Comments:


[2001-06-27 13:20:28] [EMAIL PROTECTED]

Bringing this suggestion to attention :)
It is a good one IMHO. A bz2 would make sense
to me. Maybe Hartmut?



[2001-06-21 14:41:27] [EMAIL PROTECTED]

Another documentation packaging format would be nice.
I'm talking about bz2 .. it makes sense:

If you package those html files with gzip you get approx 900kb file, but packaging 
with bz2 makes archive only ~600kb in size.

Heh and i'm not evevn talking about zip format - the size coming out from that is 
awful.







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


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




[PHP-DEV] Bug #11128 Updated: Downloadable html-manual is a tar-bomb

2001-07-07 Thread jimw

ID: 11128
Updated by: jimw
Reported By: [EMAIL PROTECTED]
Old Status: Open
Status: Closed
Bug Type: Documentation problem
Operating System: *nix
PHP Version: 4.0.5
Assigned To: 
New Comment:

now noted on the website.

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


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




[PHP-DEV] language development list

2001-07-02 Thread jimw

the perl, python, and tcl guys have put together a list to talk about
common issues in language development (like unicode, threads, numeric
conversions, etc). i figured the language geeks lurking here might be
interested. subscribe by sending a blank mail to
[EMAIL PROTECTED]

jim

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




[PHP-DEV] PHP 4.0 Bug #175 Updated: ~user where file not in home

2001-02-10 Thread jimw

ID: 175
Updated by: jimw
Reported By: [EMAIL PROTECTED]
Old-Status: Open
Status: Closed
Bug Type: Feature/Change Request
Assigned To: 
Comments:

this is handled by your web server, not php.

Previous Comments:
---

[1998-03-14 21:18:42] [EMAIL PROTECTED]
One my web server the users home doesn't exist, it is only
mounted from the shell machine, the web server can't see it.
Web file are instead in a different directory (which is
ln -s'd from home). This makes ~user useless.

My request? user_base this, if empty causes the
user's home/user_dir to be used, if not empty then when
~foo/bar is recieved, user_base/foo/user_dir/bar is used.
i.e. it's the base where user directories are to be found.

(It can also be set to /not or something like that to
essentially disable ~ since no ~ files will be found since
/not doesn't exist.)

---



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


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




[PHP-DEV] PHP 4.0 Bug #495 Updated: GPC order on per-file basis

2001-02-10 Thread jimw

ID: 495
Updated by: jimw
Reported By: [EMAIL PROTECTED]
Status: Open
Bug Type: Feature/Change Request
Assigned To: 
Comments:

moving to 4.0.

Previous Comments:
---

[1998-06-30 13:55:45] [EMAIL PROTECTED]
Hi!

On Sat, 21 Mar 1998, Rasmus Lerdorf wrote:

 Vladimir, I just added a "gpc_order" php3.ini directive and its matching
 php3_gpc_order Apache .conf directive.
 
gpc_order=GPC

 Is this difficult thing to add such ability on per-file basis, like
 ?php_track_vars? directive? I have many script in one directory and want to
 treat variables in other, than default, order in some of these scripts.

---
Vladimir Litovka [EMAIL PROTECTED], lamer


---



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


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




[PHP-DEV] PHP 4.0 Bug #727 Updated: Unified ODBC error reporting

2001-02-10 Thread jimw

ID: 727
Updated by: jimw
Reported By: [EMAIL PROTECTED]
Old-Status: Assigned
Status: Closed
Bug Type: Feature/Change Request
Assigned To: kara
Comments:

there's now an odbc_error and odbc_errormsg.

Previous Comments:
---

[1998-09-08 04:10:30] [EMAIL PROTECTED]
Right now there is no way to tell what kind of an error that
has occured when using Unified ODBC.  You can only check
if something did go wrong -- not what went wrong, which leaves
you guessing.

a odbc_errno() and odbc_errmsg() or something similar to
let the programmer know what went wrong would be of
tremendous help.

-Bjørn

---



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


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




[PHP-DEV] PHP 4.0 Bug #729 Updated: mysql_connect reuses connection ids

2001-02-10 Thread jimw

ID: 729
Updated by: jimw
Reported By: [EMAIL PROTECTED]
Old-Status: Open
Status: Closed
Bug Type: Feature/Change Request
Assigned To: 
Comments:

i'm pretty sure this was fixed in 4.0.

Previous Comments:
---

[1998-09-09 02:02:52] [EMAIL PROTECTED]
This can cause unpleasant problems when using a library function that cleans up after 
itself.

The script:

?
  function some_reuseable_function() {
// Pretend this function was included from another file
$conn2 = mysql_connect('host', 'uid', 'pwd');
echo "Function connection is: $conn2brn";
mysql_close($conn2);
  }

$conn1 = mysql_connect('host', 'uid', 'pwd');
echo "Main connection is: $conn1brn";
some_reuseable_function();
mysql_close($conn1);
?

The output:

Main connection is: 1
Function connection is: 1

Warning: 1 is not a MySQL link index in test.php3 on line 12



---



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


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




[PHP-DEV] PHP 4.0 Bug #818 Updated: pg_Connect() doesn't return unique connection

2001-02-10 Thread jimw

ID: 818
Updated by: jimw
Reported By: [EMAIL PROTECTED]
Old-Status: Analyzed
Status: Closed
Bug Type: Feature/Change Request
Assigned To: zeev
Comments:

this was a duplicate of 729.

Previous Comments:
---

[1998-10-05 10:36:40] [EMAIL PROTECTED]
pg_Connect() doesn't always return a unique connection identifier. This is a problem 
for code that uses nested
connections, or code that "hides" connections by using 
objects.

One work-around is to not explicitly call pg_Close() from the nested connection. The 
other is to do away with this feature - because it smells a lot like pg_pConnect(). 

Here's a small piece of code:

?

$HOST = "localhost";
$PORT = "5432";
$DATABASE = "template1";

function Nested() {
global $HOST, $PORT, $DATABASE;

$conn = pg_Connect($HOST, $PORT, "", "", $DATABASE);
if ($conn) {
echo "Nested id: $connn";
pg_Close($conn);
}
}

function SomeFunc() {
global $HOST, $PORT, $DATABASE;
$conn = pg_Connect($HOST, $PORT, "", "", $DATABASE);
if ($conn) {
echo "First id: $connn";
Nested();
pg_Close($conn);
}
}

SomeFunc();

?

Running this code yields:

First id: 1
Nested id: 1
br
bWarning/b:  1 is not a PostgreSQL link index in bfoo.php3/b on line 
b23/bbr

The expected output is:

First id: 1
Nested id: 2

The cause is the lookup performed inside pg_Connect(). Whenever a connection is 
established, it's stored in a hash table. Then, when a new connection is requested, 
the connection parameters are looked up in the hash table, and if a match is found, an 
existing connection id is returned. You can see this behaviour by changing one of the 
above pg_Connect() lines to:

$conn = pg_Connect("127.0.0.1", $PORT, "", "", $DATABASE);

This will cause the lookup to fail because localhost looks different from 127.0.0.1 in 
the lookup.

I have a feeling this may be something leftover from before pg_pConnect()... 

-Brian Schaffner-



---



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


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




[PHP-DEV] PHP 4.0 Bug #822 Updated: request on array_walk

2001-02-10 Thread jimw

ID: 822
Updated by: jimw
Reported By: [EMAIL PROTECTED]
Old-Status: Open
Status: Closed
Bug Type: Feature/Change Request
Assigned To: 
Comments:

this was done in 4.0.

Previous Comments:
---

[1998-10-06 06:57:07] [EMAIL PROTECTED]
it would be nice if the function (which array_wallk operates on) got
a second parameter passed: a string value which represents the
current key.

Now i could write

function output($val_ref, $key_name) {
  print("Element '$key_name' contains the value '$val_ref'n");
}
array_walk(array(1,2,3,4), "output");

Thank You

Boris

---



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


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




[PHP-DEV] PHP 4.0 Bug #855 Updated:

2001-02-10 Thread jimw

ID: 855
Updated by: jimw
Reported By: [EMAIL PROTECTED]
Old-Status: Open
Status: Closed
Bug Type: Feature/Change Request
Assigned To: 
Comments:

support for connection ids was added in 3.0.4.

Previous Comments:
---

[1998-10-17 05:45:02] [EMAIL PROTECTED]
well, seems like ora_error and ora_errorcode work only with cursor. it would be very 
cool if you could provide functions
to get error code/message for the cases when cursor does not exist (e.g. connection 
failed because of wrong hostname,
username or password, or when cursor creation failed).

---



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


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




[PHP-DEV] PHP 4.0 Bug #979 Updated: Openmarket Transact

2001-02-10 Thread jimw

ID: 979
Updated by: jimw
Reported By: [EMAIL PROTECTED]
Status: Open
Bug Type: Feature/Change Request
Assigned To: 
Comments:

doesn't look like anybody has written an openmarket transact extension. refiled 
against 4.0.

Previous Comments:
---

[1998-12-07 18:56:38] [EMAIL PROTECTED]
Any chance of support for OpenMarket Transact in PHP. I can't code so I'm just 
fantasising. Maybe someone will pick it up someday.
A full SDK is available from OpenMarket (www.openmarket.com).

Transact is amongst other things, a secure way of processing transactions. DOs 
(digital offers) and DCs (digital coupons) can be produced according so a certain 
encoding process that is then passed to the Transact server for processing.
This means you can provide products and services using these items independent of the 
ISP and they can be attached to any URl, anywhere.

It wouild be real nice to be able to produce a DO from a DB using PHP for passing to 
Transact.

---



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


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




[PHP-DEV] PHP 4.0 Bug #989 Updated: Incomplete date type reporting

2001-02-10 Thread jimw

ID: 989
Updated by: jimw
Reported By: [EMAIL PROTECTED]
Old-Status: Open
Status: Closed
Bug Type: Feature/Change Request
Assigned To: 
Comments:



Previous Comments:
---

[1999-12-13 15:44:29] [EMAIL PROTECTED]
Zeev, Andi, or Rasmus:
  I know you're busy, but this one is over my head...could you take a sec and explain 
the reasoning?

---

[1998-12-14 14:42:39] [EMAIL PROTECTED]
As it was in the original PHP v2.0 the support for the many mysql datatypes is 
pitifully incomplete.

In the original 2.0, I had to go in and manually code in the missing data types, as in 
that case it was merely an omission of some of newer data type names.

In the new 3.0 code, I find that it is even more pitiful in that all the multitude of 
data types available in mysql.c have been truncated to the one or two different types 
as seen fit by whoever decided those were the only types supported. How is  a PHP 
application to know the limits of a field when you only supply int as a datatype 
whereas mysql supports 3 sizes of INTs. And the list goes on. Here is the culprit 
section of mysql.c -- please do something about it because without this fix, one would 
not be able to properly manage a MYSQL database from a PHP web page. I wonder if 
anyone thought about that.

tatic char *php3_mysql_get_field_name(int field_type)
{
switch(field_type) {
case FIELD_TYPE_STRING:
case FIELD_TYPE_VAR_STRING:
return "string";
break;
#ifdef FIELD_TYPE_TINY
case FIELD_TYPE_TINY:
#endif
case FIELD_TYPE_SHORT:
case FIELD_TYPE_LONG:
case FIELD_TYPE_LONGLONG:
case FIELD_TYPE_INT24:
return "int";
break;
case FIELD_TYPE_FLOAT:
case FIELD_TYPE_DOUBLE:
case FIELD_TYPE_DECIMAL:
return "real";
break;
case FIELD_TYPE_TIMESTAMP:
return "timestamp";
break;
case FIELD_TYPE_DATE:
return "date";
break;
case FIELD_TYPE_TIME:
return "time";
break;
case FIELD_TYPE_DATETIME:
return "datetime";
break;
case FIELD_TYPE_TINY_BLOB:
case FIELD_TYPE_MEDIUM_BLOB:
case FIELD_TYPE_LONG_BLOB:
case FIELD_TYPE_BLOB:
return "blob";
break;
case FIELD_TYPE_NULL:
return "null";
break;
default:
return "unknown";
break;
}
}


-

If ignorance is bliss, I want a painful headache so at least I know what I'm aiming 
at. What about you folks?

P.S. VAR STRING and STRING are still 2 different datatypes as well. -- what gives? 
This is only supposed to report the TYPE of the field,. Not automagically coerce the 
field to some predefined format. Who decided what was and was not allowed anyway? When 
I saw the first version of the code, I assumed it would be fixed later. We're still no 
where near getting if fixed from what I see.

*sigh*

P.P.S. You managed to get the different flags this time (minus the blob flag I might 
point out -- redundant or not, code expects this flag to be present). I think you all 
have just not tested PHP3 against a robust enough app. I know for a fact that my 
database manager would break with the current implementation. But it runs fine on 
php2.0

P.P.P.S: What gives with the if():else; construct? No recursive descent parser? I 
mean, if you're aiming for C structure it's a small matter to use the proper C grammer 
which is available in BNF format for YACC and LEX. Right?

Please reply.

---



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


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




[PHP-DEV] PHP 4.0 Bug #1029 Updated: printf ( sprintf) dosn't handle exponential format for floats correctly

2001-02-10 Thread jimw

ID: 1029
Updated by: jimw
Reported By: [EMAIL PROTECTED]
Status: Open
Bug Type: Feature/Change Request
Assigned To: 
Comments:

really reassigned to 4.0 this time.

Previous Comments:
---

[1999-11-12 11:31:07] [EMAIL PROTECTED]
Moving to feature req.

---

[1999-01-05 06:29:54] [EMAIL PROTECTED]
System: Linux, Apache with PHP-module
Problem: printf ( sprintf) dosn't handle exponential format for floats correctly

Comment: This isn't actually a bug since it isn't documented to work in the manual.
I nedded exponential format in my application and since the function
"formatted_print.c" already had some support for exp. format (but
not working correctly) the simplest solution was to fix it in the php 
source code.
Below is my patch to  "formatted_print.c" if you would like to include 
it 
in a future rease of PHP.
Thanks for a great tool for building web interfaces to databases !

Regards,
   -leif



*** formatted_print.c.org   Mon Jan  4 21:06:38 1999
--- formatted_print.c   Mon Jan  4 21:13:09 1999
***
*** 257,263 
} else if (precision  MAX_FLOAT_PRECISION) {
precision = MAX_FLOAT_PRECISION;
}
!   cvt = _php3_cvt(number, precision, decpt, sign, (fmt == 'e'));
  
if (sign) {
numbuf[i++] = '-';
--- 257,266 
} else if (precision  MAX_FLOAT_PRECISION) {
precision = MAX_FLOAT_PRECISION;
}
!   if (fmt == 'e')
!   cvt = _php3_cvt(number, precision+1, decpt, sign, 1);
!   else
!   cvt = _php3_cvt(number, precision, decpt, sign, 0);
  
if (sign) {
numbuf[i++] = '-';
***
*** 288,294 
while (cvt[j]) {
numbuf[i++] = cvt[j++];
}
! 
numbuf[i] = '

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




[PHP-DEV] PHP 4.0 Bug #1027 Updated: fprintf() please

2001-02-10 Thread jimw

ID: 1027
Updated by: jimw
Reported By: [EMAIL PROTECTED]
Status: Open
Bug Type: Feature/Change Request
Assigned To: 
Comments:

really moved to 4.0 this time.

Previous Comments:
---

[2001-02-10 12:40:17] [EMAIL PROTECTED]
still no fprintf. refiled against 4.0.

---

[1999-01-05 04:09:14] [EMAIL PROTECTED]
Quite often my PHP3-scripts take input from the user, and writes it into a file. I can 
do

  fputs($fp,sprintf("%2dn",$variable));

but it really looks ghastly. Fprintf would be nice to have.

I would also suggest that you take all the stdio-derived functions which is dispersed 
throughout the manual (in Filesystem and Strings) and collect them in a new section 
called "File I/O" or equivalent.


---



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


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




[PHP-DEV] PHP 4.0 Bug #997 Updated: can't use name in script tag

2001-02-10 Thread jimw

ID: 997
Updated by: jimw
Reported By: [EMAIL PROTECTED]
Status: Open
Bug Type: Feature/Change Request
Assigned To: 
Comments:

really refiled this time.

Previous Comments:
---

[2001-02-10 12:39:26] [EMAIL PROTECTED]
refiling against 4.0.

---

[2000-08-05 12:35:03] [EMAIL PROTECTED]
Well, this is more like feature request than a real bug (i.e., it is so by design)

---

[2000-08-05 00:54:27] [EMAIL PROTECTED]
problem still exists in php3  4

---

[1998-12-18 12:08:15] [EMAIL PROTECTED]
When using the 'script language="php"" tab if you add a name... 'script 
language="php" name="include section"' php does not execute the code between the 
script tags.

---



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


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




[PHP-DEV] PHP 4.0 Bug #745 Updated: input type=image and array variables

2001-02-10 Thread jimw

ID: 745
Updated by: jimw
Reported By: [EMAIL PROTECTED]
Status: Analyzed
Bug Type: Feature/Change Request
Assigned To: 
Comments:

really refiled.

Previous Comments:
---

[2001-02-10 12:30:26] [EMAIL PROTECTED]
looks like this was never addressed, refiling against 4.0.

---

[1998-09-14 05:47:53] [EMAIL PROTECTED]
I have for example

input type=image name="foo[123]"

in a form. Then the receiving script does
not have

$foo_x[123] and $foo_y[123]

in its namespace.

It has only $foo[123] containg the value
of what should be $foo_y[123]

Boris

---



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


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




[PHP-DEV] PHP 4.0 Bug #731 Updated: HTTP proxy for fopen-wrapper

2001-02-10 Thread jimw

ID: 731
Updated by: jimw
Reported By: [EMAIL PROTECTED]
Old-Status: Open
Status: Closed
Bug Type: Feature/Change Request
Assigned To: 
Comments:

really refiled.

Previous Comments:
---

[2001-02-10 12:27:48] [EMAIL PROTECTED]
refiled against 4.0.

---

[1998-09-09 09:30:38] [EMAIL PROTECTED]
I would like to have include()/require() (and possibly other) functions 
using HTTP/FTP proxy. It would be great if I could decide on every php 
page which proxy server to use (if any at all - not needed for local URLs).

In short examples:
  include($url, $proxyhost, $proxyport)
or
  setproxy($proxyhost, $proxyport); include($url)
or even better (adding protocol):
  setproxy($proxyproto, $proxyhost, $proxyport); include($url).
Example:
  setproxy("http","w3cache1.com",8080);
  setproxy("ftp","ftpproxy.proxy.com",8080);
  include("http://www.domain.com"); include("ftp://ftp.domain2.com");

---



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


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




[PHP-DEV] PHP 4.0 Bug #586 Updated: configure does not support apache shadow tree

2001-02-10 Thread jimw

ID: 586
Updated by: jimw
Reported By: [EMAIL PROTECTED]
Status: Open
Bug Type: Compile Problem
Assigned To: 
Comments:

really refiled.

Previous Comments:
---

[2001-02-10 12:24:03] [EMAIL PROTECTED]
refiling as real bug against 4.0. (not verified.)

---

[1999-07-03 12:14:44] [EMAIL PROTECTED]
Looks like Apache's shadow source feature doesn't work in Apache 1.3.6. Moving to 
feature request.

---

[1998-07-27 20:15:31] [EMAIL PROTECTED]
As item 4.2 in the FAQ states, configure only supports being told the location of the 
top level apache dir.  But when apache is built using shadow dirs (as in 
apache/src.sun4u-sun-solaris2.260 configure cannot handle it).

The following patch modifies configure.in (for the APACI case only - sorry) to first 
check if the withval was actually a src dir and if so use it.

Oh and I just noticed that php does not handle being built in a separate dir.

--sjg

*** configure.in.~1~Mon Jul 20 07:55:47 1998
--- configure.inTue Jul 28 09:56:33 1998
***
*** 213,221 
  withval=/usr/local/etc/httpd
fi
if test "$withval" != "no"; then
! if test -f $withval/src/include/httpd.h; then
!   APACHE_INCLUDE="-I$withval/src/include -I$withval/src/os/unix"
!   APACHE_TARGET=$withval/src/modules/php3
if test ! -d $APACHE_TARGET; then
mkdir $APACHE_TARGET
fi
--- 213,228 
  withval=/usr/local/etc/httpd
fi
if test "$withval" != "no"; then
!   x=`dirname $withval`
!   if test -f $x/src/include/httpd.h; then
!   withval_src=$withval
!   withval=$x
!   else
!   withval_src=$withval/src
!   fi
! if test -f $withval_src/include/httpd.h; then
!   APACHE_INCLUDE="-I$withval_src/include -I$withval_src/os/unix"
!   APACHE_TARGET=$withval_src/modules/php3
if test ! -d $APACHE_TARGET; then
mkdir $APACHE_TARGET
fi
***
*** 228,249 
AC_DEFINE(APACHE)
AC_MSG_RESULT(yes - Shared Apache 1.3.x)
STRONGHOLD=
!   if test -f $withval/src/include/ap_config.h; then
AC_DEFINE(HAVE_AP_CONFIG_H)
fi
!   if test -f $withval/src/include/ap_compat.h; then
AC_DEFINE(HAVE_AP_COMPAT_H)
!   if test ! -f $withval/src/include/ap_config_auto.h; then
AC_MSG_ERROR(Please run Apache's configure or src/Configure program once and 
try again)
fi
else
!   if test -f $withval/src/include/compat.h; then
AC_DEFINE(HAVE_OLD_COMPAT_H)
fi
fi
else
AC_MSG_RESULT(no)
!   AC_MSG_ERROR(Invalid Apache directory - unable to find httpd.h under 
$withval/src/include)
  fi
fi
AC_SUBST(APACHE_INCLUDE)
--- 235,256 
AC_DEFINE(APACHE)
AC_MSG_RESULT(yes - Shared Apache 1.3.x)
STRONGHOLD=
!   if test -f $withval_src/include/ap_config.h; then
AC_DEFINE(HAVE_AP_CONFIG_H)
fi
!   if test -f $withval_src/include/ap_compat.h; then
AC_DEFINE(HAVE_AP_COMPAT_H)
!   if test ! -f $withval_src/include/ap_config_auto.h; then
AC_MSG_ERROR(Please run Apache's configure or src/Configure program once and 
try again)
fi
else
!   if test -f $withval_src/include/compat.h; then
AC_DEFINE(HAVE_OLD_COMPAT_H)
fi
fi
else
AC_MSG_RESULT(no)
!   AC_MSG_ERROR(Invalid Apache directory - unable to find httpd.h under 
$withval_src/include)
  fi
fi
AC_SUBST(APACHE_INCLUDE)


---



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


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




[PHP-DEV] PHP 4.0 Bug #495 Updated: GPC order on per-file basis

2001-02-10 Thread jimw

ID: 495
Updated by: jimw
Reported By: [EMAIL PROTECTED]
Status: Open
Bug Type: Feature/Change Request
Assigned To: 
Comments:

really moved.

Previous Comments:
---

[2001-02-10 12:22:39] [EMAIL PROTECTED]
moving to 4.0.

---

[1998-06-30 13:55:45] [EMAIL PROTECTED]
Hi!

On Sat, 21 Mar 1998, Rasmus Lerdorf wrote:

 Vladimir, I just added a "gpc_order" php3.ini directive and its matching
 php3_gpc_order Apache .conf directive.
 
gpc_order=GPC

 Is this difficult thing to add such ability on per-file basis, like
 ?php_track_vars? directive? I have many script in one directory and want to
 treat variables in other, than default, order in some of these scripts.

---
Vladimir Litovka [EMAIL PROTECTED], lamer


---



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


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




[PHP-DEV] PHP 4.0 Bug #253 Updated: Feep request: Per-server logging directives.

2001-02-10 Thread jimw

ID: 253
Updated by: jimw
Reported By: [EMAIL PROTECTED]
Status: Open
Bug Type: Feature/Change Request
Assigned To: 
Comments:

really moved.

Previous Comments:
---

[2001-02-10 12:21:39] [EMAIL PROTECTED]
just changing version to 4.0 in case zeev still wants to do this. :)

---

[1998-04-07 13:05:47] [EMAIL PROTECTED]
It would be nice (perhaps in 3.1?) if the logging levels
and other related information were setable per-server
rather than only globally -- I.e. On my main server, I
want errors not to be displayed, and logged to the error
log, but on my development site, I'd like errors to be
displayed but not logged, so that I don't constantly have
to be looking at the error log during debugging.

(I'm dropping this in the bug database so that we'll at
least have some record of it so, just perhaps, we can
poke at it in the future.)


---



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


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




[PHP-DEV] PHP 4.0 Bug #1179 Updated: PAM support

2001-02-10 Thread jimw

ID: 1179
Updated by: jimw
Reported By: [EMAIL PROTECTED]
Status: Open
Bug Type: Feature/Change Request
Assigned To: 
Comments:

nobody has written this extension, apparently. refiled against 4.0.

Previous Comments:
---

[1999-02-23 06:26:39] [EMAIL PROTECTED]
Does PHP has PAM support (I didn't found mention of this in help).
I could parse /etc/shadow manually, but I hope
there is function to just check password.


---



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


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




[PHP-DEV] PHP 4.0 Bug #1187 Updated: ODBC odbc_lastserror() function

2001-02-10 Thread jimw

ID: 1187
Updated by: jimw
Reported By: [EMAIL PROTECTED]
Old-Status: Open
Status: Closed
Bug Type: Feature/Change Request
Assigned To: 
Comments:

odbc_error and odbc_errorstr were added (will be in 4.0.5).

Previous Comments:
---

[1999-02-26 03:12:03] [EMAIL PROTECTED]
I added the above function to mys version of php
a while ago and have found it very usefull.

The rationale for this is that when an error occurs you
want to send back some meaningfull error message in the 
page contents in a formatted manner.
ie P class=error Sorry but uodbc_lasterror() occured.
(ie insert record failed).

Thus I created a function odbc_lasterror() that returns the
last error from SQLError.

In my version I strip off everything prior to the actual
error message , as the state info etc is of no value to an
end user.

MTCW.


---



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


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




[PHP-DEV] PHP 4.0 Bug #1189 Updated: SetCookie and Header error reporting improvement

2001-02-10 Thread jimw

ID: 1189
Updated by: jimw
Reported By: [EMAIL PROTECTED]
Status: Open
Bug Type: Feature/Change Request
Assigned To: 
Comments:

refiled against 4.0, although with output buffering, it may not be as important.

Previous Comments:
---

[1999-02-26 19:54:34] [EMAIL PROTECTED]
It would be really nifty if PHP remembered the file and line of the first character 
output when headers are finalized and sent, so that the Header() and SetCookie() 
functions could point to a specific place where the user screwed up when they are 
called after the headers have been finalized.

This feature would significantly reduce traffic on the PHP mailing list.


---



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


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




[PHP-DEV] PHP 4.0 Bug #1198 Updated: wanted: generic qeury object

2001-02-10 Thread jimw

ID: 1198
Updated by: jimw
Reported By: [EMAIL PROTECTED]
Old-Status: Open
Status: Closed
Bug Type: Feature/Change Request
Assigned To: 
Comments:

addressed by PEAR::DB.

Previous Comments:
---

[1999-03-02 16:45:33] [EMAIL PROTECTED]
In PHP I seem to be looking at different function calls depending on whether PHP is 
talking to a mSQL, or PostgreSQL or some other database. 

Shouldn't there just be a completely generic database object that I can use when 
building an SQL query, so my scripts don't have to know or care what database engine 
they're talking to? 



---



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


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




[PHP-DEV] PHP 4.0 Bug #1223 Updated: new sybase function/option

2001-02-10 Thread jimw

ID: 1223
Updated by: jimw
Reported By: [EMAIL PROTECTED]
Old-Status: Open
Status: Closed
Bug Type: Feature/Change Request
Assigned To: 
Comments:

sybase_get_last_message added for 4.0.5.

file a new bug against 4.0 for the second request if it is still desired.

Previous Comments:
---

[1999-03-11 15:56:44] [EMAIL PROTECTED]
Hi,

I would like to suggest two small enhancements to the sybase functions:

1. a function which returns the last Sybase error code

2. an option which automagically removes trailing whitespace on text fields (like in 
some of the other db-interfaces) 

Regards,

Christoph Biardzki


---



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


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




[PHP-DEV] PHP 4.0 Bug #1249 Updated: url_parse() is a bit too strict

2001-02-10 Thread jimw

ID: 1249
Updated by: jimw
Reported By: [EMAIL PROTECTED]
Status: Open
Old-Bug Type: Feature/Change Request
Bug Type: URL related
Assigned To: 
Comments:

this is a real bug, although relatively minor.

Previous Comments:
---

[1999-03-20 18:26:16] [EMAIL PROTECTED]
it is a minor glitch, though parse_url('?') returns path
set, but query unset. After looking at url_parse() it seeems,
that is would be more rational to test for subs[7].rm_so = lentgh
Equality case makes more sense for all the comparisons (maybe
except for scheme where it wouldnt matter). Result of this
would be, that any part that has its prefix present but value
absent and is at the end of string would be set (though empty)
Examples: '?' - query should be set, 'path#' fragment should
be set, 'http://' hostname should be set to empty
Another glitch is regexp for user:pass@host:port part. Now
the regexp is ^(([^@:]+)(:([^@:]+))?@)?([^:@]+)(:([^:@]+))?
while i suggest ^(([^@:]*)(:([^@:]*))?@)?([^:@]*)(:([^:@]*))?
This is also in accordance with regex for the whole url.

---



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


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




[PHP-DEV] PHP 4.0 Bug #1179 Updated: PAM support

2001-02-10 Thread jimw

ID: 1179
Updated by: jimw
Reported By: [EMAIL PROTECTED]
Old-Status: Open
Status: Closed
Bug Type: Feature/Change Request
Assigned To: 
Comments:

google to the rescue.

http://www.math.ohio-state.edu/~ccunning/pam_auth.html

Previous Comments:
---

[2001-02-10 13:03:03] [EMAIL PROTECTED]
nobody has written this extension, apparently. refiled against 4.0.

---

[1999-02-23 06:26:39] [EMAIL PROTECTED]
Does PHP has PAM support (I didn't found mention of this in help).
I could parse /etc/shadow manually, but I hope
there is function to just check password.


---



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


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




[PHP-DEV] PHP 4.0 Bug #1256 Updated: A suggestion re downloads

2001-02-10 Thread jimw

ID: 1256
Updated by: jimw
Reported By: [EMAIL PROTECTED]
Old-Status: Open
Status: Closed
Bug Type: Feature/Change Request
Assigned To: 
Comments:



Previous Comments:
---

[1999-03-22 04:40:03] [EMAIL PROTECTED]
It would be nice if the php.net download page had a list of ftp download sites as well 
as a geographical list of locations.

For those of us like me who run a site remotely (I'm in Australia but my servers are 
in the US), we'd like to be able to ftp the latest source from somewhere close to 
where our servers are.  As it stands, I have to either search thru the countries on 
the d/l page for an ftp location, or download it via http, then ftp it to my US sites.

No real problem.. but it would be nice :)

---



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


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




[PHP-DEV] PHP 4.0 Bug #1303 Updated: PHP Netscape Enterprise Server Oracle

2001-02-10 Thread jimw

ID: 1303
Updated by: jimw
Reported By: [EMAIL PROTECTED]
Old-Status: Open
Status: Closed
Bug Type: Feature/Change Request
Assigned To: 
Comments:



Previous Comments:
---

[1999-04-07 13:03:36] [EMAIL PROTECTED]
I would like to use PHP3 at my environment. 

Someone already purchased a corporate license of Netscape Enterprise Server 3.6 for 
our HP-UX, Solaris and AIX systems, so I can't use my favourite Apache+PHP combo.
The target environment is:
- Netscape enterprise server 3.6.
- Php 3.0.7.
- Oracle 7.x and 8.x via OCI.
- Perhaps ODBC.

I've seen something about running PHP as a cgi-bin.
Downloaded a UNIX source 3.0.7 tarball.
How should I "make" it? 

I also need to propagate the binaries from one HP-UX machine to other(s) on which C 
compiler is not installed.

Can you help me?
Of course you'll have access to the resulting binaries if I'm able to put them on 
work.

Regards.


---



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


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




[PHP-DEV] PHP 4.0 Bug #1432 Updated: fgets() fails on certain sockets

2001-02-10 Thread jimw

ID: 1432
Updated by: jimw
Reported By: [EMAIL PROTECTED]
Status: Open
Old-Bug Type: Feature/Change Request
Bug Type: Sockets related
Assigned To: 
Comments:

refiling as a bug against 4.0.

Previous Comments:
---

[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.1n");
  fputs($sock,"Host: www.hutman.comn");
  fputs($sock,"User-Agent: HTTP-crawler/1.0n");
  fputs($sock,"Connection: closenn");

/* 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.



---



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


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




[PHP-DEV] PHP 4.0 Bug #1491 Updated: Create Netscape plugin for offline development

2001-02-10 Thread jimw

ID: 1491
Updated by: jimw
Reported By: [EMAIL PROTECTED]
Old-Status: Open
Status: Closed
Bug Type: Feature/Change Request
Assigned To: 
Comments:

not going to happen. just run a local webserver.

Previous Comments:
---

[1999-06-04 08:15:29] [EMAIL PROTECTED]
It would be useful to have a Netscape plugin that could execute PHP scripts locally.  
This would be
particularly useful for web page development on Windows platforms that are not always 
connected
to a network.


---



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


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




[PHP-DEV] PHP 4.0 Bug #1504 Updated: New function to set the http status

2001-02-10 Thread jimw

ID: 1504
Updated by: jimw
Reported By: [EMAIL PROTECTED]
Status: Open
Bug Type: Feature/Change Request
Assigned To: 
Comments:

refiling against 4.0 (perhaps it could be addressed in sapi layer since 
header('status: 404 not found') may not work with all web servers).

Previous Comments:
---

[1999-06-07 21:09:00] [EMAIL PROTECTED]
When having a line like this "ErrorDocument 404 /404.php3", in your apache httpd.conf, 
the first line of the HTTP respone would be something like "HTTP/1.1 404 Object Not 
Found". It would be nice to be able to change this to fx. "HTTP/1.1 200 OK".
Right now php only makes it possible to add new lines after the first line of the 
header, and doing a header("status: 200 OK"); will not work on all clients.


---



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


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




[PHP-DEV] PHP 4.0 Bug #1515 Updated: php as a scripting language

2001-02-10 Thread jimw

ID: 1515
Updated by: jimw
Reported By: [EMAIL PROTECTED]
Status: Open
Bug Type: Feature/Change Request
Assigned To: 
Comments:

refiling against 4.0.

Previous Comments:
---

[2000-05-19 09:56:14] [EMAIL PROTECTED]
php -q is a step in the right direction
but this only disables http headers, 
not html markup in error messages

and php could be more clever when started
standalone (that is, if istty(stdin) is true
or certain environment variables are not set)





---

[1999-11-11 18:04:10] [EMAIL PROTECTED]
Try php -f or php -q. Is this what you are looking for? I often use it for systems 
programming.

---

[1999-06-20 20:18:27] [EMAIL PROTECTED]
Moved to feature request.

---

[1999-06-09 03:51:08] [EMAIL PROTECTED]
i'm using php3 for most of the scripts i'm writing and i'd like to ask if there's any 
chance of having php3 as a stand-alone interpreter? (not cgi, it'd behave as 
perl/python or any other interpreter - without outputting the html code for bugs 
etc.).
it has so many functions that it'd be damned good for writing system scripts.

please :)
fuf

thanks a lot for such a wonderful work!

---



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


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




[PHP-DEV] PHP 4.0 Bug #1531 Updated: require() causes flex scanner error

2001-02-10 Thread jimw

ID: 1531
Updated by: jimw
Reported By: [EMAIL PROTECTED]
Status: Open
Old-Bug Type: Feature/Change Request
Bug Type: Scripting Engine problem
Assigned To: 
Comments:

4.0 still gives the same message.

Previous Comments:
---

[2000-08-17 11:48:09] [EMAIL PROTECTED]
BD still it should not result in a parse error

 It's not parse error, please read the message.
 It didn't failed opening, it failed reading. 
 And require is not allowed to fail.
 That's not unknown file, that's known non-file.
-- 
Stanislav Malyshev   [EMAIL PROTECTED]  

ok, got it now, i thought it was related to just ./,
not directories in general

but it fails for include to, while including for
example a non-existing file produces the message
i cited above and the error message is very
misleading

so i move this on to feature requests:

1) should give clearer error-message

2) at least include should treat directories
   like nonexistant (or empty?) files
   and issue a warning instead of a fatal error

 

---

[2000-08-17 11:21:40] [EMAIL PROTECTED]
still it should not result in a parse error

it should produce a warning 

  PHP Warning:  Failed opening './' for inclusion 

as with other unknown files

---

[2000-08-17 11:07:48] [EMAIL PROTECTED]
I don't see problem here. ./ is not a file, and reading it as a file fails. So it 
should be.

---

[2000-08-17 10:57:52] [EMAIL PROTECTED]
still there even in 4.0.1

---

[1999-06-20 21:06:01] [EMAIL PROTECTED]
Zeev knows about this one, and I believe it will
be fixed in PHP4. There may actually be a very
old bug on this as well.

---

The remainder of the comments for this report are too long.  To view the rest of the 
comments, please view the bug report online.


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


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




[PHP-DEV] PHP 4.0 Bug #1658 Updated: Enhance Sybase-ct to fetch limited rows

2001-02-10 Thread jimw

ID: 1658
Updated by: jimw
Reported By: [EMAIL PROTECTED]
Status: Open
Bug Type: Feature/Change Request
Assigned To: 
Comments:

refiling against 4.0.

Previous Comments:
---

[1999-07-05 04:35:55] [EMAIL PROTECTED]
Our PHP coders here (www.sabex.com) have reported that a query to sybase through PHP 
fetches all rows from the server.  This is causing delays with large tables.

I have been asked to modify our local copy to allow more control over the amount of 
data returned.

1) Is anyone working on similar modifications?
2) If I cut the code here, how can I easiest integrate this code into an official 
release?
3) I haven't submitted any code to an open source project before, so any hand-holding 
you can offer me on source code control, versioning, merging, style, etc. would be 
appreciated!

Mark Thomas
[EMAIL PROTECTED]
Sabex (Pty) Ltd.

---



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


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




[PHP-DEV] PHP 4.0 Bug #1713 Updated: copy() function allows copy files from anywhere in filesystem

2001-02-10 Thread jimw

ID: 1713
Updated by: jimw
Reported By: [EMAIL PROTECTED]
Status: Open
Bug Type: Feature/Change Request
Assigned To: 
Comments:

refiled against 4.0. (this may be addressed by the basedir stuff, but i'm not sure.)

Previous Comments:
---

[1999-07-19 08:09:13] [EMAIL PROTECTED]
It's occurs only if the php source has the same user Id of the copy from file. 

For security purposes I think that some directive like work_basedir 
can be added in future versions to prevent mistakes that open the 
server filesystem root or the user local dirs. 



---

[1999-07-14 12:54:08] [EMAIL PROTECTED]
This problem was tested in two system´s

Linux 2.2.9 with php3.0.11  running as module of apache 1.3.6
Linux 2.2.10 with php3.0.7 running as module of apache 1.3.6

Php3.ini config

open_basedir= Some path in htdocs tree
enablesafemode=On 
DocRoot=Dir of Apache root html files. 

httpd.conf
DocumentRoot=Apache Root of htdocs 

It is possible to create a .php3 page that can copy files outside de DocRoot Tree :  

? copy("/etc/passwd","passwd.copy") ?=  WORKS

But 

? fopen("/etc/passwd","R") ?   =  FAIL becaus the open_basedir assignment.

In Security section of Manual, says that Security in php3 instaled with modules is 
APACHE
Security. In apache is impossible to httpd server with out a external script see files
above of DocumentRoot Directive 

I want to  know if its a config  problem of my PHP3 + Apache installations or if it´s 
a BUG. 

I also want to know if there are other functions with this problem/caracteristics. 

I Saw in lists some problems like this, but they are in Windows NT OS. The answers
to this problems are uncomplete and focus that NT is a insecure and with a lot
of problems OS. But I can reproduce a similar  problem in LINUX OS.

Congratulations and keep doing the good work.

Gomes, Marcio 




---



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


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




[PHP-DEV] PHP 4.0 Bug #1737 Updated: I do not see any way to get a direcory list from a ftp server.

2001-02-10 Thread jimw

ID: 1737
Updated by: jimw
Reported By: [EMAIL PROTECTED]
Old-Status: Open
Status: Closed
Bug Type: Feature/Change Request
Assigned To: 
Comments:

there's an ftp extension that support this sort of thing now.

Previous Comments:
---

[1999-07-21 04:30:09] [EMAIL PROTECTED]
correct

---

[1999-07-19 11:36:15] [EMAIL PROTECTED]
With the directory class it is no problem reading a directory on a local disk. But 
there is currently no way to do so on a ftp server.

---



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


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




[PHP-DEV] PHP 4.0 Bug #1757 Updated: Make DBM independant API

2001-02-10 Thread jimw

ID: 1757
Updated by: jimw
Reported By: [EMAIL PROTECTED]
Old-Status: Open
Status: Closed
Bug Type: Feature/Change Request
Assigned To: 
Comments:

PEAR::DB addresses this.

Previous Comments:
---

[1999-07-20 12:52:18] [EMAIL PROTECTED]
I would ejoy PHP a lot more if the SQL/DB API was identical across
Oracle/PostgreSQL/MySQL/etc.  The different database methods should
be made obsolete, and a generic API should be made available
instead.  Maybe ODBC would be a good choice for the generic API?

I want to be DB independant when I make PHP scripts to access my
system.


---



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


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




[PHP-DEV] PHP 4.0 Bug #2181 Updated: imap_fetchstructure() don't set body-type when message is TYPETEXT

2001-02-10 Thread jimw

ID: 2181
Updated by: jimw
Reported By: [EMAIL PROTECTED]
Status: Open
Old-Bug Type: Feature/Change Request
Bug Type: IMAP related
Assigned To: 
Comments:

refiled against 4.0 imap. no idea if it is still an issue.

Previous Comments:
---

[1999-11-15 10:11:06] [EMAIL PROTECTED]
Marc-
Hope you don't mind if I assign this?

---

[1999-08-28 11:42:39] [EMAIL PROTECTED]
please check below patch

--- imap.c.orig Sat Aug 28 23:43:06 1999
+++ imap.c  Sun Aug 29 00:08:24 1999
@@ -2087,8 +2087,8 @@
PARAMETER *par, *dpar;
PART *part;
 
-   if(body-type) add_property_long( arg, "type", body-type );
-   if(body-encoding) add_property_long( arg, "encoding", body-encoding );
+   if(body-type  TYPEMAX) add_property_long( arg, "type", body-type );
+   if(body-encoding  ENCMAX) add_property_long( arg, "encoding", body-encoding 
+);
 
if ( body-subtype ){
add_property_long( arg, "ifsubtype", 1 );
@@ -2711,8 +2711,8 @@
}
 
body=mail_body(imap_le_struct-imap_stream, msg-value.lval, 
section-value.str.val);
-   if(body-type) add_property_long( return_value, "type", body-type );
-   if(body-encoding) add_property_long( return_value, "encoding", body-encoding 
);
+   if(body-type  TYPEMAX) add_property_long( return_value, "type", body-type 
+);
+   if(body-encoding  ENCMAX) add_property_long( return_value, "encoding", 
+body-encoding );
 
if ( body-subtype ){
  add_property_long( return_value, "ifsubtype", 1 );


---



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


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




[PHP-DEV] PHP 4.0 Bug #2183 Updated: OPENSSL.org

2001-02-10 Thread jimw

ID: 2183
Updated by: jimw
Reported By: [EMAIL PROTECTED]
Status: Open
Bug Type: Feature/Change Request
Assigned To: 
Comments:

i guess an mhash/mcrypt-like openssl extensions is being requested. refiled against 
4.0.

Previous Comments:
---

[1999-08-28 20:07:30] [EMAIL PROTECTED]
Is anyone working on openssl integration with PHP.
Openssl is ground solid, tested and well integrated with apache through modssl.org
php/mod_ssl/apache is really a enterprise state ecommerce platform.
Only it would be far better if the integration of those three great tools doesn't take 
me a day to integrate when one of them has a new version.
Additionally openssl has lots more funtions than mhash/mcrypt combination. In fact the 
latter don't have Publik Key Crypto support

---



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


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




[PHP-DEV] PHP 4.0 Bug #2285 Updated: default arguments skipping

2001-02-10 Thread jimw

ID: 2285
Updated by: jimw
Reported By: [EMAIL PROTECTED]
Status: Open
Bug Type: Feature/Change Request
Assigned To: 
Comments:

refiled against 4.0. (although you can just pass an array to get named-parameters-like 
behavior.)

Previous Comments:
---

[2000-08-17 10:40:16] [EMAIL PROTECTED]
or maybe at least foo("wow",,"bar") as in list()

---

[1999-09-12 23:51:41] [EMAIL PROTECTED]
when I develop apps, I tend to add more and more arguments
to my functions giving them default values for backward
compatibility. but as soon as your function has more than
14 arguments :) it gets very tiring to write them all...

it would be great if you could specify WHICH arguments you
want to pass to the function... like:

function foo($arg1, $arg2 = 0, $arg3 = "none")
{
  ...
}

foo("wow", $arg3 = "bar");



---



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


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




[PHP-DEV] PHP 4.0 Bug #2341 Updated: expression evaluation - improvement

2001-02-10 Thread jimw

ID: 2341
Updated by: jimw
Reported By: [EMAIL PROTECTED]
Status: Open
Bug Type: Feature/Change Request
Assigned To: 
Comments:

refiled against 4.0.

Previous Comments:
---

[2000-06-23 00:01:39] [EMAIL PROTECTED]
moved to feature requests

---

[1999-09-21 12:00:31] [EMAIL PROTECTED]
I think it'd be nice if I could use e.g.

echo array("Su","Mo","Tu","We","Th","Fr","Sa")[$i];

anyway, it throws out a parser error in 3.0.12

is there any chance this would change?

---



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


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




[PHP-DEV] PHP 4.0 Bug #2342 Updated: Missing ssl CLIENT functions

2001-02-10 Thread jimw

ID: 2342
Updated by: jimw
Reported By: [EMAIL PROTECTED]
Old-Status: Open
Status: Closed
Bug Type: Feature/Change Request
Assigned To: 
Comments:

this is a duplicate of 2183.

Previous Comments:
---

[1999-09-21 12:28:09] [EMAIL PROTECTED]
As anybody doing service management work today, I've encountered a
lot of good php stuff out on the net; still, there are many things which would get A 
LOT better if there were a php module wrapping openSSL: as a matter of facts, whith 
such a module we would get: Private Key crypto (somewhat redundant, since there is 
mcrypt avalable); Public Key crypto (unavailable in php by now); TLS tunneling of 
services like IMAP or LDAP, which would in turn make stuff like 

a href="http://www.horde.org/imp/"IMP/a
or the LDAP access page available at
a href="http://www.mixdown.org/ldap"LDAP Entry Form/a
(a href="http://www.mixdown.org/ldap/ldap.phps"for source/a

much more useful even in an open environment. As a matter of facts,
I'm sending this feature "request" after having been prompted by one of the horde 
developers, whom I contacted privately, with a suggestion to add imaps capability to 
IMP.

Now, I think I bothered all of you enough, therefore all I should do is cheer, and say 
thank you and good bye!

Yours,

lmc

---



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


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




[PHP-DEV] PHP 4.0 Bug #2352 Updated: Create subgroup of database functions

2001-02-10 Thread jimw

ID: 2352
Updated by: jimw
Reported By: [EMAIL PROTECTED]
Old-Status: Open
Status: Closed
Bug Type: Feature/Change Request
Assigned To: 
Comments:

not likely to happen.

Previous Comments:
---

[2000-03-25 15:08:28] [EMAIL PROTECTED]
Change to feature/change request, as this isn't a bug.
Another level of navigation to get to the db stuff isn't
necessary IMO, but it's a legit request best left up to
the core dev/doc folks.



---

[1999-09-22 11:47:54] [EMAIL PROTECTED]
Create a subgroup of database functions and put the
14 or so database function groups there.

IV. Function Reference
  7. ClibPDF functions
  8. Database functions
A. dBase
B. dbm
C. filePro
  9. Date and Time functions

---



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


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




[PHP-DEV] PHP 4.0 Bug #2483 Updated: set_file_buffer return value

2001-02-10 Thread jimw

ID: 2483
Updated by: jimw
Reported By: [EMAIL PROTECTED]
Status: Open
Bug Type: Feature/Change Request
Assigned To: 
Comments:

refiling against 4.0.

Previous Comments:
---

[1999-10-10 17:51:29] [EMAIL PROTECTED]
I know this is nit-picky, but...  Can someone change set_file_buffer() so that its 
return values are more like other PHP functions?  Right now it returns false when you 
pass it bad file handle, otherwise it returns whatever setvbuf returns.  But setvbuf() 
returns zero on success and non-negative if you pass it bad type argument.  The type 
is hard-coded, so it should always return zero.  Is there a problem with changing the 
return code from

  RETURN_LONG(ret);

to

  if(ret){
php3_error(E_WARNING,"illegal value for setvbuf type",id);
RETURN_FALSE;
}
  else{
RETURN_TRUE;
  }

which allows PHP code like

?
  if(!set_file_buffer($fp))
  {
print("New buffer size not set!");
  }

?

Also, this sentence appears in my man page:
The setvbuf() function may be used after a stream is opened but before it is read or 
written.

It doesn't return any error when you try to do this, though, so it must just ignore 
the request.  How about adding a warning in PHP about trying to set the buffer size 
after a read or write?  Or is it too much overhead to track this info?

Thanks,
Leon

---



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


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




[PHP-DEV] PHP 4.0 Bug #2616 Updated: ActiveX automation support needed

2001-02-10 Thread jimw

ID: 2616
Updated by: jimw
Reported By: [EMAIL PROTECTED]
Old-Status: Open
Status: Closed
Bug Type: Feature/Change Request
Assigned To: 
Comments:

this should be supported already in php4.

Previous Comments:
---

[1999-10-27 07:42:20] [EMAIL PROTECTED]
I have written some ActiveX components in Visual Basic 6. It's nice to call this 
functionality from various other programs, but I have no chance to call this 
functionality from PHP3.

I don't want to write the code in PHP3 for two reasons:
- I don't want to maintain two source codes when making changes
- ActiveX is able to control whole applications on the server, which is an interesting 
thing

Even I don't know how to write PHP3 extensions under Windows (There's a complete 
"Hello world" example missing in the documentation), and: is it possible to do this in 
Visual Basic (I have no developer studio)?


---



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


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




[PHP-DEV] PHP 4.0 Bug #2931 Updated: A request to add greater CSV file support

2001-02-10 Thread jimw

ID: 2931
Updated by: jimw
Reported By: [EMAIL PROTECTED]
Status: Open
Bug Type: Feature/Change Request
Assigned To: 
Comments:

refiling against 4.0.

Previous Comments:
---

[1999-12-07 13:07:32] [EMAIL PROTECTED]
One of the many plugins for Perl's DBI module is the DBD::CSV module.  This allows 
users to treat a CSV file as if it were a real database.  Instead of manually reading 
a file line-by-line and parsing it to find the fields I want, I can write code like 
this:

$dbh = DBI-connect("DBI:CSV:f_dir=/foo/bar;"
   . "csv_eol=rn;"
   . "csv_sep_char=t;");
$sth = $dbh-prepare("SELECT * from foo where fn='Dave'");
$sth-execute();
$dbh-do("DELETE from foo where fn='Dave'");

The advantage of this is primarily: 
- easier code to write, and 
- easy portability to a real database later (almost as simple as changing all 
references from DBD:CSV to DBD:MySQL)

I know PHP4 is moving in the direction of a DBI-like solution, and that's great.  In 
the meantime, would it be possible to add CSV "database" support to PHP?  
(csv_connect, csv_query, csv_fetch_array, etc.) to simulate the operations of a 
database on a CSV file?

Thanks!

---



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


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




  1   2   >