[PHP-DEV] Bug #15462 Updated: Syntax Errors

2002-02-09 Thread mfischer

 ID:   15462
 Updated by:   [EMAIL PROTECTED]
 Reported By:  [EMAIL PROTECTED]
-Status:   Open
+Status:   Closed
 Bug Type: Feature/Change Request
 Operating System: win95
 PHP Version:  4.1.1
 New Comment:

You're very vague what exactly you concerns are.

However, PHP's commandline binary featuers a -l switch which only
performs syntax checking of the specified files.


Previous Comments:


[2002-02-09 04:44:29] [EMAIL PROTECTED]

Nice little functions for web text would go well...
Would cut web work in half ( less syntax  errors).

As most of the problems in PHP is syntax errors...  

any chance of a stand-alone syntax checker that points
right at the error... point... point... (the internal one stinks)

or dump the page as text on the screen with highlights...
would save us (1/2 hour search for error * 500)... 

if PHP gang are listening...

keep up the good work... Brian





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


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




[PHP-DEV] Bug #15462 Updated: Syntax Errors

2002-02-09 Thread mfischer

 ID:   15462
 Updated by:   [EMAIL PROTECTED]
 Reported By:  [EMAIL PROTECTED]
-Status:   Open
+Status:   Feedback
 Bug Type: Feature/Change Request
 Operating System: win95
 PHP Version:  4.1.1
 New Comment:

Please be _more_ specific. You just copypasted the text you write in
the first which won't get us any further!


Previous Comments:


[2002-02-09 04:53:47] [EMAIL PROTECTED]

Nice little functions for web text would go well...
   Would cut web work in half ( less syntax  errors).

   As most of the problems in PHP is syntax errors...  

   any chance of a stand-alone syntax checker that points
   right at the error... point... point... (the internal one stinks)

   or dump the page as text on the screen with highlights...
   would save us (1/2 hour search for error * 500)... 

   if PHP gang are listening...

   keep up the good work... Brian



[2002-02-09 04:46:32] [EMAIL PROTECTED]

You're very vague what exactly you concerns are.

However, PHP's commandline binary featuers a -l switch which only
performs syntax checking of the specified files.



[2002-02-09 04:44:29] [EMAIL PROTECTED]

Nice little functions for web text would go well...
Would cut web work in half ( less syntax  errors).

As most of the problems in PHP is syntax errors...  

any chance of a stand-alone syntax checker that points
right at the error... point... point... (the internal one stinks)

or dump the page as text on the screen with highlights...
would save us (1/2 hour search for error * 500)... 

if PHP gang are listening...

keep up the good work... Brian





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


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




[PHP-DEV] Bug #15462 Updated: Syntax Errors

2002-02-09 Thread mfischer

 ID:   15462
 Updated by:   [EMAIL PROTECTED]
 Reported By:  [EMAIL PROTECTED]
-Status:   Open
+Status:   Feedback
 Bug Type: Feature/Change Request
 Operating System: win95
 PHP Version:  4.1.1
 New Comment:

By all love I can dedicate to what you wrote now, I am (and probably
other who will read this) still not sure what your exact problem is!

What syntax error caused you man-hours of work to fix?

Really, think over again what you want to achieve. Be more specific,
provide more detail and examples. Generally spoken, read through the
bugs do's and don'ts again please.



Previous Comments:


[2002-02-09 05:15:37] [EMAIL PROTECTED]

Then I will be more specific.
PHP does not point specifically to a syntax error.
So consequently, 5 of us spend 1/2 an hour looking for it.
This costs money.

We've done enough to promote PHP...
 we can't be more specific than that.

Brian



[2002-02-09 05:11:40] [EMAIL PROTECTED]

Please be _more_ specific. You just copypasted the text you write in
the first which won't get us any further!



[2002-02-09 04:53:47] [EMAIL PROTECTED]

Nice little functions for web text would go well...
   Would cut web work in half ( less syntax  errors).

   As most of the problems in PHP is syntax errors...  

   any chance of a stand-alone syntax checker that points
   right at the error... point... point... (the internal one stinks)

   or dump the page as text on the screen with highlights...
   would save us (1/2 hour search for error * 500)... 

   if PHP gang are listening...

   keep up the good work... Brian



[2002-02-09 04:46:32] [EMAIL PROTECTED]

You're very vague what exactly you concerns are.

However, PHP's commandline binary featuers a -l switch which only
performs syntax checking of the specified files.



[2002-02-09 04:44:29] [EMAIL PROTECTED]

Nice little functions for web text would go well...
Would cut web work in half ( less syntax  errors).

As most of the problems in PHP is syntax errors...  

any chance of a stand-alone syntax checker that points
right at the error... point... point... (the internal one stinks)

or dump the page as text on the screen with highlights...
would save us (1/2 hour search for error * 500)... 

if PHP gang are listening...

keep up the good work... Brian





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


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




[PHP-DEV] Bug #15467 Updated: CSS get messed up since 4.1.1

2002-02-09 Thread mfischer

 ID:   15467
 Updated by:   [EMAIL PROTECTED]
 Reported By:  [EMAIL PROTECTED]
-Status:   Open
+Status:   Bogus
 Bug Type: *Compression related
 Operating System: linux
 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-09 13:03:34] [EMAIL PROTECTED]

Hi,

since our provider installed 4.1.1 on our server, some of my users had
problem with the site. It looks like the css file is broken. All my
pages a gzip compressed I heard it could be about the gzip?

Could this be?




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


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




[PHP-DEV] Bug #15468 Updated: problem with array_key_exists

2002-02-09 Thread mfischer

 ID:   15468
 Updated by:   [EMAIL PROTECTED]
 Reported By:  [EMAIL PROTECTED]
-Status:   Open
+Status:   Bogus
 Bug Type: Arrays related
 Operating System: Linux d2 2.2.20-ow1-procmax-smp
 PHP Version:  4.1.1
 New Comment:

Simple because 'ap' is NOT a key in the first case. See yourself with
var_dump($pole); how the array looks like.


Previous Comments:


[2002-02-09 13:20:25] [EMAIL PROTECTED]

Hello,

I'm trying function array_key_exists in this sample script, but doesn't
work:

?
$a=ap;
$pole = array(1 = ap, aa, dd);
if (array_key_exists($a, $pole)):
echo The element is in the array;
endif;
?

but when using:

$pole = array(ap = 1, aa = 2, dd = 3);

it's working. Can somebody look at this problem?

Thanks,
Pavel Hrabal




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


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




[PHP-DEV] Bug #15446 Updated: memory leak with xmldoc

2002-02-08 Thread mfischer

 ID:   15446
 Updated by:   [EMAIL PROTECTED]
 Reported By:  [EMAIL PROTECTED]
-Status:   Open
+Status:   Duplicate
 Bug Type: DOM XML related
 Operating System: RedHat7.1
 PHP Version:  4.1.1
 New Comment:

That's a feature request and actually a duplicate (don't know the # of
the other report). There was even a patch supplied (but last time I
tested [=months ago ;)]) I had some problems with it.


Previous Comments:


[2002-02-08 06:17:13] [EMAIL PROTECTED]

Use a small xml string and start this code
and look at your memory server, I've 150Mb
before the end of the loops :-(
Of course, I've the same result with a few loops
an big xml data.

for($j=1;$j=20;$j++){
for($i=1;$i=1000;$i++){
xmldoc($xml);
echo brloop $j:$i\n;
}
sleep(2);
}

Is it a memory leak?
Or a feature to add like xmldocfree()?





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


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




[PHP-DEV] Bug #15455 Updated: date() fails with negative timestamps

2002-02-08 Thread mfischer

 ID:   15455
 Updated by:   [EMAIL PROTECTED]
 Reported By:  [EMAIL PROTECTED]
 Status:   Closed
 Bug Type: Date/time related
 Operating System: Windows 2000
 PHP Version:  4.1.1
 New Comment:

Just for clarification:

localtime returns a pointer to the structure result. If the value in
timer represents a date before midnight, January 1, 1970, localtime
returns NULL. - right from the MSDN. And a NULL value can't be used to
turn into something meaningful.


Previous Comments:


[2002-02-08 15:29:40] [EMAIL PROTECTED]

It's a limitation in windows' date routines. I'm afraid we can little
do about it for now.

Derick



[2002-02-08 14:45:09] [EMAIL PROTECTED]

Simple to reproduce, only on windows:

$date = mktime(0,0,0,5,5,1965);
echo date('d-m-Y', $date);

This happens with timestamps before 01/01/1970 that results in a
negative number (like birth dates, for example).






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


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




[PHP-DEV] Bug #15458 Updated: mysql_pconnect return boolean

2002-02-08 Thread mfischer

 ID:   15458
 Updated by:   [EMAIL PROTECTED]
 Reported By:  [EMAIL PROTECTED]
-Status:   Open
+Status:   Bogus
 Bug Type: MySQL related
 Operating System: Solaris 8
 PHP Version:  4.1.1
 New Comment:

You've been caught by 'Operator Precedence'.

First, the evaluation of the '||' operator is done. Since you can
successfully connect (and a resource is a logical true), the statement
'opa || opb' gives 'true' then this is assigned to $con.

For what you want to do, you need to set parenthesis properly:

($con = mysql_pconnect($db_Hostname, $db_UserName, $db_Password) ||
die(Can't Connect to Database: .mysql_error());


Previous Comments:


[2002-02-08 17:24:03] [EMAIL PROTECTED]

Sorry forgot to mention, platform is Sparc. And the error also applies
for mysql_connect.



[2002-02-08 17:22:38] [EMAIL PROTECTED]

$con = mysql_connect($db_Hostname, $db_UserName, $db_Password) ||
die(Can't Connect to Database: .mysql_error());

print gettype($con);
print $con;

The connection is okay, no error is given. PHP generates an error if
the
username or password is incorrect. 
Variable $con supposed to be a link, but instead its a boolean with
the
value true(1). Just for info, other php scripts work fine in
conjuction
with mysql. but for this script I need to have seperate links, instead
of de default last one.

Compile options: --with-mysql




[2002-02-08 17:19:27] [EMAIL PROTECTED]

$con = mysql_pconnect($db_Hostname, $db_UserName, $db_Password) ||
die(Can't Connect to Database: .mysql_error());

print gettype($con);
print $con;

The connection is okay, no error is given. PHP generates an error if
the username or password is incorrect. 
Variable $con supposed to be a link, but instead its a boolean with the
value true(1). Just for info, other php scripts work fine in conjuction
with mysql. but for this script I need to have seperate links, instead
of de default last one.

Compile options: --with-mysql




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


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




[PHP-DEV] Bug #15460 Updated: Some jpeg can't be displayed when using $PHP_SELF

2002-02-08 Thread mfischer

 ID:   15460
 Updated by:   [EMAIL PROTECTED]
 Reported By:  [EMAIL PROTECTED]
-Status:   Open
+Status:   Bogus
 Bug Type: Output Control
 Operating System: window
 PHP Version:  4.0.5
 New Comment:

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

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



Previous Comments:


[2002-02-08 21:46:00] [EMAIL PROTECTED]

I'm quite sure that this is a bug because when I used form action
posting
by a command $PHP_SELF, a few of jpeg images couldn't be displayed
thru web browser inluding Netscape and IE. However, not all the jpeg,
but only a few of them had problem. Therefore, I try to avoid using
$PHP_SELF and change it to the name itself such as filename.php.
After that, I found that all jpeg images could be displayed thru both
browsers.  (Remark: web server is Apache)





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


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




[PHP-DEV] Bug #15419 Updated: ibase_close problem

2002-02-07 Thread mfischer

 ID:   15419
 Updated by:   [EMAIL PROTECTED]
 Reported By:  [EMAIL PROTECTED]
-Status:   Open
+Status:   Feedback
 Bug Type: InterBase related
 Operating System: linux red hat
 PHP Version:  4.1.1
 New Comment:

Can look up in your apache log if you get a segfault or some similar
crash, and if so can you please provide a backtrace
(http://bugs.php.net/?id=15419edit=1) ?


Previous Comments:


[2002-02-07 02:55:13] [EMAIL PROTECTED]

?
$dbc1=ibase_connect('/opt/interbase/bazy/slownik.gdb','SYSDBA','masterkey','WIN1250');

$qST=SELECT NAME,OPIS FROM SLOWNIK WHERE ID=$idD;
$q=ibase_query($dbc1,$qST);
list($nameDB,$descriptDB)=ibase_fetch_row($q);
ibase_close($dbc1); // here is a bug
?

'./configure' '--prefix=/usr/local/php4.1.1/' '--enable-track-vars'
'--enable-trans-sid' '--with-mysql' '--disable-debug'
'--with-apxs=/usr/local/apache-local/bin/apxs' '--enable-shmop'
'--enable-xml' '--enable-sockets' '--with-gd'
'--with-interbase=/opt/interbase/'

Any command after ibase_close doesn't execute and apache returns 404
return code 






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


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




[PHP-DEV] Bug #15434 Updated: unterminated string constant

2002-02-07 Thread mfischer

 ID:   15434
 Updated by:   [EMAIL PROTECTED]
 Reported By:  [EMAIL PROTECTED]
-Status:   Open
+Status:   Bogus
 Bug Type: Output Control
 Operating System: Windows 2000
 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-07 15:52:12] [EMAIL PROTECTED]

while($row=mysql_fetch_array($result))
{
$swlicnum = $row[swlicnum];
$swdes = $row[swdes];
$swlicid = $row[swlicid];

$query2 = select count(*) from software where swdes =
'.$swdes.';
$result2=mysql_query($query2);

$liccount = mysql_result($result2, 0, 0);

if($swlicnum!=$liccount)
{
$table_block .= trtdspan class='block' 
STYLE='cursor:hand'p
onclick=swliccpulist(\$swdes\)$swdes/p/span/tdtd$swlicnum/tdtd$liccount/td/tr;

}
else
{
$table_block .= trtdspan class='block' 
STYLE='cursor:hand'p
onclick=swliccpulist(\$swdes\)$swdes/p/span/tdtd$swlicnum/tdtd$liccount/td/tr;

}



}

///

When generating the table if swdes = WINDOWS 2000 
I get a unterminiated string constant

If I change the field to swdes = WINDOWS  
it works fine







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


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




[PHP-DEV] Bug #15405 Updated: anti-aliasing switch (-$color) is wack in ImageTTFText

2002-02-06 Thread mfischer

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

Yeah it's cool, isn't it? It's even documented:

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


Previous Comments:


[2002-02-06 15:00:28] [EMAIL PROTECTED]

i'm using v2.0.1 of gd.

when i run:
ImageTTFText($image, $size, $rot, $stringX, $stringY, $white, $font,
$msg);

The text is white.

when i run:
ImageTTFText($image, $size, $rot, $stringX, $stringY, -$white, $font,
$msg);

(note the - in front of the color), the text is not white.  it's
sometimes yellow, sometimes grey, but never white.







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


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




[PHP-DEV] Bug #15405 Updated: anti-aliasing switch (-$color) is wack in ImageTTFText

2002-02-06 Thread mfischer

 ID:   15405
 Updated by:   [EMAIL PROTECTED]
 Reported By:  [EMAIL PROTECTED]
 Status:   Bogus
 Bug Type: GD related
 Operating System: Linux
 PHP Version:  4.1.1
 New Comment:

Yeah it's cool, isn't it? It's even documented:

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


Previous Comments:


[2002-02-06 16:53:30] [EMAIL PROTECTED]

Yeah it's cool, isn't it? It's even documented:

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



[2002-02-06 15:00:28] [EMAIL PROTECTED]

i'm using v2.0.1 of gd.

when i run:
ImageTTFText($image, $size, $rot, $stringX, $stringY, $white, $font,
$msg);

The text is white.

when i run:
ImageTTFText($image, $size, $rot, $stringX, $stringY, -$white, $font,
$msg);

(note the - in front of the color), the text is not white.  it's
sometimes yellow, sometimes grey, but never white.







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


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




[PHP-DEV] Bug #15407 Updated: The == op does not work

2002-02-06 Thread mfischer

 ID:   15407
 Updated by:   [EMAIL PROTECTED]
-Summary:  The  ==  op does not work
 Reported By:  [EMAIL PROTECTED]
 Status:   Bogus
 Bug Type: Variables related
 Operating System: Windows 2000
 PHP Version:  4.1.1
 New Comment:

'since a $var = bla is not very error prone of course it works'

of course is not right. the assignment will be done and the value of
the expression will be used to determine whether the if() will be true
or not. If mysql_fetch_array() would return false or null, the of
course is not true anymore


Previous Comments:


[2002-02-06 16:08:42] [EMAIL PROTECTED]

= is no comparison operator but an assignment operator. since a $var =
bla is not very error prone of course it works but that is
logically not what you want. additionally the == operator on arrays is
not veryhelpful. I suggest, you read the manual sections about
Assignments, Comparision, Arrays and Array Functions. No bug -
bogus 



[2002-02-06 16:00:13] [EMAIL PROTECTED]

I'm using Apache and IIS 5.

When I use the comparison operator ( == ), my code fails. But when I
use a single ( = ), it goes fine. I'm using the plain config that comes
with Apache and PHP, but added a line to have .incs treated in the
server.

This is the lame code:

if ($myrow == mysql_fetch_array($Recset))
{
  $gIDClient = $HTTP_POST_VARS[IDClient];
}

The assigment never gets touched and no error messages are issued. 
Weird, ain't it?
Thanks.




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


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




[PHP-DEV] Bug #15378 Updated: 3d array variables not usable in double quotes

2002-02-05 Thread mfischer

 ID:   15378
 Updated by:   [EMAIL PROTECTED]
 Reported By:  [EMAIL PROTECTED]
 Status:   Bogus
 Bug Type: Arrays related
 Operating System: Linux 2.4, Apache 1.3.22
 PHP Version:  4.1.1
 New Comment:

This is not true. The following is perfectly valid:

  echo My first name is {$var['name']['first']}!;


Previous Comments:


[2002-02-05 03:21:08] [EMAIL PROTECTED]

The correct syntax is:
echo My first name is .$var[name][first].!;

You cannot have comples variables inside quotes.



[2002-02-05 00:34:07] [EMAIL PROTECTED]

I should add that the the first level of the array works fine, it is
just the second ( following) levels that cannot be used.

?php

// This works:
$var[name] = 'Caleb';
echo I am $var[name];

// This does not:
$var[name][first] = 'caleb';
echo I am $var[name][first];



[2002-02-05 00:30:39] [EMAIL PROTECTED]

?php

$var = array(
'name' = array(
'first' = 'Caleb',
'last' = 'Maclennan'
  )
  );

echo My first name is $var[name][first]!;

?

Acutal Result:
My first name is Array[first]!

Correct Result:
My first name is Caleb!

This get's really nasty when useing 3 dimentional arrays to put data in
SQL querys. The above example can easily be done by takeing the
variable out of the quotes and useing . to add it to the end, but
there are other cases where the only solution is to do like this:

?php
$tempVar = $var[name][first];
echo My name is $tempVar;
?





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


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




[PHP-DEV] Bug #15388 Updated: open(/tmp/sess_ee084b09620f64523243ee61beae8b01, O_RDWR) failed:

2002-02-05 Thread mfischer

 ID:   15388
 Updated by:   [EMAIL PROTECTED]
 Reported By:  [EMAIL PROTECTED]
-Status:   Open
+Status:   Bogus
 Bug Type: Session related
 Operating System: Linux
 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 11:59:09] [EMAIL PROTECTED]

Warning: open(/tmp/sess_ee084b09620f64523243ee61beae8b01, O_RDWR)
failed: Keine Berechtigung (13) 

Keine Berechtigung = german = no rights :

i don't understand that

i'm using 4.1.1pl1

-rw---   1 wwwrun   nogroup   217 Feb  5 17:35
sess_ee084b09620f64523243ee61beae8b01

so he has the right to write i think

another problem is, that some pages don't open. for example phpmyadmin
2.2.3

the old phpmyadmin 2.1.0 goes great

perhaps i just configged something wrong

but don't know what it could be :(

hope for answer

thx

bye




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


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




[PHP-DEV] Bug #15391 Updated: make error 4.1.1

2002-02-05 Thread mfischer

 ID:   15391
 Updated by:   [EMAIL PROTECTED]
 Reported By:  [EMAIL PROTECTED]
-Status:   Open
+Status:   Bogus
 Bug Type: *Compile Issues
 Operating System: linux 2.4.4
 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 14:37:24] [EMAIL PROTECTED]

unpacked latest tarball into /usr/local/php-4.1.1  did
./configure

 palmer-root./configure 
--with-apxs=/usr/local/apache/bin/apxs --enable-track-vars 
--with-imap-ssl=/usr/local/imap-2001a  --with-mysql=/usr 
--enable-ftp --enable-sysvsem --enable-sysvshm 
--enable-sockets --with-pdflib=/usr/local 
--with-mm=/usr/local/mm-1.1.3 --with-jpeg-dir=/usr/lib 
--with-zlib-dir=/usr/local 
--with-apxs=/usr/local/apache1.3.23/bin/apxs

then;
palmer-rootmake 
Making all in Zend
make[1]: Entering directory `/usr/local/php-4.1.1/Zend'
/bin/sh ./config.status --recheck
./config.status: ./config.status: No such file or directory
make[1]: *** [config.status] Error 127
make[1]: Leaving directory `/usr/local/php-4.1.1/Zend'
make: *** [all-recursive] Error 1






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


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




[PHP-DEV] Bug #15394 Updated: Printed errors have br tags, not br /

2002-02-05 Thread mfischer

 ID:   15394
 Updated by:   [EMAIL PROTECTED]
 Reported By:  [EMAIL PROTECTED]
-Status:   Open
+Status:   Closed
-Bug Type: Scripting Engine problem
+Bug Type: Output Control
 Operating System: Windows (all?)
 PHP Version:  4.1.1
 New Comment:

Fixed in CVS already and not a ZE problem.


Previous Comments:


[2002-02-05 17:55:00] [EMAIL PROTECTED]

I think this error comes from Zend.



[2002-02-05 17:50:53] [EMAIL PROTECTED]

When PHP generates an in page error, the br / tag is not formatted
properly.

Specifically, I called trigger_error('text', E_USER_WARNING) and got

font color='ff'br
bWarning/b:  text in be:\webbase\scripts\php\nimises.inc/b on
line b354/bbr
/font

This was reported for 4.0.6 but appears to be back.  I am running the
precompiled Windows binary, PHP 4.1.1.




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


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




[PHP-DEV] Bug #15338 Updated: Can't select database with '-' in name.

2002-02-02 Thread mfischer

ID: 15338
Updated by: [EMAIL PROTECTED]
Old Summary: Can't select database with '-' in name.
Reported By: [EMAIL PROTECTED]
Old Status: Bogus
Status: Feedback
Bug Type: MSSQL related
Operating System: windows NT IIS
PHP Version: 4.1.1
New Comment:

It is feedback until the submitter reports something back.


Previous Comments:


[2002-02-02 00:16:31] [EMAIL PROTECTED]

In PHP bug db, cloased is used for fixed bugs/problems.
Bogus should be the correct status :)



[2002-02-01 20:00:41] [EMAIL PROTECTED]

If your database name contains '-' or ' ' you can select the database
like this:

mssql_select_db([my database]);

or 

mssql_select_db([my-database]);

That works fine.




[2002-02-01 19:46:52] [EMAIL PROTECTED]

I have a database on my MSSQL server with a '-' in the database name. 
The database works fine with all of my other applications including
ASP.  However, I cannot select the database with PHP.  Interestingly, a
'-' in the server name doesn't seem to be a problem.

$server=SQL-Server;
$dbName=My-DB;
$user=phpusr;
$passwd=phppass;

$hcon = mssql_connect($server, $user, $passwd);
if ($hcon == FALSE)
die(Could not connect to SQL server '$server');
$hdb = mssql_select_db($dbName, $hcon);

The resulting message is:

Warning: MS SQL message: Line 1: Incorrect syntax near '-'. (severity
15) in C:\InetPub\PHP\dbtest.php on line 10

Warning: MS SQL: Unable to select database: My-DB in
C:\InetPub\PHP\dbtest.php on line 10
Could not select database 'My-DB'





Edit this bug report at http://bugs.php.net/?id=15338edit=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 #15345 Updated: Documentation typo

2002-02-02 Thread mfischer

ID: 15345
Updated by: [EMAIL PROTECTED]
Reported By: [EMAIL PROTECTED]
Status: Open
Bug Type: Unknown/Other Function
Operating System: WinME
PHP Version: 4.1.1
New Comment:

This bug has been fixed in CVS.


Previous Comments:


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

http://www.php.net/manual/en/function.socket-close.php has a spelling
error in bool soclet_close (resource socket).

The k is a l.

Should be bool socket_close (resource socket)

--|--
Tino Didriksen
http://projectjj.dk/





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


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




[PHP-DEV] Bug #15308 Updated: Segfault when the string which contains '_' in session name is specified.

2002-01-31 Thread mfischer

ID: 15308
Updated by: mfischer
Old Summary: Segfault when the string which contains '_' in session
name is specified.
Reported By: [EMAIL PROTECTED]
Old Status: Open
Status: Feedback
Bug Type: Session related
Operating System: any
PHP Version: 4.1.0
New Comment:

Does this also happen with 4.1.1 and if, please provide a backtrace
under unix (provided that you compiled both php and apache with debug
symbols).


Previous Comments:


[2002-01-31 03:06:39] [EMAIL PROTECTED]

Apache child segfault when the string which contains '_' in session
name is specified.
Although tried on Red Hat7.2 and Windows2000, the apache child
segfault.

php.ini
session.save_handler=files

?php
session_id (_index);
session_start ();
$_SESSION[foo]   = bar;
?





Edit this bug report at http://bugs.php.net/?id=15308edit=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 #15319 Updated: mysql_connect not accepting arguements

2002-01-31 Thread mfischer

ID: 15319
Updated by: mfischer
Reported By: [EMAIL PROTECTED]
Old Status: Open
Status: Bogus
Bug Type: MySQL related
Operating System: Red Hat 7.2
PHP Version: 4.1.1
New Comment:

Please ask support questions at [EMAIL PROTECTED]


Previous Comments:


[2002-01-31 21:34:10] [EMAIL PROTECTED]

I'm sorry about my lack of experience with these things, and I'm not
sure if this is a problem with PHP or with my server configuration.

Whenever I use the mysql_connect function and store the result in a
variable, the arguements aren't parsed.


mysql_connect(localhost, username, password);

works perfectly fine.


The problem arises when I use

$link=mysql_connect(localhost, username, password);

and it says Access denied for user apache@localhost (Using password:
NO). Yes, I recoded the script for the main page of my site, but there
are many things that I shouldn't have to (i.e. it should work like that
^), like vBulletin.

Like I said, I'm new at this and I don't know if it's my configuration
or a problem with PHP...but I hope it's the former, and any help would
be appreciated.





Edit this bug report at http://bugs.php.net/?id=15319edit=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 #15294 Updated: include() not working

2002-01-30 Thread mfischer

ID: 15294
Updated by: mfischer
Reported By: [EMAIL PROTECTED]
Old Status: Open
Status: Bogus
Bug Type: Compile Warning
Operating System: windows
PHP Version: 4.1.1
New Comment:

This is - bug database - , not a support forum. Please ask your
question on [EMAIL PROTECTED]


Previous Comments:


[2002-01-30 03:48:48] [EMAIL PROTECTED]

I have two php files where I want to include one in another php
file.But I am getting the below warning.Could you please tell me.I
really want the answer very badly.

The waning is as below.


Warning: Failed opening 'vars.php' for inclusion (include_path='') in
C:\WINNT\system32\1012380186_23.txt on line 5

where i am including vars.php in othere php file.

Please help me soon





Edit this bug report at http://bugs.php.net/?id=15294edit=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 #15288 Updated: Image*-functions being avail even if they're not implemented by gd

2002-01-30 Thread mfischer

ID: 15288
Updated by: mfischer
Old Summary: Image*-functions being avail even if they're not
implemented by gd
Reported By: [EMAIL PROTECTED]
Old Status: Closed
Status: Open
Bug Type: Feature/Change Request
Operating System: All
PHP Version: 4.1.1
New Comment:

This one seems really a mess to me (declaring function which output
not implemented) when we have 'function_exists()'.

Reopening for discussion.


Previous Comments:


[2002-01-30 07:39:49] [EMAIL PROTECTED]

.. this does however not cover the TTF*-functions.



[2002-01-29 23:06:03] [EMAIL PROTECTED]

There is already a clean way to check which image formats are
supported:

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



[2002-01-29 20:53:30] [EMAIL PROTECTED]

The Image*-functions specific for different formats are available even
if they're not supported in GD. Even though this is understandable, a
better practice would probably be to disable these functions, since
they're not available.(so they can be checked for existance in runtime,
instead of relying on errors passed back from gd)

It shouldnt be much of a change, since i was able to create the desired
effect using a few #ifdef's - and i've only got spare knowledge of c.

http://software.e-mats.org/patches/gd_4.1.1.diff contains the diff for
the gd.c-file from 4.1.1. that i used for testing.





Edit this bug report at http://bugs.php.net/?id=15288edit=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 #15280 Updated: Feature request

2002-01-29 Thread mfischer

ID: 15280
Updated by: mfischer
Reported By: [EMAIL PROTECTED]
Old Status: Open
Status: Feedback
Bug Type: Feature/Change Request
Operating System: Win2k
PHP Version: 4.1.1
New Comment:

You mean something like array_unset_empty_valus() ?

I don't think there's a hard-coded need for it when user-space does it
very well.

Can you give an example (except your programming lazyness to create a
function) where the advantages would be?


Previous Comments:


[2002-01-29 13:30:10] [EMAIL PROTECTED]

Hi,

I have mailed with Gabor Hojtsy and he said to me that i request my
wish here.

This is a Copy - Paste of a part of the eMail:

###

I would like to have a function that deletes the empty array entries:

a.e.
$test[0] = Hello i am php 4.1.1;
$test[1] = I am the best release ever :);
$test[2] = ;
$test[3] = ;

I hope you know what i mean...

At the moment i have a loop that checkes this.

$k = count($test);
for($i=0;$i=$k;$i++){
if(empty($test[$i])) unset($test[$i]);
}

I think it would not be hard to integrate that. I am a apprentice and
i
will learn C/C++ after my php programming is well. I hope i could help
bugfixing
the next releases, to help you all.

yours sincerly
Benjamin Eggerstedt

P.S. I know my english is terrible... ;)
P.P.S. You all do GREAT work!!!







Edit this bug report at http://bugs.php.net/?id=15280edit=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 #15253 Updated: The console version of php crashes

2002-01-28 Thread mfischer

ID: 15253
Updated by: mfischer
Reported By: [EMAIL PROTECTED]
Old Status: Open
Status: Feedback
Bug Type: Unknown/Other Function
Operating System: Linux Red Hat 7.1
PHP Version: 4.1.1
New Comment:

Do you really need the execution time when using the console script?
Try to remove the maximum execution time with set_time_limit(0) and see
if the problem still occurs.


Previous Comments:


[2002-01-28 07:03:10] [EMAIL PROTECTED]

Please make an example script to reproduce this Coredump.

Try lates CVS Snap from http://snaps.php.net



[2002-01-28 06:42:35] [EMAIL PROTECTED]

Hello... I love PHP... = )
But now I've got a problem... when I load a lot of data from MySQL into
the Console version of PHP (around 3-400MB) the PHP krashes when the
script has ended... 

I guess it's when the PHP are freeing all data... Here is what the
output is...

br
bFatal error/b:  Maximum execution time of 30 seconds exceeded in
bUnknown/b on line b0/bbr
Segmentation fault (core dumped)

The script does what IT should... so it doesen't krash untill it's
completed... The PHP even close down the MySQL Connection before it
crashes... But I realy don't wanna have a 400MB core file afterwards...
= )

// Zydox [Erik Persson]
   Stockholm, Sweden
   (sorry about my bad english)





Edit this bug report at http://bugs.php.net/?id=15253edit=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 #14972 Updated: Setting 'sendmail_path' leads to PHP not find sendmail

2002-01-21 Thread mfischer

ID: 14972
Updated by: mfischer
Old Summary: Setting 'sendmail_path' leads to PHP not find sendmail
Reported By: [EMAIL PROTECTED]
Old Status: Closed
Status: Open
Bug Type: PHP options/info functions
Operating System: MacOS 10.1.2 (Darwin 5.2)
PHP Version: 4.1.1
New Comment:

A note to the submitter:
since sendmail_path defaults to 'sendmail -t -i', leaving it out should
be ok for you.

I'm opening this, because the PHP.INI clearly says:
;for unix only, may supply arguments as well (default is 'sendmail -t
-i')

Either way, it is a bug (doc or something else)


Previous Comments:


[2002-01-20 18:33:55] [EMAIL PROTECTED]

sendmail_path is only for setting the path to the sendmail 
executable. You can't set command line parameters for 
sendmail with it. To supply command line parameters, use 
the fifth parameter to the mail() function, documented at 
http://www.php.net/mail.



[2002-01-10 11:55:05] [EMAIL PROTECTED]

If 'sendmail_path' is set in the php.ini like this:
sendmail_path = 'sendmail -t -i'

I get the following error in the Apache error log: 
zsh: no such file or directory: /usr/sbin/sendmail -t -i

If I run /usr/sbin/sendmail -t -i manually from the zsh it works but if
I surround it by quotation marks I get the same error.





Edit this bug report at http://bugs.php.net/?id=14972edit=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 #15154 Updated: set_error_handler(): some parse errors not caught

2002-01-21 Thread mfischer

ID: 15154
Updated by: mfischer
Reported By: [EMAIL PROTECTED]
Old Status: Open
Status: Bogus
Bug Type: Scripting Engine problem
Operating System: PLD Linux 2.4.16
PHP Version: 4.0CVS-2002-01-21
New Comment:

The first one is a runtime warning (Use of undefined constant ...) and
not an parser error.


Previous Comments:


[2002-01-21 18:52:57] [EMAIL PROTECTED]

Some parse errors are caught by assigned error handler, and some are
not.

I use:

error_reporting(E_ALL);
set_error_handler('my_error_handler');

For example:

?php
i_am_some_parse_error
?

is caught by error handler, and:

?php
i_am_some_parse_error = 1;
?

is not caught and displays: Parse error: parse error in ... on line







Edit this bug report at http://bugs.php.net/?id=15154edit=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 #15155 Updated: Mailparse causes segfault in DSO, apxs2

2002-01-21 Thread mfischer

ID: 15155
Updated by: mfischer
Reported By: [EMAIL PROTECTED]
Old Status: Open
Status: Feedback
Bug Type: Mailparse related
Operating System: RedHat 6.2
PHP Version: 4.1.1
New Comment:

Please compile with --enable-debug and provide a backtrace. Also try to
minimize the options to configure to those which still reproduce your
crash.


Previous Comments:


[2002-01-21 20:24:37] [EMAIL PROTECTED]

Every time i compile as DSO for Apache2 it segfaults on startup!, also
happens on php4-200201211500 snap.


configure was:
--prefix=/a2 
--with-apxs2=/a2/bin/apxs 
--enable-track-vars 
--enable-sockets 
--enable-ftp 
--enable-magic-quotes 
--with-mysql 
--with-zlib 
--with-gettext 
--with-imap 
--with-xml 
--enable-inline-optimization 
--with-curl 
--enable-mailparse






Edit this bug report at http://bugs.php.net/?id=15155edit=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 #15124 Updated: unstable apache when bad parameter...

2002-01-20 Thread mfischer

ID: 15124
Updated by: mfischer
Reported By: [EMAIL PROTECTED]
Old Status: Open
Status: Closed
Bug Type: Date/time related
Operating System: w2k pro
PHP Version: 4.1.1
New Comment:

Thx for the report, fixed in CVS.


Previous Comments:


[2002-01-20 08:47:10] [EMAIL PROTECTED]

...in localtime:

$time=localtime(-1,1);

causes application (apache) memory error





Edit this bug report at http://bugs.php.net/?id=15124edit=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 #15090 Updated: header(Location: $url) causes php.exe to generate an error

2002-01-18 Thread mfischer

ID: 15090
Updated by: mfischer
Old Summary: header(Location: $url) causes php.exe to generate an
error
Reported By: [EMAIL PROTECTED]
Old Status: Open
Status: Feedback
Bug Type: Reproducible crash
Operating System: Windows 2000
PHP Version: 4.0.6
New Comment:

Please try with latest 4.1.1, it may have been fixed already.


Previous Comments:


[2002-01-17 17:21:24] [EMAIL PROTECTED]

After a lengthy script, I go to redirect to another page, using 

header(Location: $redirect_page?PHPSESSID=$sid) 

where $redirect_page is the address to goto.. Anyway, this causes a
windows php.exe has generated an error message, while using a 

print META http-equiv=\refresh\ content=\0;
URL=$redirect_page?PHPSESSID=$sid\;

works just fine, with no error generated.  The page is using session
variables.





Edit this bug report at http://bugs.php.net/?id=15090edit=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 #15079 Updated: Wrong function socket_recv

2002-01-17 Thread mfischer

ID: 15079
Updated by: mfischer
Reported By: [EMAIL PROTECTED]
Old Status: Open
Status: Closed
Bug Type: Sockets related
Operating System: FreeBSD 4.3-RELEASE
PHP Version: 4.1.1
New Comment:

Unfortunately a bug slipped it and it is fixed in CVS already. But you
can easily fix it yourself by changing line 1300 in sockets.c from

  if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, rr, arg1,
len, flags) == FAILURE)

to
  if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, rll, arg1,
len, flags) == FAILURE)


Previous Comments:


[2002-01-17 02:54:37] [EMAIL PROTECTED]

Code: $buf=socket_recv($d-descriptor, 1024, $flags);
Warning:  socket_recv() expects exactly 2 parameters, 3 given in ...

Code: $buf=socket_recv($d-descriptor, 1024);
Warning:  socket_recv() expects parameter 2 to be resource, integer
given in ...

Help for socket_recv: mixed socket_recv (resource socket, int len, int
flags);







Edit this bug report at http://bugs.php.net/?id=15079edit=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 #15079 Updated: Wrong function socket_recv

2002-01-17 Thread mfischer

ID: 15079
Updated by: mfischer
Reported By: [EMAIL PROTECTED]
Status: Closed
Bug Type: Sockets related
Operating System: FreeBSD 4.3-RELEASE
PHP Version: 4.1.1
New Comment:

The file is in php-4.1.1/ext/sockets/ .


Previous Comments:


[2002-01-17 03:28:02] [EMAIL PROTECTED]

Unfortunately a bug slipped it and it is fixed in CVS already. But you
can easily fix it yourself by changing line 1300 in sockets.c from

  if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, rr, arg1,
len, flags) == FAILURE)

to
  if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, rll, arg1,
len, flags) == FAILURE)



[2002-01-17 02:54:37] [EMAIL PROTECTED]

Code: $buf=socket_recv($d-descriptor, 1024, $flags);
Warning:  socket_recv() expects exactly 2 parameters, 3 given in ...

Code: $buf=socket_recv($d-descriptor, 1024);
Warning:  socket_recv() expects parameter 2 to be resource, integer
given in ...

Help for socket_recv: mixed socket_recv (resource socket, int len, int
flags);







Edit this bug report at http://bugs.php.net/?id=15079edit=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 #15060 Updated: Keine Ahnung was Ihr hier wollen tut!

2002-01-15 Thread mfischer

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

Keine Ahnung was du uns sagen willst.

1) English
2) Search the bug database for duplicates/solutions first
3) Be more descriptive
4) Provide/Paste a reproduceable self-contained script


Previous Comments:


[2002-01-15 18:18:27] [EMAIL PROTECTED]

Das Problem ist bei der Ausgabe der Wochenformatierung des Timestamps,
dass ab diesem Jahr die Formatierung eine Woche hinterherhinkt---
beginn ist bei 0 und nicht bei 1.






Edit this bug report at http://bugs.php.net/?id=15060edit=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 #15037 Updated: something wrong with the operator '--'

2002-01-14 Thread mfischer

ID: 15037
Updated by: mfischer
Old Summary: something wrong with the operator '--'
Reported By: [EMAIL PROTECTED]
Old Status: Open
Status: Bogus
Bug Type: Math related
PHP Version: 4.0.6
New Comment:

Interesting approach, but why do you quote 2.1 ? It says that $num is
the _string_ 2.1 and not the number 2.1. Just nuke the quoes for $num
= 2.1; and you're done.


Previous Comments:


[2002-01-14 23:44:34] [EMAIL PROTECTED]

I run below on win2000:
?
$j = 0;
$num = '2.1';
for ($i=$num;$i1;$i--)
{
echo i== $ibr;
if ($j++ == 10)
break;
}
?

but I get the output:
i== 2.1
i== 2.1
i== 2.1
i== 2.1
i== 2.1
i== 2.1
i== 2.1
i== 2.1
i== 2.1
i== 2.1
i== 2.1

I think something may be wrong with the operator '--'.Maybe I am
right.
Good lunk.






Edit this bug report at http://bugs.php.net/?id=15037edit=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 #14391 Updated: gmmktime, gmdate work incorrect

2002-01-13 Thread mfischer

ID: 14391
Updated by: mfischer
Reported By: [EMAIL PROTECTED]
Old Status: Open
Status: Feedback
Bug Type: Date/time related
Operating System: Windows 2000 Server
PHP Version: 4.0.6
New Comment:

Can you test a newer version, say 4.1.1?


Previous Comments:


[2002-01-13 04:59:58] [EMAIL PROTECTED]

Same problem on 4.0.5 running on solaris and linux.



[2001-12-09 07:29:35] [EMAIL PROTECTED]

Please see the code below. The comments are the result of running this
code on my PC, (my GMT Offset = +2 hours = +7200 sec.)
You may see that the mktime() and date() functions work correct, but
gmmktime() returns wrong value in winter time (when it is not a
daylight saving time), and gmdate returns wrong Z parameter.
Note: this bug does not appear on UNIX systems.

?
$df=d.m.Y - H:i:s (Z), I;

$t=mktime(0,0,0,1,2,1970);
echobrbMake 02.01.1970 - 00:00:00 (Local):/bbr,
Timestamp: $tbr,// 79200
GMT: , gmdate($df,$t), br,// 01.01.1970 - 22:00:00 (7200)
Local: , date($df,$t), br,// 02.01.1970 - 00:00:00 (7200)
br;

$t=gmmktime(0,0,0,1,2,1970);
echobrbMake 02.01.1970 - 00:00:00 (GMT):/bbr,
Timestamp: $tbr,// 82800 (Why !=86400 ?)
GMT: , gmdate($df,$t), br,// 01.01.1970 - 23:00:00 (7200)
Local: , date($df,$t), br,// 02.01.1970 - 01:00:00 (7200)
br;

$t=mktime(0,0,0,7,20,1970);
echobrbMake 20.07.1970 - 00:00:00 (Local):/bbr,
Timestamp: $tbr,// 17269200
GMT: , gmdate($df,$t), br,// 01.07.1970 - 21:00:00 (7200)
Local: , date($df,$t), br,// 02.07.1970 - 00:00:00 (10800)
br;

$t=gmmktime(0,0,0,7,20,1970);
echobrbMake 20.07.1970 - 00:00:00 (GMT):/bbr,
Timestamp: $tbr,// 1728 (=86400*200)
GMT: , gmdate($df,$t), br,// 02.07.1970 - 00:00:00 (7200)
Local: , date($df,$t), br,// 02.07.1970 - 03:00:00 (10800)
br;
?






Edit this bug report at http://bugs.php.net/?id=14391edit=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 #15017 Updated: Repeat

2002-01-13 Thread mfischer

ID: 15017
Updated by: mfischer
Reported By: [EMAIL PROTECTED]
Status: Closed
Bug Type: Feature/Change Request
Operating System: Windows
PHP Version: 4.1.1
New Comment:

What's wrong with str_repeat() ?


Previous Comments:


[2002-01-13 12:42:37] [EMAIL PROTECTED]

?php
$function = foo;

for ($i = 0; $i  4; $i++) { $function(); }

?

I don't think there is a need to add another language construct for
this.

Derick



[2002-01-13 12:40:14] [EMAIL PROTECTED]

You should add a Repeat(); function. In example;
?
$function = foo;
repeat($function, 4);
?

Which, will repeat foo, 4 times.





Edit this bug report at http://bugs.php.net/?id=15017edit=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 #15024 Updated: Can't use ParameterPassedByReference()

2002-01-13 Thread mfischer

ID: 15024
Updated by: mfischer
Old Summary: Can't use ParameterPassedByReference()
Reported By: [EMAIL PROTECTED]
Old Status: Open
Status: Bogus
Bug Type: *Compile Issues
Operating System: Caldera Linux
PHP Version: 4.1.1
New Comment:

The internal API may change but is not subject to this bug system.

You might want to take a look at PZVAL_IS_REF() macro.


Previous Comments:


[2002-01-13 20:32:42] [EMAIL PROTECTED]

I have a few extensions that I've written for PHP, and under 4.1.1,
when linking I get the following error:

modules/php4/libphp4.a(cmtest.o): In function `php3_cm_sendsms':
/php-4.1.1/ext/cmtest/cmtest.c:185: undefined reference to
`ParameterPassedByReference'

I built a minimal extension with ext_skel, and only one simple function
that had contained the code:


if(!ParameterPassedByReference(ht, 2))
{
zend_error(E_WARNING, Parameter 2 wasn't passed by
reference);
RETURN_NULL();
}

This was just to make sure that none of my other code could have been
causing the problem. This made the problem clearly reproducible. This
exact code works fine under php4.03pl1. (This code was extracted from
the API docs on the zend website, I think). 

Thanks,

Ron. 





Edit this bug report at http://bugs.php.net/?id=15024edit=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 #15008 Updated: Apache Crash

2002-01-12 Thread mfischer

ID: 15008
Updated by: mfischer
Reported By: [EMAIL PROTECTED]
Old Status: Open
Status: Feedback
Bug Type: Reproducible crash
Operating System: Linux 2.4.5
PHP Version: 4.1.1
New Comment:

Please provide a short and self-contained script which reproduces this
crash. A backtrace would also help (but better compile with
--enable-debug first).


Previous Comments:


[2002-01-12 15:59:32] [EMAIL PROTECTED]

After compiling 4.1.1 whith Apache 1.3.22 and MySql 3.23.46

i get follwing erros in the weblog
[Sat Jan 12 21:50:10 2002] [notice] child pid 18992 exit signal
Segmentation fault (11)
[Sat Jan 12 21:50:43 2002] [notice] child pid 14447 exit signal
Segmentation fault (11)
etc 
etc

when reverting to 4.0.6 these errors are gone.

config :
'./configure' '--with-apxs=/usr/local/apache/bin/apxs'
'--with-mysql=/usr/local' '--with-gd'






Edit this bug report at http://bugs.php.net/?id=15008edit=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 #15007 Updated: New superglobals not documented

2002-01-12 Thread mfischer

ID: 15007
Updated by: mfischer
Old Summary: search for $_SERVER fails while attempting to search PHP
documentation
Reported By: [EMAIL PROTECTED]
Old Status: Bogus
Status: Open
Old Bug Type: Website problem
Bug Type: Documentation problem
Operating System: N/A
PHP Version: 4.1.1
New Comment:

Reclassified, reopened.


Previous Comments:


[2002-01-12 16:46:10] [EMAIL PROTECTED]

I appreciate you're working on the _* documentation, but the problem
remains there is no way to search for $_SERVER and get results that
contain the exact string



[2002-01-12 16:35:07] [EMAIL PROTECTED]

yes, we are aware of this, and documentation people are working on
documentation for _* global variables.

Thanks.



[2002-01-12 15:33:43] [EMAIL PROTECTED]

I've seen the new $_SERVER (for example) variable arrays mentioned,
as replacements for the old $HTTP_SERVER_VARS (I think) array, but I
wasn't able to easily find any pages that mention them.  I therefore
put $_SERVER (no quotes) in the search box, and got pages with the word
server, not $_SERVER so I tried entering $_SERVER (a quoted
string), which produced the same results.

Problems:
1.  It appears there is no way to find pages with the exact text
$_SERVER using this search system.
2.  Discussion of $_SERVER (and $POST, $_ENV, etc.) arrays needs to be
findable in the documentation.





Edit this bug report at http://bugs.php.net/?id=15007edit=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 #15010 Updated: switch() problem: + matches -

2002-01-12 Thread mfischer

ID: 15010
Updated by: mfischer
Old Summary: switch() problem: + matches -
Reported By: [EMAIL PROTECTED]
Old Status: Open
Status: Bogus
Bug Type: Variables related
Operating System: RISC OS
PHP Version: 4.1.0
New Comment:

Jesus man.

case statements not followed by a break; statement fall through.

Your code should read:

? $k = +;
   switch($k) {
 case -: print Oh no!; break;
 case +: print Correct!; break;
   }
?


Previous Comments:


[2002-01-12 18:21:28] [EMAIL PROTECTED]

? $k = +;
   switch($k) {
 case -: print Oh no!;
 case +: print Correct!;
   }
?

outputs Oh no!. I guess this is because as switch uses
==, + and - are both being automatically converted to the
number 0 which then matches? Could switch() perhaps use
=== instead of == in its comparison?






Edit this bug report at http://bugs.php.net/?id=15010edit=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 #15010 Updated: switch() problem: + matches -

2002-01-12 Thread mfischer

ID: 15010
Updated by: mfischer
Old Summary: switch() problem: + matches -
Reported By: [EMAIL PROTECTED]
Old Status: Bogus
Status: Open
Bug Type: Variables related
Operating System: RISC OS
PHP Version: 4.1.0
New Comment:

Ok, sorry. I misread your report a bit ;)

So this applies only to RISC OS ? Can't reproduce this under linux.


Previous Comments:


[2002-01-12 18:27:01] [EMAIL PROTECTED]

Jesus man.

case statements not followed by a break; statement fall through.

Your code should read:

? $k = +;
   switch($k) {
 case -: print Oh no!; break;
 case +: print Correct!; break;
   }
?



[2002-01-12 18:21:28] [EMAIL PROTECTED]

? $k = +;
   switch($k) {
 case -: print Oh no!;
 case +: print Correct!;
   }
?

outputs Oh no!. I guess this is because as switch uses
==, + and - are both being automatically converted to the
number 0 which then matches? Could switch() perhaps use
=== instead of == in its comparison?






Edit this bug report at http://bugs.php.net/?id=15010edit=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 #15012 Updated: Cannot load libphp4.so - undefined symbol: uncompress

2002-01-12 Thread mfischer

ID: 15012
Updated by: mfischer
Reported By: [EMAIL PROTECTED]
Status: Duplicate
Bug Type: Apache related
Operating System: Debian GNU/Linux 2.2
PHP Version: 4.1.1
New Comment:

Adding --with-zlib fix this for you.


Previous Comments:


[2002-01-12 23:12:52] [EMAIL PROTECTED]

I already searched but I didn't find an answer



[2002-01-12 21:23:49] [EMAIL PROTECTED]

Please search bug db before report ;)
There is workaround described in report :)




[2002-01-12 21:20:02] [EMAIL PROTECTED]

After compiling and installing PHP on Debian, Apache/1.3.9, MySQL
3.23.44, when I try to
restart the apache server, I get the following error :

Cannot load /usr/local/apache/libexec/libphp4.so into server:
/usr/local/apache/libexec/libphp4.so: undefined symbol: uncompress







Edit this bug report at http://bugs.php.net/?id=15012edit=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 #14992: Behaviour of $array = $array1 + $array2; not documented

2002-01-11 Thread mfischer

From: [EMAIL PROTECTED]
Operating system: 
PHP version:  4.1.1
PHP Bug Type: Documentation problem
Bug description:  Behaviour of $array = $array1 + $array2; not documented

The behaviour of the following code doens't seem to be documented:

?
$foo = array(27 = 'Ene');
$bar = array(-1 = 'Mene');

$baz = $foo + $bar;

var_dump($baz);
?

array(2) {
  [27]=
  string(3) Ene
  [-1]=
  string(4) Mene
}
-- 
Edit bug report at: http://bugs.php.net/?id=14992edit=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 #14993 Updated: PHP4.1.1 can't connect to SQL Server 7 SP3

2002-01-11 Thread mfischer

ID: 14993
Updated by: mfischer
Old Summary: PHP4.1.1 can't connect to SQL Server 7 SP3
Reported By: [EMAIL PROTECTED]
Old Status: Open
Status: Bogus
Bug Type: MSSQL related
Operating System: NT SP6
PHP Version: 4.1.1
New Comment:

Please ask support questions at [EMAIL PROTECTED]


Previous Comments:


[2002-01-11 05:47:53] [EMAIL PROTECTED]

I previously have MSSQL7 with SP1 and PHP4.1.1 worked fine with it. Now
I upgrade to SP3 and PHP4 won't connect to MSSQL7.

I have NT,IIS with SP6, and use the PHP MSSQL module to connect.  My
PHP.EXE is the standard binary that comes with the distribution.

The error message I get is:

Warning: MS SQL message: Login failed for user 'scott'. (severity 14) in
c:\inetpub\wwwroot\music4\common\lib.inc on line 12











Edit this bug report at http://bugs.php.net/?id=14993edit=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 #14996 Updated: the full zip package is corrupt and won't unzip

2002-01-11 Thread mfischer

ID: 14996
Updated by: mfischer
Old Summary: the full zip package is corrupt and won't unzip
Reported By: [EMAIL PROTECTED]
Old Status: Open
Status: Bogus
Bug Type: *General Issues
Operating System: winme
PHP Version: 4.1.1
New Comment:

The package is ok.


Previous Comments:


[2002-01-11 08:48:31] [EMAIL PROTECTED]

I have dl'd the 4.1.1 zip package for windows (full package) on 2
different internet connections and the package appears to be corrupt as
it won't unzip. Winzip reports that it isn't a valid archive.





Edit this bug report at http://bugs.php.net/?id=14996edit=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 #15005 Updated: Date bug with two and four digit year

2002-01-11 Thread mfischer

ID: 15005
Updated by: mfischer
Reported By: [EMAIL PROTECTED]
Old Status: Open
Status: Feedback
Bug Type: Date/time related
Operating System: Windows2000
PHP Version: 4.1.1
New Comment:

Can't reproduce this on command line:

C:\php\php-4.1.1-Win32php -q
? echo date('Y'); ?
^Z
2002
C:\php\php-4.1.1-Win32php -q
? echo date('y'); ?
^Z
02
C:\php\php-4.1.1-Win32

Please test this on your system too.

I still bet something is configured wrong on your system.


Previous Comments:


[2002-01-11 20:04:24] [EMAIL PROTECTED]

I didn't see this bug posted, and I know that it worked fine in all my
scripts in 2001.

In 2002, it displays 2011 instead of 2002 for the year

example :date(Y);   or   date(y)
will return 2011 or 11 instead of 2002 or 02

I'm using Windows 2000 with service pack 2
PHP 4.1.1 win32 binaries un-modified downloaded direct from php.net on
Microsoft's Personal Web Server that came with Windows98 SE. Loading on
IE 5.5.

Thanks
--Cameron Sellum





Edit this bug report at http://bugs.php.net/?id=15005edit=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 #14961 Updated: Bug while unsetting vars with type array

2002-01-10 Thread mfischer

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

Bogus unless you provide more inforamtion (See bugs do's and don'ts)


Previous Comments:


[2002-01-10 03:54:51] [EMAIL PROTECTED]

Bug while unsetting vars with type array.
This var is session var.





Edit this bug report at http://bugs.php.net/?id=14961edit=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 #14958 Updated: flex error in compiling Zend enginge

2002-01-10 Thread mfischer

ID: 14958
Updated by: mfischer
Reported By: [EMAIL PROTECTED]
Old Status: Open
Status: Closed
Bug Type: Compile Failure
Operating System: linux debian unstable
PHP Version: 4.0CVS-2002-01-09
New Comment:

Derick fixed it in CVS.


Previous Comments:


[2002-01-10 06:04:28] [EMAIL PROTECTED]

yep, it works with this additional line. 





[2002-01-09 21:00:27] [EMAIL PROTECTED]

From the error message I'ld say you just need to include errno.h in
zend_ini_scanner.l (like in zend_language_scanner.l), can you verify
this?



[2002-01-09 19:57:14] [EMAIL PROTECTED]

it seems, that since my debian unstable upgraded from  flex 2.5.4a-14 to
2.5.4a-15, I can't compile the Zend Engine anymore. It throws an error
in zend_ini_parser.c and if I compare a zend_ini_parser.c genearated
with the -14 version and one from -15 version, there are indeed
differences where the error occurs. 

here's the error-mesage from make:

/bin/sh ../libtool --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I../main 
 -DLINUX=22 -DUSE_HSREGEX -I../TSRM  -g  -Wall -prefer-pic -c
zend_ini_scanner.c
gcc -DHAVE_CONFIG_H -I. -I. -I../main -DLINUX=22 -DUSE_HSREGEX -I../TSRM
-g -Wall -c zend_ini_scanner.c -fPIC -DPIC -o zend_ini_scanner.lo
zend_ini_scanner.c: In function `ini_lex':
zend_ini_scanner.c:826: warning: label `find_rule' defined but not
used
zend_ini_scanner.c: In function `yy_get_next_buffer':
zend_ini_scanner.c:1243: `errno' undeclared (first use in this
function)
zend_ini_scanner.c:1243: (Each undeclared identifier is reported only
once
zend_ini_scanner.c:1243: for each function it appears in.)
zend_ini_scanner.c:1243: `EINTR' undeclared (first use in this
function)
./zend_ini_scanner.l: At top level:
zend_ini_scanner.c:1900: warning: `yy_flex_realloc' defined but not
used
zend_ini_scanner.c:1350: warning: `yyunput' defined but not used
make[1]: *** [zend_ini_scanner.lo] Error 1
make[1]: Leaving directory `/opt/cvs/php4/Zend'
make: *** [all-recursive] Error 1

and here the diff between the both zend_ini_scanner.c versions:

--- Z/zend_ini_scanner.cThu Jan 10 01:28:37 2002
+++ Zend/zend_ini_scanner.c Thu Jan 10 01:52:57 2002
@@ -698,9 +698,17 @@
YY_FATAL_ERROR( input in flex scanner failed
); \
result = n; \
} \
-   else if ( ((result = fread( buf, 1, max_size, yyin )) == 0) \
-  ferror( yyin ) ) \
-   YY_FATAL_ERROR( input in flex scanner failed );
+   errno=0; \
+   while ( (result = fread(buf, 1, max_size, yyin))==0 
ferror(yyin)) \
+   { \
+   if( errno != EINTR) \
+   { \
+   YY_FATAL_ERROR( input in flex scanner failed
); \
+   break; \
+   } \
+   errno=0; \
+   clearerr(yyin); \
+   }
 #endif

and here the relevant part from the debian-changelog:


flex (2.5.4a-15) unstable; urgency=low

  * if a signal is delivered while the parser is in the read routine
(coded by flex), the result is flex reports and YY_FATAL_ERROR
causing
plan to exit.  The race condition appears much more frequently
than
one might expect because plan spends a good deal of time in read
routine while gcc is preparing the input. I cleaned up another
problem
case beyond what is given in the patch.  closes:
Bug#125611


I have no idea about this flex stuff, so maybe someone else out there
can fix that :)







Edit this bug report at http://bugs.php.net/?id=14958edit=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 #14962 Updated: unable to load extension php_sablot.dll

2002-01-10 Thread mfischer

ID: 14962
Updated by: mfischer
Reported By: [EMAIL PROTECTED]
Old Status: Open
Status: Feedback
Bug Type: Sablotron XSL
Operating System: Windows 2000
PHP Version: 4.1.1
New Comment:

And which?


Previous Comments:


[2002-01-10 06:33:31] [EMAIL PROTECTED]

Extension php_sablot.dll can not be loaded (ISAPI-Version under IIS5).

Microsofts Dependency Walker (depends.exe) reports a missing exported
function in php4ts.dll.





Edit this bug report at http://bugs.php.net/?id=14962edit=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 #14969 Updated: IMAP_POPEN() not implemented !?!

2002-01-10 Thread mfischer

ID: 14969
Updated by: mfischer
Reported By: [EMAIL PROTECTED]
Old Status: Feedback
Status: Bogus
Bug Type: IMAP related
Operating System: linux-2.2.18
PHP Version: 4.1.0


Previous Comments:


[2002-01-10 11:27:07] [EMAIL PROTECTED]

popen is implemented but disabled in the code
as it isn't working well

but you should get Persistent IMAP connections are not yet supported.
if you had the imap extension compiled in or loaded, Call to undefined
function indicates that you have no imap support at all in your build

PS: persistant connections in php might not be
what you tink they are ...



[2002-01-10 10:40:52] [EMAIL PROTECTED]

--- test.php ---
?
IMAP_POPEN(myserver.com, MyName, MyPassword);
?
--- /// ---

Fatal error: Call to undefined function: imap_popen() in
/home/kalle/public_html/imap.php on line 2

Still, there is entry in manual:
http://ee.php.net/manual/en/function.imap-popen.php
---
(3.0.12 - 3.0.18 only, PHP 4 = 4.0.0)
imap_popen --  Open a persistant IMAP stream to a mailbox 
---

so, who is fooling who ;) AND, there has NEVER been (well, in my
extensive use of PHP staring from PHP/FI ending with latest CVS
versions) function like that...

Pitty, i REALLY could use persistent connections to IMAP servers ;)
really...






Edit this bug report at http://bugs.php.net/?id=14969edit=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 #14978 Updated: session doesn't work

2002-01-10 Thread mfischer

ID: 14978
Updated by: mfischer
Old Summary: session doesn't work
Reported By: [EMAIL PROTECTED]
Old Status: Open
Status: Bogus
Bug Type: Session related
Operating System: Unix
PHP Version: 4.0.5
New Comment:

Please ask support questions at [EMAIL PROTECTED]



Previous Comments:


[2002-01-10 15:49:45] [EMAIL PROTECTED]

i can't use session, give me an error when use ie 6.

Warning: Cannot send session cookie - headers already sent by (output
started at /home/www.apollodisplays.com/public_html/mainpage.php:10) in
/home/www.apollodisplays.com/public_html/mainpage.php on line 29

Warning: Cannot send session cache limiter - headers already sent
(output started t
/home/www.apollodisplays.com/public_html/mainpage.php:10) in
/home/www.apollodisplays.com/public_html/mainpage.php on line 29


my code is very simple. see below 

session_start();
session_register(userright); 
$HTTP_SESSION_VARS[userright]=$right;

anyone have any idea ?  thankx





Edit this bug report at http://bugs.php.net/?id=14978edit=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 #14989 Updated: eregi function causes problem in include file

2002-01-10 Thread mfischer

ID: 14989
Updated by: mfischer
Reported By: [EMAIL PROTECTED]
Old Status: Open
Status: Closed
Old Bug Type: Scripting Engine problem
Bug Type: Regexps related
Operating System: FreeBSD 4.4-RELEASE
PHP Version: 4.1.0
New Comment:

This basically means that the regexp passed to eregi() is empty, i.e.
that $HOSTNAME has no value (I guess its null then).

Somehow your code looks bogus:
if (eregi($HOSTNAME, 

would imply that $HOSTNAME actualyl is a regular expression. Are you
sure about this?

If you just want to match if two strings are similar you should use

if ($HOSTNAME == www..

You can surpress warning output with the '@' operator, e.g. @eregi().

Closing.


Previous Comments:


[2002-01-10 22:10:54] [EMAIL PROTECTED]

have a web ap with an include file called common.php that contains:
...
if(eregi($HOSTNAME,www.somehostname.com))
{
define(DATABASE_HOST,mybox.myhost.com);
}
else
{
define(DATABASE_HOST,localhost);
}
// Database Initialize
$db = new DB_Sql();
...etc

eregi must be outputing some data to the server since the page that
includes the above include file returns an error:
(note that line 22 is the first eregi expression in common.php)

===error message begin:
Warning: REG_EMPTY in
/usr/local/home/vhosts/mybox.com/httpdocs/common.php on line 22

Warning: Cannot send session cache limiter - headers already sent
(output started at
/usr/local/home/vhosts/mybox.com/httpdocs/common.php:22) in
/usr/local/home/vhosts/mybox.com/httpdocs/infoGrid.php on line 16
===error message end:

infoGrid.php is setting cookies
removing the eregi test and replacing the above lines in common.php
with:
define(DATABASE_HOST,mybox.myhost.com);

removes the error

It seems to me that eregi must be outputing something back to the
server.

I couldn't find this bug in the bug database so I'd appreciate it if
anyone has time to look into it.






Edit this bug report at http://bugs.php.net/?id=14989edit=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 #14946 Updated: Undefined function ImageCreate() since I use PHP4

2002-01-09 Thread mfischer

ID: 14946
Updated by: mfischer
Reported By: [EMAIL PROTECTED]
Old Status: Open
Status: Bogus
Bug Type: *Graphics related
Operating System: win NT
PHP Version: 4.1.0
New Comment:

Please ask support questions at [EMAIL PROTECTED]

Hint: make sure you've adjusted your php.ini properly


Previous Comments:


[2002-01-09 06:26:09] [EMAIL PROTECTED]

The function ImageCreate() worked when I was on PHP3, but since monday
(I upgraded on PHP4) it hasn't worked...
Error Msg :
Fatal Error: Call undefined function imagecreate() 

Thanx for your help





Edit this bug report at http://bugs.php.net/?id=14946edit=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 #14947 Updated: not null terminated RETURNING INTO values?

2002-01-09 Thread mfischer

ID: 14947
Updated by: mfischer
Reported By: [EMAIL PROTECTED]
Old Status: Open
Status: Bogus
Bug Type: OCI8 related
Operating System: Linux
PHP Version: 4.0.6
New Comment:

no need for second report (the old one is still open and valid)


Previous Comments:


[2002-01-09 09:26:22] [EMAIL PROTECTED]

Please see bug report 14278 for details!

( http://bugs.php.net/bug.php?id=14278 )

Thanks,
  Mike





Edit this bug report at http://bugs.php.net/?id=14947edit=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 #14052 Updated: ftp_rawlist: Hangs up

2002-01-09 Thread mfischer

ID: 14052
Updated by: mfischer
Reported By: [EMAIL PROTECTED]
Old Status: Feedback
Status: Open
Bug Type: FTP related
Operating System: Win2K
Old PHP Version: 4.0.6
PHP Version: 4.1.1
New Comment:

I'm setting this to open, version to 4.1.1. Although in CVS there exists
now a way to adjust the timeout (ftp_set_option(FTP_TIMEOUT_SEC, 10);
for example) it's not a solution and there are still some flaws in the
implementation IMO.


Previous Comments:


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

Yes I've tested it with 4.1.1 and the problem ist still present. 90
Seconds is absolutly true! In this time he hangs in the ftp_rawlist
function... and then he will continue, but often doesn't work the next
call to ftp_rawlist too. And sorry, it isn't a problem of the user, but
when executing per CLI, the script run more reliable than executed by
apache. When I start the script directly it run sometimes until end (Not
often). 

I tested it on 2 machines (W2K-Notebook and W2K-PC). 

I'm very intrested in this function, because i'm working on a little
web-filesharing-tool, which should index content of ftps. Thanks for
your feedback!



[2002-01-02 09:46:20] [EMAIL PROTECTED]

Is this bug still present to you, also with 4.1.0?

If so, can you verify that the 'hang' time is about 90 seconds (its a
fixed coded timeout value in ext/ftp)?



[2001-11-14 09:48:04] [EMAIL PROTECTED]

I think there is really a problem with repeated ftp_rawlist (Reported in
#7897). I write a script which make several ftp_rawlists to indexing all
the content. In most case, the task hangs up for 1 or 2 minutes. Then
the program will continue, but it can be that it hangs up again. When I
start the script directly (cmd-line), it will run well. But when I start
it trough the task scheduler or the web server, it hangs up always. I
can't explain the problem more, because this is all - Repeated
ftp_rawlist, script is running under user system.





Edit this bug report at http://bugs.php.net/?id=14052edit=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 #14957 Updated: --with-dom-xslt dosn't compile (patch included ...)

2002-01-09 Thread mfischer

ID: 14957
Updated by: mfischer
Old Summary: --with-dom-xslt dosn't compile (patch included ...)
Reported By: [EMAIL PROTECTED]
Old Status: Open
Status: Closed
Bug Type: DOM XML related
Operating System: linux
PHP Version: 4.0CVS-2002-01-09
New Comment:

Fixed in CVS (why don't we've more guys like you? :)


Previous Comments:


[2002-01-09 19:44:02] [EMAIL PROTECTED]

one header line is missing. here's the patch:

RCS file: /repository/php4/ext/domxml/php_domxml.h,v
retrieving revision 1.33
diff -u -r1.33 php_domxml.h
--- php_domxml.h9 Jan 2002 03:42:30 -   1.33
+++ php_domxml.h10 Jan 2002 00:43:23 -
@@ -36,6 +36,7 @@
 #include libxml/xpointer.h
 #endif
 #if HAVE_DOMXSLT
+#include libxslt/xsltconfig.h
 #include libxslt/xsltInternals.h
 #include libxslt/xsltutils.h
 #include libxslt/transform.h






Edit this bug report at http://bugs.php.net/?id=14957edit=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 #14958 Updated: flex error in compiling Zend enginge

2002-01-09 Thread mfischer

ID: 14958
Updated by: mfischer
Reported By: [EMAIL PROTECTED]
Old Status: Open
Status: Feedback
Bug Type: Compile Failure
Operating System: linux debian unstable
PHP Version: 4.0CVS-2002-01-09
New Comment:

From the error message I'ld say you just need to include errno.h in
zend_ini_scanner.l (like in zend_language_scanner.l), can you verify
this?


Previous Comments:


[2002-01-09 19:57:14] [EMAIL PROTECTED]

it seems, that since my debian unstable upgraded from  flex 2.5.4a-14 to
2.5.4a-15, I can't compile the Zend Engine anymore. It throws an error
in zend_ini_parser.c and if I compare a zend_ini_parser.c genearated
with the -14 version and one from -15 version, there are indeed
differences where the error occurs. 

here's the error-mesage from make:

/bin/sh ../libtool --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I../main 
 -DLINUX=22 -DUSE_HSREGEX -I../TSRM  -g  -Wall -prefer-pic -c
zend_ini_scanner.c
gcc -DHAVE_CONFIG_H -I. -I. -I../main -DLINUX=22 -DUSE_HSREGEX -I../TSRM
-g -Wall -c zend_ini_scanner.c -fPIC -DPIC -o zend_ini_scanner.lo
zend_ini_scanner.c: In function `ini_lex':
zend_ini_scanner.c:826: warning: label `find_rule' defined but not
used
zend_ini_scanner.c: In function `yy_get_next_buffer':
zend_ini_scanner.c:1243: `errno' undeclared (first use in this
function)
zend_ini_scanner.c:1243: (Each undeclared identifier is reported only
once
zend_ini_scanner.c:1243: for each function it appears in.)
zend_ini_scanner.c:1243: `EINTR' undeclared (first use in this
function)
./zend_ini_scanner.l: At top level:
zend_ini_scanner.c:1900: warning: `yy_flex_realloc' defined but not
used
zend_ini_scanner.c:1350: warning: `yyunput' defined but not used
make[1]: *** [zend_ini_scanner.lo] Error 1
make[1]: Leaving directory `/opt/cvs/php4/Zend'
make: *** [all-recursive] Error 1

and here the diff between the both zend_ini_scanner.c versions:

--- Z/zend_ini_scanner.cThu Jan 10 01:28:37 2002
+++ Zend/zend_ini_scanner.c Thu Jan 10 01:52:57 2002
@@ -698,9 +698,17 @@
YY_FATAL_ERROR( input in flex scanner failed
); \
result = n; \
} \
-   else if ( ((result = fread( buf, 1, max_size, yyin )) == 0) \
-  ferror( yyin ) ) \
-   YY_FATAL_ERROR( input in flex scanner failed );
+   errno=0; \
+   while ( (result = fread(buf, 1, max_size, yyin))==0 
ferror(yyin)) \
+   { \
+   if( errno != EINTR) \
+   { \
+   YY_FATAL_ERROR( input in flex scanner failed
); \
+   break; \
+   } \
+   errno=0; \
+   clearerr(yyin); \
+   }
 #endif

and here the relevant part from the debian-changelog:


flex (2.5.4a-15) unstable; urgency=low

  * if a signal is delivered while the parser is in the read routine
(coded by flex), the result is flex reports and YY_FATAL_ERROR
causing
plan to exit.  The race condition appears much more frequently
than
one might expect because plan spends a good deal of time in read
routine while gcc is preparing the input. I cleaned up another
problem
case beyond what is given in the patch.  closes:
Bug#125611


I have no idea about this flex stuff, so maybe someone else out there
can fix that :)







Edit this bug report at http://bugs.php.net/?id=14958edit=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 #14926 Updated: php.ini-recommended problem

2002-01-08 Thread mfischer

ID: 14926
Updated by: mfischer
Reported By: [EMAIL PROTECTED]
Old Status: Open
Status: Bogus
Bug Type: *Configuration Issues
Operating System: Windows XP Pro
PHP Version: 4.1.1
New Comment:

Unless you don't provide more information (self-contained sample, etc)
this is bogus.

Previous Comments:


[2002-01-08 03:30:05] [EMAIL PROTECTED]

By using php.ini-recommended, I could not get form variables' values,
while php.ini-dist could work properly.





Edit this bug report at http://bugs.php.net/?id=14926edit=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 #14942 Updated: Logical bitwise operator not functioning correctly

2002-01-08 Thread mfischer

ID: 14942
Updated by: mfischer
Reported By: [EMAIL PROTECTED]
Old Status: Open
Status: Closed
Bug Type: Variables related
Operating System: Linux Redhat 7.2
PHP Version: 4.0.6
New Comment:

This is fixed in  4.0.6.


Previous Comments:


[2002-01-08 22:21:02] [EMAIL PROTECTED]

I have two variables that I am trying to logically 'AND' in a bitwise
fashion.  This does not work correctly if one of the variables is
initialized to 0x.

ie if $field and $flags are two variables:

$flags = 0x;
$field = 0x01;

($flags  $field)? $str = TRUE : $str = FALSE;

echo $str br;

This prints 'FALSE' instead of 'True'!!  I tried debugging it with
different values and it seems that if the highest bit is set then the it
does the wrong thing.  ie. if $flags is instead initialized to
0x7fff then everything works fine!

Here is phpinfo on my system:

Thanks,
Murtaza

PHP Version 4.0.6

System Linux porky.devel.redhat.com 2.4.5-7smp #1 SMP Tue Jun 26
14:19:49 EDT 2001 i686 unknown
Build Date Aug 27 2001
Configure Command  './configure' 'i386-redhat-linux' '--prefix=/usr'
'--exec-prefix=/usr' '--bindir=/usr/bin' '--sbindir=/usr/sbin'
'--sysconfdir=/etc' '--datadir=/usr/share' '--includedir=/usr/include'
'--libdir=/usr/lib' '--libexecdir=/usr/libexec' '--localstatedir=/var'
'--sharedstatedir=/usr/com' '--mandir=/usr/share/man'
'--infodir=/usr/share/info' '--prefix=/usr'
'--with-config-file-path=/etc' '--disable-debug' '--enable-pic'
'--disable-rpath' '--enable-inline-optimization'
'--with-apxs=/usr/sbin/apxs' '--with-bz2' '--with-curl' '--with-db3'
'--with-dom' '--with-exec-dir=/usr/bin' '--with-gd' '--with-gdbm'
'--with-gettext' '--with-jpeg-dir=/usr' '--with-mm' '--with-openssl'
'--with-png' '--with-regex=system' '--with-ttf' '--with-zlib'
'--with-layout=GNU' '--enable-debugger' '--enable-ftp'
'--enable-magic-quotes' '--enable-safe-mode' '--enable-sockets'
'--enable-sysvsem' '--enable-sysvshm' '--enable-track-vars'
'--enable-yp' '--enable-wddx' '--without-mysql' '--without-unixODBC'
'--without-oracle' '--without-oci8' '--with-pspell' '--with-xml'
Server API Apache
Virtual Directory Support disabled
Configuration File (php.ini) Path /etc/php.ini
ZEND_DEBUG disabled
Thread Safety disabled

[Zend logo] This program makes use of the Zend scripting language
engine:
Zend Engine v1.0.6, Copyright (c) 1998-2001 Zend Technologies






Edit this bug report at http://bugs.php.net/?id=14942edit=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 #14901: Add a new language construct which prints to stderr by default

2002-01-07 Thread mfischer

From: [EMAIL PROTECTED]
Operating system: n/a
PHP version:  4.1.1
PHP Bug Type: Feature/Change Request
Bug description:  Add a new language construct which prints to stderr by default

A new language construct as a 'friend' to echo wouldn't be a bad idea IMHO.
Something like echoerr which prints to stderr instead of stdout (and does
not use output buffering of course).

The current situation requires the following steps:

$f = fopen('php://stderr', 'w');
fputs($f, 'debug message');
close($f);

which is ... well, it's nice to have but cumbersome to use (obviously, I
hope).

Example:
echo ene, mene, str_repeat('bla', '3), \n;

should just work with echoerr the same:

echoerr ene, mene, str_repeat('bla', '3), \n;

The reason I'm for a language construct:
Make it as similar to use as echo itself. Not requireing it having to use
parentheses. Easily to replaceable echo and echoerr.

That's it, flames on.
-- 
Edit bug report at: http://bugs.php.net/?id=14901edit=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 #14907 Updated: compiled --with-imap can't connect to sybase server

2002-01-07 Thread mfischer

ID: 14907
Updated by: mfischer
Reported By: [EMAIL PROTECTED]
Old Status: Open
Status: Bogus
Bug Type: Sybase (dblib) related
Operating System: linux
PHP Version: 4.1.1
New Comment:

Bogus unless you provide more information (see bugs do's and don'ts).

Previous Comments:


[2002-01-07 07:51:44] [EMAIL PROTECTED]

compiled --with-imap can't connect to sybase server






Edit this bug report at http://bugs.php.net/?id=14907edit=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 #14912 Updated: Endless Recursion in method

2002-01-07 Thread mfischer

ID: 14912
Updated by: mfischer
Reported By: [EMAIL PROTECTED]
Old Status: Open
Status: Bogus
Bug Type: Class/Object related
Operating System: Windows 98
PHP Version: 4.1.0
New Comment:

Yep, it crashes. See the archives for discussion on this topic.

Previous Comments:


[2002-01-07 11:33:12] [EMAIL PROTECTED]

I'm using PHP 4.1.0 on Windows 98 with no DLL-Extensions loaded.

Accidently I wrote a class method that called itself instead of an other
method:

function getText($id)
{
...
return $text; // A valid string
}

function getHTML($id)
{
return htmlentities($this-getHTML($id)); // Here is my misstake: Should
be getText() instead getHTML()
}

This code causes my Apache/1.3.20 (Win32) to crash. Okay, it's my
misstake as programmer but should a wrong code be able to crash the
server???

Thank you guys, you do a great job!

Ferdinand Beyer
[EMAIL PROTECTED]





Edit this bug report at http://bugs.php.net/?id=14912edit=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 #11008 Updated: exit() should return an exit status if passed, not send to stdout

2002-01-06 Thread mfischer

ID: 11008
Updated by: mfischer
Reported By: [EMAIL PROTECTED]
Old Status: Analyzed
Status: Closed
Bug Type: Scripting Engine problem
Operating System: Linux
PHP Version: 4.0 Latest CVS (2001-05-21)
New Comment:

Fixed in CVS (integer values aren't printed to stdout anymore).

Previous Comments:


[2001-12-06 17:02:53] [EMAIL PROTECTED]

I just got bitten by this. The manual page says that if the value
passed
to exit() is integer it is used as exit status.

Or is there some other way to exit from PHP script with an exit
status?

--Jani




[2001-07-15 16:43:19] [EMAIL PROTECTED]

Simply put - no, it should not.

exit's optional argument is a termination message, not a shell status.



[2001-05-23 11:24:22] [EMAIL PROTECTED]

Anyone in the Zend core want to comment on this?  I know where the code
is that does it.  But it is in the Zend code.

Is there a good reason to put this exit status to stdout?



[2001-05-22 01:59:53] [EMAIL PROTECTED]

indeed it does both:

if php; then echo yes; fi
? exit(0) ?
X-Powered-By: PHP/4.0.5
Content-type: text/html

0yes

if php; then echo yes; fi
? exit(1) ?
X-Powered-By: PHP/4.0.5
Content-type: text/html

1

i don't see a real reason for the echoed exit status though



[2001-05-21 21:34:23] [EMAIL PROTECTED]

Working with a shell script here.  I hoped that exit() would work like
perl and return the passed status as and exist status.  As it stands
now, it sends it to stdout.  This is unexpected.

It would be much more useful if exit() could be used to enable the use
of PHP in shell scripts by returning the passed value as an exit
status.





Edit this bug report at http://bugs.php.net/?id=11008edit=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 #13164 Updated: exit function always outputs its status

2002-01-06 Thread mfischer

ID: 13164
Updated by: mfischer
Reported By: [EMAIL PROTECTED]
Old Status: Analyzed
Status: Closed
Bug Type: Scripting Engine problem
Operating System: Linux 2.2.19
PHP Version: 4.0.6
New Comment:

Fixed in CVS.

Previous Comments:


[2001-09-06 01:25:04] [EMAIL PROTECTED]

Indeed it does, it's a synonym for die(). I wonder if this is
intentional or not.
Zeev, Andi?



[2001-09-06 00:48:37] [EMAIL PROTECTED]

The 'exit' function always outputs its exit status.

This is particularly annoying in command line scripts that need to
return an error status like '1', which is printed to stdout before
termination.

Surely it should not output anything. The programer always can output
whatever (s)he likes before calling 'exit'.






Edit this bug report at http://bugs.php.net/?id=13164edit=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 #14888 Updated: could configure generate a shell script to reuse for other installations?

2002-01-06 Thread mfischer

ID: 14888
Updated by: mfischer
Reported By: [EMAIL PROTECTED]
Old Status: Open
Status: Closed
Bug Type: Feature/Change Request
Operating System: FreeBSD
PHP Version: 4.1.1
New Comment:

There is already and its called 'config.nice'

Previous Comments:


[2002-01-06 08:54:00] [EMAIL PROTECTED]

when installing php, it would be nice if configure could generate a
little shell script with the config options specified, to make upgrading
to new versions simpler. I use this:

--8--

[mini:root]:/usr/local/src/php # cat makeline.sh 
#!/bin/sh

configopts='
--enable-dbg=shared
--with-dbg-profiler
--with-gd=/usr/local/
--with-imap
--with-mysql=/usr/local
--with-pgsql=/usr/local/pgsql
--with-versioning
'

./configure $configopts \
--with-apxs=/usr/local/apache/bin/apxs \
 
make all install 21 | tee make.log

if [ -f config.cache ]; then rm config.cache; fi

apachectl stop
sleep 2
apachectl start

## now make the cgi binary

rm config.cache

./configure $configopts \

make all install 21 | tee -a make.log

--8--

so all I have to do to upgrade is untar, copy that script in and run it.
maybe configure could generate something more intelligent?





Edit this bug report at http://bugs.php.net/?id=14888edit=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 #6500 Updated: XML - startElementHandler

2002-01-06 Thread mfischer

ID: 6500
Updated by: mfischer
Reported By: [EMAIL PROTECTED]
Old Status: Open
Status: Feedback
Bug Type: XML related
Operating System: SuSE Linux 6.4
PHP Version: 4.0.2
New Comment:

Does this still apply to 4.1.1 ?

Previous Comments:


[2000-09-03 07:27:32] [EMAIL PROTECTED]

1. What do you mean with It is decprecated? 
   I used the SYNTAX of the DOCUMENTATION 
   -- PHP - XML - xml_set_object
   ?php
class xml  {
var $parser;

function xml() { 
$this-parser = xml_parser_create();
xml_set_object($this-parser,$this);
 --

   How is the correct syntax?

2. XML-Class

   I removed 100 lines of code. Some parts now looking strange. The
XML-HANDLER is just a small (but important) part of our ContentSystem.

?PHP
class XML_HANDLER {
var $O_DATA = array(); // The XML-PARSER
resault
var $O_STRICT = true;  // If 'true' overwrite
cdata is not allowed
var $O_STACK = array();// TAG-stack: tag_A --
tag_B -- tag_n
var $O_XML_PARSER; // XML OBJECT PARSER

function XML_HANDLER() {
$this-O_LEVEL = -1;
$this-O_XML_PARSER = xml_parser_create();
xml_set_object($this-O_XML_PARSER,$this);
   
xml_set_element_handler($this-O_XML_PARSER,Tag_Start,Tag_End);
   
xml_set_character_data_handler($this-O_XML_PARSER,CData);
xml_parser_set_option($this-O_XML_PARSER,
XML_OPTION_CASE_FOLDING, 0);
}

function Run($A_FILE, $A_FILE_TYPE) {
$this-O_FILE_TYPE = $A_FILE_TYPE;
return $this-ParseFromFile($A_FILE);
}

function ParseFromFile($A_FILE) {
$this-O_FILE = $A_FILE;
$L_FP = @fopen($A_FILE, r);
while($L_LINE = fread($L_FP, 4096))
xml_parse($this-O_XML_PARSER, $L_LINE, feof($L_FP));
fclose($L_FP);
// var_dump($this-O_DATA);
// ERROR  $this-O_DATA is empty 
return $this-O_DATA[$this-O_FILE_TYPE];
}

function Tag_Start($A_PARSER, $A_ELE_NAME, $A_ATTRIBS) {
$this-O_LEVEL++;
$this-O_STACK[$this-O_LEVEL] = $A_ELE_NAME;
$L_EVAL = $this-Bild_Eval();
if (!$this-IsStrict()) {
eval(\$L_ISSET = isset(\$this-O_DATA$L_EVAL););
if ($L_ISSET) {
$L_EVAL = $this-O_EVAL .'[0]';
eval(\$L_VAL = isset(\$this-O_DATA$L_EVAL););
if (!$L_VAL) {
 $L_EVAL = $L_EVAL2 = $this-O_EVAL;
 $L_EVAL2 .= '[0]';
 eval(\$L_DATA = \$this-O_DATA$L_EVAL;);
 eval(unset(\$this-O_DATA$L_EVAL););
 eval(\$this-O_DATA$L_EVAL2 = \$L_DATA;);
}
$L_EVAL = $this-O_EVAL;
eval(\$L_COUNT = count(\$this-O_DATA$L_EVAL););
$this-O_APPEND[$this-O_LEVEL] = [$L_COUNT];
$this-Bild_Eval();
}
}
if (!isset($A_ATTRIBS)) return;
while(list($L_KEY, $L_VALUE) = each($A_ATTRIBS)) {
$L_EVAL = $this-O_EVAL .'[ATTRIBUTE]' .'['
.strtoupper($L_KEY) .']';
eval(\$this-O_DATA$L_EVAL = $L_VALUE;);
}
// var_dump($this-O_DATA) 
// OK, no error !!
}

function Bild_Eval() {
for ($L_L2=0; $L_L2  $this-O_LEVEL+1; $L_L2++)
$L_EVAL = $L_EVAL .'[' .$this-O_STACK[$L_L2] .']'
.$this-O_APPEND[$L_L2];
return $this-O_EVAL = $L_EVAL;
}

function Tag_End($A_PARSER, $A_ELE_NAME) {
unset($this-O_STACK[$this-O_LEVEL]);
unset($this-O_APPEND[$this-O_LEVEL]);
$this-O_LEVEL--;
}

function CData($A_PARSER, $A_DATA) {
if (strlen(trim($A_DATA))==0) return;
$L_EVAL = $this-O_EVAL .'[VALUE]';
eval(\$this-O_DATA$L_EVAL = $A_DATA;);
}
function IsStrict() { return $this-O_STRICT; }
function SetStrict() { $this-O_STRICT = true; }
function SetUnStrict() { $this-O_STRICT = false; }
}
?


3. XML-File
  ?xml version=1.0?
  FEP_VARS
  STAT
TORPEDO VERSION=V0300 DATE=2701/
  /STAT
  RUNTIME
SESSION
  NAMESESSID/NAME
  TYPEs/TYPE
/SESSION
GENERATION3/GENERATION
DHTMLtrue/DHTML
LANGUAGEen/LANGUAGE
CODEUS/CODE
ERROR_LOGtrue/ERROR_LOG
IP_LOGtrue/IP_LOG
OBJECTUSER/OBJECT
DB_HOEtrue/DB_HOE
DBfep_db/DB
DDTmain/DDT
  /RUNTIME
  /FEP_VARS



[2000-09-03 06:07:17] [EMAIL PROTECTED]

1

[PHP-DEV] Bug #6571 Updated: memory leak when selecting text type fields

2002-01-06 Thread mfischer

ID: 6571
Updated by: mfischer
Reported By: [EMAIL PROTECTED]
Old Status: Open
Status: Feedback
Bug Type: Sybase-ct (ctlib) related
Operating System: solaris 2.7
PHP Version: 4.0.2
New Comment:

Is this still valid for 4.1.1 ?

Previous Comments:


[2000-09-07 03:48:48] [EMAIL PROTECTED]

I think I've found the cause: The call to ct_describe made in
sybase_result returns the max length of a text or image field (a very
large value) in the maxlength property, rather than the actual length
that is required for tmp_buffer.  I tried changing maxlength property to
a fixed value and the memory leak vanished.  I'll try to figure out how
to get the actual value. 



[2000-09-06 03:23:10] [EMAIL PROTECTED]

I am using the latest 11.1.1 openclient ct-lib.  The database server is
11.9.3.  I can connect, update and select without problems but as soon
as there is a text type field in the result then the httpd process
serving the request (apache 1.3.12) grows by 60 mb (topping out at 135
mb). I get the same problem with ct-lib running php 3.0.12 as well.  I
can use db-lib with 3.0.12 (same script), which works fine, so it's not
a problem but php 4.0.2 doesn't work at all with db-lib..

regards Philip


/configure  --with-apxs=/opt/local/apache-ssl/bin/apxs 
--prefix=/usr/local --with-ldap=/usr/local/ldap
--with-mcrypt=/usr/local/ --with-config-file-path=/opt/
local/apache-ssl/conf --enable-debug=no --enable-magic-quotes
--enable-bcmath --enable-track-vars
--with-sybase-ct=/opt/sybase/openclient/11.1.1 --without-mysql








Edit this bug report at http://bugs.php.net/?id=6571edit=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 #7133 Updated: xml_set_object() should not copy the object

2002-01-06 Thread mfischer

ID: 7133
Updated by: mfischer
Reported By: [EMAIL PROTECTED]
Old Status: Open
Status: Feedback
Bug Type: XML related
Operating System: irrelevant
PHP Version: 4.0.2
New Comment:

Does this still apply to 4.1.1?

Previous Comments:


[2000-10-11 07:49:48] [EMAIL PROTECTED]

Playing with XML_Parser, I was discouraged by the fact that
xml_set_object() actually copies an object even if it's been passed by
reference. This is a PITA when you want tag handlers to store parsed
data
into object's properties and use these properties afterwards. You have
to
assign references to these propeties in order to access values out of
handler context. Here's an example script:

?php

require_once('XML/Parser.php');


$global_accum = '';


class MyParser extends XML_Parser {

var $accum;
var $ref_accum;

function MyParser()
{
global $global_accum;
$this-ref_accum = $global_accum;
$this-XML_Parser('ISO-8859-1');
}

function startHandler($parser, $tag, $attrs)
{
$this-accum .= $tag;
$this-ref_accum .= $tag;
}

function endHandler($parser, $tag)
{
$this-accum .= /$tag;
$this-ref_accum .= /$tag;
}
}


header('Content-Type: text/plain');


$parser = new MyParser();

$data = EOD
?xml version=1.0?
!DOCTYPE foo SYSTEM /dtd/foo.dtd
foo
  bar/
/foo
EOD;

$err = $parser-parseString($data, TRUE);

if (PEAR::isError($err)) {
die($err-getMessage());
}

echo accum: , $parser-accum, \n;
echo ref_accum: , $parser-ref_accum, \n;

?

This produces:

accum:   
ref_accum: FOOBAR/BAR/FOO






Edit this bug report at http://bugs.php.net/?id=7133edit=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 #14892 Updated: Download doesn't work

2002-01-06 Thread mfischer

ID: 14892
Updated by: mfischer
Reported By: [EMAIL PROTECTED]
Old Summary: Fix your shit
Status: Bogus
Bug Type: Unknown/Other Function
Operating System: 
PHP Version: 4.1.1
New Comment:

Try a mirror if you have troubles accessing php.net directly.

Previous Comments:


[2002-01-06 13:41:32] [EMAIL PROTECTED]

I wish you happy new year, and now get lost.

Derick



[2002-01-06 13:40:36] [EMAIL PROTECTED]

yopur download links stop trnxfr in the middle of the items lets get
this resolved so that i can user your site





Edit this bug report at http://bugs.php.net/?id=14892edit=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 #14867 Updated: unable dynamic load php_oci8.dll

2002-01-05 Thread mfischer

ID: 14867
Updated by: mfischer
Reported By: [EMAIL PROTECTED]
Old Status: Open
Status: Bogus
Bug Type: OCI8 related
Operating System: window 2000 professional
PHP Version: 4.1.0
New Comment:

Try setting the extension_dir to c:/php/extensions and
extension=php_oci8.dll.

For further questions as on [EMAIL PROTECTED] .

Previous Comments:


[2002-01-05 03:45:30] [EMAIL PROTECTED]

  I use php_4.1.0+apache_1.3.22+oracle 8.0.4.
  In php.ini ,I configure extension=c:/php/extensions/php_oci8.dll,but
when I start apache server, system tell me cann't dynamic load
php_oci8.dll.
  Please tell me why. 





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

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

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.

Previous Comments:


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

[PHP-DEV] Bug #14852 Updated: create_entity_reference causes warning

2002-01-04 Thread mfischer

ID: 14852
Updated by: mfischer
Reported By: [EMAIL PROTECTED]
Old Status: Open
Status: Closed
Bug Type: DOM XML related
Operating System: linux
PHP Version: 4.1.1
New Comment:

Already fixed in CVS.

Previous Comments:


[2002-01-04 12:14:46] [EMAIL PROTECTED]

the following code produces a warning at the end:

$xmlDoc = xmldocfile(test.xml);
$xmlDoc-create_entity_reference(bla);

xml-file (presumable any..):
?xml version=1.0?
buecher
buch buch_id=1 isbn=3-8266-0612-4
titelApache Web-Server/titel
jahr2000/jahr
kategorie2/kategorie
/buch
/buecher

warning message:

Warning: Unknown list entry type in request shutdown (-10004) in Unknown
on line 0











Edit this bug report at http://bugs.php.net/?id=14852edit=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 #14850 Updated: Problems with XML and DTD entities

2002-01-04 Thread mfischer

ID: 14850
Updated by: mfischer
Reported By: [EMAIL PROTECTED]
Status: Open
Bug Type: DOM XML related
Operating System: FreeBSD 4.5-PRERELEASE
PHP Version: 4.1.1
New Comment:

About Example 2:
Entity references defined in the document are their own nodes. You
should carefully look at print_r($node);

Next please don't open one report about two things (even if they look
the same).

Previous Comments:


[2002-01-04 10:09:37] [EMAIL PROTECTED]

There are two instances where I am having problems with entities.
test.php and test.xml below exhibit a problem with xml entities.

The output is:
Blah Blah Acirc;reg; Blah Blah

The expected output was:
Blah Blah reg; Blah Blah

The second problem exhibited by test2.php and test2.xml has to do with
DTD entities.

The output is:
Blah Blah 

The expected output was:
Blah Blah reg; Blah Blah

The setup is PHP 4.1.1 with a patch to php_domxml.c from 1.67.2.9 to
1.90 that fixes a problem with PHP crashing with DTD entities.

test.php:
--
?
$xml = test.xml;
$doc = xmldocfile($xml);
$context = $doc-xpath_new_context();
$query = //test;
$nodes = $context-xpath_eval($query);
$node = $nodes-nodeset[0]-children();
$content .= $node[0]-content;
echo htmlentities($content);
?

test.xml:
--
?xml version=1.0?
testBlah Blah #174; Blah Blah/test

test2.php:
--
?
$xml = test2.xml;
$doc = xmldocfile($xml);
$context = $doc-xpath_new_context();
$query = //test;
$nodes = $context-xpath_eval($query);
$node = $nodes-nodeset[0]-children();
$content .= $node[0]-content;
echo htmlentities($content);
?

test2.xml:
--
?xml version=1.0?
!DOCTYPE test [
!ENTITY reg #174;
]
testBlah Blah reg; Blah Blah/test





Edit this bug report at http://bugs.php.net/?id=14850edit=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 #14854 Updated: xmldoc() undefined with domxml apparently enabled

2002-01-04 Thread mfischer

ID: 14854
Updated by: mfischer
Reported By: [EMAIL PROTECTED]
Old Status: Open
Status: Bogus
Bug Type: DOM XML related
Operating System: Windows98
PHP Version: 4.1.0
New Comment:

Please ask support questions at [EMAIL PROTECTED]

Previous Comments:


[2002-01-04 13:25:23] [EMAIL PROTECTED]

The line

   $doc = xmldoc($xml); // (line 26)

(where $xml is a string containing a valid xml 
document) raises a fatal error:

Fatal error: Call to undefined function:  xmldoc() in
d:\...\class.xmltemplate.php on line 26

I'm running PHP 4.1.0 as an Apache module with Apache 
1.3.22 on Win98 (but I was experiencing the same problem 
with PHP 4.0.6 and Apache 1.3.14). All the required dlls 
(libxml2.dll, iconv-1.3.dll) have been copied to the system 
directory, and phpinfo() tells me that DOMXML is enabled 
(with libxml 2.4.1).






Edit this bug report at http://bugs.php.net/?id=14854edit=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 #14850 Updated: Problems with XML and DTD entities

2002-01-04 Thread mfischer

ID: 14850
Updated by: mfischer
Reported By: [EMAIL PROTECTED]
Old Status: Open
Status: Feedback
Bug Type: DOM XML related
Operating System: FreeBSD 4.5-PRERELEASE
PHP Version: 4.1.1
New Comment:

For the first bug, you should consult tightly the libxml2 documentation.
libxml2 does the conversion on its own and only hell knows why you get
what you get.

It's probably a runtime configuration option of libxml2 which most
likely also isn't implemented in the domxml interface. Or maybe its even
expected. Anyway, best is you take a look at libxml2 directly .

Feedback.

Previous Comments:


[2002-01-04 13:39:39] [EMAIL PROTECTED]

About Example 2:
Entity references defined in the document are their own nodes. You
should carefully look at print_r($node);

Next please don't open one report about two things (even if they look
the same).



[2002-01-04 10:09:37] [EMAIL PROTECTED]

There are two instances where I am having problems with entities.
test.php and test.xml below exhibit a problem with xml entities.

The output is:
Blah Blah Acirc;reg; Blah Blah

The expected output was:
Blah Blah reg; Blah Blah

The second problem exhibited by test2.php and test2.xml has to do with
DTD entities.

The output is:
Blah Blah 

The expected output was:
Blah Blah reg; Blah Blah

The setup is PHP 4.1.1 with a patch to php_domxml.c from 1.67.2.9 to
1.90 that fixes a problem with PHP crashing with DTD entities.

test.php:
--
?
$xml = test.xml;
$doc = xmldocfile($xml);
$context = $doc-xpath_new_context();
$query = //test;
$nodes = $context-xpath_eval($query);
$node = $nodes-nodeset[0]-children();
$content .= $node[0]-content;
echo htmlentities($content);
?

test.xml:
--
?xml version=1.0?
testBlah Blah #174; Blah Blah/test

test2.php:
--
?
$xml = test2.xml;
$doc = xmldocfile($xml);
$context = $doc-xpath_new_context();
$query = //test;
$nodes = $context-xpath_eval($query);
$node = $nodes-nodeset[0]-children();
$content .= $node[0]-content;
echo htmlentities($content);
?

test2.xml:
--
?xml version=1.0?
!DOCTYPE test [
!ENTITY reg #174;
]
testBlah Blah reg; Blah Blah/test





Edit this bug report at http://bugs.php.net/?id=14850edit=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 #14839 Updated: getcwd() and `pwd`, PHP behaviour nor clearly documented

2002-01-04 Thread mfischer

ID: 14839
Updated by: mfischer
Reported By: [EMAIL PROTECTED]
Old Summary: getcwd() and `pwd` report incorrect directory
Old Status: Closed
Status: Open
Old Bug Type: *Directory/Filesystem functions
Bug Type: Documentation problem
Operating System: Linux, FreeBSD, Solaris
PHP Version: 4.0.5
New Comment:

Valid points .. I reopen this als doc thing.

Previous Comments:


[2002-01-04 11:59:30] [EMAIL PROTECTED]

[EMAIL PROTECTED] makes it all clear.  I searched all the release
documentation (for all the releases since getcwd() was introduced in
1999) prior to writing this bug for any remarks about this kind of
behavior, but couldn't find anything.

The default behavior for Unix and DOS programs is to run in the CWD, so
programmers tend to expect that of other programs, such as PHP.  As
[EMAIL PROTECTED] and [EMAIL PROTECTED] pointed out, this may not be the
most desirable behavior for a Web script.  Since it is contrary to what
most programs do, I'd like to request that the documentation of the
startup behavior of PHP be sure to note this behavior, and that the -C
option be documented a bit more boldly -- at least listed in the release
notes.

Thanks.



[2002-01-04 05:02:27] [EMAIL PROTECTED]

Closing the report.



[2002-01-04 05:01:54] [EMAIL PROTECTED]

There is nothing wrong with getcwd(). The problem
is that php changes current working directory to 
the script's.

This makes sense if you think of CGI scripts,
but makes no sense if you write command line programs.

That's way a new command line switch (-C) was introduced
in PHP 4.1.0 which prevents PHP from chdir'ing into
script's directory.

So changing the first line of your script to

#!/usr/local/bin/php -qC

(and upgrading to 4.1) should fix the problem.




[2002-01-04 00:47:58] [EMAIL PROTECTED]

Ok, some comments, if i may.

Firstly, I have verified this behaviour, however (and I could be wrong),
this is not unexpected.

The script executes relavtive to the directory it exists 
within, not the directory you are currently in. 

I can't particularly explain why, but this kind of makes sense. If you
had a script in some unsafe directory, allowing the moving and deleting
of files, and you could run it in a secured directory, in which the php
process had sufficient access, and affect the files there, would that
not present potential security risks?

Anyhow, i could be wrong, so don't take what i said as corret.



[2002-01-04 00:22:32] [EMAIL PROTECTED]

Oh, I suppose you want my configure line, even though it really doesn't
make a difference.  Here it is:

CONFIGURE_COMMAND = './configure' '--with-gd=/usr/local' '--with-mysql'
'--with-openssl' '--with-apxs=/usr/local/sbin/apxs'
'--prefix=/usr/local'



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


Edit this bug report at http://bugs.php.net/?id=14839edit=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 #14862 Updated: xmldocfile segfaults sometimes

2002-01-04 Thread mfischer

ID: 14862
Updated by: mfischer
Reported By: [EMAIL PROTECTED]
Old Status: Open
Status: Feedback
Bug Type: DOM XML related
Operating System: linux
PHP Version: 4.0CVS-2002-01-04
New Comment:

Seems to depend on the input data. No matter how much stress testing I
do, I can't reproduce a crash.

Please provide some crashing input data too.

Previous Comments:


[2002-01-04 18:09:54] [EMAIL PROTECTED]

xmldocfile produces from time to time segfaults at shutdown (not always,
sometimes more, sometimes less...)

code:
$xmlDoc = xmldocfile(test.xml);

xml: any.

workaround (does the same jobs right, just in more lines :) )

$fd = fopen( $datasrc, r );
$xmlstring = fread( $fd, filesize( $datasrc ) );
fclose( $fd );
$xmlDoc = xmldoc($xmlstring);

backtrace:

0x40224b0b in zend_hash_index_find (ht=0x403747a4, h=1075888551, 
pData=0xbfffef38) at zend_hash.c:935
935 if ((p-h == h)  (p-nKeyLength == 0)) {
(gdb) bt
#0  0x40224b0b in zend_hash_index_find (ht=0x403747a4, h=1075888551, 
pData=0xbfffef38) at zend_hash.c:935
#1  0x402257e8 in _zend_list_delete (id=1075888551) at zend_list.c:53
#2  0x4021bc43 in _zval_dtor (zvalue=0x812653c, 
__zend_filename=0x403385bc zend_execute_API.c,
__zend_lineno=274)
at zend_variables.c:64
#3  0x40211e0c in _zval_ptr_dtor (zval_ptr=0x8126990, 
__zend_filename=0x40338a13 zend_variables.c, __zend_lineno=189)
at zend_execute_API.c:274
#4  0x4021c08d in _zval_ptr_dtor_wrapper (zval_ptr=0x8126990)
at zend_variables.c:189
#5  0x40223a1a in zend_hash_destroy (ht=0x812657c) at zend_hash.c:541
#6  0x4021bc0f in _zval_dtor (zvalue=0x812dc04, 
__zend_filename=0x403385bc zend_execute_API.c,
__zend_lineno=274)
at zend_variables.c:57
#7  0x40211e0c in _zval_ptr_dtor (zval_ptr=0x8126ba8, 
__zend_filename=0x40338a13 zend_variables.c, __zend_lineno=189)
at zend_execute_API.c:274
#8  0x4021c08d in _zval_ptr_dtor_wrapper (zval_ptr=0x8126ba8)
at zend_variables.c:189
#9  0x40223a1a in zend_hash_destroy (ht=0x40374688) at zend_hash.c:541
#10 0x40211977 in shutdown_executor () at zend_execute_API.c:173
#11 0x4021d2f3 in zend_deactivate () at zend.c:596
#12 0x4022f95b in php_request_shutdown (dummy=0x0) at main.c:736
#13 0x4022b8e8 in apache_php_module_main (r=0x811b234,
display_source_mode=0)
at sapi_apache.c:96
#14 0x4022c7a8 in send_php (r=0x811b234, display_source_mode=0, 
filename=0x811bd4c
/usr/local/apache/htdocs/buch/domxml/newfunctions.php)
at mod_php4.c:575
#15 0x4022c82b in send_parsed_php (r=0x811b234) at mod_php4.c:590
#16 0x08073b29 in ap_invoke_handler ()
#17 0x0808893f in process_request_internal ()
#18 0x080889a6 in ap_process_request ()
#19 0x0807f886 in child_main ()
#20 0x0807fa41 in make_child ()
#21 0x0807fbbc in startup_children ()
#22 0x0808024d in standalone_main ()
#23 0x08080aac in main ()
#24 0x400be65f in __libc_start_main () from /lib/libc.so.6







Edit this bug report at http://bugs.php.net/?id=14862edit=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 #14861 Updated: nlist and rawlist don`t work with ftp-daemon of Suse

2002-01-04 Thread mfischer

ID: 14861
Updated by: mfischer
Reported By: [EMAIL PROTECTED]
Old Status: Open
Status: Feedback
Bug Type: FTP related
Operating System: Linux and W2K
PHP Version: 4.0.6
New Comment:

Please test 4.1.1 and see if the problem still exists.

Previous Comments:


[2002-01-04 17:40:11] [EMAIL PROTECTED]

Hello,

I tried to user ftp_nlist to get an directory-listing of an Suse7.1 
ftp-Server, but the function returns nothing.

I tried the same code to connect to an ftp-server on an
Windows-System.

To analyse the problem I made some printentries in the file ftp.c. I
edited 
the file in the array of line 1195. I think that here is one problem: 
the code expect \r and \n, but only retrieves \n.

Here is the code:


while ((ch = getc(tmpfp)) != EOF) {
printf(%d ,ch);
/*
if (ch == '\n'  lastch == '\r') {
*/
if (ch == '\n' ) {
*(text - 1) = 0;
printf(\nText:%s\n\n, text);
*++entry = text;
}
else {
*text++ = ch;
}
lastch = ch;
}
*entry = NULL;

if (ferror(tmpfp))
goto bail;

fclose(tmpfp);

if (!ftp_getresp(ftp) || (ftp-resp != 226  ftp-resp != 250)) {
free(ret);
return NULL;
}
printf(ret[0]:%s\n, ret[0]);
printf(ret[1]:%s\n\n, ret[1]);
return ret;


And here is the output from my PHP-Script:

X-Powered-By: PHP/4.0.6
Content-type: text/html

45 114 119 45 114 45 45 114 45 45 32 32 49 32 114 111 111 116 32 32 32
114 111 111 116 32 32 32 49 54 51 57 32 68 101 99 32 50 49 32 50 51 58
51 48 32 105 99 97 112 46 112 104 112 10 
Text:icap.php
-rw-r-  1 bernd  users  1717 Dec 21 23:29 kal.php


45 114 119 45 114 45 45 45 45 45 32 32 49 32 98 101 114 110 100 32 32
117 115 101 114 115 32 32 49 55 49 55 32 68 101 99 32 50 49 32 50 51 58
50 57 32 107 97 108 46 112 104 112 10 
Text:9 kal.php


ret[0]::¶
ret[1]:-rw-r-  1 bernd  users  1717 Dec 21 23:29 kal.ph

array(2) {
  [0]=
  string(4) :¶
  [1]=
  string(52) -rw-r-  1 bernd  users  1717 Dec 21 23:29 kal.ph
}


Thanks
Bernd





Edit this bug report at http://bugs.php.net/?id=14861edit=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 #14862 Updated: xmldocfile segfaults sometimes

2002-01-04 Thread mfischer

ID: 14862
Updated by: mfischer
Reported By: [EMAIL PROTECTED]
Old Status: Open
Status: Feedback
Bug Type: DOM XML related
Operating System: linux
PHP Version: 4.0CVS-2002-01-04
New Comment:

Doesn't segfault either ... (used ab for testing, this should really be
it).

What's your configure line, which apache version?

Previous Comments:


[2002-01-04 19:01:51] [EMAIL PROTECTED]

it's sometimes not easy to cause a segfault, but if you once have one,
then they come very often :) and with the following xml-data, it
shouldn't take long...

?xml version=1.0?
buecher bla=bla
buch buch_id=1 isbn=3-8266-0612-4
titelApache Web-Server/titel
jahr2000/jahr
kategorie2/kategorie
/buch
/buecher






[2002-01-04 18:55:42] [EMAIL PROTECTED]

Seems to depend on the input data. No matter how much stress testing I
do, I can't reproduce a crash.

Please provide some crashing input data too.



[2002-01-04 18:09:54] [EMAIL PROTECTED]

xmldocfile produces from time to time segfaults at shutdown (not always,
sometimes more, sometimes less...)

code:
$xmlDoc = xmldocfile(test.xml);

xml: any.

workaround (does the same jobs right, just in more lines :) )

$fd = fopen( $datasrc, r );
$xmlstring = fread( $fd, filesize( $datasrc ) );
fclose( $fd );
$xmlDoc = xmldoc($xmlstring);

backtrace:

0x40224b0b in zend_hash_index_find (ht=0x403747a4, h=1075888551, 
pData=0xbfffef38) at zend_hash.c:935
935 if ((p-h == h)  (p-nKeyLength == 0)) {
(gdb) bt
#0  0x40224b0b in zend_hash_index_find (ht=0x403747a4, h=1075888551, 
pData=0xbfffef38) at zend_hash.c:935
#1  0x402257e8 in _zend_list_delete (id=1075888551) at zend_list.c:53
#2  0x4021bc43 in _zval_dtor (zvalue=0x812653c, 
__zend_filename=0x403385bc zend_execute_API.c,
__zend_lineno=274)
at zend_variables.c:64
#3  0x40211e0c in _zval_ptr_dtor (zval_ptr=0x8126990, 
__zend_filename=0x40338a13 zend_variables.c, __zend_lineno=189)
at zend_execute_API.c:274
#4  0x4021c08d in _zval_ptr_dtor_wrapper (zval_ptr=0x8126990)
at zend_variables.c:189
#5  0x40223a1a in zend_hash_destroy (ht=0x812657c) at zend_hash.c:541
#6  0x4021bc0f in _zval_dtor (zvalue=0x812dc04, 
__zend_filename=0x403385bc zend_execute_API.c,
__zend_lineno=274)
at zend_variables.c:57
#7  0x40211e0c in _zval_ptr_dtor (zval_ptr=0x8126ba8, 
__zend_filename=0x40338a13 zend_variables.c, __zend_lineno=189)
at zend_execute_API.c:274
#8  0x4021c08d in _zval_ptr_dtor_wrapper (zval_ptr=0x8126ba8)
at zend_variables.c:189
#9  0x40223a1a in zend_hash_destroy (ht=0x40374688) at zend_hash.c:541
#10 0x40211977 in shutdown_executor () at zend_execute_API.c:173
#11 0x4021d2f3 in zend_deactivate () at zend.c:596
#12 0x4022f95b in php_request_shutdown (dummy=0x0) at main.c:736
#13 0x4022b8e8 in apache_php_module_main (r=0x811b234,
display_source_mode=0)
at sapi_apache.c:96
#14 0x4022c7a8 in send_php (r=0x811b234, display_source_mode=0, 
filename=0x811bd4c
/usr/local/apache/htdocs/buch/domxml/newfunctions.php)
at mod_php4.c:575
#15 0x4022c82b in send_parsed_php (r=0x811b234) at mod_php4.c:590
#16 0x08073b29 in ap_invoke_handler ()
#17 0x0808893f in process_request_internal ()
#18 0x080889a6 in ap_process_request ()
#19 0x0807f886 in child_main ()
#20 0x0807fa41 in make_child ()
#21 0x0807fbbc in startup_children ()
#22 0x0808024d in standalone_main ()
#23 0x08080aac in main ()
#24 0x400be65f in __libc_start_main () from /lib/libc.so.6







Edit this bug report at http://bugs.php.net/?id=14862edit=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 #14823 Updated: my webserver performance going down

2002-01-03 Thread mfischer

ID: 14823
Updated by: mfischer
Reported By: [EMAIL PROTECTED]
Old Status: Open
Status: Bogus
Bug Type: IIS related
Operating System: NT4.0 SP5
PHP Version: 4.1.1
New Comment:

Please ask support questions at [EMAIL PROTECTED]

Previous Comments:


[2002-01-03 05:54:39] [EMAIL PROTECTED]

i use php script in my website, when ever i give request to my site that makes my 
server down ..what could be the reason..
Brief desc about the php script:
That will open a txt file from folder(which is in server disk)it reads the text 
file(line by line) for a word which comes from a request page.
I hope u will help me find out the bug.

by
lokesh





Edit this bug report at http://bugs.php.net/?id=14823edit=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 #14835 Updated: Script accesses harddrive. what did I do wrong?

2002-01-03 Thread mfischer

ID: 14835
Updated by: mfischer
Reported By: [EMAIL PROTECTED]
Old Status: Open
Status: Bogus
Bug Type: Unknown/Other Function
Operating System: Windows XP
PHP Version: 4.1.1
New Comment:

Please ask for support on [EMAIL PROTECTED]

Previous Comments:


[2002-01-03 20:49:46] [EMAIL PROTECTED]

I installed Apache 1.3.20 with PHP and now I saw, a php script can show my complete 
harddrive remotly. I don't know if it is a bug in php, I think not, I think I 
configured something wrong but I have ABSOLUTLY no idea what and I didn't find help 
anywhere. maybe you can tell me what this could be. 

thanks a lot





Edit this bug report at http://bugs.php.net/?id=14835edit=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 #14836 Updated: Cannot find imap library

2002-01-03 Thread mfischer

ID: 14836
Updated by: mfischer
Reported By: [EMAIL PROTECTED]
Old Status: Open
Status: Bogus
Bug Type: Compile Failure
Operating System: Linux RedHat 7.0
PHP Version: 4.1.0
New Comment:

Please ask for support at [EMAIL PROTECTED]

Previous Comments:


[2002-01-03 21:55:02] [EMAIL PROTECTED]

original configure script:
./configure --with-apxs=/etc/httpd/bin/apxs --enable-track-vars --enable-ftp 
--with-gd=../gd-1.8.4 --prefix=/etc/php --sysconfdir=/etc/php 
--with-imap=../imapServer

Note: ../imapServer is the dir where I gunzip'd the source files.

This script gives the error:
Cannot find rfc822.h. Please check your IMAP installation.

Then I do another configure where I specify the location of rfc822.h:
./configure --with-apxs=/etc/httpd/bin/apxs --enable-track-vars --enable-ftp 
--with-gd=../gd-1.8.4 --prefix=/etc/php --sysconfdir=/etc/php 
--with-imap=../imapServer/src

Now the error is:
Cannot find imap library. Please check your IMAP installation.

I have also downloaded the newest IMAP source from http://www.washington.edu/imap/, 
but the same error messages appear.

By the way, PHP, Apache, and the IMAP server were, and still are, working fine.  It's 
just that I cannot recompile PHP with IMAP support.





Edit this bug report at http://bugs.php.net/?id=14836edit=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 #14838 Updated: interactive between session and aray

2002-01-03 Thread mfischer

ID: 14838
Updated by: mfischer
Reported By: [EMAIL PROTECTED]
Old Status: Open
Status: Bogus
Bug Type: Session related
Operating System: window NT
PHP Version: 4.0.6
New Comment:

Please ask for support at [EMAIL PROTECTED]

Previous Comments:


[2002-01-03 23:12:57] [EMAIL PROTECTED]

may i know how to have a interactive between an array and the session ?
 
Question1 : how to assign a list of array value into the session variable ?

Question2 : how to retrieve the value from session and put it back into the array ?

thanks.





Edit this bug report at http://bugs.php.net/?id=14838edit=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 #14095 Updated: fopen/fwrite does not create file via ftp://

2002-01-02 Thread mfischer

ID: 14095
Updated by: mfischer
Reported By: [EMAIL PROTECTED]
Old Status: Open
Status: Closed
Bug Type: FTP related
Operating System: Windows NT4 SP6a
PHP Version: 4.0.6
New Comment:

No Feedback, closing.

Previous Comments:


[2001-11-17 17:52:49] [EMAIL PROTECTED]

Unfortunately I do not have authority over that server. But I will try to either set 
up a test box (don't have NT4 available right now) or convince the admin to upgrade - 
so is there a known issue?



[2001-11-17 17:32:32] [EMAIL PROTECTED]

Can you please test with a more recent version (e.g. from php4win.de) ?




[2001-11-17 17:16:35] [EMAIL PROTECTED]

PHP as CGI on NT4SP6a/IIS4.

To update a file on the server, I read the old contents into an array, populate a 
string with modified content, delete the old file, and use fopen/fwrite to write a new 
one.
This worked great on FreeBSD/Apache, now on NT4/IIS4 the new file is not written.

There are *no* error messages, but the file is not there.

Really messed up is the fact that the file is written successfully when I specify the 
previous FreeBSD/Apache host in $FTPSite...

The following variables are defined before the code below runs:
$newcontents
$FTPUser
$FTPPass (contains special characters, e.g. urb@n)
$FTPSite (host.domain.tl)
$FTPDoc  (/path/filename)

[Curiously, I cannot use localhost or an IP address as $FTPSite...(unable to find 
ftpbuf 0 on ftp_login and ftp_delete as well as php_hostconnect: connect failed on 
fopen)]

// delete previous file via ftp
$ftp = ftp_connect($FTPSite);
ftp_login($ftp, $FTPUser, $FTPPass);
ftp_delete($ftp, $FTPDoc);
ftp_quit($ftp);

// get file handler
$FTPOpen=ftp://; . rawurlencode($FTPUser) . : . rawurlencode($FTPPass) . @ . 
$FTPSite . $FTPDoc;
//echo $FTPOpen . BR;
$NewTopTen = fopen($FTPOpen,w);
echo $NewTopTen;
// write new content to file
fwrite($NewTopTen, $newcontents);

//close file handle
fclose($NewTopTen);






Edit this bug report at http://bugs.php.net/?id=14095edit=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 #14052 Updated: ftp_rawlist: Hangs up

2002-01-02 Thread mfischer

ID: 14052
Updated by: mfischer
Reported By: [EMAIL PROTECTED]
Old Status: Open
Status: Feedback
Bug Type: FTP related
Operating System: Win2K
PHP Version: 4.0.6
New Comment:

Is this bug still present to you, also with 4.1.0?

If so, can you verify that the 'hang' time is about 90 seconds (its a fixed coded 
timeout value in ext/ftp)?

Previous Comments:


[2001-11-14 09:48:04] [EMAIL PROTECTED]

I think there is really a problem with repeated ftp_rawlist (Reported in #7897). I 
write a script which make several ftp_rawlists to indexing all the content. In most 
case, the task hangs up for 1 or 2 minutes. Then the program will continue, but it 
can be that it hangs up again. When I start the script directly (cmd-line), it will 
run well. But when I start it trough the task scheduler or the web server, it hangs up 
always. I can't explain the problem more, because this is all - Repeated ftp_rawlist, 
script is running under user system.





Edit this bug report at http://bugs.php.net/?id=14052edit=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 #12091 Updated: zlib uncompress buffer error/ inflate failed

2002-01-02 Thread mfischer

ID: 12091
Updated by: mfischer
Reported By: [EMAIL PROTECTED]
Old Status: Open
Status: Closed
Bug Type: Zlib Related
Operating System: i686-pc-linux-gnu
PHP Version: 4.0CVS-2001-07-12
New Comment:

I'm pretending this is fixed as I can't reproduce it with current CVS (reopen with 
sample script if wrong).

Previous Comments:


[2001-11-03 22:42:33] [EMAIL PROTECTED]

missing status




[2001-07-13 13:33:49] [EMAIL PROTECTED]

Hi Thies,

thank you for your changes in zlib.c but you have not
really fix the problem.
If i increase the string repeating from 5000 to 35000,
i have the same problem again, but
i don't no why, sometimes php works correct...

---snip---
tt
?php
error_reporting(63);
mt_srand ((double) microtime() * 100);

for ($original=,$i=0;$i35000;$i++){
//$out.=chr(mt_rand()); // 
$original.=lala ; // problem
}

$packed=gzdeflate($original); // gzcompress
$unpacked=gzinflate($packed); // gzuncompress

echo Length original:.strlen($original).br;
echo Length packed:.strlen($packed).br;
echo Length unpacked:.strlen($unpacked).br;

if (strcmp($original,$unpacked)==0) echo Strings are equal;
else echo bStrings unot/u equal/b;
?
/tt
---snap---


Regards,

-- 
Steve



[2001-07-13 11:15:07] [EMAIL PROTECTED]

fixed in CVS


you can make it work in 4.0.6 by changing maxfactor from 8 
to lets say 16 in zlib.c around line 912





[2001-07-12 05:38:24] [EMAIL PROTECTED]

Hi,

the follow code produces a deflated string
which php can not inflate.


php results:
Warning: gzinflate: buffer error in /web/htdocs/thisfile.php


tt
?php
error_reporting(63);
mt_srand ((double) microtime() * 100);

for ($original=,$i=0;$i5000;$i++){
//$original.=chr(mt_rand()); // 
$original.=lala ; // problem
}

$packed=gzdeflate($original); // gzcompress
$unpacked=gzinflate($packed); // gzuncompress

echo Length original:.strlen($original).br;
echo Length packed:.strlen($packed).br;
echo Length unpacked:.strlen($unpacked).br;

if (strcmp($original,$unpacked)==0) echo Strings are equal;
else echo bStrings unot/u equal/b;
?
/tt



Regards,


-- 
Steve





Edit this bug report at http://bugs.php.net/?id=12091edit=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 #14790 Updated: --with-zlib == broken phpinfo()

2002-01-02 Thread mfischer

ID: 14790
Updated by: mfischer
Reported By: [EMAIL PROTECTED]
Old Status: Open
Status: Closed
Bug Type: Zlib Related
Operating System: OpenBSD 2.9
PHP Version: 4.1.1
New Comment:

Fixed in CVS.

Previous Comments:


[2002-01-01 10:48:58] [EMAIL PROTECTED]

Hi,

If I use --with-zlib and I launch phpinfo() function it breaks after calendar (before 
zlib!) table.
I solved configuring without --with-zlib.

(Note that with 4.0.6 all went right.)

Thanks.


Ed







Edit this bug report at http://bugs.php.net/?id=14790edit=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 #14817 Updated: Feature: copying/paste nodes to each other

2002-01-02 Thread mfischer

ID: 14817
Updated by: mfischer
Reported By: [EMAIL PROTECTED]
Old Status: Open
Status: Bogus
Bug Type: DOM XML related
Operating System: 
PHP Version: 4.1.1
New Comment:

Thats the (intended) behaviour of libxml2 and there's little PHP can do about it.

And libxml2 certainly is not designed to handle the way you like to add xml data to 
your document. You'll have to use the native domxml function PHP provides to construct 
your XML.

Previous Comments:


[2002-01-02 21:34:58] [EMAIL PROTECTED]

Currently I'm building system that stores xml data in a database. When I get this data 
out of m database and try to put it into a node, all the xml inside is escaped.

For example:
---
$xml = 'list
itemfirst/item
itemsecond/item
/list';

$D_doc  = new_xmldoc(1.0);
$D_root = $D_doc-add_root('page');
$D_node = $D_root-new_child('posting', $xml);

Header('Content-type: text/xml');
echo $D_doc-dumpmem();
---

Will output the following data:
---
?xml version=1.0?
pagepostinglt;listgt;
lt;itemgt;firstlt;/itemgt;
lt;itemgt;secondlt;/itemgt;
lt;/listgt;/posting/page
---

Often that is not desired. Therefore I hoped it should be possible to 'copy/paste' dom 
objects. If that would be possible, I could do something like this:

Example:
---
$xml = 'list
itemfirst/item
itemsecond/item
/list';

$D_doc  = new_xmldoc(1.0);
$D_root = $D_doc-add_root('page');

// Create DOM object from the data
$D_posting = xmldoc('?xml version=1.0?posting' . $xml . '/posting');
// Paste the root of $D_posting to the first DOM document
$D_node = $D_root-add_node($D_posting);

Header('Content-type: text/xml');
echo $D_doc-dumpmem();
---

What should output:
---
?xml version=1.0 ? 
page
  posting
list
  itemfirst/item
  itemsecond/item
/list
  /posting 
/page
---

Currently I'm using a xmltree() to make a DOM document from $xml. The result from 
xmltree() is that recursively walked through and the nodes that are found are added to 
the first DOM document.

Hopefully there is a way to implement the direct copying of dom object, like eg. in 
Java.

--
Rense





Edit this bug report at http://bugs.php.net/?id=14817edit=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 #14783 Updated: Using unlink causes segfault

2002-01-01 Thread mfischer

ID: 14783
Updated by: mfischer
Reported By: [EMAIL PROTECTED]
Old Status: Open
Status: Closed
Bug Type: DOM XML related
Operating System: RH6.2/Apache/libxml2.4.12
PHP Version: 4.1.1
New Comment:

This has been fixed in CVS.

Previous Comments:


[2001-12-31 16:16:27] [EMAIL PROTECTED]

Symptoms:
- using unlink() causes segfault

Script to reproduce:

?php
$xml = END_XML
?xml version=1.0?
test
foo id=xHello/foo
foo id=yWorld/foo
/test
END_XML;
$dom = xmldoc($xml);

// this so I can see it.
header('Content-type: text/plain');

$ctx = $dom-xpath_new_context();

$res = xpath_eval($ctx,//foo);

foreach ($res-nodeset as $child) {
$child-unlink();
} 

echo $dom-dumpmem();
?

Other notes:

- some cursory debugging I did suggested that it was the cleanup routines at the end 
of the script that were causing the crash.  Looking at php_domxml.c, the recursive 
node memory cleanup appears to be choking on a pointer already freed during the 
unlink() call.





Edit this bug report at http://bugs.php.net/?id=14783edit=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 #14781 Updated: ftp_login failure after mysql_connect

2002-01-01 Thread mfischer

ID: 14781
Updated by: mfischer
Reported By: [EMAIL PROTECTED]
Old Status: Open
Status: Bogus
Bug Type: FTP related
Operating System: Linux Redhat 6.2/7.2
PHP Version: 4.1.1
New Comment:

Your code doesn't watch out for operator precedence:

$foo = function1() ||  die(i'm dead now);

will evalute to

$foo = ( function1() ||  die(i'm dead now) );

which means $foo will be true (if function1 succeeded).

For your code this means:

$hFtp = ( ftp_connect (localhost) || die (Could not connect.\n) ).

and therefore $hFtp will be boolean true and not your resource/connection id. Proper 
parenthesizing will solve this:

( $hFtp = ftp_connect (localhost) ) || die (Could not connect.\n);

Previous Comments:


[2001-12-31 11:30:49] [EMAIL PROTECTED]

I wanted to connect to a ftp server, get some files and insert them into a database.
I started connecting to the ftp server, then logging in and that worked fine. Then I 
added a mysql_connect and now I get an error on ftp_login that says that it can not 
find ftpbuf.
(tried on two systems: Linux Redhat 6.2, Linux Redhat 7.2).

I'm not sure if this is a failure of ftp functions, mysql, a documentation problem or 
me being too stupid.

After dropping all unneccessary code, the file looks like that:
?php
  $hHandle=mysql_connect(localhost, nobody, )
or die (no connection.\n);
  mysql_close ($hHandle); #this can be dropped

  $hFtp = ftp_connect (localhost) #this works
|| die (Could not connect.\n);
  # next line results in an error:
  $iLoginResult=ftp_login($hFtp, nobody, )
|| die (Error: Unable to login\n);
?

I got the following error message:
Warning: Unable to find ftpbuf 1 in scipt on line XX,
(which is the ftp_login line (ftp_connect works!)).

If you drop mysql_connect, its working fine...

I'm using build in mysql support (for version 3.23.39), ftp is of course enabled too.

Hopefully this is a stupid question and there is an easy answer...
Thanks in advance and a happy new year,
flim





Edit this bug report at http://bugs.php.net/?id=14781edit=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 #14768 Updated: Upgrade to 4.1.0 breaks database connection

2002-01-01 Thread mfischer

ID: 14768
Updated by: mfischer
Reported By: [EMAIL PROTECTED]
Old Status: Open
Status: Feedback
Bug Type: MySQL related
Operating System: Windows XP
PHP Version: 4.1.0
New Comment:

Wait until 4.1.1 and see if its fixed (I bet it is).

Previous Comments:


[2002-01-01 10:38:17] [EMAIL PROTECTED]

Neither mysql_connect or mysql_pconnect seemed to work.



[2001-12-30 08:20:13] [EMAIL PROTECTED]

Are you using mysql_pconnect()



[2001-12-30 07:03:37] [EMAIL PROTECTED]

Just to clarify - I'm using the standard Win32 binaries as downloadable from the 
php.net site.



[2001-12-30 07:00:22] [EMAIL PROTECTED]

Today I upgraded PHP on my WinXP system from 4.0.6 to 4.1.0 as I was finding 4.0.6 
slow and thought 4.1.0 may help. After the upgrade, all MySQL connectivity was broken 
- none of my scripts installed could connect. MySQL was running fine (and 
winmysqladmin from the mysql\bin directory was able to connect fine). Restarting MySQL 
and IIS did not help.

I was able to downgrade back to 4.0.6 (from the backup directory created during 
install), which immediately fixed the problem.





Edit this bug report at http://bugs.php.net/?id=14768edit=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 #14783 Updated: Using unlink causes segfault

2002-01-01 Thread mfischer

ID: 14783
Updated by: mfischer
Reported By: [EMAIL PROTECTED]
Old Status: Closed
Status: Feedback
Bug Type: DOM XML related
Operating System: RH6.2/Apache/libxml2.4.12
PHP Version: CVS Jan. 1 2002
New Comment:

Did the same before I replied and it didn't crash, hm.

What were your ./configure options?

Do you have another small, self-contained sample?

Feedback.

Previous Comments:


[2002-01-01 11:15:45] [EMAIL PROTECTED]

Just checked out and built from CVS this morning (2002/1/1).  The test script still 
crashes.  



[2002-01-01 07:11:54] [EMAIL PROTECTED]

This has been fixed in CVS.



[2001-12-31 16:16:27] [EMAIL PROTECTED]

Symptoms:
- using unlink() causes segfault

Script to reproduce:

?php
$xml = END_XML
?xml version=1.0?
test
foo id=xHello/foo
foo id=yWorld/foo
/test
END_XML;
$dom = xmldoc($xml);

// this so I can see it.
header('Content-type: text/plain');

$ctx = $dom-xpath_new_context();

$res = xpath_eval($ctx,//foo);

foreach ($res-nodeset as $child) {
$child-unlink();
} 

echo $dom-dumpmem();
?

Other notes:

- some cursory debugging I did suggested that it was the cleanup routines at the end 
of the script that were causing the crash.  Looking at php_domxml.c, the recursive 
node memory cleanup appears to be choking on a pointer already freed during the 
unlink() call.





Edit this bug report at http://bugs.php.net/?id=14783edit=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 #14784 Updated: shmop_write causes segfault

2002-01-01 Thread mfischer

ID: 14784
Updated by: mfischer
Reported By: [EMAIL PROTECTED]
Old Status: Open
Status: Feedback
Bug Type: Reproducible crash
Operating System: Linux (RH 6.2 / 2.4.3)
PHP Version: 4.1.1
New Comment:

A backtrace without --enable-debug is pretty useless. Can you recompile and paste the 
backtrace again?

Also, please don't wrap the lines.

Previous Comments:


[2002-01-01 15:17:07] [EMAIL PROTECTED]

Sorry. I forgot to include the backtrace:

 start 

Program received signal SIGSEGV, Segmentation fault.
0x40103493 in memcpy (dstpp=0x40319000, srcpp=0x81ea42c, 
len=1) at ../sysdeps/generic/memcpy.c:61
61  ../sysdeps/generic/memcpy.c: No such file or 
directory.
(gdb) bt
#0  0x40103493 in memcpy (dstpp=0x40319000, srcpp=
0x81ea42c, len=1) at ../sysdeps/generic/memcpy.c:61
#1  0x40583745 in ?? () from /usr/local/apache/libexec/
libphp4.so
#2  0x4053f235 in ?? () from /usr/local/apache/libexec/
libphp4.so
#3  0x4054e22b in ?? () from /usr/local/apache/libexec/
libphp4.so
#4  0x4055f861 in ?? () from /usr/local/apache/libexec/
libphp4.so
#5  0x4055c1f2 in ?? () from /usr/local/apache/libexec/
libphp4.so
#6  0x4055cb56 in ?? () from /usr/local/apache/libexec/
libphp4.so
#7  0x4055cb88 in ?? () from /usr/local/apache/libexec/
libphp4.so
#8  0x80550f3 in ap_invoke_handler ()
#9  0x8069529 in process_request_internal ()
#10 0x806958c in ap_process_request ()
#11 0x8060a6e in child_main ()
#12 0x8060c20 in make_child ()
#13 0x8060d79 in startup_children ()
#14 0x80613d6 in standalone_main ()
#15 0x8061ba3 in main ()
#16 0x400bb9cb in __libc_start_main (main=0x806184c main, 
argc=2, argv=0xba2c, init=0x804f47c _init, 
fini=0x809858c _fini, rtld_fini=0x4000aea0 _dl_fini
, stack_end=0xba24) at ../sysdeps/generic/libc-
start.c:92

 end 

  mjh



[2001-12-31 21:20:53] [EMAIL PROTECTED]

I have been experimenting with semaphores/shmop to provide 
query caching for an application I am working on. The 
purpose, of course, bears no bearing on the issue I am 
reporting however as I am just doing testing of the two 
extensions at this point.

I used this article as the starting point for my testing - 
http://zez.org/article/articleprint/46/.

So I put together this script:

--

function mtime()
{
return array_sum( explode(  , microtime() ) );
}

function supecho( $text )
{
echo Pb$text/b/p\r\n;
flush();
}

function subecho( $text )
{
echo Pb -- $text/b/p\r\n;
flush();
}

supecho( Starting semaphore testing... );

// Start semaphore handling

$semaphoreID=   sem_get( 0xee3 , 1 , 0666 ); // Get a 
semaphore named 0xee3

supecho( Attempting to get a semaphore );

if( $semaphoreID )
{
subecho( success );

supecho( Attempt to obtain our shared memory segment );

$testID =   shmop_open( 0xff3, ac, 0, 0);

if( $testID ) // Already exists
{
subecho( Success (opening with 'a' flag) );

$sharedID   =   shmop_open( 0xff3, a, 0, 0);
}
else // create it
{
subecho( Does not exist... );

supecho( Attempting to create shared memory section 
with 'c' flag and 0xxf3 address );

$sharedID   =   shmop_open( 0xff3, c, 0644, 100);

if( $sharedID )
{
subecho( Success );
}
else
{
subecho( Failure );
}
}

if( $sharedID )
{
subecho( Attempt to obtain a shared memory segment 
success );

supecho( Going for a semaphore acquisition );

sem_acquire( $semaphoreID );

subecho( Semaphore acquired );

$myString   =   a;

supecho( Shared mem segment size (in bytes): 
.shmop_size( $sharedID ) );

supecho( Starting to read total segment );

$start  =   mtime();

subecho( Reading shared memory segment

[PHP-DEV] Bug #10159 Updated: bug with Caudium 1.0.2RC2

2002-01-01 Thread mfischer

ID: 10159
Updated by: mfischer
Reported By: [EMAIL PROTECTED]
Old Status: Open
Status: Bogus
Bug Type: Other web server
Operating System: FreeBsd 4.1
PHP Version: 4.0.4pl1
New Comment:

Until you come up with a concrete problem this is bogus.

Previous Comments:


[2001-04-04 10:53:45] [EMAIL PROTECTED]

The php support Caudium (roxen) server (the pike module)
seems to be very buggy !! For example , phpNuke website
based or phpmyadmin interface should not work !!
Simple php pages work as  Well.  There is certainly
a problem with include files, ...






Edit this bug report at http://bugs.php.net/?id=10159edit=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 #14792 Updated: PHP fails to complie becuase of libphp4.a error

2002-01-01 Thread mfischer

ID: 14792
Updated by: mfischer
Reported By: [EMAIL PROTECTED]
Old Status: Open
Status: Bogus
Bug Type: Compile Failure
Operating System: Linux
PHP Version: 4.1.1
New Comment:

Too less information. Which distribution? Which configure line? What's the exact error 
output (copy  paste)? 

Previous Comments:


[2002-01-01 20:04:30] [EMAIL PROTECTED]

This fails to complie because in the apache/src/modules/php4

libphp4.a is named incorrectly.  It is named libmodphp4.a

If you change the name it will finish the compile.



Thanks





Edit this bug report at http://bugs.php.net/?id=14792edit=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 #14778 Updated: Function self-caller crash php

2001-12-31 Thread mfischer

ID: 14778
Updated by: mfischer
Reported By: [EMAIL PROTECTED]
Old Status: Open
Status: Bogus
Bug Type: Reproducible crash
Operating System: windows ME
PHP Version: 4.1.0
New Comment:

a) known b) just one of zillion ways to dos c) expected  d) won't be fixed soon/never 
e) bogus

Previous Comments:


[2001-12-30 21:28:24] [EMAIL PROTECTED]

It's not a Bug, but crash PHP. Maybe it's proposital way to prevent a type of DoS.

Sometimes it's usefull or it's need use a function that call itself. An example is a 
recursive array routine.

?PHP
function crash($foo) {
crash($foo);
}
crash(foo);
?

What I like to show is: windows crash PHP when this code run. This is expected or the 
right is show a Fatal Error mensage?





Edit this bug report at http://bugs.php.net/?id=14778edit=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 #14762 Updated: DTD entities freeze xmldocfile()

2001-12-30 Thread mfischer

ID: 14762
Updated by: mfischer
Reported By: [EMAIL PROTECTED]
Old Status: Open
Status: Closed
Bug Type: DOM XML related
Operating System: FreeBSD 4.5-PRERELEASE
PHP Version: 4.1.1
New Comment:

This has been fixed in CVS already, unfortunately the fix didn't make it into the 
release.

Thanks for the report. Closing.

Previous Comments:


[2001-12-30 04:19:46] [EMAIL PROTECTED]

The XML document site.xml causes test.php to freeze:

site.xml:
---
?xml version=1.0?
!DOCTYPE site [
!ENTITY reg #174;
]
site
titleDon't Be Dirtyreg;/title
/site
---

test.php:
---
!DOCTYPE HTML PUBLIC -//W3C//DTD HTML 4.01 Transitional//EN
html
head
titleUntitled/title
/head
body
?php
error_reporting(E_ALL);
$doc = xmldocfile(site.xml);
print \$doc: ;
print_r($doc);
print br;
$context = $doc-xpath_new_context();
print \$context: ;
print_r($context);
?
/body
/html
---

This version of site.xml yeilded expected output:

site.xml:
---
?xml version=1.0?
!DOCTYPE site [
]
site
titleDon't Be Dirty/title
/site
---

output:
---
!DOCTYPE HTML PUBLIC -//W3C//DTD HTML 4.01 Transitional//EN
html
head
titleUntitled/title
/head
body
$doc: DomDocument Object
(
[name] = 
[url] = site.xml
[version] = 1.0
[standalone] = -1
[type] = 9
[compression] = -1
[charset] = 1
[0] = 1
[1] = 136235776
[doc] = Resource id #673363016
)
br$context: XPathContext Object
(
[0] = 2
[1] = 136235904
)
/body
/html
---





Edit this bug report at http://bugs.php.net/?id=14762edit=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 #14768 Updated: Upgrade to 4.1.0 breaks database connection

2001-12-30 Thread mfischer

ID: 14768
Updated by: mfischer
Reported By: [EMAIL PROTECTED]
Old Status: Open
Status: Feedback
Bug Type: MySQL related
Operating System: Windows XP
PHP Version: 4.1.0
New Comment:

Are you using mysql_pconnect()

Previous Comments:


[2001-12-30 07:03:37] [EMAIL PROTECTED]

Just to clarify - I'm using the standard Win32 binaries as downloadable from the 
php.net site.



[2001-12-30 07:00:22] [EMAIL PROTECTED]

Today I upgraded PHP on my WinXP system from 4.0.6 to 4.1.0 as I was finding 4.0.6 
slow and thought 4.1.0 may help. After the upgrade, all MySQL connectivity was broken 
- none of my scripts installed could connect. MySQL was running fine (and 
winmysqladmin from the mysql\bin directory was able to connect fine). Restarting MySQL 
and IIS did not help.

I was able to downgrade back to 4.0.6 (from the backup directory created during 
install), which immediately fixed the problem.





Edit this bug report at http://bugs.php.net/?id=14768edit=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 #14769 Updated: phps source truncated( I can't see whether I'm writing anything in the textarea

2001-12-30 Thread mfischer

ID: 14769
Updated by: mfischer
Reported By: [EMAIL PROTECTED]
Old Status: Open
Status: Duplicate
Bug Type: Unknown/Other Function
Operating System: Linux Mandrake 8.1
PHP Version: 4.1.0
New Comment:

Dup of #14770

Previous Comments:


[2001-12-30 07:11:46] [EMAIL PROTECTED]

jhjhgjghjghhgj

./configure --with-mysql --with-apache=../src/apache-1.3.22

I'm using Opera 5.12 if you please can you change this form

short sources are not truncated only long ones





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




  1   2   3   4   5   >