[PHP-DEV] Bug #15466: fucntion date returns same date with to different timestamps with 86400 sec dif

2002-02-09 Thread Webmaster

From: [EMAIL PROTECTED]
Operating system: Windows95
PHP version:  4.0.6
PHP Bug Type: Date/time related
Bug description:  fucntion date returns same date with to different timestamps with 
86400 sec dif

Hi all,

look to this:

print date(Y-m-d,1004220001).br;
print date(Y-m-d,1004306401);

Both will return 2001-10-28 but there are 86400 seconds (one day)
difference.

Hope i could help...
-- 
Edit bug report at http://bugs.php.net/?id=15466edit=1
-- 
Fixed in CVS:http://bugs.php.net/fix.php?id=15466r=fixedcvs
Fixed in release:http://bugs.php.net/fix.php?id=15466r=alreadyfixed
Need backtrace:  http://bugs.php.net/fix.php?id=15466r=needtrace
Try newer version:   http://bugs.php.net/fix.php?id=15466r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=15466r=support
Expected behavior:   http://bugs.php.net/fix.php?id=15466r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=15466r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=15466r=submittedtwice


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




[PHP-DEV] Bug #15466 Updated: fucntion date returns same date with to different timestamps with 86400 sec dif

2002-02-09 Thread Webmaster

 ID:   15466
 Updated by:   [EMAIL PROTECTED]
 Reported By:  [EMAIL PROTECTED]
 Status:   Open
 Bug Type: Date/time related
 Operating System: Windows95
 PHP Version:  4.0.6

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


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




[PHP-DEV] Bug #15466 Updated: fucntion date returns same date with two different timestamps

2002-02-09 Thread Webmaster

 ID:   15466
 Updated by:   [EMAIL PROTECTED]
-Summary:  fucntion date returns same date with to different
   timestamps with 86400 sec dif
 Reported By:  [EMAIL PROTECTED]
 Status:   Open
 Bug Type: Date/time related
 Operating System: Windows95
 PHP Version:  4.0.6

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


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




[PHP-DEV] Bug #15219 Updated: IE 6.0 and Cookies doesn't work

2002-01-25 Thread webmaster

ID: 15219
Comment by: [EMAIL PROTECTED]
Old Reported By: [EMAIL PROTECTED]
Reported By: [EMAIL PROTECTED]
Status: Open
Bug Type: Session related
Operating System: Win 2000
PHP Version: 4.1.1
New Comment:

I had the same exact problem. I don't know what the exact problem was,
but I went in under the cookies folder and deleted all of the current
cookies for my domain (127.0.0.1) and made sure all the PHP sessions
were deleted (not needed really, as they would eventually get GC'd
anyway). I went in, reset the cookie, and it worked fine.

I also changed the code from:

$foo = 'bar';
session_register('foo');
$foo = 'some new bar';

to:

$foo = 'bar';
session_register('foo);
$HTTP_SESSION_VARS['foo'] = 'some new bar';

I am not sure exactly which of these fixed the problem, but it no
longer shows up for me.

[[ Win2k Server SP 2, PHP 4.1.1, Apache 1.3.22, IE 6.0 ]]


Previous Comments:


[2002-01-25 04:18:41] [EMAIL PROTECTED]

maybe this issue was discussed in an former topic? Nothing found
sophisticating. 

Using mantis 0.16.1 with php 4.1.1 as module in apache on an w2k
server. 
Using IE6.0 (6.0.2600.)cannot login - not cookie appears. although
accept cookies is activated 

Using IE5.5 @ w2k or NS6.1@nt it works fine. 

some testpages I have copied from this and other webpage show the same
result. Like 

? 
setcookie(test,testing); 
phpinfo(); 
? 

shows for IE6.0 (@nt or w2k) (after reloading the page several times) 
Set-Cookie: test=testing for http response header 
but nothing elsewhere 

for NS6.1 (@nt) (after reload 1 time) 
the proper value appears in: 
- ApacheEnvironment HTTP_COOKIE 
- Response  RequestHeader 
- php variables _COOKIE[test]  _SERVER[HTTP_COOKIE] 

So Apache, PHP, IE55, NS61 seems to work correct. But IE 60 does not...


The really wired is, that only one browser (IE60) in our group is able
to have cookies. Another IIS/ASP-application 
in out LAN shows the same behavior. So maybe it's not a sort of PHP
bug. More a communication problem between PHP and IE6.0. 

Nothing found at Microsoft site!
Does anybody know more about this issue? 
Please reply to [EMAIL PROTECTED] 

Thanks a lot. 







Edit this bug report at http://bugs.php.net/?id=15219edit=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 #15117 Updated: fopen and fwrite writes to much data in mode a and a+

2002-01-25 Thread webmaster

ID: 15117
Comment by: [EMAIL PROTECTED]
Old Reported By: [EMAIL PROTECTED]
Reported By: [EMAIL PROTECTED]
Status: Open
Bug Type: Filesystem function related
Operating System: W2K
PHP Version: 4.1.1
New Comment:

Reproduced it. However, after the first two times, the same code
stopped doing it (I only changed the string?). Seems to be semi-random
at least, or something. Could it be a browser bug, having the page
accidentally being submitted/reloaded?

Temporary fix is to conditionally open it:

if(!file_exists('orders.txt') || @file_size('orders.txt')==0)
$fp = fopen('orders.txt', 'w');
else
$fp = fopen('orders.txt', 'a');


Previous Comments:


[2002-01-20 06:26:27] [EMAIL PROTECTED]

It doesn't really matter with fopen() in append mode. It just opens the
file to append new data to the end of the file. What data will be
added, depents on when(?) and what(?)data the user submitted with the
form. Till that point it goes fine. But then there is this string with
same time mark being added to the file. Ofcourse multiple submitions
result in this same pattern being repeated over and over again.



[2002-01-20 04:16:40] [EMAIL PROTECTED]

Are you sure the file is empty before the fopen() call?
See www.php.net/fopen for some more info...



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


 code 
$orderstring = $date.\t.  //current time
$tireqty. tires\t.//received form field
$oilqty. oil\t.   //received form field
$sparkqty. sparks\t.  //received form field
$totalamount.\t.  /calc. from form fields
$address.\n;  //received form field

$fp = fopen(orders.txt, a);
fwrite($fp, $orderstring);
fclose($fp);

 output in orders.txt 
22:32 19th Saturday 20024 tires 1 oil   12 sparks   503.80  NL
22:32 19th Saturday 2002 tires   oil sparks 0.00
Bug:
When using fopen() in mode a or a+ the last line will be added without
any obvious cause.
When fopen() is used in same code but in mode w it works correct like
expected.
I haven't tested fopen() in all other available modes.





Edit this bug report at http://bugs.php.net/?id=15117edit=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 #15114 Updated: Constructor Rule, defined for PHP4 does not work in PHP4.1.1

2002-01-25 Thread webmaster

ID: 15114
Comment by: [EMAIL PROTECTED]
Old Reported By: [EMAIL PROTECTED]
Reported By: [EMAIL PROTECTED]
Status: Open
Bug Type: Class/Object related
Operating System: Suse Linux
PHP Version: 4.1.1
New Comment:

I was unable to reproduce this bug. The following code executes as
expected for me (Win2k/Apache PHP 4.1.1):

class Bike {
  function Bike() {
echo 'Constructor of class Bikebr';
  }
}

class MountainBike extends Bike {
}

$mb = new MountainBike();

class Bike2 {
  function Bike2() {
echo 'Constructor of class Bike2br';
  }
}

class MountainBike2 extends Bike2 {
  function MountainBike2() {
parent::Bike2();
  }
}

$mb = new MountainBike2();

It outputs:
Constructor of class Bike
Constructor of class Bike2

with no compile errors. Double check that you aren't including a wrong
file, etc.


Previous Comments:


[2002-01-19 11:24:10] [EMAIL PROTECTED]

In the documentation
(http://www.php.net/manual/en/language.oop.constructor.php) you defined
the following rule:

If a class has no constructor, the constructor of the base class is
being called, if it exists

This worked in PHP 4.0.6 for me. After upgrading to Version 4.1.1, it
doesn't.

Here are my test-scripts. The first one ends up with no output or the
errormessage: Fatal error: Cannot instantiate non-existent class:
mountainbike in
/www/testOO.php on line 15. 

actually, the behaviour seems to be undefined. 

The second one works, as it should be, but only because of actively
calling the constructor of the base class. 

FIRST:
?php
class Bike {
  function Bike() {
echo 'Constructor of class Bike';
  }
}


class MountainBike extends Bike {
}

$mb = new MountainBike();
?

SECOND:
?php
class Bike {
  function Bike() {
echo 'Constructor of class Bike';
  }
}


class MountainBike extends Bike {
  function MountainBike() {
parent::Bike();
  }
}

$mb = new MountainBike();
?

Greetings, 
Arash

My configure line is:
./configure \
--with-apxs=/usr/local/apache/1.3.20/bin/apxs \
--enable-track-vars \
--enable-ftp \
--with-zlib \
--with-gd \
--with-pdflib \
--with-sockets \
--enable-sockets \
--with-sysvshm \
--with-sysvsem \
--enable-dbg=shared \
--with-dbg-profiler \
--with-mysql=/usr/local/mysql/current \
--with-pgsql=/usr/local/pgsql \
--with-mcrypt





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

2002-01-25 Thread webmaster

ID: 15143
Comment by: [EMAIL PROTECTED]
Old Reported By: [EMAIL PROTECTED]
Reported By: [EMAIL PROTECTED]
Status: Open
Bug Type: Apache related
Operating System: Win 2K
PHP Version: 4.1.1
New Comment:

[EMAIL PROTECTED], try executing the script via the command prompt in
Win2k, ex:


start-run: cmd

cd web\php

php.exe -f myscript.php

If that hangs, something is amiss indeed. If it just keeps spitting out
HTML, the loop is going on forever, which is bad. :-)

Also a totally off the topic thought, if you are going to be using
subqueries, look into other databases that allow recursive queries.


Previous Comments:


[2002-01-22 15:32:16] [EMAIL PROTECTED]

This same problem doesn't occur on Redhat with Apache, php, and mysql. 
Are there limitations to php.exe on win2k?



[2002-01-21 11:54:57] [EMAIL PROTECTED]

The selects in a loop is what does it.  If I remove the select
statement it seems to work fine in this program.  Is there some kind of
limit to how many selects on php page can handle?  or am I not
releasing the sql functions correctly?  I also notice that everytime I
have a page loading I see a new process for php.exe in the process tab
under task manager.  

while($row = mysql_fetch_array($result)) {
  $select=select winner from user_picks where round=3 and
nickname='.$row[nickname].';
  $result2 = mysql_db_query(football,$select);
  $row2 = mysql_fetch_array($result2);
$nickname = urlencode($row[nickname]);
  echo trtdcenterimg
src=\images/icons/.$row2[winner]..gif\/center/td;
  echo tdfont size=+1center.$cnt./center/font/td;
  echo tdfont size=+1centera
href=\picks.php?nickname=.$nickname.\.$row[nickname]./a/center/font/td;

  echo td align=rightfont size=+1.$row[1]./font/td;
  $percentage=round($row[2]/$row_tot[0]*100);
  echo td align=rightfont
size=+1.$percentage.%/font/td/tr;
  mysql_free_result($result2);
  $cnt++;
}




[2002-01-21 09:46:16] [EMAIL PROTECTED]

Can you simplify the code and track down the problem to only a few
lines of code?



[2002-01-21 09:37:25] [EMAIL PROTECTED]

This code doesn't seem to work with more than 20 people.  I had it
working great with 12 and then I added all 61 and the page just sits
there and doesn't load.  On IE or Netscape so it is the Apache or PHP. 
I am using the php.exe in apache not the module.  I couldn't get the
module to work correctly.  I am using the latest stable versions of
apache, mysql, and php.  I also am using the mysql-nt-max.  I don't
think it is a problem with mysql cause I had a simular problem with a
calendar program, yet when I didn't have tables (loop in a loop, just
listed it straight out) it worked fine.

When I eliminate the tables in this program I get up to about line 20
before it just hangs forever.  I waited about 3 hours to see if it
loaded and it never stops trying.


html
  head
titleFootball Playoff Picks Standings/title
  /head
  body bgcolor=#ff
?php
$select=select a.nickname, round(sum(pow(2,a.round+1))),sum(1) from
user_picks a, actual_wins b where a.round=b.round and
a.division=b.division and a.winner=b.winner group by nickname order by
2 desc, 1 desc;
$select_tot=select sum(1) from actual_wins;
mysql_connect(localhost,root,Ushouldn'tBhere);
$result = mysql_db_query(football,$select);
$result_tot = mysql_db_query(football,$select_tot);
$row_tot = mysql_fetch_array($result_tot);
echo centertable border=1;
echo trtd/tdthfont size=+2Place/font/ththfont
size=+2Nickname/font/ththfont
size=+2Points/font/ththfont
size=+2Percentage/font/th/tr;
$cnt = 1;
while($row = mysql_fetch_array($result)) {
  $select=select winner from user_picks where round=3 and
nickname='.$row[nickname].';
  $result2 = mysql_db_query(football,$select);
  $row2 = mysql_fetch_array($result2);
$nickname = urlencode($row[nickname]);
  echo trtdcenterimg
src=\images/icons/.$row2[winner]..gif\/center/td;
  echo tdfont size=+1center.$cnt./center/font/td;
  echo tdfont size=+1centera
href=\picks.php?nickname=.$nickname.\.$row[nickname]./a/center/font/td;

  echo td align=rightfont size=+1.$row[1]./font/td;
  $percentage=round($row[2]/$row_tot[0]*100);
  echo td align=rightfont size=+1.$percentage.
%/font/td/tr;
  mysql_free_result($result2);
  $cnt++;
}
echo /table/center;
mysql_free_result($result);
?
  /body
/html



[PHP-DEV] Bug #15097: sunstr_count

2002-01-18 Thread webmaster

From: [EMAIL PROTECTED]
Operating system: win2000
PHP version:  4.1.1
PHP Bug Type: Strings related
Bug description:  sunstr_count 

View my code:
   $str1=D¨D¨D;
   $str2=D;
   print substr_count($str1,$str2); 
return 3,right result is 1
the string ¨D in Gb2312,is Chinese.
Used english is right,I don't konw where the problem in it. 
-- 
Edit bug report at: http://bugs.php.net/?id=15097edit=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 #15040: Socket

2002-01-15 Thread webmaster

From: [EMAIL PROTECTED]
Operating system: Windows NT 4.0
PHP version:  4.1.1
PHP Bug Type: Sockets related
Bug description:  Socket 

I keep getting the following error:
Microsoft Visual Basic Run-time error '10054': THe connection is reset by
remote side
when I try to connect a PHP UDP socket to a VB Application.  I am trying
to dump a small packet of data to the VB program using the following PHP
code:
$port=getPort($t);
$host=getHost($t);
$prot=getProtocol($t);
$fp = fsockopen ($prot.$host, $port, $errno, $errstr, 30);
if (!$fp) {
echo $errstr ($errno)br\n;
} else {
$w=fputs ($fp, URLUnEncode($Commands[DATA]));
}
}
if (!$fp)
{
//$w=socket_set_blocking(TRUE);
//sleep(30);
$w = fclose ($fp);
}
The problem is the socket works fine the first time, but the second time
the script is run (~1 min between successive runs) the application gives
this error.  It seems to me the script is closing before it is done
sending the data.  I tried various socket timeouts, setting the blocking
to true and false, and putting a pause in.  Nothing seemed to work.  Is it
because only the script is sending data, I have not seen any PHP examples,
where the script is the only side sending data.
Thanks,
Eric Levy
-- 
Edit bug report at: http://bugs.php.net/?id=15040edit=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 #15040 Updated: Socket

2002-01-15 Thread webmaster

ID: 15040
User updated by: [EMAIL PROTECTED]
Reported By: [EMAIL PROTECTED]
Old Status: Feedback
Status: Open
Bug Type: Sockets related
Operating System: Windows NT 4.0
PHP Version: 4.1.1
New Comment:

I'm sorry I should have made this clear.  This was a pre-existing VB
App that I have been running for a year now doing the same procedure
from embedded clients.  It is a possibility I am not fully
understanding the life of a PHP socket vs. other socket types.  Does
anyone have any documentation on the life of a PHP socket.  It seems to
me like the socket is dyeing before sending the message.
Thanks,
Eric Levy


Previous Comments:


[2002-01-15 07:18:37] [EMAIL PROTECTED]

Are you sure this is a problem with PHP and not with Visual Basic???



[2002-01-15 03:43:37] [EMAIL PROTECTED]

I keep getting the following error:
Microsoft Visual Basic Run-time error '10054': THe connection is reset
by remote side
when I try to connect a PHP UDP socket to a VB Application.  I am
trying to dump a small packet of data to the VB program using the
following PHP code:
$port=getPort($t);
$host=getHost($t);
$prot=getProtocol($t);
$fp = fsockopen ($prot.$host, $port, $errno, $errstr, 30);
if (!$fp) {
echo $errstr ($errno)br\n;
} else {
$w=fputs ($fp, URLUnEncode($Commands[DATA]));
}
}
if (!$fp)
{
//$w=socket_set_blocking(TRUE);
//sleep(30);
$w = fclose ($fp);
}
The problem is the socket works fine the first time, but the second
time the script is run (~1 min between successive runs) the application
gives this error.  It seems to me the script is closing before it is
done sending the data.  I tried various socket timeouts, setting the
blocking to true and false, and putting a pause in.  Nothing seemed to
work.  Is it because only the script is sending data, I have not seen
any PHP examples, where the script is the only side sending data.
Thanks,
Eric Levy





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

2002-01-15 Thread webmaster

ID: 15040
User updated by: [EMAIL PROTECTED]
Reported By: [EMAIL PROTECTED]
Status: Open
Bug Type: Sockets related
Operating System: Windows NT 4.0
PHP Version: 4.1.1
New Comment:

I added $w=fflush($fp); after sending the line $w=fputs ($fp,
URLUnEncode($Commands[DATA]));



Previous Comments:


[2002-01-15 11:20:34] [EMAIL PROTECTED]

I'm sorry I should have made this clear.  This was a pre-existing VB
App that I have been running for a year now doing the same procedure
from embedded clients.  It is a possibility I am not fully
understanding the life of a PHP socket vs. other socket types.  Does
anyone have any documentation on the life of a PHP socket.  It seems to
me like the socket is dyeing before sending the message.
Thanks,
Eric Levy



[2002-01-15 07:18:37] [EMAIL PROTECTED]

Are you sure this is a problem with PHP and not with Visual Basic???



[2002-01-15 03:43:37] [EMAIL PROTECTED]

I keep getting the following error:
Microsoft Visual Basic Run-time error '10054': THe connection is reset
by remote side
when I try to connect a PHP UDP socket to a VB Application.  I am
trying to dump a small packet of data to the VB program using the
following PHP code:
$port=getPort($t);
$host=getHost($t);
$prot=getProtocol($t);
$fp = fsockopen ($prot.$host, $port, $errno, $errstr, 30);
if (!$fp) {
echo $errstr ($errno)br\n;
} else {
$w=fputs ($fp, URLUnEncode($Commands[DATA]));
}
}
if (!$fp)
{
//$w=socket_set_blocking(TRUE);
//sleep(30);
$w = fclose ($fp);
}
The problem is the socket works fine the first time, but the second
time the script is run (~1 min between successive runs) the application
gives this error.  It seems to me the script is closing before it is
done sending the data.  I tried various socket timeouts, setting the
blocking to true and false, and putting a pause in.  Nothing seemed to
work.  Is it because only the script is sending data, I have not seen
any PHP examples, where the script is the only side sending data.
Thanks,
Eric Levy





Edit this bug report at http://bugs.php.net/?id=15040edit=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 #15040 Updated: Writting Issues to UDP Sockets

2002-01-15 Thread webmaster

ID: 15040
User updated by: [EMAIL PROTECTED]
Old Summary: Socket
Reported By: [EMAIL PROTECTED]
Status: Open
Bug Type: Sockets related
Operating System: Windows NT 4.0
PHP Version: 4.1.1
New Comment:

It didn't get the second half of my last statement, the fflush DIDN'T
work either.  This is still an ongoing problem.
Thanks,
Eric Levy


Previous Comments:


[2002-01-15 13:28:16] [EMAIL PROTECTED]

I added $w=fflush($fp); after sending the line $w=fputs ($fp,
URLUnEncode($Commands[DATA]));




[2002-01-15 11:20:34] [EMAIL PROTECTED]

I'm sorry I should have made this clear.  This was a pre-existing VB
App that I have been running for a year now doing the same procedure
from embedded clients.  It is a possibility I am not fully
understanding the life of a PHP socket vs. other socket types.  Does
anyone have any documentation on the life of a PHP socket.  It seems to
me like the socket is dyeing before sending the message.
Thanks,
Eric Levy



[2002-01-15 07:18:37] [EMAIL PROTECTED]

Are you sure this is a problem with PHP and not with Visual Basic???



[2002-01-15 03:43:37] [EMAIL PROTECTED]

I keep getting the following error:
Microsoft Visual Basic Run-time error '10054': THe connection is reset
by remote side
when I try to connect a PHP UDP socket to a VB Application.  I am
trying to dump a small packet of data to the VB program using the
following PHP code:
$port=getPort($t);
$host=getHost($t);
$prot=getProtocol($t);
$fp = fsockopen ($prot.$host, $port, $errno, $errstr, 30);
if (!$fp) {
echo $errstr ($errno)br\n;
} else {
$w=fputs ($fp, URLUnEncode($Commands[DATA]));
}
}
if (!$fp)
{
//$w=socket_set_blocking(TRUE);
//sleep(30);
$w = fclose ($fp);
}
The problem is the socket works fine the first time, but the second
time the script is run (~1 min between successive runs) the application
gives this error.  It seems to me the script is closing before it is
done sending the data.  I tried various socket timeouts, setting the
blocking to true and false, and putting a pause in.  Nothing seemed to
work.  Is it because only the script is sending data, I have not seen
any PHP examples, where the script is the only side sending data.
Thanks,
Eric Levy





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

2002-01-15 Thread webmaster

ID: 15040
User updated by: [EMAIL PROTECTED]
Reported By: [EMAIL PROTECTED]
Status: Open
Bug Type: Sockets related
Operating System: Windows NT 4.0
PHP Version: 4.1.1
New Comment:

Ok, here's what MS has to say about what causes that error:
WSAECONNRESET (10054) 
Connection reset by peer. 
An existing connection was forcibly closed by the remote host. This
normally results if the peer application on the remote host is suddenly
stopped, the host is rebooted, or the remote host uses a hard close
(see setsockopt for more information on the SO_LINGER option on the
remote socket.) This error may also result if a connection was broken
due to keep-alive activity detecting a failure while one or more
operations are in progress. Operations that were in progress fail with
WSAENETRESET. Subsequent operations fail with WSAECONNRESET. 
This is what I thought was happening, but why does my script end before
my program has time to process it.  I should make note that I have one
script opening a page with a php script on another webserver and this
script is the one that is having problems opening the UDP connection. 
Could this have anything to do with it.


Previous Comments:


[2002-01-15 14:26:20] [EMAIL PROTECTED]

It didn't get the second half of my last statement, the fflush DIDN'T
work either.  This is still an ongoing problem.
Thanks,
Eric Levy



[2002-01-15 13:28:16] [EMAIL PROTECTED]

I added $w=fflush($fp); after sending the line $w=fputs ($fp,
URLUnEncode($Commands[DATA]));




[2002-01-15 11:20:34] [EMAIL PROTECTED]

I'm sorry I should have made this clear.  This was a pre-existing VB
App that I have been running for a year now doing the same procedure
from embedded clients.  It is a possibility I am not fully
understanding the life of a PHP socket vs. other socket types.  Does
anyone have any documentation on the life of a PHP socket.  It seems to
me like the socket is dyeing before sending the message.
Thanks,
Eric Levy



[2002-01-15 07:18:37] [EMAIL PROTECTED]

Are you sure this is a problem with PHP and not with Visual Basic???



[2002-01-15 03:43:37] [EMAIL PROTECTED]

I keep getting the following error:
Microsoft Visual Basic Run-time error '10054': THe connection is reset
by remote side
when I try to connect a PHP UDP socket to a VB Application.  I am
trying to dump a small packet of data to the VB program using the
following PHP code:
$port=getPort($t);
$host=getHost($t);
$prot=getProtocol($t);
$fp = fsockopen ($prot.$host, $port, $errno, $errstr, 30);
if (!$fp) {
echo $errstr ($errno)br\n;
} else {
$w=fputs ($fp, URLUnEncode($Commands[DATA]));
}
}
if (!$fp)
{
//$w=socket_set_blocking(TRUE);
//sleep(30);
$w = fclose ($fp);
}
The problem is the socket works fine the first time, but the second
time the script is run (~1 min between successive runs) the application
gives this error.  It seems to me the script is closing before it is
done sending the data.  I tried various socket timeouts, setting the
blocking to true and false, and putting a pause in.  Nothing seemed to
work.  Is it because only the script is sending data, I have not seen
any PHP examples, where the script is the only side sending data.
Thanks,
Eric Levy





Edit this bug report at http://bugs.php.net/?id=15040edit=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 #15035: Apache 2 cant load the PHP module ...

2002-01-14 Thread webmaster

From: [EMAIL PROTECTED]
Operating system: win 2000 pro
PHP version:  4.1.1
PHP Bug Type: Apache2 related
Bug description:  Apache 2 cant load the PHP module ...

Well, i just set up the Apache2 ( i know its a beta ) but the Server cant
load the PHP modul whatever i use. No php4apache.dll or php4apache2.dll (
i dont know the difference between the php4apache2.dll, maybe should work
with the Apache2 ;) )

Well its tells me follows, if i try to lunch Apache2 with the
php4apache2.dll as modul :

Apache.exe : module C:\php4-build\php4\SAPI\APACHE2FILTER\sapi_apche2.c
is not compatible with this version of Apache

by the way i did installed PHP in C:\PHP :)
and with the old php4apache.dll it didnt work -- mybe there some dll's
not in the package ? because he cant load the module in the Apache ...

Hope someone has this Problem figured out ;)

Sorry about that english, im german :)
-- 
Edit bug report at: http://bugs.php.net/?id=15035edit=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 #14872: Garbage being returned when displaying contents of a url

2002-01-05 Thread webmaster

From: [EMAIL PROTECTED]
Operating system: RedHat Linux
PHP version:  4.0.6
PHP Bug Type: Sockets related
Bug description:  Garbage being returned when displaying contents of a url

What should happen:
==
The script is meant to create a printer-friendly version of a ski resort
review page that is produced dynamically. It does this by opening a socket
connection to the url, including the query, and read the contents of that
url line by line looking for !-- START CONTENTS -- and !-- END CONTENTS
-- tags. It echoes whatever is between those tags.

What does happen:

The script works except for two issues.
1) In between some of the paragraphs of text some garbage hex numbers
appear. They are always in the same place and the first two bytes are
always the same.
2) The script runs extremely slowly which is attributed completely to the
fsockopen() function.

It should be noted that by simply replacing the fsockopen with fopen() the
problems disappeared without any other changes to the code.

Extraction from the Script that fails:
=
?
snip
$fp=fsockopen($myServer,80,$errno,$errstr,30);

$request = GET $document.?.$query. HTTP/1.1\r\n;
$request .= Host: $myServer\r\n\r\n;

if(!$fp) {
  echo $errstr ($errno)br\n;
} else {
  fputs($fp,$request);
  $content=0;
  $in_title=0;
?
/snip
snip
?
  while(!feof($fp)) {
$line=fgets($fp,4096);

if(ereg($START_CONT,$line)) {
$content=1;
}
if(ereg($END_CONT,$line)) $content=0;
if($content==1)echo $line;
}
fclose($fp);
?

Extraction from working script:
==
snip
?
$fp=fopen($myURL,r); //in place of fsockopen()
// $request lines no longer required, removed.
?
/snip

Useful Links:

Full text of script with problem:
www.ski-info-online.com/php-report/print-fails.txt
Full test of script which works:
www.ski-info-online.com/php-report/print-works.txt

See working solution (click printer-friendly version):
www.ski-info-online.com/skiResort-print1.php?id=Alpbach
See problem (click printer-friendly version):
www.ski-info-online.com/skiResort-fail.php?id=Alpbach

Thanks
Torrent

-- 
Edit bug report at: http://bugs.php.net/?id=14872edit=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 #14872 Updated: Garbage being returned when displaying contents of a url

2002-01-05 Thread webmaster

ID: 14872
User updated by: [EMAIL PROTECTED]
Reported By: [EMAIL PROTECTED]
Status: Bogus
Bug Type: Sockets related
Operating System: RedHat Linux
PHP Version: 4.0.6
New Comment:

Steve,

Thanks for the clarification.

I posted this question in a number of forums, including, devsheds,
phpbuilder, htmlforums, [EMAIL PROTECTED] and it would appear
that many of us do not understand the intricacies of HTTP 1.1 and HTTP
1.0 as no one appeared to be able to identify the cause.

Apologies if this request wasted your time.



Previous Comments:


[2002-01-05 11:59:39] [EMAIL PROTECTED]

Steve Meyers wrote:

  The performance loss is also due to using HTTP/1.1, 
  which defaults to having keepalive on. 
  Until you tell it to close the connection or it times 
  out (about 2 seconds), it will keep it open.
 
  Switching to HTTP/1.0 fixes both issues.

status changed to bogus as both issues
where related to misunderstanding of HTTP
concepts and not at all a PHP problem



[2002-01-05 09:55:16] [EMAIL PROTECTED]

i don't know about the performance loss
but the hex numbers you get are just what
you requested

by sending a HTTP/1.1 request you have
declared that you are willing to 'speak'
HTTP/1.1, and the HTTP/1.1 RFC 2616, 
Section 3.6 defines:

[...]
All HTTP/1.1 applications MUST be able to receive 
and decode the chunked transfer-coding,
[...]

http://www.w3.org/Protocols/rfc2616/rfc2616-sec3.html#sec3.6



[2002-01-05 09:14:06] [EMAIL PROTECTED]

What should happen:
==
The script is meant to create a printer-friendly version of a ski resort
review page that is produced dynamically. It does this by opening a
socket connection to the url, including the query, and read the contents
of that url line by line looking for !-- START CONTENTS -- and !--
END CONTENTS -- tags. It echoes whatever is between those tags.

What does happen:

The script works except for two issues.
1) In between some of the paragraphs of text some garbage hex numbers
appear. They are always in the same place and the first two bytes are
always the same.
2) The script runs extremely slowly which is attributed completely to
the fsockopen() function.

It should be noted that by simply replacing the fsockopen with fopen()
the problems disappeared without any other changes to the code.

Extraction from the Script that fails:
=
?
snip
$fp=fsockopen($myServer,80,$errno,$errstr,30);

$request = GET $document.?.$query. HTTP/1.1\r\n;
$request .= Host: $myServer\r\n\r\n;

if(!$fp) {
  echo $errstr ($errno)br\n;
} else {
  fputs($fp,$request);
  $content=0;
  $in_title=0;
?
/snip
snip
?
  while(!feof($fp)) {
$line=fgets($fp,4096);

if(ereg($START_CONT,$line)) {
$content=1;
}
if(ereg($END_CONT,$line)) $content=0;
if($content==1)echo $line;
}
fclose($fp);
?

Extraction from working script:
==
snip
?
$fp=fopen($myURL,r); //in place of fsockopen()
// $request lines no longer required, removed.
?
/snip

Useful Links:

Full text of script with problem:
www.ski-info-online.com/php-report/print-fails.txt
Full test of script which works:
www.ski-info-online.com/php-report/print-works.txt

See working solution (click printer-friendly version):
www.ski-info-online.com/skiResort-print1.php?id=Alpbach
See problem (click printer-friendly version):
www.ski-info-online.com/skiResort-fail.php?id=Alpbach

Thanks
Torrent






Edit this bug report at http://bugs.php.net/?id=14872edit=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 #14777 Updated: Style Sheets not interpreted when sent through Apache/PHP

2001-12-31 Thread webmaster

ID: 14777
User updated by: [EMAIL PROTECTED]
Reported By: [EMAIL PROTECTED]
Status: Bogus
Bug Type: Apache related
Operating System: Windows ME
PHP Version: 4.1.0
New Comment:

Hi,

I found the solution:

The Internet Explorer needs the following DOCTYPE-Definition:

!DOCTYPE html public -//W3C//DTD HTML 4.0 transitional//EN

Thanks a lot for your help!

Previous Comments:


[2001-12-30 17:53:28] [EMAIL PROTECTED]

Actually, it's to do with the IE engine not interpreting css correctly. Remember, that 
the scroll bar code is a: microsoft proprietary, and b: not standard compliant. Thus, 
the error is in the ie engine in the way it inteprets html. I have found that this 
works sometimes and sometimes not on .php files, and the same is true for .html files. 
Go yell at Microsoft. :)




[2001-12-30 17:49:38] [EMAIL PROTECTED]

Thanks, I tried changing the wrong DOCTYPE-Definition (I replaced all extensions .html 
with .php via Search and Replace, so also the DOCTYPE-Definition was wrong 
afterwords), aswell as deleting it from the file, but it didn't work out 
unfortunately.

Have you got another clue?



[2001-12-30 15:40:30] [EMAIL PROTECTED]

i forgot to +bogus



[2001-12-30 15:31:12] [EMAIL PROTECTED]

check your DOCTYPE definition:

!DOCTYPE HTML PUBLIC -//W3C//DTD HTML 4.0//EN

it's WRONG. either chose the right one or leave it out.

Kind Regards,
  Daniel Lorch



[2001-12-30 14:39:52] [EMAIL PROTECTED]

Hi!

I've got the following configuration:
PHP 4.1.0 running as ISAPI-Module on Apache 1.3.22

The following problem results only (!) if I use .php as extension. 

I originally programmed the entire site with the extension .html. I used IE-specific 
CSS-elements to change the color/style of the scrollbar. It all worked fine.

Then I wanted to use .php as extension instead, so that I could use a prepend if 
necessary (e.g. include a config.php, etc.). It seemed to work fine still, PHP code is 
executed, the page is shown as usual. Only that the scrollbar is not shown with its 
changed appearance anymore. If I change back to .html everythings fine again.

I can't explain this because I have in mind, that everything that is outside of 
?php-Tags is sent unchanged to the browser. And the Source-Code (right-click in 
Internet-Explorer) shows no differences between the two files. Still it doesn't seem 
to work with .php

Hereby the necessary files:

hp_mitte.php:

!DOCTYPE HTML PUBLIC -//W3C//DTD HTML 4.0//EN
html
head
titlePfarrgemeinde St. Maria Geburt, Duderstadt-Gerblingerode/title
script type=text/javascript!--
function checkFrameset() 
  {if(!parent.oben) location.href=index.php;}
--/script
style type=text/css!--
body {margin-bottom:0px; margin-top:0px; margin-left:0px; margin-right:0px; 
  scrollbar-face-color:#FF; scrollbar-highlight-color:#43CBFF; 
  scrollbar-shadow-color:#43CBFF; scrollbar-3dlight-color:#43CBFF; 
  scrollbar-arrow-color:#43CBFF; scrollbar-track-color:#D5D5D5; 
scrollbar-darkshadow-color:#43CBFF;}
table {border:0px;}
--/style
/head
body onLoad=checkFrameset()
table cellspacing=0 cellpadding=0 width=100% height=100%
  tr bgcolor=#D5D5D5
td height=24px colspan=3
font style=font: bold 12pt Arial, Helvetica, sans-serif;
  nbsp;nbsp;Startseite
/font
/td
  /tr
  tr
td align=center colspan=3 valign=middle
img src=images/kirche.jpg /br /
font style=font:10pt Arial, Helvetica, sans-serif;
Pfarrkirche St. Maria Geburt
/font
/td
  /tr
/table
body
/html

index.php:

!DOCTYPE php PUBLIC -//W3C//DTD php 4.0 Frameset//EN
html
head
titlePfarrgemeinde St. Maria Geburt, Duderstadt-Gerblingerode/title
/head
frameset frameborder=no border=0 framespacing=0 rows=30px,*,24px
  frame src=hp_oben.php noresize=noresize scrolling=no name=oben 
marginheight=0 marginwidth=0
  frameset border=0 frameborder=no framespacing=0 cols=159px,*,9px
frame src=hp_links.php noresize=noresize scrolling=no name=links 
marginheight=0 marginwidth=0
frame src=hp_mitte.php noresize=noresize name=mitte scrolling=yes 
marginheight=0 marginwidth=0
frame src=hp_rechts.php noresize=noresize scrolling=no name=rechts 
marginheight=0 marginwidth=0
  /frameset
  frame src=hp_unten.php noresize=noresize scrolling=no name=unten 
marginheight=0 marginwidth=0
  noframes
body
/body
  /noframes
/frameset
/html

The other files are not really important, you can have empty files and the same 
problem results (or results not depending on the file-extension).

I hope you can help me!
Sincelery
Daniel 

[PHP-DEV] Bug #14777: Style Sheets not interpreted when sent through Apache/PHP

2001-12-30 Thread webmaster

From: [EMAIL PROTECTED]
Operating system: Windows ME
PHP version:  4.1.0
PHP Bug Type: Apache related
Bug description:  Style Sheets not interpreted when sent through Apache/PHP

Hi!

I've got the following configuration:
PHP 4.1.0 running as ISAPI-Module on Apache 1.3.22

The following problem results only (!) if I use .php as extension. 

I originally programmed the entire site with the extension .html. I used
IE-specific CSS-elements to change the color/style of the scrollbar. It all
worked fine.

Then I wanted to use .php as extension instead, so that I could use a
prepend if necessary (e.g. include a config.php, etc.). It seemed to work
fine still, PHP code is executed, the page is shown as usual. Only that the
scrollbar is not shown with its changed appearance anymore. If I change
back to .html everythings fine again.

I can't explain this because I have in mind, that everything that is
outside of ?php-Tags is sent unchanged to the browser. And the Source-Code
(right-click in Internet-Explorer) shows no differences between the two
files. Still it doesn't seem to work with .php

Hereby the necessary files:

hp_mitte.php:

!DOCTYPE HTML PUBLIC -//W3C//DTD HTML 4.0//EN
html
head
titlePfarrgemeinde St. Maria Geburt, Duderstadt-Gerblingerode/title
script type=text/javascript!--
function checkFrameset() 
  {if(!parent.oben) location.href=index.php;}
--/script
style type=text/css!--
body {margin-bottom:0px; margin-top:0px; margin-left:0px; margin-right:0px;

  scrollbar-face-color:#FF; scrollbar-highlight-color:#43CBFF; 
  scrollbar-shadow-color:#43CBFF; scrollbar-3dlight-color:#43CBFF; 
  scrollbar-arrow-color:#43CBFF; scrollbar-track-color:#D5D5D5;
scrollbar-darkshadow-color:#43CBFF;}
table {border:0px;}
--/style
/head
body onLoad=checkFrameset()
table cellspacing=0 cellpadding=0 width=100% height=100%
  tr bgcolor=#D5D5D5
td height=24px colspan=3
font style=font: bold 12pt Arial, Helvetica, sans-serif;
  nbsp;nbsp;Startseite
/font
/td
  /tr
  tr
td align=center colspan=3 valign=middle
img src=images/kirche.jpg /br /
font style=font:10pt Arial, Helvetica, sans-serif;
Pfarrkirche St. Maria Geburt
/font
/td
  /tr
/table
body
/html

index.php:

!DOCTYPE php PUBLIC -//W3C//DTD php 4.0 Frameset//EN
html
head
titlePfarrgemeinde St. Maria Geburt, Duderstadt-Gerblingerode/title
/head
frameset frameborder=no border=0 framespacing=0
rows=30px,*,24px
  frame src=hp_oben.php noresize=noresize scrolling=no name=oben
marginheight=0 marginwidth=0
  frameset border=0 frameborder=no framespacing=0
cols=159px,*,9px
frame src=hp_links.php noresize=noresize scrolling=no
name=links marginheight=0 marginwidth=0
frame src=hp_mitte.php noresize=noresize name=mitte
scrolling=yes marginheight=0 marginwidth=0
frame src=hp_rechts.php noresize=noresize scrolling=no
name=rechts marginheight=0 marginwidth=0
  /frameset
  frame src=hp_unten.php noresize=noresize scrolling=no name=unten
marginheight=0 marginwidth=0
  noframes
body
/body
  /noframes
/frameset
/html

The other files are not really important, you can have empty files and the
same problem results (or results not depending on the file-extension).

I hope you can help me!
Sincelery
Daniel Warner


-- 
Edit bug report at: http://bugs.php.net/?id=14777edit=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 #14777 Updated: Style Sheets not interpreted when sent through Apache/PHP

2001-12-30 Thread webmaster

ID: 14777
User updated by: [EMAIL PROTECTED]
Reported By: [EMAIL PROTECTED]
Status: Bogus
Bug Type: Apache related
Operating System: Windows ME
PHP Version: 4.1.0
New Comment:

Thanks, I tried changing the wrong DOCTYPE-Definition (I replaced all extensions .html 
with .php via Search and Replace, so also the DOCTYPE-Definition was wrong 
afterwords), aswell as deleting it from the file, but it didn't work out 
unfortunately.

Have you got another clue?

Previous Comments:


[2001-12-30 15:40:30] [EMAIL PROTECTED]

i forgot to +bogus



[2001-12-30 15:31:12] [EMAIL PROTECTED]

check your DOCTYPE definition:

!DOCTYPE HTML PUBLIC -//W3C//DTD HTML 4.0//EN

it's WRONG. either chose the right one or leave it out.

Kind Regards,
  Daniel Lorch



[2001-12-30 14:39:52] [EMAIL PROTECTED]

Hi!

I've got the following configuration:
PHP 4.1.0 running as ISAPI-Module on Apache 1.3.22

The following problem results only (!) if I use .php as extension. 

I originally programmed the entire site with the extension .html. I used IE-specific 
CSS-elements to change the color/style of the scrollbar. It all worked fine.

Then I wanted to use .php as extension instead, so that I could use a prepend if 
necessary (e.g. include a config.php, etc.). It seemed to work fine still, PHP code is 
executed, the page is shown as usual. Only that the scrollbar is not shown with its 
changed appearance anymore. If I change back to .html everythings fine again.

I can't explain this because I have in mind, that everything that is outside of 
?php-Tags is sent unchanged to the browser. And the Source-Code (right-click in 
Internet-Explorer) shows no differences between the two files. Still it doesn't seem 
to work with .php

Hereby the necessary files:

hp_mitte.php:

!DOCTYPE HTML PUBLIC -//W3C//DTD HTML 4.0//EN
html
head
titlePfarrgemeinde St. Maria Geburt, Duderstadt-Gerblingerode/title
script type=text/javascript!--
function checkFrameset() 
  {if(!parent.oben) location.href=index.php;}
--/script
style type=text/css!--
body {margin-bottom:0px; margin-top:0px; margin-left:0px; margin-right:0px; 
  scrollbar-face-color:#FF; scrollbar-highlight-color:#43CBFF; 
  scrollbar-shadow-color:#43CBFF; scrollbar-3dlight-color:#43CBFF; 
  scrollbar-arrow-color:#43CBFF; scrollbar-track-color:#D5D5D5; 
scrollbar-darkshadow-color:#43CBFF;}
table {border:0px;}
--/style
/head
body onLoad=checkFrameset()
table cellspacing=0 cellpadding=0 width=100% height=100%
  tr bgcolor=#D5D5D5
td height=24px colspan=3
font style=font: bold 12pt Arial, Helvetica, sans-serif;
  nbsp;nbsp;Startseite
/font
/td
  /tr
  tr
td align=center colspan=3 valign=middle
img src=images/kirche.jpg /br /
font style=font:10pt Arial, Helvetica, sans-serif;
Pfarrkirche St. Maria Geburt
/font
/td
  /tr
/table
body
/html

index.php:

!DOCTYPE php PUBLIC -//W3C//DTD php 4.0 Frameset//EN
html
head
titlePfarrgemeinde St. Maria Geburt, Duderstadt-Gerblingerode/title
/head
frameset frameborder=no border=0 framespacing=0 rows=30px,*,24px
  frame src=hp_oben.php noresize=noresize scrolling=no name=oben 
marginheight=0 marginwidth=0
  frameset border=0 frameborder=no framespacing=0 cols=159px,*,9px
frame src=hp_links.php noresize=noresize scrolling=no name=links 
marginheight=0 marginwidth=0
frame src=hp_mitte.php noresize=noresize name=mitte scrolling=yes 
marginheight=0 marginwidth=0
frame src=hp_rechts.php noresize=noresize scrolling=no name=rechts 
marginheight=0 marginwidth=0
  /frameset
  frame src=hp_unten.php noresize=noresize scrolling=no name=unten 
marginheight=0 marginwidth=0
  noframes
body
/body
  /noframes
/frameset
/html

The other files are not really important, you can have empty files and the same 
problem results (or results not depending on the file-extension).

I hope you can help me!
Sincelery
Daniel Warner







Edit this bug report at http://bugs.php.net/?id=14777edit=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 #14549 Updated: Warning: Unknown persistent list...

2001-12-17 Thread webmaster

ID: 14549
User updated by: [EMAIL PROTECTED]
Reported By: [EMAIL PROTECTED]
Old Status: Feedback
Status: Open
Bug Type: MySQL related
Operating System: Windows 2000
PHP Version: 4.1.0
New Comment:

Zend Engine v1.1.0a

Previous Comments:


[2001-12-17 11:16:37] [EMAIL PROTECTED]

Can't reproduce... pconnect() works fine for me.
What is the version of the Zend Engine? (see phpinfo())

(reclassified)



[2001-12-16 13:26:41] [EMAIL PROTECTED]

heh :) sorry

finger-to-keyboard error ... :)

This Warning message is visible since PHP4.1.0 
not 4.0.1 ... 
 



[2001-12-16 13:18:41] [EMAIL PROTECTED]

What I do wrong if this easy error-less script 

?

$db = MYSQL_PCONNECT(localhost,root,) OR DIE();
   mysql_select_db(chat,$db) or DIE();
$ares=mysql_query(select * from c_users);

echo CHAT room - online users: ;
if (mysql_num_rows($ares)==0) echo nobody;

while ($arow=mysql_fetch_array($ares))
{
echo $arow[username];
}

?

produce this output with Warning message ... 

CHAT room - online users: nobody
Warning: Unknown persistent list entry type in module shutdown (11) in Unknown on line 
0

This warning I see if I enable the option 

error_reporting  =  E_ALL  ~E_NOTICE

in php.ini. This message is visible since PHP4.0.1 

When I downgrade to PHP4.0.6, the message isn't there.






Edit this bug report at http://bugs.php.net/?id=14549edit=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 #14549: Warning: Unknown persistent list...

2001-12-16 Thread webmaster

From: [EMAIL PROTECTED]
Operating system: Windows 2000
PHP version:  4.1.0
PHP Bug Type: Reproducible crash
Bug description:  Warning: Unknown persistent list...

What I do wrong if this easy error-less script 

?

$db = MYSQL_PCONNECT(localhost,root,) OR DIE();
   mysql_select_db(chat,$db) or DIE();
$ares=mysql_query(select * from c_users);

echo CHAT room - online users: ;
if (mysql_num_rows($ares)==0) echo nobody;

while ($arow=mysql_fetch_array($ares))
{
echo $arow[username];
}

?

produce this output with Warning message ... 

CHAT room - online users: nobody
Warning: Unknown persistent list entry type in module shutdown (11) in
Unknown on line 0

This warning I see if I enable the option 

error_reporting  =  E_ALL  ~E_NOTICE

in php.ini. This message is visible since PHP4.0.1 

When I downgrade to PHP4.0.6, the message isn't there.

-- 
Edit bug report at: http://bugs.php.net/?id=14549edit=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 #14549 Updated: Warning: Unknown persistent list...

2001-12-16 Thread webmaster

ID: 14549
User updated by: [EMAIL PROTECTED]
Reported By: [EMAIL PROTECTED]
Status: Open
Bug Type: Reproducible crash
Operating System: Windows 2000
PHP Version: 4.1.0
New Comment:

heh :) sorry

finger-to-keyboard error ... :)

This Warning message is visible since PHP4.1.0 
not 4.0.1 ... 
 

Previous Comments:


[2001-12-16 13:18:41] [EMAIL PROTECTED]

What I do wrong if this easy error-less script 

?

$db = MYSQL_PCONNECT(localhost,root,) OR DIE();
   mysql_select_db(chat,$db) or DIE();
$ares=mysql_query(select * from c_users);

echo CHAT room - online users: ;
if (mysql_num_rows($ares)==0) echo nobody;

while ($arow=mysql_fetch_array($ares))
{
echo $arow[username];
}

?

produce this output with Warning message ... 

CHAT room - online users: nobody
Warning: Unknown persistent list entry type in module shutdown (11) in Unknown on line 
0

This warning I see if I enable the option 

error_reporting  =  E_ALL  ~E_NOTICE

in php.ini. This message is visible since PHP4.0.1 

When I downgrade to PHP4.0.6, the message isn't there.






Edit this bug report at http://bugs.php.net/?id=14549edit=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 #14455: Warning: Undefined variable: Version for win98

2001-12-12 Thread webmaster

From: [EMAIL PROTECTED]
Operating system: Win98
PHP version:  4.1.0
PHP Bug Type: PWS related
Bug description:  Warning: Undefined variable: Version for win98

hi, 
I am using the PWS in the Windows 98. 
I have the following stretch of code: 
?php
echo $oi;
?
e is giving following error: 
Warning: Undefined variable: oi in C:\Inetpub\wwwroot\php\teste.php on line
7

when I test the same code in a server linux this I do not happen. 

thank you.
-- 
Edit bug report at: http://bugs.php.net/?id=14455edit=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 #14145: configure fails with apache 2.0.28

2001-11-20 Thread webmaster

From: [EMAIL PROTECTED]
Operating system: linux 2.2.14
PHP version:  4.0.6
PHP Bug Type: *Configuration Issues
Bug description:  configure fails with apache 2.0.28

Hello from Berlin.
I try to build an apache with a static mod_php (on SuSE Linux 6.4 a 2.2.14
kernel)

I use this on php :
./configure --with-mysql=/usr/local/mysql --with-config-file-path=/etc
--with-apache=../httpd-2_0_28 --enable-track-vars 
this fails with this 
Configuring SAPI modules
checking for AOLserver support... no
checking for Apache module support via DSO through APXS... no
checking for Apache module support... no
configure: error: Invalid Apache directory - unable to find httpd.h under
/home/dantho/httpd-2_0_28

if i use --with-apache2 wich i found i a bug report 
./configure 
make 
make install
works fine (after using --with-apache2).

and then under httpd-2_0_28 

./configure --prefix=/usr/local/httpsd --enable-ssl
--with-ssl=/usr/local/openssl --enable-suexec --with-suexec-caller=nobody
--with-suexec-docroot=/home --enable-module=src/modules/php4/libphp4.a
make 
make install

erverything work also fine : BUT there is not mod_php included if i check
it with ./httpd -l

What goes wrong here - any idea would be great.

-- 
Edit bug report at: http://bugs.php.net/?id=14145edit=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 #14145 Updated: configure fails with apache 2.0.28

2001-11-20 Thread webmaster

ID: 14145
User updated by: [EMAIL PROTECTED]
Reported By: [EMAIL PROTECTED]
Old Status: Open
Status: Closed
Bug Type: *Configuration Issues
Operating System: linux 2.2.14
PHP Version: 4.0.6
New Comment:

i now use :
 --with-apxs2=... and php4-latest.tar.gz

that works fine with 2.0.28

Previous Comments:


[2001-11-20 06:59:34] [EMAIL PROTECTED]

Hello from Berlin.
I try to build an apache with a static mod_php (on SuSE Linux 6.4 a 2.2.14 kernel)

I use this on php :
./configure --with-mysql=/usr/local/mysql --with-config-file-path=/etc 
--with-apache=../httpd-2_0_28 --enable-track-vars 
this fails with this 
Configuring SAPI modules
checking for AOLserver support... no
checking for Apache module support via DSO through APXS... no
checking for Apache module support... no
configure: error: Invalid Apache directory - unable to find httpd.h under 
/home/dantho/httpd-2_0_28

if i use --with-apache2 wich i found i a bug report 
./configure 
make 
make install
works fine (after using --with-apache2).

and then under httpd-2_0_28 

./configure --prefix=/usr/local/httpsd --enable-ssl --with-ssl=/usr/local/openssl 
--enable-suexec --with-suexec-caller=nobody --with-suexec-docroot=/home 
--enable-module=src/modules/php4/libphp4.a
make 
make install

erverything work also fine : BUT there is not mod_php included if i check it with 
./httpd -l

What goes wrong here - any idea would be great.






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


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




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

2001-11-13 Thread webmaster

From: [EMAIL PROTECTED]
Operating system: 
PHP version:  4.0.6
PHP Bug Type: Feature/Change Request
Bug description:  gmtime() function would be nice

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

Currently, we use something to the effect of:

function gmtime()
{

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

}

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


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




[PHP-DEV] ÆóÒµÉÏÍø£¬ÓŻݶà¶à£¡

2001-10-23 Thread webmaster


Ç×°®µÄÅóÓÑ£º
ÄúºÃ£¡
ÕâÊÇÀ´×ÔÏÃÃÅÊÐÊý×ÖÒýÇæÍøÂç¼¼ÊõÓÐÏÞ¹«Ë¾µÄÎʺ¸ÐлÄúÊÕ¿´Õâ·âÓʼþ¡£ÎÒÃÇÕæ³ÏµÄÏ£ÍûÄúÄܳÉΪÎÒÃÇÔÚ¹óµØÇøµÄÖØÒª»ï°é¡£
 

ÏÃÃÅÊÐÊý×ÖÒýÇæÍøÂç¼¼ÊõÓÐÏÞ¹«Ë¾ÊÇÒ»¼ÒרÃÅΪ¸÷ÀàÆóÊÂÒµµ¥Î»ÌṩÍøÕ¾½¨Éè¡¢Èí¼þ¿ª·¢¡¢Æ½Ì¨·þÎñµÄÐÅÏ¢¼¼Êõ¹«Ë¾¡£¹«Ë¾µÄÄ¿±ê¾ÍÊdzÉ
Ϊ¹úÄÚ×îÓÅÐãµÄÍøÂç¼¼Êõƽ̨·þÎñÉÌÖ®Ò»¡£
ÏêÇéÇëä¯ÀÀ£ºwww.intra.com.cn  mailto: [EMAIL PROTECTED]£¬¡¡Ð»Ð»£¡
ÎÒÃǵķþÎñÌØÉ«ÊÇ£ºË«Ó²ÅÌËæʱ±¸·Ý£¬Êý¾ÝÓÀ²»¶ªÊ§£¡
ÏÖÎÒ˾ÍƳöÒÔÏ´ÙÏúÀñ°ü£¬Õ⽫»áÊÇÄú³¬ÖµµÄÑ¡Ôñ£º
1.200M´¿HTML¿Õ¼ä+1¸ö¹ú¼ÊÓòÃû£¬½öÊÛ150Ôª/Ä꣨ÄÚº¬±¸·Ý£©¡£
2.60MaspÍøÕ¾¿Õ¼ä+60Õ×ÆóÒµÓʾÖ+1¸ö¹ú¼ÊÓòÃû£¬½öÊÛ250Ôª/Ä꣨ÄÚº¬±¸·Ý£©¡£
3.100M ASPÍøÂç¿Õ¼ä+100Õ×ÆóÒµÓʾÖ+1¸ö¹ú¼Ê¶¥¼¶ÓòÃû+10M 
AccessÊý¾Ý¿â£¬½öÊÛ300Ôª/Ä꣨ÄÚº¬±¸·Ý£©¡£
 ¡¡ 4.200MASPÍøÕ¾¿Õ¼ä+200Õ×ÆóÒµÓʾÖ+1¸ö¹ú¼ÊÓòÃû+30M 
AccessÊý¾Ý¿â£¬½öÊÛ350Ôª/Ä꣨ÄÚº¬±¸·Ý£©¡£
5.¶àÖÖÓÅ»ÝÍøÕ¾½¨Éè·½°¸¹©Äú²Î¿¼¡£
ÎÒÃÇÔÚŬÁ¦×öµÃ×îºÃ£¬µ«Ò²ÄÑÃâÓÐʧÎó¡£ÎÒÃDz»ÏëÄÄÅÂÒ»µãµãµÄ²»ÂúÒâ¶øÈÃÄú²»¿ªÐÄ¡£ËùÒÔÎÒÃdzÐŵ£ºÖ÷»úËæʱ¿É°´Êµ¼ÊÓà¶îÍË¿î¡£
×££º¿ªÐÄ£¡Ë³Àû£¡
webmaster of www.intra.com.cn
[EMAIL PROTECTED]

ÏÃÃÅÊÐÊý×ÖÒýÇæÍøÂç¼¼ÊõÓÐÏÞ¹«Ë¾
   



















































---
·ÐµãȺ·¢Óʼþ,À´×ÔÈí¼þ¹¤³Ìר¼ÒÍø(http://www.21cmm.com)

½øCMMÍøУ(http://www.21cmm.com)£¬³ÉÏîÄ¿¹ÜÀíר¼Ò

-- 
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 #13125: Bug in Local Value configuration

2001-09-04 Thread webmaster

From: [EMAIL PROTECTED]
Operating system: Apache Linux r00s01 2.4.4-4GB #1
PHP version:  4.0.6
PHP Bug Type: *Configuration Issues
Bug description:  Bug in Local Value configuration

I had a problem with uploaded files, they constantly stuck when trying to
upload them to the webserver via th so called upload script (I used exactly
the one from PHP documentation) So I changed the Local Value for
upload_max_filesize but left the one for Master Value the same. This is
my actuall configuration now:

upload_max_filesize | Local:10M | Master:2M 

Now the Problem is exactly the same as bevore, I can not upload 10MB, I can
not upload 5MB, but I may do so whith files that are sized lower than 2MB
(this is an issue that bothers me a lot, cause I am loosing users from my
website constantly ... they go to other poages that operate with historic
CGI-Scripts, but those can handle hundrde MB's at the same time)

If replying to me, I will have to forward that mail to Jene [EMAIL PROTECTED]
- and it would be great, if you could just send him a copy of the answer as
well, cause we are patently waiting to get that problem fixed, without
having to change the variable for Master as well. What will we have to do
then? I put a PHPinfo of our server for you to check at the following URL:
http://unrealed.gamesweb.com/zip/view.php so you can see, that we did not
make too many mistakes in generall!

THIS IS A BUG and schould be fixed as soon as possible!
-- 
Edit bug report at: http://bugs.php.net/?id=13125edit=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 #13065 Updated: Running PHP Script from shell

2001-09-04 Thread webmaster

ID: 13065
User updated by: [EMAIL PROTECTED]
Reported By: [EMAIL PROTECTED]
Old Summary: Error generated when I run Make from Apache
Status: Bogus
Bug Type: *Compile Issues
Operating System: Red Hat Linux 6.0
PHP Version: 4.0.6
New Comment:

I trying to run phorummail script from shell in Linux, but I get this error:

php: error in loading shared libraries: libmysqlclient.so.6: cannot open shared
object file: No such file or directory

I search libmysqlclient.so.6 in /usr/lib and /usr/local/mysql/lib and not exist.

How I can to install this lib.

Thanks,

Previous Comments:


[2001-08-31 10:12:02] [EMAIL PROTECTED]

ok, I saw my error, I was using the line in Configure with Apache, and you was talking 
about PHP.

My apologize again, but really I don't found nothing helpful for my error in your 
database, I think that should be updated with my output error.

Thanks, 



[2001-08-31 10:04:56] [EMAIL PROTECTED]

You must add --with-zlib to the configure line of PHP, not of Apache. If needed, 
specify the installation path of zlib.



[2001-08-31 09:51:54] [EMAIL PROTECTED]

Ok, sorry I search in this database and I don't found nothing equal to this error.

I try configure with your suggestion and I get:

-
Configuring for Apache, Version 1.3.20
 + using installation path layout: Apache (config.layout)
configure:Error: invalid option '--with-zlib'
-

What can I do now??



[2001-08-30 19:27:28] [EMAIL PROTECTED]

Add --with-zlib to your configure line.
And next time search the bug database first before
submitting bogus reports.




[2001-08-30 15:48:30] [EMAIL PROTECTED]

I compiled PHP with this line:
xxx
./configure --with-mysql=/usr/local/mysql --with-config-file-path=/www/conf 
--with-apache=../httpd --enable-track-vars

When I try to add PHP module to Apache, I received this erros when run Make.


/usr/local/mysql/lib/libmysqlclient.a(my_compress.o): In function `my_uncompress
':
my_compress.o(.text+0x97): undefined reference to `uncompress'
/usr/local/mysql/lib/libmysqlclient.a(my_compress.o): In function `my_compress_a
lloc':
my_compress.o(.text+0x12b): undefined reference to `compress'
collect2: ld returned 1 exit status
make[2]: *** [target_static] Error 1
make[2]: Leaving directory `/usr/local/etc/apache_1.3.20/src'
make[1]: *** [build-std] Error 2
make[1]: Leaving directory `/usr/local/etc/apache_1.3.20'
make: *** [build] Error 2






Edit this bug report at http://bugs.php.net/?id=13065edit=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 #13065 Updated: Error generated when I run Make from Apache

2001-08-31 Thread webmaster

ID: 13065
User updated by: [EMAIL PROTECTED]
Reported By: [EMAIL PROTECTED]
Status: Bogus
Bug Type: MySQL related
Operating System: Red Hat Linux 6.0
PHP Version: 4.0.6
New Comment:

Ok, sorry I search in this database and I don't found nothing equal to this error.

I try configure with your suggestion and I get:

-
Configuring for Apache, Version 1.3.20
 + using installation path layout: Apache (config.layout)
configure:Error: invalid option '--with-zlib'
-

What can I do now??

Previous Comments:


[2001-08-30 19:27:28] [EMAIL PROTECTED]

Add --with-zlib to your configure line.
And next time search the bug database first before
submitting bogus reports.




[2001-08-30 15:48:30] [EMAIL PROTECTED]

I compiled PHP with this line:
xxx
./configure --with-mysql=/usr/local/mysql --with-config-file-path=/www/conf 
--with-apache=../httpd --enable-track-vars

When I try to add PHP module to Apache, I received this erros when run Make.


/usr/local/mysql/lib/libmysqlclient.a(my_compress.o): In function `my_uncompress
':
my_compress.o(.text+0x97): undefined reference to `uncompress'
/usr/local/mysql/lib/libmysqlclient.a(my_compress.o): In function `my_compress_a
lloc':
my_compress.o(.text+0x12b): undefined reference to `compress'
collect2: ld returned 1 exit status
make[2]: *** [target_static] Error 1
make[2]: Leaving directory `/usr/local/etc/apache_1.3.20/src'
make[1]: *** [build-std] Error 2
make[1]: Leaving directory `/usr/local/etc/apache_1.3.20'
make: *** [build] Error 2






Edit this bug report at http://bugs.php.net/?id=13065edit=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 #13065 Updated: Error generated when I run Make from Apache

2001-08-31 Thread webmaster

ID: 13065
User updated by: [EMAIL PROTECTED]
Reported By: [EMAIL PROTECTED]
Status: Bogus
Bug Type: *Compile Issues
Operating System: Red Hat Linux 6.0
PHP Version: 4.0.6
New Comment:

ok, I saw my error, I was using the line in Configure with Apache, and you was talking 
about PHP.

My apologize again, but really I don't found nothing helpful for my error in your 
database, I think that should be updated with my output error.

Thanks, 

Previous Comments:


[2001-08-31 10:04:56] [EMAIL PROTECTED]

You must add --with-zlib to the configure line of PHP, not of Apache. If needed, 
specify the installation path of zlib.



[2001-08-31 09:51:54] [EMAIL PROTECTED]

Ok, sorry I search in this database and I don't found nothing equal to this error.

I try configure with your suggestion and I get:

-
Configuring for Apache, Version 1.3.20
 + using installation path layout: Apache (config.layout)
configure:Error: invalid option '--with-zlib'
-

What can I do now??



[2001-08-30 19:27:28] [EMAIL PROTECTED]

Add --with-zlib to your configure line.
And next time search the bug database first before
submitting bogus reports.




[2001-08-30 15:48:30] [EMAIL PROTECTED]

I compiled PHP with this line:
xxx
./configure --with-mysql=/usr/local/mysql --with-config-file-path=/www/conf 
--with-apache=../httpd --enable-track-vars

When I try to add PHP module to Apache, I received this erros when run Make.


/usr/local/mysql/lib/libmysqlclient.a(my_compress.o): In function `my_uncompress
':
my_compress.o(.text+0x97): undefined reference to `uncompress'
/usr/local/mysql/lib/libmysqlclient.a(my_compress.o): In function `my_compress_a
lloc':
my_compress.o(.text+0x12b): undefined reference to `compress'
collect2: ld returned 1 exit status
make[2]: *** [target_static] Error 1
make[2]: Leaving directory `/usr/local/etc/apache_1.3.20/src'
make[1]: *** [build-std] Error 2
make[1]: Leaving directory `/usr/local/etc/apache_1.3.20'
make: *** [build] Error 2






Edit this bug report at http://bugs.php.net/?id=13065edit=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 #13081: bug in source

2001-08-31 Thread webmaster

From: [EMAIL PROTECTED]
Operating system: win98se
PHP version:  4.0.6
PHP Bug Type: Unknown/Other Function
Bug description:  bug in source

You have a writing problem in the german Manual:
_

Um JPEG-Grafiken lesen und schreiben zu können, benötigen Sie jpeg-6b
(siehe unter ftp://ftp.uu.net/graphics/jpeg/). Anschließend müssen Sie gd
neu compilieren mit --with-jpeg-dir=/path/to/jpeg-6b. Danach muss auch PHP
mit der Option --with-jpeg-dir=/path/to/jpeg-6b nue compiliert werden. 
_

the third word from the end of the paragraph is nue, this should be neu!

you will find the bug at http://www.php.net/manual/de/ref.image.php
-- 
Edit bug report at: http://bugs.php.net/?id=13081edit=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 #13065: Error generated when I run Make from Apache

2001-08-30 Thread webmaster

From: [EMAIL PROTECTED]
Operating system: Red Hat Linux 6.0
PHP version:  4.0.6
PHP Bug Type: *Web Server problem
Bug description:  Error generated when I run Make from Apache

I compiled PHP with this line:
xxx
./configure --with-mysql=/usr/local/mysql --with-config-file-path=/www/conf
--with-apache=../httpd --enable-track-vars

When I try to add PHP module to Apache, I received this erros when run
Make.


/usr/local/mysql/lib/libmysqlclient.a(my_compress.o): In function
`my_uncompress
':
my_compress.o(.text+0x97): undefined reference to `uncompress'
/usr/local/mysql/lib/libmysqlclient.a(my_compress.o): In function
`my_compress_a
lloc':
my_compress.o(.text+0x12b): undefined reference to `compress'
collect2: ld returned 1 exit status
make[2]: *** [target_static] Error 1
make[2]: Leaving directory `/usr/local/etc/apache_1.3.20/src'
make[1]: *** [build-std] Error 2
make[1]: Leaving directory `/usr/local/etc/apache_1.3.20'
make: *** [build] Error 2

-- 
Edit bug report at: http://bugs.php.net/?id=13065edit=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 #12770: ODBC and PHP help needed.. Advanced

2001-08-15 Thread webmaster

From: [EMAIL PROTECTED]
Operating system: win98 with PWS
PHP version:  4.0.6
PHP Bug Type: ODBC related
Bug description:  ODBC and PHP help needed.. Advanced

What i want to do is retrieve data from a table in access using odbc. I can
retrieve info correctly, except from when i want to retrieve specific
information.
I want to create a table on a webpage that retrieves a column of info, and
uses this info to make a link. With this link there will be a querystring
called id, and this comes from the ID field in my DB which i also have
retrieved using my select statement.

So how do i use odbc_result and odbc_fetch_row together to achieve this. Or
is there another method using ODBC that i dont have knowledge of.

Beneath is my code::

Thnx in advance


HTML
HEAD
TITLEMXManiaWorld :: Tracks - Download/TITLE
STYLE TYPE=text/css
TH {color: white; background-color: gray}
TD {background-color: silver; text : black }
/STYLE
/HEAD
BODY bgcolor=navy text=
CENTER

?php
//retrieve data from DB and show in browser.
//Img, then at side details.

//Declare DB variables
$odbc_dsn = 'mxm_db';
$odbc_userid = '**';
$odbc_userpassword = '**';

//CONNECT to DB
if(!($odbc_db=odbc_connect($odbc_dsn, $odbc_userid,
$odbc_userpassword)))
die(Couldn't connect to odbc database - $odbc_dsn);


//---


echo TABLE WIDTH='98%' border='1' bordercolor='#ff';

$query2 = SELECT ID, FileName FROM tbl_uploads;

//submit query
if(!($odbc_rs2 = odbc_exec($odbc_db, $query2)))
die(Error executing query. Please inform the webmaster);

?

TRTHID/THTHTrackname/TH/TR

?php

while($query_data = odbc_fetch_row($odbc_rs2)) {
$num_cols = odbc_num_fields($odbc_rs2);
for($a = 1; $a = $num_cols; $a++) {

if(!($track_id = odbc_result($query2, $a)))
die(Couldn't get result);
if(!($tracks = odbc_result($query2, $a)))
die(Couldn't get result) ;
echo TR;
echo TD$track_id/TD;
echo TDa href='./tracks.php?id= . $track_id . ' . $tracks .
/a;
echo /TD/TR;
}

}

echo /TABLE
?

/CENTER
/BODY
/HTML

-- 
Edit bug report at: http://bugs.php.net/?id=12770edit=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 #12378: checkdate returns TRUE on false date

2001-07-25 Thread webmaster

From: [EMAIL PROTECTED]
Operating system: linux
PHP version:  4.0.6
PHP Bug Type: Date/time related
Bug description:  checkdate returns TRUE on false date

The checkdate doesn't validate correcly on all dates. 

checkdate(2,29,2000); returns true even thoug the year 2000 was not a
leapyear.
-- 
Edit bug report at: http://bugs.php.net/?id=12378edit=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 #12208: $HTTP_RAW_POST_DATA should always be set

2001-07-17 Thread webmaster

From: [EMAIL PROTECTED]
Operating system: NA
PHP version:  4.0.6
PHP Bug Type: Feature/Change Request
Bug description:  $HTTP_RAW_POST_DATA should always be set

$HTTP_RAW_POST_DATA should get set, even if the content type is known. In
order to access XML submitted to php (such as with Flash 5 swfs) I need
access to $HTTP_RAW_POST_DATA in order to parse it. Instead it gets all
munged up in $HTTP_POST_VARS and $HTTP_RAW_POST_DATA is blank.

This bug might be a duplicate of this one:
http://www.php.net/bugs.php?id=10520

-- 
Edit bug report at: http://bugs.php.net/?id=12208edit=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 #12184: PHP has encountered an Access Violation at 0129E68A

2001-07-16 Thread webmaster

From: [EMAIL PROTECTED]
Operating system: Windows 2000 Server
PHP version:  4.0.6
PHP Bug Type: IIS related
Bug description:  PHP has encountered an Access Violation at 0129E68A

I'm following this step
 Under 'Home Directory', click on the 'Configuration' button.
Add a new entry to the Application Mappings. Use the path
to the php4isapi.dll as the Executable, supply .php as the
extension, leave Method exclusions blank, and check the
Script engine checkbox.
and when I get PHP has encountered an Access Violation at 0129E68A in my
Web browser

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


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




[PHP-DEV] Re: Bug #11897 Updated: Curl

2001-07-06 Thread webmaster

I ran ldconfig, reconfigured php and ran make/make install. The configure
and make processes ran fine but unfortunately the I received the same errors
for curl and libmcrypt.

Do you have any other suggestions?

Eric
- Original Message -
From: Bug Database [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, July 04, 2001 11:47 PM
Subject: Bug #11897 Updated: Curl


 ID: 11897
 Updated by: cmv
 Reported By: [EMAIL PROTECTED]
 Status: Open
 Bug Type: Apache related
 Operating system:
 PHP Version: 4.0.6
 Assigned To:
 Comments:

 This is the same problem you had with libmcrypt ...

 Sounds to me like you haven't run 'ldconfig' after installing mcrypt/curl.

 - Colin

 Previous Comments:
 --
-

 [2001-07-04 22:58:43] [EMAIL PROTECTED]

 I am writting you because I have compilled curl version 7.8 with the
following options
--disable-ipv6 --with-openssl=/usr/include/openssl --prefix=/usr/local/incl
ude/curl. I have also compilled PHP to have --with-openssl
and --with-curl=/urs/local/include/curl options as perscribed by
http://curl.haxx.se/libcurl/php/install.html.

 The configure, make and make install proccess goes fine but when I restart
Apache (version 1.3.14 rpm install) I get an error like this: cannot load
modual /lib/apache/libphp4.so can not find libcurl.so.1. I have tried many
differnt compille options to try working around this problem but nothing
works.

 Please help.










 Can you tell

 --
-



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




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




[PHP-DEV] Bug #11897: Curl

2001-07-04 Thread webmaster

From: [EMAIL PROTECTED]
Operating system: Red Hat 6.2
PHP version:  4.0.6
PHP Bug Type: Apache related
Bug description:  Curl

I am writting you because I have compilled curl version 7.8 with the following options 
--disable-ipv6 --with-openssl=/usr/include/openssl --prefix=/usr/local/include/curl. 
I have also compilled PHP to have --with-openssl and 
--with-curl=/urs/local/include/curl options as perscribed by 
http://curl.haxx.se/libcurl/php/install.html. 

The configure, make and make install proccess goes fine but when I restart Apache 
(version 1.3.14 rpm install) I get an error like this: cannot load modual 
/lib/apache/libphp4.so can not find libcurl.so.1. I have tried many differnt compille 
options to try working around this problem but nothing works.

Please help.










Can you tell


-- 
Edit Bug report at: http://bugs.php.net/?id=11897edit=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 #11898: libmcrypt

2001-07-04 Thread webmaster

From: [EMAIL PROTECTED]
Operating system: Red Hat 6.2
PHP version:  4.0.6
PHP Bug Type: Apache related
Bug description:  libmcrypt

I am writting you because I have compilled libmcrypt version 2.2.7 with the following 
options disable-posix-threads prefix=/usr/include/libmcrypt. I have also 
compilled PHP to have --with-mcrypt=/usr/include/libmcrypt.

The configure, make and make install proccess goes fine but when I restart Apache 
(version 1.3.14 rpm install) I get an error like this: cannot load modual 
/lib/apache/libphp4.so can not find libmcrypt.so.2. Altough I have verified that that 
all needed files are prescent. I have also tried many different compille options to 
try working around this problem but nothing works.

Please help.










Can you tell


-- 
Edit Bug report at: http://bugs.php.net/?id=11898edit=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 #11809: Make install fails: apxs: error: unknown option: S

2001-06-30 Thread webmaster

From: [EMAIL PROTECTED]
Operating system: Redhat 6.2
PHP version:  4.0.6
PHP Bug Type: Compile Failure
Bug description:  Make install fails: apxs: error: unknown option: S

I use Apache 1.3.2 on a Cobalt RaQ2
I used:
./configure --with-mysql --with-apxs --with-enable-track-vars

make also didn't give any problems.
make install gives an error:
make[1]: Entering directory `/home/tmp/php4/php-4.0.6'
/home/tmp/php4/php-4.0.6/build/shtool mkdir -p /usr/lib/apache  /usr/sbin/ap
xs -S LIBEXECDIR=/usr/lib/apache -i -a -n php4 libs/libphp4.so
apxs:Error: Unknown option: S
Usage: apxs -g -n modname
   apxs -q query ...
   apxs -c [-o dsofile] [-D name[=value]] [-I incdir]
   [-L libdir] [-l libname] files ...
   apxs -i [-a] [-n modname] dsofile ...
make[1]: *** [install-sapi] Error 1
make[1]: Leaving directory `/home/tmp/php4/php-4.0.6'
make: *** [install-recursive] Error 1   



-- 
Edit Bug report at: http://bugs.php.net/?id=11809edit=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 #11472: function enhancements

2001-06-19 Thread webmaster

From: [EMAIL PROTECTED]
Operating system: Any
PHP version:  4.0.5
PHP Bug Type: Feature/Change Request
Bug description:  function enhancements

Hi, I have a few ideas for enhancements to PHP's functions that would make them much 
more powerful.  

First, when using variable length argument lists (using func_get_arg, etc.) there 
should be a way to treat these as references.  As of now, it seems to me that only 
pass by value can be achieved with this mechanism.  A simple func_set_arg function 
would fill this gap nicely.

Second, macros would be a nice addition.

Third, and most important I believe, there needs to be a mechanism for inheriting 
scope in a function - rather than choosing between the extremes of global and local.  
For instance, the following code demonstrates my point:

function a() {
   global $var;
   $var = 10;
}

function b() {
   $var = 5;
   a();
   print $var; # still prints 5 because a()'s $var is global
   # whereas b()'s var is local.  There is NO
   # way to reference b()'s var in a() as it
   # stands - the only way to do it would be to
   # make a() get passed a reference to $var
}

$var = 5;
a();
print $var; # here, however, everything works fine because
# the $var here is global

The behavior of a() here is, if not downright inconsistent, somewhat frustrating.  
Now, consider if we had an inherit construct, which inherited the variable from the 
calling scope.  If a() then was defined as

function a() {
   inherit $a;
   $a = 10;
}

the behavior would be more consistent to what the writer of function b() intended.

With these additions, I think a lot more could be accomplished with functions.

Thanks for a great product,
Robby Walker
CD-Lab
www.cd-lab.com


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



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




[PHP-DEV] Re: Bug #10774 Updated: SWF complill error

2001-05-10 Thread webmaster

Thank you for the reply. Unfortunately the readme file in ming says it does
not support sound. However www.openswf.org has a lot of info available for
swf. I will write you if I in regards to my success or failure with info I
find at www.openswf.org
- Original Message -
From: Bug Database [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, May 10, 2001 1:48 AM
Subject: Bug #10774 Updated: SWF complill error


 ID: 10774
 Updated by: sniper
 Reported By: [EMAIL PROTECTED]
 Old-Status: Open
 Status: Closed
 Bug Type: SWF related
 Operating system:
 PHP Version: 4.0.4pl1
 Assigned To:
 Comments:

 Use MING instead. It's much better and it's been still
 developed. It seems like the libswf is pretty much dead project..last
updates on that site are done 1999!

 http://www.opaque.net/ming/

 --Jani


 Previous Comments:
 --
-

 [2001-05-09 23:59:18] [EMAIL PROTECTED]
 I have attempted to compille php 4.0.4pl1 and 4.0.5 using files that I
downloaded from http://reality.sgi.com/grafica/flash/; and with the
follwing cofigure lines --with-swf-/usr/local/dist/bin
 my problem is that the swf.h and libswf.a file are not included in the
download available from the above location. I have also tried using the the
swf.h file available from the above site but I recieve coinfigure errors
stating: swf should be in directory /include and libswf.a should be in
directory /lib.

 All of the files do not come with the downloaded file, the text file that
I copied from the site still gives me errors and the documentation from the
above site is very poor. Can you please tell me in plain english how to
configure PHP with FLASH/SHOCKWAVE features.

 Eric

 --
-



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




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




[PHP-DEV] Bug #10774: SWF complill error

2001-05-09 Thread webmaster

From: [EMAIL PROTECTED]
Operating system: Red Hat Linux 6.2
PHP version:  4.0.4pl1
PHP Bug Type: SWF related
Bug description:  SWF complill error

I have attempted to compille php 4.0.4pl1 and 4.0.5 using files that I downloaded from 
http://reality.sgi.com/grafica/flash/; and with the follwing cofigure lines 
--with-swf-/usr/local/dist/bin
my problem is that the swf.h and libswf.a file are not included in the download 
available from the above location. I have also tried using the the swf.h file 
available from the above site but I recieve coinfigure errors stating: swf should be 
in directory /include and libswf.a should be in directory /lib. 

All of the files do not come with the downloaded file, the text file that I copied 
from the site still gives me errors and the documentation from the above site is very 
poor. Can you please tell me in plain english how to configure PHP with 
FLASH/SHOCKWAVE features.

Eric


-- 
Edit Bug report at: http://bugs.php.net/?id=10774edit=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 #10510: ini_set() as relates to max upload filesize setting

2001-04-26 Thread webmaster

From: [EMAIL PROTECTED]
Operating system: Unix/BSD
PHP version:  4.0.4pl1
PHP Bug Type: *Function Specific
Bug description:  ini_set() as relates to max upload filesize setting

First, let me say that I'm not entirely sure I would class this report as a bug, but 
it very well could be.

Recently, as in yesterday, I spent a number of hours trying to find a work-around to 
the maximum upload filesize setting.  I came across the ini_set() functions.

This appeared to be something of a solution to the delimma, by issuing a ini_set() to 
the max upload filesize, I figured I would be able to conduct a file upload that 
exceeded the default 2M limit.

It would appear that I was wrong.

Here is the situation which presented itself, and ultimately will explain why I'm 
emailing as a bug report.

 The Scenario -
My script resides on a hosted server, one which is beyond my direct control.  
Naturally the host controls the settings, and the like.

I needed to conduct file uploads, which may or may not exceed the default limit.  
After reviewing the manual, I found the ini_set functions. So, I decided to test the 
over-ride of the ini's setting for a max upload filesize.

For test purposes, we chose 4M, and issued an ini_set() to PHP. The set was 
successful, and our local value for the max upload filesize was 4M.

No problem, this is awesome I thought to myself, so we moved forward and attempted to 
upload, using a file field named file_url.

The end result was just un-real.

We selected a file that weighed in at approx. 2.2MB just .2 over the default limit, 
but well within our defined max size.

We watched our modems and bandwidth meters, seeing the transmit of the file to the 
server... (we think all is going sweetly).. then, nothing.

PHP gave no errors, as a matter of fact the script executed perfectly.  cept that the 
value of file_url became none.. obviously something went wrong.. 

Here's what we ultimately discovered.

1) IF the file exceeded 2M (the default) the value of the file field is stripped and 
returns as none (as if no file was uploaded).

2) PHP Gives no limit exceeded error, or any errors for that matter.

3) IF the file is below the 2M limit, all is perfect.

In short, it would appear that the ini_set(), though it displays as being set, has no 
real affect.  Bug? I don't know.. I do however feel, that at the very least, PHP 
should give us some type of error message.. In the end, I'm left with the feeling that 
one of two possiblities exist here, 1) the ini_set() function holds no real coding 
value, or 2) I don't fully understand the function.  Granted, documentation is 
somewhat limited on these..


-- 
Edit Bug report at: http://bugs.php.net/?id=10510edit=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] PHP 4.0 Bug #10510 Updated: ini_set() as relates to max upload filesize setting

2001-04-26 Thread webmaster

ID: 10510
User Update by: [EMAIL PROTECTED]
Status: Closed
Bug Type: *Function Specific
Description: ini_set() as relates to max upload filesize setting

Okay, makes sense, which is partly why I would call ini_set before the form is 
loaded and data posted,
I guess I do misunderstand, as I thought that the set would remain intact until the 
call to restore?

By what you are saying, it would appear that the restore function would serve no 
purpose??

You mention using htaccess to set the limits, can you point me to some documentation 
on this? I am familiar with htaccess and the Apache server, but not specify PHP ini 
limits via such?

Previous Comments:
---

[2001-04-26 10:28:12] [EMAIL PROTECTED]
Please take into account that the processing of post data happens _before_ your call 
to ini_set. Thus your new limit value has no effect to the upload and succeeds (of 
course) after the upload is rejected.

I would recommend setting the value through .htaccess or apache's config.


---

[2001-04-26 09:58:38] [EMAIL PROTECTED]
First, let me say that I'm not entirely sure I would class this report as a bug, but 
it very well could be.

Recently, as in yesterday, I spent a number of hours trying to find a work-around to 
the maximum upload filesize setting.  I came across the ini_set() functions.

This appeared to be something of a solution to the delimma, by issuing a ini_set() to 
the max upload filesize, I figured I would be able to conduct a file upload that 
exceeded the default 2M limit.

It would appear that I was wrong.

Here is the situation which presented itself, and ultimately will explain why I'm 
emailing as a bug report.

 The Scenario -
My script resides on a hosted server, one which is beyond my direct control.  
Naturally the host controls the settings, and the like.

I needed to conduct file uploads, which may or may not exceed the default limit.  
After reviewing the manual, I found the ini_set functions. So, I decided to test the 
over-ride of the ini's setting for a max upload filesize.

For test purposes, we chose 4M, and issued an ini_set() to PHP. The set was 
successful, and our local value for the max upload filesize was 4M.

No problem, this is awesome I thought to myself, so we moved forward and attempted to 
upload, using a file field named file_url.

The end result was just un-real.

We selected a file that weighed in at approx. 2.2MB just .2 over the default limit, 
but well within our defined max size.

We watched our modems and bandwidth meters, seeing the transmit of the file to the 
server... (we think all is going sweetly).. then, nothing.

PHP gave no errors, as a matter of fact the script executed perfectly.  cept that the 
value of file_url became none.. obviously something went wrong.. 

Here's what we ultimately discovered.

1) IF the file exceeded 2M (the default) the value of the file field is stripped and 
returns as none (as if no file was uploaded).

2) PHP Gives no limit exceeded error, or any errors for that matter.

3) IF the file is below the 2M limit, all is perfect.

In short, it would appear that the ini_set(), though it displays as being set, has no 
real affect.  Bug? I don't know.. I do however feel, that at the very least, PHP 
should give us some type of error message.. In the end, I'm left with the feeling that 
one of two possiblities exist here, 1) the ini_set() function holds no real coding 
value, or 2) I don't fully understand the function.  Granted, documentation is 
somewhat limited on these..

---


Full Bug description available at: http://bugs.php.net/?id=10510


-- 
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 #10434: Can not read memory

2001-04-21 Thread webmaster

From: [EMAIL PROTECTED]
Operating system: Windows 2000 Pro / IIS5
PHP version:  4.0.4pl1
PHP Bug Type: Reproduceable crash
Bug description:  Can not read memory

Error message is generated saying "The instruction at "0x78003abf" referenced at 
"0x00bc8000". The memory could not be "read".

Because it seems that the problem is memory leak I am providing a part of the php code 
where I am accumulating a large string width data (separated with "|") which I am 
going to pass later on javascript for further manipultion. 

The number of records passed by the SQL query is about 900.

While developing the script, to avoid the error I raised the memory limit consumed by 
script (in php.ini) first to 16M, later 32Mb, now it is 64M.

The strange thing for me is that after I raised to 16M, the error stopped, than 
sudenly apperred again; when I put it on 64M it stopped again, and now it comes back 
again without realy modifying this part of the script!


// the code
$sql = "select GROUPID, SUBGROUPID, MATERIALID, DESCRIPTIONEN, DESCRIPTIONBG, 
COSTPRICE from MATERIALS";
  $h = ibase_query($sql);
  while($row = ibase_fetch_object($h)) {
  if ($lang_selected == "en") {
  $dsc = $row-DESCRIPTIONEN;
  if ($dsc == "") { $dsc = $row-DESCRIPTIONBG; }
  } else {
  $dsc = $row-DESCRIPTIONBG;
  if ($dsc == "") { $dsc = $row-DESCRIPTIONEN; }
  }

$mats .= 
trim($row-SUBGROUPID)."|".trim($row-MATERIALID)."|".trim($dsc)."|".$row-COSTPRICE."|";
$qq++;
   }
ibase_free_result($h);  



-- 
Edit Bug report at: http://bugs.php.net/?id=10434edit=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] PHP 4.0 Bug #9985 Updated: Enable logging documentation

2001-03-26 Thread webmaster

ID: 9985
User Update by: [EMAIL PROTECTED]
Old-Status: Closed
Status: Open
Bug Type: Documentation problem
Description: Enable logging documentation

The log lines in the php.ini file all relate to error logging. I am looking for a line 
to enable access logging.

Previous Comments:
---

[2001-03-26 03:15:15] [EMAIL PROTECTED]
You can do it by editing php.ini file:

http://www.php.net/manual/en/configuration.php

--Jani


---

[2001-03-26 02:38:36] [EMAIL PROTECTED]
I am looking for documentation that shows the correct configure line to tell php to 
enable
logging to the access.log file. But I have not found it any where. Can you tell me 
what the
correct configure option is to enable logging? Is it just enable-loggin?

Eric


---

[2001-03-26 02:36:41] [EMAIL PROTECTED]
I am looking for documentation that show the corect configure line to tell php to 
enable logging to the access.log file. But I not found it any where. Can you tell me 
what the correct configure option is to enable logging? Is it just enable-loggin?

Eric

---


Full Bug description available at: http://bugs.php.net/?id=9985


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




[PHP-DEV] PHP 4.0 Bug #9985: Enable logging documentation

2001-03-25 Thread webmaster

From: [EMAIL PROTECTED]
Operating system: Red Hat Linux 6.2
PHP version:  4.0.4pl1
PHP Bug Type: Documentation problem
Bug description:  Enable logging documentation

I am looking for documentation that show the corect configure line to tell php to 
enable logging to the access.log file. But I not found it any where. Can you tell me 
what the correct configure option is to enable logging? Is it just enable-loggin?

Eric


-- 
Edit Bug report at: http://bugs.php.net/?id=9985edit=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] PHP 4.0 Bug #9987: Enable logging documentation

2001-03-25 Thread webmaster

From: [EMAIL PROTECTED]
Operating system: Red Hat Linux 6.2
PHP version:  4.0.4pl1
PHP Bug Type: Apache related
Bug description:  Enable logging documentation

I am looking for a way to make php work on apache-ssl (not mode ssl) on the same 
system that has a none apache ssl server installed. Please not that my regular apache 
and apache-ssl packages were both installed from a rpm.

Can you tell me what to do to make both apache's work with php on the same server.

Eric


-- 
Edit Bug report at: http://bugs.php.net/?id=9987edit=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] PHP 4.0 Bug #9671: Sorting arrays with norwegian letters

2001-03-10 Thread webmaster

From: [EMAIL PROTECTED]
Operating system: RedHar 7.0
PHP version:  4.0.4pl1
PHP Bug Type: Arrays related
Bug description:  Sorting arrays with norwegian letters

I think I have found a bug in the function 'sort'. It does not sort correct with 
norwegian letters. The norwegian alphabeth is made of 29 letters. The three last ones 
are spesial for norway (and sweden and denmark). 

Heres a sample of our alphabeth:
abcdefghijklmnopqrstuvwxyzæøå

And here are some code...

?

// List of norwegian names, with norwegian letters
$to_be_sorted = array(mamma, øyvind, sondre, værner, ærlend, odd, hedvig, åsmund, 
birgit);

sort($to_be_sorted);

for ($i = 0; $i  sizeof($to_be_sorted); $i ++) {
  echo $to_be_sorted[$i]."br\n";
}

?

This prodused this putput:

birgit 
hedvig 
mamma  
odd 
sondre 
værner 
åsmund 
ærlend 
øyvind 

But it should have been:

birgit
hedvig
mamma 
odd 
sondre 
værner 
ærlend 
øyvind 
åsmund 

Yours Håkon Flatøy

PS: PHP is GREAT!


-- 
Edit Bug report at: http://bugs.php.net/?id=9671edit=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] PHP 4.0 Bug #9357: PHP won't use the method post

2001-02-20 Thread webmaster

From: [EMAIL PROTECTED]
Operating system: Windows 98 (client side) UNIX (server side)
PHP version:  4.0.4pl1
PHP Bug Type: Unknown/Other Function
Bug description:  PHP won't use the method "post"

The following script is supposed to send a simple feedback form, and send it directly 
to my mail server, however when I submit a test form, it will say "The requested 
method POST is not allowed for the URL /feedback.php.", when I did exactly what the 
instruction book (Que) told me to do. 

html
?php_track_vars


$to = $HTTP_POST_VARS["to"];
$head = $HTTP_POST_VARS["eMail"];
$subj = $HTTP_POST_VARS["subject"];
$body1 = $HTTP_POST_VARS["name"];
$body2 = $HTTP_POST_VARS["type"];
$body3 = $HTTP_POST_VARS["comments"];

mail($to, $subj, $body1 . $body2 . $body3, $header);

?
head
titleSending.../title
script type="javascript"

parent.location="http://www.scoutprovidence.com/thanks.shtml"

/head
body
font size=3 face=verdanabPlease wait while your information is being 
sent.../b/font
/body
/html

As you can see I tried using the ?php_track_vars thing, which still won't work, and 
I've tried various variations of that tag. What is wrong? Unfortunately I don't have 
the php.ini file, because the server is third-party (DotEasy).


-- 
Edit Bug report at: http://bugs.php.net/?id=9357edit=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] PHP 4.0 Bug #9322: PHP error

2001-02-17 Thread webmaster

From: [EMAIL PROTECTED]
Operating system: Win 98
PHP version:  4.0.4pl1
PHP Bug Type: Date/time related
Bug description:  PHP error

When you have a php-site with the following function, PHP always brakes down with an 
system error on the webserver:
==
function: 
-
date("T");
==
Error description:
--
PHP verursachte einen Fehler durch eine ungültige Seite
in Modul MSVCRT.DLL bei 0177:7800d269.
Register:
EAX=00650078 CS=0177 EIP=7800d269 EFLGS=00010206
EBX=00798b80 SS=017f ESP=0063fca8 EBP=0063fcc4
ECX=0030 DS=017f ESI=007989fc FS=9487
EDX=0065e154 ES=017f EDI=0007 GS=
Bytes bei CS:EIP:
89 5a 04 8b 55 0c 89 4d fc 8b 5a 04 8b 52 08 89 
Stapelwerte:
00654a78 00798a00 00656e50 00650fd8  0051 0030 0063fd08 7800cc3f 
0075000c 00798a2c 00654a78 000c 00656e50 100ec9f0 780010ed 

=
But The output of the script is ok.



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



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




[PHP-DEV] Re: safe_mode re-design

2001-02-08 Thread WebMaster



I would be interested in assisting with the 
design/redesign of safe_mode functionality. I belive it is critical that 
we develope features that will be intuitive for ISP web adminstrators to use, to 
ensure that PHP will become widely supported in multi-hosted environments. 


I have been working on an enhancement to 
open_basedir. Basically, I am looking at enabling /home/domains/*/htdocs 
as a valid directory, to be used in a multi-hosting environment. I am also 
specing out a UMASK fopen_wrapper, so ISPs can force new files created by users 
to be created under a PHP UMASK...

I will be more than wiling to help design, spec, 
code, and/or test new functionality for safe_mode. Let me know where I can 
help :)

Dennis Youngblood
Web-Hosting Administrator
RCS Internet
www.rcsis.com
916.772.5014



[PHP-DEV] PHP 4.0 Bug #9126: Compilation stop with PDF_show_boxed in -lpdf... no

2001-02-06 Thread webmaster

From: [EMAIL PROTECTED]
Operating system: Solaris/Linux
PHP version:  4.0.4pl1
PHP Bug Type: Compile Problem
Bug description:  Compilation stop with PDF_show_boxed in -lpdf... no

Including PDflib 3.0.3 into PHP4.0.4pl1 stops with

  checking for PDF_show_boxed in -lpdf... no
  configure: error: pdflib extension requires pdflib 3.x.

Somehow, PDFlib 3.0.3 created shared libs with the names
libpdf_java.so.0.1.1
wich are not recognized by PHPs configure

Made a symbolic link resulting in a libpdf.so

Works ...

Kind regards, Frank Gadegast


-- 
Edit Bug report at: http://bugs.php.net/?id=9126edit=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] PHP 4.0 Bug #8751 Updated: configure misdetects zlib on FreeBSD 4.1.1

2001-01-17 Thread webmaster

ID: 8751
User Update by: [EMAIL PROTECTED]
Old-Status: Open
Status: Closed
Bug Type: PHP options/info functions
Description: configure misdetects zlib on FreeBSD 4.1.1

I ran configure with those same flags again in order to gather some more information 
for you guys, and strangely enough it worked this time. I did a 'make clean' and 'rm 
config.cache' before running configure this time, so there must have been some bad 
information in the cache that caused it to fail on zlib those other times.

Previous Comments:
---

[2001-01-17 02:01:49] [EMAIL PROTECTED]
When running configure for PHP 4.0.4pl1 on FreeBSD 4.1.1/i386, configure fails to 
properly detect FreeBSD's builtin zlib support. Zlib version 1.1.3 is preinstalled in 
/usr/lib/libz.{a,so}, however when configure tries to verify zlib's presence it says 
"zlib support requires zlib version = 1.0.9" and terminates. It also complains that 
it can't find gzgets in -lz.

The exact command line I used was:
./configure --with-apxs --enable-sigchild 
--enable-magic-quotes --enable-bcmath --with-bz2 
--with-gdbm --with-ndbm --enable-ftp --with-gd=/usr/local 
--with-jpeg-dir=/usr/local --with-xpm-dir=/usr/X11R6 
--with-ttf --enable-gd-imgstrttf --with-imap 
--with-java=/usr/local/jdk1.1.8 --with-ldap --with-mhash 
--with-mysql=/usr/local --with-iodbc --with-pdflib 
--with-zlib-dir=/usr --with-png-dir=/usr/local 
--with-tiff-dir=/usr/local --with-mm --enable-trans-sid 
--with-zlib=/usr --enable-sockets 
--enable-inline-optimization --enable-memory-limit

Upon removing the --with-zlib flag, php compiles fine and works normally.


---


Full Bug description available at: http://bugs.php.net/?id=8751


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