#21251 [Bgs]: ÔÚ4.2.3ÖÐÕý³££¬µ«ÔÚ4.3.0ÖбäÁË!

2003-01-04 Thread vwbox
 ID:   21251
 User updated by:  [EMAIL PROTECTED]
 Reported By:  [EMAIL PROTECTED]
 Status:   Bogus
 Bug Type: *Directory/Filesystem functions
 Operating System: winnt4sp6
 PHP Version:  4.3.0
 New Comment:

Õâ¿ÉÄܲ»ÊÇÒ»¸ö´í£¬µ«ÊÇҪ˵µÄÊÇ»áÒýÆðÐí¶àÐֵܵķ³ÄÕ£¬Õâ¸öÎÊÌâÎÒÈÏΪÖÁÉÙÓ¦
¸ÃÔÚ˵Ã÷ÊéÀïÃæ×¢Ã÷£º

ÔÚphp.iniÉèÖÃÖУ¬include_path = .;d:\yours\include;d:\haha
ÐÎʽµÄÅäÖÃÔÚаæµÄphpÖÐÓÐÎÊÌ⣬¾ßÌåÊÇ£¬Èç¹ûÄúÔÚ³ÌÐòÖÐʹÓÃrequire()¡¢incl
ude()»òÕßinclude_once()Ëü»á¸æËßÄãÕÒ²»µ½Ëù°üº¬µÄÎļþ¡£

Õâ¸öÎÊÌâ·³ÁËÎÒÓÐ5~6¸ö¶àСʱ£¬×îºóÔÚÎÒ²»Ð¸µÄµ÷ÊÔÏ£¬·¢ÏÖʹÓÃ/¶ø²»ÊÇ\
·ûºÅÒԺ󣬾ͿÉÒÔÕýÈ·ÒýÓðüº¬Îļþ.

ÎҵĻ·¾³ÊÇwinnt4sp6+apache1.3.27+php4.3.0

mr..vw
[EMAIL PROTECTED]
=
ÒÔÏÂÊÇͬÒåÓ¢Óï == Follows are English report in same mean 
=
Although It isn't a bug that I believed,But it should be reported!
Because It would make many others mistake in their config files.
  The bug is :when you want set your include file's forder with
include_path = .;d:\yours\include;d:\haha in your php.ini file,as the
samples, the PHP program will tell you that He can not find the file in
d:\haha of your include (aaa.inc);!

It takes me for about 5~6 hours to find a way that you can use / but
\ instead! The program tells me that there are errors,but I cannot
find it! And the answer is so simple!

My Os is winnt4sp6+apache1.3.27+php4.3.0


mr..vw
[EMAIL PROTECTED]
===
ÎÒµÄĸÓïÊǺºÓÎÒÈÏΪººÓï±ÈÓ¢ÓïºÃѧ¶àÁË£¡ÒªÊÇÄÇÀï²»Çå³þ£¬Ö»ºÃÂé·³Äú¿´ººÓﱨ¸æÁË£¬²»ºÃÒâ˼¡£
My motherlanguage is Chinese , and I find chinese is more easy to study
than English! If there are something troubled you, Please read My
Chinese report instead.


Previous Comments:


[2002-12-28 11:21:58] [EMAIL PROTECTED]

In english please.



[2002-12-28 11:19:53] [EMAIL PROTECTED]

Õâ¿ÉÄܲ»ÊÇÒ»¸ö´í£¬µ«ÊÇҪ˵µÄÊÇ»áÒýÆðÐí¶àÐֵܵķ³ÄÕ£¬Õâ¸öÎÊÌâÎÒÈÏΪÖÁÉÙÓ¦¸ÃÔÚ˵Ã÷ÊéÀïÃæ×¢Ã÷£º


ÔÚphp.iniÉèÖÃÖУ¬include_path = .;d:\yours\include;d:\haha
ÐÎʽµÄÅäÖÃÔÚаæµÄphpÖÐÓÐÎÊÌ⣬¾ßÌåÊÇ£¬Èç¹ûÄúÔÚ³ÌÐòÖÐʹÓÃrequire()¡¢include()»òÕßinclude_once()Ëü»á¸æËßÄãÕÒ²»µ½Ëù°üº¬µÄÎļþ¡£


Õâ¸öÎÊÌâ·³ÁËÎÒÓÐ5~6¸ö¶àСʱ£¬×îºóÔÚÎÒ²»Ð¸µÄµ÷ÊÔÏ£¬·¢ÏÖʹÓÃ/¶ø²»ÊÇ\·ûºÅÒԺ󣬾ͿÉÒÔÕýÈ·ÒýÓðüº¬Îļþ.


ÎҵĻ·¾³ÊÇwinnt4sp6+apache1.3.27+php4.3.0

mr..vw
[EMAIL PROTECTED]




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




#21251 [Bgs]: ÔÚ4.2.3ÖÐÕý³££¬µ«ÔÚ4.3.0ÖбäÁË!

2003-01-04 Thread vwbox
 ID:   21251
 User updated by:  [EMAIL PROTECTED]
 Reported By:  [EMAIL PROTECTED]
 Status:   Bogus
 Bug Type: *Directory/Filesystem functions
 Operating System: winnt4sp6
 PHP Version:  4.3.0
 New Comment:

Õâ¿ÉÄܲ»ÊÇÒ»¸ö´í£¬µ«ÊÇҪ˵µÄÊÇ»áÒýÆðÐí¶àÐֵܵķ³ÄÕ£¬Õâ¸öÎÊÌâÎÒÈÏΪÖÁÉÙÓ¦
¸ÃÔÚ˵Ã÷ÊéÀïÃæ×¢Ã÷£º

ÔÚphp.iniÉèÖÃÖУ¬include_path = .;d:\yours\include;d:\haha
ÐÎʽµÄÅäÖÃÔÚаæµÄphpÖÐÓÐÎÊÌ⣬¾ßÌåÊÇ£¬Èç¹ûÄúÔÚ³ÌÐòÖÐʹÓÃrequire()¡¢incl
ude()»òÕßinclude_once()Ëü»á¸æËßÄãÕÒ²»µ½Ëù°üº¬µÄÎļþ¡£

Õâ¸öÎÊÌâ·³ÁËÎÒÓÐ5~6¸ö¶àСʱ£¬×îºóÔÚÎÒ²»Ð¸µÄµ÷ÊÔÏ£¬·¢ÏÖʹÓÃ/¶ø²»ÊÇ\
·ûºÅÒԺ󣬾ͿÉÒÔÕýÈ·ÒýÓðüº¬Îļþ.

ÎҵĻ·¾³ÊÇwinnt4sp6+apache1.3.27+php4.3.0

mr..vw
[EMAIL PROTECTED]
=
ÒÔÏÂÊÇͬÒåÓ¢Óï == Follows are English report in same mean 
=
Although It isn't a bug that I believed,But it should be reported!
Because It would make many others mistake in their config files.
  The bug is :when you want set your include file's forder with
include_path = .;d:\yours\include;d:\haha in your php.ini file,as the
samples, the PHP program will tell you that He can not find the file in
d:\haha of your include (aaa.inc);!

It takes me for about 5~6 hours to find a way that you can use / but
\ instead! The program tells me that there are errors,but I cannot
find it! And the answer is so simple!

My Os is winnt4sp6+apache1.3.27+php4.3.0


mr..vw
[EMAIL PROTECTED]
===
ÎÒµÄĸÓïÊǺºÓÎÒÈÏΪººÓï±ÈÓ¢ÓïºÃѧ¶àÁË£¡ÒªÊÇÄÇÀï²»Çå³þ£¬Ö»ºÃÂé·³Äú¿´ººÓﱨ¸æÁË£¬²»ºÃÒâ˼¡£
My motherlanguage is Chinese , and I find chinese is more easy to study
than English! If there are something troubled you, Please read My
Chinese report instead.


Previous Comments:


[2003-01-04 03:12:05] [EMAIL PROTECTED]

Õâ¿ÉÄܲ»ÊÇÒ»¸ö´í£¬µ«ÊÇҪ˵µÄÊÇ»áÒýÆðÐí¶àÐֵܵķ³ÄÕ£¬Õâ¸öÎÊÌâÎÒÈÏΪÖÁÉÙÓ¦
¸ÃÔÚ˵Ã÷ÊéÀïÃæ×¢Ã÷£º

ÔÚphp.iniÉèÖÃÖУ¬include_path = .;d:\yours\include;d:\haha
ÐÎʽµÄÅäÖÃÔÚаæµÄphpÖÐÓÐÎÊÌ⣬¾ßÌåÊÇ£¬Èç¹ûÄúÔÚ³ÌÐòÖÐʹÓÃrequire()¡¢incl
ude()»òÕßinclude_once()Ëü»á¸æËßÄãÕÒ²»µ½Ëù°üº¬µÄÎļþ¡£

Õâ¸öÎÊÌâ·³ÁËÎÒÓÐ5~6¸ö¶àСʱ£¬×îºóÔÚÎÒ²»Ð¸µÄµ÷ÊÔÏ£¬·¢ÏÖʹÓÃ/¶ø²»ÊÇ\
·ûºÅÒԺ󣬾ͿÉÒÔÕýÈ·ÒýÓðüº¬Îļþ.

ÎҵĻ·¾³ÊÇwinnt4sp6+apache1.3.27+php4.3.0

mr..vw
[EMAIL PROTECTED]
=
ÒÔÏÂÊÇͬÒåÓ¢Óï == Follows are English report in same mean 
=
Although It isn't a bug that I believed,But it should be reported!
Because It would make many others mistake in their config files.
  The bug is :when you want set your include file's forder with
include_path = .;d:\yours\include;d:\haha in your php.ini file,as the
samples, the PHP program will tell you that He can not find the file in
d:\haha of your include (aaa.inc);!

It takes me for about 5~6 hours to find a way that you can use / but
\ instead! The program tells me that there are errors,but I cannot
find it! And the answer is so simple!

My Os is winnt4sp6+apache1.3.27+php4.3.0


mr..vw
[EMAIL PROTECTED]
===
ÎÒµÄĸÓïÊǺºÓÎÒÈÏΪººÓï±ÈÓ¢ÓïºÃѧ¶àÁË£¡ÒªÊÇÄÇÀï²»Çå³þ£¬Ö»ºÃÂé·³Äú¿´ººÓﱨ¸æÁË£¬²»ºÃÒâ˼¡£
My motherlanguage is Chinese , and I find chinese is more easy to study
than English! If there are something troubled you, Please read My
Chinese report instead.



[2002-12-28 11:21:58] [EMAIL PROTECTED]

In english please.



[2002-12-28 11:19:53] [EMAIL PROTECTED]

Õâ¿ÉÄܲ»ÊÇÒ»¸ö´í£¬µ«ÊÇҪ˵µÄÊÇ»áÒýÆðÐí¶àÐֵܵķ³ÄÕ£¬Õâ¸öÎÊÌâÎÒÈÏΪÖÁÉÙÓ¦¸ÃÔÚ˵Ã÷ÊéÀïÃæ×¢Ã÷£º


ÔÚphp.iniÉèÖÃÖУ¬include_path = .;d:\yours\include;d:\haha
ÐÎʽµÄÅäÖÃÔÚаæµÄphpÖÐÓÐÎÊÌ⣬¾ßÌåÊÇ£¬Èç¹ûÄúÔÚ³ÌÐòÖÐʹÓÃrequire()¡¢include()»òÕßinclude_once()Ëü»á¸æËßÄãÕÒ²»µ½Ëù°üº¬µÄÎļþ¡£


Õâ¸öÎÊÌâ·³ÁËÎÒÓÐ5~6¸ö¶àСʱ£¬×îºóÔÚÎÒ²»Ð¸µÄµ÷ÊÔÏ£¬·¢ÏÖʹÓÃ/¶ø²»ÊÇ\·ûºÅÒԺ󣬾ͿÉÒÔÕýÈ·ÒýÓðüº¬Îļþ.


ÎҵĻ·¾³ÊÇwinnt4sp6+apache1.3.27+php4.3.0

mr..vw
[EMAIL PROTECTED]




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




#21401 [Opn-Fbk]: Apache doesn't start with php 4.3.0 php4ts.dll

2003-01-04 Thread tularis
 ID:   21401
 Updated by:   [EMAIL PROTECTED]
 Reported By:  [EMAIL PROTECTED]
-Status:   Open
+Status:   Feedback
 Bug Type: Apache related
 Operating System: Windows XP Professional
 PHP Version:  4.3.0
 New Comment:

Please try using this CVS snapshot:

  http://snaps.php.net/php4-latest.tar.gz
 
For Windows:
 
  http://snaps.php.net/win32/php4-win32-latest.zip

After checking this on my own computer, I can only say that the CVS
build works for sure.


Previous Comments:


[2003-01-03 18:42:12] [EMAIL PROTECTED]

Windows XP Professional Service Pack 1, Apache 1.3.27, php 4.3.0 as
apache-modul, phplib + tomcat 3.3.1

testing apache: httpd.conf Syntax O.K.

But I can't start Apache with php 4.3.0

Starting Apache has as result only the Windows-Error-Massage:
Apache.exe hat ein Problem festgestellt und muss beendet werden.,
what means: Apache.exe has detected a problem and must be shut down

Problemsignatur:
szAppName : Apache.exe szAppVer : 0.0.0.0 szModName :
php4ts.dll 
szModVer : 4.3.0.0 offset : 000af8ee 

Files send to M$
C:\DOKUME~1\Michael\LOKALE~1\Temp\WERA.tmp.dir00\Apache.exe.mdmp
C:\DOKUME~1\Michael\LOKALE~1\Temp\WERA.tmp.dir00\appcompat.txt

If I substitute the php4ts.dll in C:\Windows\system32 with the old
4.2.3-version, everything works well, allthough the  php.ini and all
other *.dll-files are version 4.3.0.
The failure is only with the php4ts.dll-file and Windows.

I have downloaded the Zip-file from another mirror, because I thought,
the file might be demaged. No result.
I think the failure is rather Windows ?? than php and reportet the
failure to M$ too.

Thanks for help. If there is no solution I work with the old version.
Michael.




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




#21406 [Opn-Fbk]: Appending same filter twice causes segfault

2003-01-04 Thread wez
 ID:   21406
 Updated by:   [EMAIL PROTECTED]
 Reported By:  [EMAIL PROTECTED]
-Status:   Open
+Status:   Feedback
 Bug Type: Filesystem function related
 Operating System: linux
 PHP Version:  4CVS-2003-01-03 (dev)
 New Comment:

Thank you for this bug report. To properly diagnose the problem, we
need a backtrace to see what is happening behind the scenes. To
find out how to generate a backtrace, please read
http://bugs.php.net/bugs-generating-backtrace.php

Once you have generated a backtrace, please submit it to this bug
report and change the status back to Open. Thank you for helping
us make PHP better.

Always include a backtrace in reports of segfaults or bus errors (it
saves a good 15 minutes or more of my time!)
Thanks!


Previous Comments:


[2003-01-03 22:37:45] [EMAIL PROTECTED]

Correction... Any two filters:

stream_filter_append($fp, rot13);
stream_filter_append($fp, rot13);

or

stream_filter_append($fp, rot13);
stream_filter_append($fp, default);

or

stream_filter_append($fp, default);
stream_filter_append($fp, default);

all produce the same segfault when fclose()ing (presumably during the
calls to write() or flush() in the filters).

Note: default was previously registered using:
stream_register_filter(default, php_user_filter);



[2003-01-03 22:30:11] [EMAIL PROTECTED]

The following code works fine when stream_filter_append() is called
only once.  Adding the second call causes a segfault when fclose() is
called.


?php

class rot13_filter extends php_user_filter {
  function read($length) {
$tempstr = parent::read($length);
for($i = 0; $i  strlen($tempstr); $i++)
  if (($tempstr[$i] = 'A' AND $tempstr[$i] = 'M') OR
  ($tempstr[$i] = 'a' AND $tempstr[$i] = 'm')) $tempstr[$i] =
chr(ord($tempstr[$i]) + 13);
  else if (($tempstr[$i] = 'N' AND $tempstr[$i] = 'Z') OR
   ($tempstr[$i] = 'n' AND $tempstr[$i] = 'z'))
$tempstr[$i] = chr(ord($tempstr[$i]) - 13);
return $tempstr;
  }

  function write($data) {
for($i = 0; $i  strlen($data); $i++)
  if (($data[$i] = 'A' AND $data[$i] = 'M') OR
  ($data[$i] = 'a' AND $data[$i] = 'm')) $data[$i] =
chr(ord($data[$i]) + 13);
  else if (($data[$i] = 'N' AND $data[$i] = 'Z') OR
   ($data[$i] = 'n' AND $data[$i] = 'z')) $data[$i] =
chr(ord($data[$i]) - 13);
return parent::write($data);
  }
}

stream_register_filter(rot13, rot13_filter)
or die(Failed to register filter);

$fp = fopen(foo-bar.txt, r);

stream_filter_append($fp, rot13);
stream_filter_append($fp, rot13);

fwrite($fp, Line1\n);
fwrite($fp, Word - 2\n);
fwrite($fp, Easy As 123\n);

fclose($fp);

?





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




#21319 [Sus]: the PHP Script Interpreter crashes.

2003-01-04 Thread odarcan
 ID:   21319
 User updated by:  [EMAIL PROTECTED]
-Summary:  the PHP Script Interpreter crashes
 Reported By:  [EMAIL PROTECTED]
 Status:   Suspended
 Bug Type: Scripting Engine problem
 Operating System: windows xp
 PHP Version:  4.3.0
 New Comment:

Hi, i've just upgraded to php 4.3.0 and i'm pleased the fsockopen
timeout problem has been fixed..

but now to something more serious:

the php script interpreter crashes, windows takes over command and
says
PHP Script Interpreter has encountered a problem and needs to close.
We
are sorry for the inconvenience. and you get to choose to send or
dont
send an error report to microsoft
(please tell microsoft about this problem it says)

this happens very often... i suspect this has something to do with the
die() construct and/or the mysql interface... because the crash often
comes directly after a erroneus mysql query a it's
die-error-message...
but not always.. i think.. sometimes no error is produced by php at
all..

i want to be of more help by telling you how to reproduce the error
but
i haven't figured out how to figure out how to tell you to reproduce
the
error..


Previous Comments:


[2003-01-02 15:52:59] [EMAIL PROTECTED]

i have by the way only 500 MB of ram



[2003-01-02 15:51:55] [EMAIL PROTECTED]

FATAL:  emalloc():  Unable to allocate 1936028514 bytes

is this php's fault or the os'?



[2003-01-02 15:24:33] [EMAIL PROTECTED]

this just in:

FATAL:  erealloc():  Unable to allocate 59 bytes

and then again: BOOM

cool eh?



[2003-01-02 11:51:16] [EMAIL PROTECTED]

I AM STILL WAITING FOR YOUR COMMENTS WAKE UP PLEASE



[2003-01-02 07:07:18] [EMAIL PROTECTED]

what kind of information do you need additionally, i dont know if i may
be able to reproduce the crash (my script DOES crash all the time but i
dont know what causes it)



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

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




#21209 [Opn-Fbk]: mysql_error isn't returning connections problems.

2003-01-04 Thread nicos
 ID:   21209
 Updated by:   [EMAIL PROTECTED]
-Summary:  Error in the examples for mysql_fetch_assoc and
   mysql_fetch_array
 Reported By:  [EMAIL PROTECTED]
-Status:   Open
+Status:   Feedback
-Bug Type: Documentation problem
+Bug Type: MySQL related
 Operating System: Windows
 PHP Version:  4CVS-2002-12-26 (dev)
 New Comment:

Are you using the bundled version of MySQL, if not, which version?

I can't reproduce the bug in any of my systems.

Anyway changing this to a MySQL bug, and will see if it is verified.


Previous Comments:


[2003-01-03 23:54:27] [EMAIL PROTECTED]

The manual states that mysql_error() without arguments retrieves the
error text of the last recently used MySQL function - _not_ the last
opened connection.

And that's exactly what happens at least here on Linux (tested with
4.3.0 and 4.4.0-CVS as of today).

So if the example doesn't work on Windows, it is broken on Windows. Can
you try the example on its own, without your custom error handler?



[2003-01-03 20:37:16] [EMAIL PROTECTED]

That is not true.
Your code just produces a ``Could not connect: ''
here.

PHP Version 4.4.0-dev
System Windows NT localhost 5.1 build 2600
Build Date Dec 26 2002 20:10:08
Server API Apache



[2003-01-03 17:25:23] [EMAIL PROTECTED]

Actually with 

?php
@mysql_connect(localhost, mysql_user, mysql_password) or
die(Could not connect:  . mysql_error());
?

It returns:

Could not connect: Access denied for user: 'mysql_user@localhost'
(Using password: YES)

so using mysql_error() here is just fine, it also manages the
connections' error.

Thank you for your report.



[2002-12-26 18:51:17] [EMAIL PROTECTED]

Hi!

There is an error in the code examples for mysql_fetch_assoc and
_array:
(for mysql_fetch_assoc, at the page for _array is the same error)
[code]
$conn = mysql_connect(localhost, mysql_user,
mysql_password);

if (!$conn) {
echo Unable to connect to DB:  . mysql_error();
exit;
}
[/code]

That doesn't make sense. mysql_error() takes the connection that is
passed as an argument or the last opened connection. Where
mysql_error() is called, no connection to a mysql server is
established, so mysql_error() returns an empty string. Additionaly PHP
raises an E_WARNING error anyway in case mysql_connect fails. Sample
Output: (custom error handler)

[output]
Warning:
mysql_connect() [function.mysql-connect]: Access denied for user:
'mysql_user@localhost' (Using password: YES)
On Line: 2
In File: c:\web\apache\htdocs\test.php
Error Context: $conn = mysql_connect(localhost, mysql_user,
mysql_password);

Unable to connect to DB:
[/output]

Suggestion:
a) Change the examples so that they catch the errors in a way that is
appropriate, i.e.:
[code]
$conn = @mysql_connect(localhost, mysql_user, mysql_password);

if (empty($conn)) {
echo Unable to connect to DB:  . $GLOBALS['php_errormsg'];
exit;
}
[/code]
b) More work, but would be nicer and match the documentation for
mysql_error - yet this changes the behaviour a lot, some scripts would
have to be rewritten:
Let mysql_connect no longer issue warnings (Errors coming back from
the MySQL database backend no longer issue warnings. Instead, use
mysql_error() to retrieve the error text. - Manual page for
mysql_error() ), but modify mysql_error so that it holds error strings
from mysql_connect as well.






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




#21319 [Sus-Opn]: the PHP Script Interpreter crashes.

2003-01-04 Thread sniper
 ID:   21319
 Updated by:   [EMAIL PROTECTED]
 Reported By:  [EMAIL PROTECTED]
-Status:   Suspended
+Status:   Open
 Bug Type: Scripting Engine problem
 Operating System: windows xp
 PHP Version:  4.3.0


Previous Comments:


[2003-01-04 05:08:38] [EMAIL PROTECTED]

Hi, i've just upgraded to php 4.3.0 and i'm pleased the fsockopen
timeout problem has been fixed..

but now to something more serious:

the php script interpreter crashes, windows takes over command and
says
PHP Script Interpreter has encountered a problem and needs to close.
We
are sorry for the inconvenience. and you get to choose to send or
dont
send an error report to microsoft
(please tell microsoft about this problem it says)

this happens very often... i suspect this has something to do with the
die() construct and/or the mysql interface... because the crash often
comes directly after a erroneus mysql query a it's
die-error-message...
but not always.. i think.. sometimes no error is produced by php at
all..

i want to be of more help by telling you how to reproduce the error
but
i haven't figured out how to figure out how to tell you to reproduce
the
error..



[2003-01-02 15:52:59] [EMAIL PROTECTED]

i have by the way only 500 MB of ram



[2003-01-02 15:51:55] [EMAIL PROTECTED]

FATAL:  emalloc():  Unable to allocate 1936028514 bytes

is this php's fault or the os'?



[2003-01-02 15:24:33] [EMAIL PROTECTED]

this just in:

FATAL:  erealloc():  Unable to allocate 59 bytes

and then again: BOOM

cool eh?



[2003-01-02 11:51:16] [EMAIL PROTECTED]

I AM STILL WAITING FOR YOUR COMMENTS WAKE UP PLEASE



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

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




#21405 [Opn-Bgs]: Application popup: php.exe - Application Error

2003-01-04 Thread sniper
 ID:   21405
 Updated by:   [EMAIL PROTECTED]
 Reported By:  [EMAIL PROTECTED]
-Status:   Open
+Status:   Bogus
-Bug Type: Compile Failure
+Bug Type: *General Issues
 Operating System: windows2000
 PHP Version:  4.2.3
 New Comment:

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

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

Thank you for your interest in PHP.





Previous Comments:


[2003-01-03 22:15:37] [EMAIL PROTECTED]

just wanted add some more comments

after displaying this error the compilation stops at that particular
instance and rest is left uncompiled



[2003-01-03 22:13:50] [EMAIL PROTECTED]

just wanted add some more



[2003-01-03 22:12:02] [EMAIL PROTECTED]

Application popup: php.exe - Application Error : The instruction at
0x77fca8ac referenced memory at 0x00080101. The memory could not
be
written.

(The instruction address here may vary by about 16 bytes; the memory
address has always been 0x00080101 or 0x00080100)


The requests are in fact processed correctly and there is no trace of a
message in the PHP error logs. 





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




#21396 [Opn-Bgs]: after $var =pack(...) with 'N' flag, if use $var in $tmp[$var]='v' key is empty

2003-01-04 Thread sniper
 ID:   21396
 Updated by:   [EMAIL PROTECTED]
 Reported By:  [EMAIL PROTECTED]
-Status:   Open
+Status:   Bogus
 Bug Type: Arrays related
 Operating System: w2k, linux
 PHP Version:  4.2.3
 New Comment:

RTFM: http://www.php.net/manual/en/language.types.array.php

A key is either an integer or a string


Previous Comments:


[2003-01-03 14:24:08] [EMAIL PROTECTED]

just see code
?
error_reporting(E_ALL);

$aa = pack(N,127);
$bb = pack(N,65);
$cc = pack(N,121344231);

echo $aa\n;
echo $bb\n;
echo $cc\n;

$tmp=array();

$tmp[$aa] = aa;
$tmp[$bb] = bb;
$tmp[$cc] = cc;

var_dump($tmp);
?

output:

A
;Ð÷
array(3) {
  []=
  string(2) aa
^^^ but needed [] = aa ???
  []=
  string(2) bb
  [;Ð÷]=
  string(2) cc
}

WHY ?




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




#21232 [Fbk-Csd]: Unresolved references to PQsetnonblocking

2003-01-04 Thread derick
 ID:   21232
 Updated by:   [EMAIL PROTECTED]
 Reported By:  [EMAIL PROTECTED]
-Status:   Feedback
+Status:   Closed
 Bug Type: Compile Failure
 Operating System: RedHat Linux 6.2
 PHP Version:  4.3.0
 New Comment:

This bug has been fixed in CVS.

In case this was a PHP problem, snapshots of the sources are packaged
every three hours; this change will be in the next snapshot. You can
grab the snapshot at http://snaps.php.net/.
 
In case this was a documentation problem, the fix will show up soon at
http://www.php.net/manual/.

In case this was a PHP.net website problem, the change will show
up on the PHP.net site and on the mirror sites in short time.
 
Thank you for the report, and for helping us make PHP better.

Thanks for the patch Floyd!


Previous Comments:


[2003-01-01 21:58:40] [EMAIL PROTECTED]

Same problem, same work fixed it. Note that it's php_pgsql_flush_query,
not slush_query :)

--Nathan



[2002-12-28 05:22:48] [EMAIL PROTECTED]

Would you be able to prepare a patch for us (By doing diff -U
oldfilename.c newfilename.c)? Please send it as attachment to
[EMAIL PROTECTED]

Derick



[2002-12-27 22:41:35] [EMAIL PROTECTED]

I have verson 6.5.2 of Postgresql installed and have --with-pgsql on
my
configure command line for PHP.  Version 4.3.0 fails to compile
complaining
about unresolved references to the function, PQsetnonblocking.

I should probably upgrade my postgres installation but I decided to
try
and resolve this problem with PHP.  

I discovered that in ext/pgsql/pgsql.c the PQsetnonblocking function
is referred to using a macro, PQ_SETNONBLOCKING which is defined
to be 0 if HAVE_PQSETNONBLOCKING is set.

However, in the function php_pgsql_slush_query() in ext/pgsql/pgsql.c
the function PQsetnonblocking() is referred to using its real name
instead
of the macro: on lines 2838 and 2846.  I edited thos two lines to use
the PQ_SETNONBLOCKING macro and now PHP compiles without error.




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




#21209 [Fbk]: mysql_error isn't returning connections problems.

2003-01-04 Thread goba
 ID:   21209
 Updated by:   [EMAIL PROTECTED]
 Reported By:  [EMAIL PROTECTED]
 Status:   Feedback
 Bug Type: MySQL related
 Operating System: Windows
 PHP Version:  4CVS-2002-12-26 (dev)
 New Comment:

Michael note that the function states that it gives the error of the
last myqsl operation, but the note says on the page:

| Note: If the optional argument is specified the
| given link is used to retrieve the error message.
| If not, the last opened link is used. 

So it implies, that if the parameter is not given,
an opened connection is needed... So the documentation
also needs to be changed.

Please do not close this bug before the mysql_error
documentation is fixed.


Previous Comments:


[2003-01-04 05:23:49] [EMAIL PROTECTED]

Are you using the bundled version of MySQL, if not, which version?

I can't reproduce the bug in any of my systems.

Anyway changing this to a MySQL bug, and will see if it is verified.



[2003-01-03 23:54:27] [EMAIL PROTECTED]

The manual states that mysql_error() without arguments retrieves the
error text of the last recently used MySQL function - _not_ the last
opened connection.

And that's exactly what happens at least here on Linux (tested with
4.3.0 and 4.4.0-CVS as of today).

So if the example doesn't work on Windows, it is broken on Windows. Can
you try the example on its own, without your custom error handler?



[2003-01-03 20:37:16] [EMAIL PROTECTED]

That is not true.
Your code just produces a ``Could not connect: ''
here.

PHP Version 4.4.0-dev
System Windows NT localhost 5.1 build 2600
Build Date Dec 26 2002 20:10:08
Server API Apache



[2003-01-03 17:25:23] [EMAIL PROTECTED]

Actually with 

?php
@mysql_connect(localhost, mysql_user, mysql_password) or
die(Could not connect:  . mysql_error());
?

It returns:

Could not connect: Access denied for user: 'mysql_user@localhost'
(Using password: YES)

so using mysql_error() here is just fine, it also manages the
connections' error.

Thank you for your report.



[2002-12-26 18:51:17] [EMAIL PROTECTED]

Hi!

There is an error in the code examples for mysql_fetch_assoc and
_array:
(for mysql_fetch_assoc, at the page for _array is the same error)
[code]
$conn = mysql_connect(localhost, mysql_user,
mysql_password);

if (!$conn) {
echo Unable to connect to DB:  . mysql_error();
exit;
}
[/code]

That doesn't make sense. mysql_error() takes the connection that is
passed as an argument or the last opened connection. Where
mysql_error() is called, no connection to a mysql server is
established, so mysql_error() returns an empty string. Additionaly PHP
raises an E_WARNING error anyway in case mysql_connect fails. Sample
Output: (custom error handler)

[output]
Warning:
mysql_connect() [function.mysql-connect]: Access denied for user:
'mysql_user@localhost' (Using password: YES)
On Line: 2
In File: c:\web\apache\htdocs\test.php
Error Context: $conn = mysql_connect(localhost, mysql_user,
mysql_password);

Unable to connect to DB:
[/output]

Suggestion:
a) Change the examples so that they catch the errors in a way that is
appropriate, i.e.:
[code]
$conn = @mysql_connect(localhost, mysql_user, mysql_password);

if (empty($conn)) {
echo Unable to connect to DB:  . $GLOBALS['php_errormsg'];
exit;
}
[/code]
b) More work, but would be nicer and match the documentation for
mysql_error - yet this changes the behaviour a lot, some scripts would
have to be rewritten:
Let mysql_connect no longer issue warnings (Errors coming back from
the MySQL database backend no longer issue warnings. Instead, use
mysql_error() to retrieve the error text. - Manual page for
mysql_error() ), but modify mysql_error so that it holds error strings
from mysql_connect as well.






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




#21007 [Com]: html_errors off text-only output in phpinfo

2003-01-04 Thread axel_kollmorgen
 ID:   21007
 Comment by:   [EMAIL PROTECTED]
 Reported By:  [EMAIL PROTECTED]
 Status:   Open
 Bug Type: PHP options/info functions
 Operating System: all
 PHP Version:  4.3.0
 New Comment:

having html_errors off causing phpinfo() outputting text-only
doesn't make any sense to me, neither. i completely support
[EMAIL PROTECTED]: phpinfo() is not an error, so it shouldn't depend on
html_errors.


Previous Comments:


[2002-12-29 23:56:01] [EMAIL PROTECTED]

Please explain why this is intended behavior, it does not make sense to
me.  html_errors is for html_errors, it's documented as such in
php.ini:

; Disable the inclusion of HTML tags in error messages.
;html_errors = Off

This says nothing about phpinfo() and IMHO it shouldn't affect it at
all.  The patch that resulted in this change is here:

* add phpinfo() support for CLI.
http://cvs.php.net/diff.php/php4/ext/standard/info.c?r1=1.193r2=1.194

Why is html_errors being used in this way?  When html_errors = off,
errors remain readable when viewing in a browser but this textual
version of phpinfo() == complete fubar in the browser (yes, one can use
pre).  One might turn html_errors off, for example, to use
error_prepend_string/error_append_string in some way.  Or they just
don't want html in the errors... I don't see how this has anything to
do with phpinfo() output.  Why doesn't that patch instead check if sapi
= cli? 

A person shouldn't be forced to have this textual phpinfo() if they
decide to not include html in php generated errors.  Please explain. 
phpinfo() is not an error! :)



[2002-12-14 15:17:42] [EMAIL PROTECTED]

Where?  Put the information in this bug report.



[2002-12-14 13:39:31] [EMAIL PROTECTED]

I've submitted a note to document this behavior in the PHP Manual.



[2002-12-14 06:31:19] [EMAIL PROTECTED]

If this is intended behaviour, this seems to be a doc problem, since I
can't find anything about in the docs.

Regards
Friedhelm Betz



[2002-12-14 06:19:32] [EMAIL PROTECTED]

It's indeed intended like this (and I already forgave your typo :).

Derick



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

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




#21409 [NEW]: PHP_NORMAL_READ parameter in socket_read function gives error

2003-01-04 Thread teemu . tormanen
From: [EMAIL PROTECTED]
Operating system: Windows 2000
PHP version:  4.3.0
PHP Bug Type: Sockets related
Bug description:  PHP_NORMAL_READ parameter in socket_read function gives error

?php
error_reporting (E_ALL);

/* Allow the script to hang around waiting for connections. */
set_time_limit (0);

/* Turn on implicit output flushing so we see what we're getting
 * as it comes in. */
ob_implicit_flush ();

$address = '190.23.198.28';
$port = 1;

if (($sock = socket_create (AF_INET, SOCK_STREAM, 0))  0) {
echo socket_create() failed: reason:  . socket_strerror ($sock) .
\n;
}

if (($ret = socket_bind ($sock, $address, $port))  0) {
echo socket_bind() failed: reason:  . socket_strerror ($ret) .
\n;
}

if (($ret = socket_listen ($sock, 5))  0) {
echo socket_listen() failed: reason:  . socket_strerror ($ret) .
\n;
}

do {
if (($msgsock = socket_accept($sock))  0) {
echo socket_accept() failed: reason:  . socket_strerror ($msgsock) .
\n;
break;
}
/* Send instructions. */
$msg = \nWelcome to the PHP Test Server. \n .
To quit, type 'quit'. To shut down the server type 'shutdown'.\n;
socket_write($msgsock, $msg, strlen($msg));

do {

if (FALSE === ($buf = socket_read ($msgsock, 2048, PHP_NORMAL_READ))) 
{
echo socket_read() failed: reason:  . socket_strerror ($ret) 
. \n;
break 2;
}

/*
while(($tmpbuf = socket_read($msgsock, 512)) !== false) {
$buf .= $tmpbuf;
if(preg_match('\r\n\r\n$'s, $buf))
break;
}
*/
if (!$buf = trim ($buf)) {
continue;
}
if ($buf == 'quit') {
break;
}
if ($buf == 'shutdown') {
socket_close ($msgsock);
break 2;
}
$talkback = PHP: You said '$buf'.\n;
socket_write ($msgsock, $talkback, strlen ($talkback));
echo $buf\n;
} while (true);
socket_close ($msgsock);
} while (true);

socket_close ($sock);
?

this socket example script dies when ran from command line.
but only if i use PHP_NORMAL_READ parameter in socket_read function. it
gives this error:
PHP Warning:  socket_read() unable to read from socket [0]: The operation
comple
ted successfully.
 in C:\php43\serv.php on line 38
socket_read() failed: reason: Incorrect function.
if PHP_NORMAL_READ parameter isn't used, it works beautifully.
-- 
Edit bug report at http://bugs.php.net/?id=21409edit=1
-- 
Try a CVS snapshot: http://bugs.php.net/fix.php?id=21409r=trysnapshot
Fixed in CVS:   http://bugs.php.net/fix.php?id=21409r=fixedcvs
Fixed in release:   http://bugs.php.net/fix.php?id=21409r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=21409r=needtrace
Try newer version:  http://bugs.php.net/fix.php?id=21409r=oldversion
Not developer issue:http://bugs.php.net/fix.php?id=21409r=support
Expected behavior:  http://bugs.php.net/fix.php?id=21409r=notwrong
Not enough info:http://bugs.php.net/fix.php?id=21409r=notenoughinfo
Submitted twice:http://bugs.php.net/fix.php?id=21409r=submittedtwice
register_globals:   http://bugs.php.net/fix.php?id=21409r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=21409r=php3
Daylight Savings:   http://bugs.php.net/fix.php?id=21409r=dst
IIS Stability:  http://bugs.php.net/fix.php?id=21409r=isapi
Install GNU Sed:http://bugs.php.net/fix.php?id=21409r=gnused




#14237 [Opn-Bgs]: reference calls in some cases very slow

2003-01-04 Thread andrey
 ID:   14237
 Updated by:   [EMAIL PROTECTED]
 Reported By:  [EMAIL PROTECTED]
-Status:   Open
+Status:   Bogus
 Bug Type: Performance problem
 Operating System: i686-pc-linux-gnu
 PHP Version:  4.1.0
 New Comment:

 I modified the script a bit by adding var_dump(microtime())
around the function calls. The output :
With reference:
string(21) 0.58075200 1041701482
string(21) 0.20217700 1041701490
Without reference:
string(21) 0.20247500 1041701490
string(21) 0.20739800 1041701490

as everyone may see without reference is faster as it has to be
(according to some docs). I think that there is something wrong in the
way the script computes the time.
Ooops, I found it :
$tmp = explode(' ', microtime());
$measure['Start Reference']=(double)$tmp[0] + (double)$tmp[1];
the indexes are swapped must be
$measure['Start Reference']=(double)$tmp[1] + (double)$tmp[0];

Closing this.


Previous Comments:


[2002-01-31 05:12:55] [EMAIL PROTECTED]

I did some benchmark tests on loops and so that also delever some
strange results. 

See it run at: http://phpxpath.sourceforge.net/benchmark/phpBench.php 
Code at: http://phpxpath.sourceforge.net/benchmark/phpBench.php.txt



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

I think, this is an very annoying behavior of the zend engine and also
there are no warning or clue in the documentation.
Someone must change it.



[2001-12-12 20:06:28] [EMAIL PROTECTED]

That's a known issue with the current Zend Engine.

We could move it to a ZE feature request, but will it change anything
soon? I doubt ...



[2001-12-12 19:59:37] [EMAIL PROTECTED]

PHP Version updated to 4.1.0



[2001-12-12 19:58:57] [EMAIL PROTECTED]

Output from Linux Celeron 433/384MB/PHP 4.1.0/Apache 1.3.22.

Loopcount: 100
String size: 1048576
Time for function request with_reference   : 1.6308959722519 secs
Time for function request without_reference: 0.0011709928512573
secsexecution time of without_reference is 1393 times fast as
with_reference! 

There must be something wrong




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

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




#21209 [Fbk-Bgs]: mysql_error isn't returning connections problems.

2003-01-04 Thread georg
 ID:   21209
 Updated by:   [EMAIL PROTECTED]
 Reported By:  [EMAIL PROTECTED]
-Status:   Feedback
+Status:   Bogus
 Bug Type: MySQL related
 Operating System: Windows
 PHP Version:  4CVS-2002-12-26 (dev)
 New Comment:

Unless you use an outdated libmysql, or mysql wasn't installed property
or a valid (default connection) already exists, mysql_error() returns
an errormessage, even if the connection failed.


Previous Comments:


[2003-01-04 08:00:51] [EMAIL PROTECTED]

Michael note that the function states that it gives the error of the
last myqsl operation, but the note says on the page:

| Note: If the optional argument is specified the
| given link is used to retrieve the error message.
| If not, the last opened link is used. 

So it implies, that if the parameter is not given,
an opened connection is needed... So the documentation
also needs to be changed.

Please do not close this bug before the mysql_error
documentation is fixed.



[2003-01-04 05:23:49] [EMAIL PROTECTED]

Are you using the bundled version of MySQL, if not, which version?

I can't reproduce the bug in any of my systems.

Anyway changing this to a MySQL bug, and will see if it is verified.



[2003-01-03 23:54:27] [EMAIL PROTECTED]

The manual states that mysql_error() without arguments retrieves the
error text of the last recently used MySQL function - _not_ the last
opened connection.

And that's exactly what happens at least here on Linux (tested with
4.3.0 and 4.4.0-CVS as of today).

So if the example doesn't work on Windows, it is broken on Windows. Can
you try the example on its own, without your custom error handler?



[2003-01-03 20:37:16] [EMAIL PROTECTED]

That is not true.
Your code just produces a ``Could not connect: ''
here.

PHP Version 4.4.0-dev
System Windows NT localhost 5.1 build 2600
Build Date Dec 26 2002 20:10:08
Server API Apache



[2003-01-03 17:25:23] [EMAIL PROTECTED]

Actually with 

?php
@mysql_connect(localhost, mysql_user, mysql_password) or
die(Could not connect:  . mysql_error());
?

It returns:

Could not connect: Access denied for user: 'mysql_user@localhost'
(Using password: YES)

so using mysql_error() here is just fine, it also manages the
connections' error.

Thank you for your report.



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

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




#20677 [Opn-Bgs]: Compile fail w/DB2 on AIX: Macro cannot be redefined

2003-01-04 Thread kalowsky
 ID:   20677
 Updated by:   [EMAIL PROTECTED]
 Reported By:  [EMAIL PROTECTED]
-Status:   Open
+Status:   Bogus
 Bug Type: ODBC related
 Operating System: AIX 5.1L
 PHP Version:  4CVS-2002-11-27 (dev)
 New Comment:

Okay I believe this wasn't a PHP error on the compile issue at all
since the -L space is nowhere to be found in the config.m4 for DB2. 
Marking this as bogus for that part.

As far as the xbithack_handler section goes, you may want to open a new
bug with this in mind.


Previous Comments:


[2003-01-02 09:37:23] [EMAIL PROTECTED]

(To answer the question previously posed, yes, I got the error with
JUST the ibm-db2 option on the configure line)
However
Got some help from an IBM compiler expert. Found two environment
problems:
1) space between -L and the parameter in LDFLAGS
2) no ANSI setting on the command line
The following environment settings allow the compile to complete
successfully:
export CC=xlc_r -qlanglvl=extended -qansialias -O3 -qstrict
-qoptimize=3 -qmaxmem=8192 
export CXX=xlC_r -O3 -qstrict -qoptimize=3 -qmaxmem=8192
export CFLAGS=-DEAPI -I/usr/local/include -v 
export LDFLAGS=-L/usr/local/lib 
export CPPFLAGS=$CFLAGS
export CXXFLAGS=$CFLAGS
then...
./configure --with-apxs=/opt/freeware/apache/bin/apxs \
--enable-track-vars --enable-versioning \
--with-ibm-db2=/home/db2inst1/sqllib --sysconfdir=/etc \
--enable-force-cgi-redirect --enable-c9x-inline\
--with-mysql=/opt/freeware/
make clean
make
make install
Compiles! Works as a command line interpreter!
Coredumps as an apache module (d'oh)
/usr/sbin/apachectl[163]: 29560 Segmentation fault(coredump)
# dbx /opt/freeware/apache/bin/httpd core
Type 'help' for help.
reading symbolic information ...
[using memory image in core]

Segmentation fault in php_xbithack_handler_52_28 at 0xd4d68cd4 ($t1)
0xd4d68cd4 (php_xbithack_handler_52_28+0xdc) 800clwz  
r0,0x0(r12)
(dbx) where 
php_xbithack_handler_52_28() at 0xd4d68cd4
php_create_dir() at 0xd4d675b8
ap_single_module_configure() at 0x1000eae0
load_module() at 0x10043a8c
invoke_cmd() at 0x1000b414
ap_handle_command() at 0x1000cdfc
ap_srm_command_loop() at 0x1000eb5c
ap_process_resource_config() at 0x1000d7e0
ap_read_config() at 0x1000e9c4
http_main.main() at 0x1740
(dbx)



[2002-12-05 19:53:11] [EMAIL PROTECTED]

Okay so when you do a ./configure --with-ibm-db2=/path you get this
error?



[2002-12-03 14:50:59] [EMAIL PROTECTED]

This happens only with --with-ibm-db2 option in the configure.
When I remove this option and the compile completes, although theres
quite a few 'function argument assignment between types const unsigned
char* and char* is not allowed'
type errors, they don't prevent the make



[2002-12-02 23:28:36] [EMAIL PROTECTED]

Well the CCFLAG isn't set inside of the ODBC config.m4.

Does this happen with only the --with-ibm-db2 option choosen?  Aka
whats the minimal amount of configure options that causes this to not
happen.

I don't see anything glaringly wrong... the only thing that comes to
mind is the ODBCVER issue which hasn't been a problem in the past.



[2002-12-02 18:57:36] [EMAIL PROTECTED]

Reclassified as ODBC related problem since that's where the bug is..




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

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




#21410 [NEW]: filetype() should not print a warning on failure

2003-01-04 Thread ari
From: [EMAIL PROTECTED]
Operating system: Red Hat Linux 7.3
PHP version:  4.3.0
PHP Bug Type: Filesystem function related
Bug description:  filetype() should not print a warning on failure

In the filetype() doc, it says the function returns FALSE on error, but
says nothing about a warning being output if it fails. In 4.3.0, A warning
is printed:

Warning: filetype() [function.filetype]: Lstat failed for (null) (errno=2
- No such file or directory) in
/home/alienhosting/public_html/webmail/plugins/administrator/options.php
on line 431
-- 
Edit bug report at http://bugs.php.net/?id=21410edit=1
-- 
Try a CVS snapshot: http://bugs.php.net/fix.php?id=21410r=trysnapshot
Fixed in CVS:   http://bugs.php.net/fix.php?id=21410r=fixedcvs
Fixed in release:   http://bugs.php.net/fix.php?id=21410r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=21410r=needtrace
Try newer version:  http://bugs.php.net/fix.php?id=21410r=oldversion
Not developer issue:http://bugs.php.net/fix.php?id=21410r=support
Expected behavior:  http://bugs.php.net/fix.php?id=21410r=notwrong
Not enough info:http://bugs.php.net/fix.php?id=21410r=notenoughinfo
Submitted twice:http://bugs.php.net/fix.php?id=21410r=submittedtwice
register_globals:   http://bugs.php.net/fix.php?id=21410r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=21410r=php3
Daylight Savings:   http://bugs.php.net/fix.php?id=21410r=dst
IIS Stability:  http://bugs.php.net/fix.php?id=21410r=isapi
Install GNU Sed:http://bugs.php.net/fix.php?id=21410r=gnused




#21406 [Fbk-Opn]: Appending same filter twice causes segfault

2003-01-04 Thread pollita
 ID:   21406
 Updated by:   [EMAIL PROTECTED]
 Reported By:  [EMAIL PROTECTED]
-Status:   Feedback
+Status:   Open
 Bug Type: Filesystem function related
 Operating System: linux
 PHP Version:  4CVS-2003-01-03 (dev)
 New Comment:

The backtrace tottalled up to over 11MB so I've put it on a webserver
for you to grab.  I also made a gzip -9 version to save downloading
time.

http://169.229.139.97/backtrace  (~11.8MB)
http://169.229.139.97/backtrace.gz   (~530KB)

I can save you even that much downloading though by telling you that it
seems the execution just goes into an infinite loop calling:

#1122 0x080b403a in userfilter_flush (stream=0x817ace4,
thisfilter=0x817adb4, closing=1) at
/home/sarag/cvs/php4/ext/standard/user_filters.c:255
#1123 0x080b3cce in zif_user_filter_flush (ht=1,
return_value=0x82aeaf4, this_ptr=0x817ae34, return_value_used=1) at
/home/sarag/cvs/php4/ext/standard/user_filters.c:107
#1124 0x080ed80c in call_user_function_ex (function_table=0x817a850,
object_pp=0xbf826890, function_name=0xbf8268a0,
retval_ptr_ptr=0xbf826894, param_count=1,
params=0xbf826898, no_separation=0, symbol_table=0x0) at
/home/sarag/cvs/php4/Zend/zend_execute_API.c:584

The pointers change, but the commands and the their sequence remain the
same...over...and over...and over...and over...

An early morning guess would say that the filterhead chain isn't being
setup properly.


Though as a slight aside, why does the fops structure show eof/dtor
methods when user_filter.c calls them oncreate/onclose ?  When are
oncreate/onclose called?


Previous Comments:


[2003-01-04 04:41:10] [EMAIL PROTECTED]

Thank you for this bug report. To properly diagnose the problem, we
need a backtrace to see what is happening behind the scenes. To
find out how to generate a backtrace, please read
http://bugs.php.net/bugs-generating-backtrace.php

Once you have generated a backtrace, please submit it to this bug
report and change the status back to Open. Thank you for helping
us make PHP better.

Always include a backtrace in reports of segfaults or bus errors (it
saves a good 15 minutes or more of my time!)
Thanks!



[2003-01-03 22:37:45] [EMAIL PROTECTED]

Correction... Any two filters:

stream_filter_append($fp, rot13);
stream_filter_append($fp, rot13);

or

stream_filter_append($fp, rot13);
stream_filter_append($fp, default);

or

stream_filter_append($fp, default);
stream_filter_append($fp, default);

all produce the same segfault when fclose()ing (presumably during the
calls to write() or flush() in the filters).

Note: default was previously registered using:
stream_register_filter(default, php_user_filter);



[2003-01-03 22:30:11] [EMAIL PROTECTED]

The following code works fine when stream_filter_append() is called
only once.  Adding the second call causes a segfault when fclose() is
called.


?php

class rot13_filter extends php_user_filter {
  function read($length) {
$tempstr = parent::read($length);
for($i = 0; $i  strlen($tempstr); $i++)
  if (($tempstr[$i] = 'A' AND $tempstr[$i] = 'M') OR
  ($tempstr[$i] = 'a' AND $tempstr[$i] = 'm')) $tempstr[$i] =
chr(ord($tempstr[$i]) + 13);
  else if (($tempstr[$i] = 'N' AND $tempstr[$i] = 'Z') OR
   ($tempstr[$i] = 'n' AND $tempstr[$i] = 'z'))
$tempstr[$i] = chr(ord($tempstr[$i]) - 13);
return $tempstr;
  }

  function write($data) {
for($i = 0; $i  strlen($data); $i++)
  if (($data[$i] = 'A' AND $data[$i] = 'M') OR
  ($data[$i] = 'a' AND $data[$i] = 'm')) $data[$i] =
chr(ord($data[$i]) + 13);
  else if (($data[$i] = 'N' AND $data[$i] = 'Z') OR
   ($data[$i] = 'n' AND $data[$i] = 'z')) $data[$i] =
chr(ord($data[$i]) - 13);
return parent::write($data);
  }
}

stream_register_filter(rot13, rot13_filter)
or die(Failed to register filter);

$fp = fopen(foo-bar.txt, r);

stream_filter_append($fp, rot13);
stream_filter_append($fp, rot13);

fwrite($fp, Line1\n);
fwrite($fp, Word - 2\n);
fwrite($fp, Easy As 123\n);

fclose($fp);

?





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




#21209 [Bgs]: Error in the examples for mysql_fetch_assoc and mysql_fetch_array

2003-01-04 Thread kyrael
 ID:   21209
 User updated by:  [EMAIL PROTECTED]
-Summary:  mysql_error isn't returning connections problems.
 Reported By:  [EMAIL PROTECTED]
 Status:   Bogus
 Bug Type: MySQL related
 Operating System: Windows
 PHP Version:  4CVS-2002-12-26 (dev)
 New Comment:

Unless you use an outdated libmysql, or mysql wasn't installed
property
or a valid (default connection) already exists, mysql_error() returns
an
errormessage, even if the connection failed.

Ah, thats the problem. A MySQL connection is established in the prepend
file.

Still, that behaviour doesn't make not much sense to me. (Only return
errors if no connections are already established)

And the manual clearly states that mysql_error uses only open
connections, so that should be fixed as well.


Previous Comments:


[2003-01-04 12:23:59] [EMAIL PROTECTED]

Unless you use an outdated libmysql, or mysql wasn't installed property
or a valid (default connection) already exists, mysql_error() returns
an errormessage, even if the connection failed.



[2003-01-04 08:00:51] [EMAIL PROTECTED]

Michael note that the function states that it gives the error of the
last myqsl operation, but the note says on the page:

| Note: If the optional argument is specified the
| given link is used to retrieve the error message.
| If not, the last opened link is used. 

So it implies, that if the parameter is not given,
an opened connection is needed... So the documentation
also needs to be changed.

Please do not close this bug before the mysql_error
documentation is fixed.



[2003-01-04 05:23:49] [EMAIL PROTECTED]

Are you using the bundled version of MySQL, if not, which version?

I can't reproduce the bug in any of my systems.

Anyway changing this to a MySQL bug, and will see if it is verified.



[2003-01-03 23:54:27] [EMAIL PROTECTED]

The manual states that mysql_error() without arguments retrieves the
error text of the last recently used MySQL function - _not_ the last
opened connection.

And that's exactly what happens at least here on Linux (tested with
4.3.0 and 4.4.0-CVS as of today).

So if the example doesn't work on Windows, it is broken on Windows. Can
you try the example on its own, without your custom error handler?



[2003-01-03 20:37:16] [EMAIL PROTECTED]

That is not true.
Your code just produces a ``Could not connect: ''
here.

PHP Version 4.4.0-dev
System Windows NT localhost 5.1 build 2600
Build Date Dec 26 2002 20:10:08
Server API Apache



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

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




#21414 [NEW]: Your site search is broken

2003-01-04 Thread traveljason
From: [EMAIL PROTECTED]
Operating system: Yours
PHP version:  4.3.0
PHP Bug Type: Scripting Engine problem
Bug description:  Your site search is broken

I tried to do a search on your site and got this error 
Parse error: parse error in /local/Web/sites/phpweb/search.php on line
233

Nice to see that I'm not the only one getting parse errors.

Hope this helps
Jason
-- 
Edit bug report at http://bugs.php.net/?id=21414edit=1
-- 
Try a CVS snapshot: http://bugs.php.net/fix.php?id=21414r=trysnapshot
Fixed in CVS:   http://bugs.php.net/fix.php?id=21414r=fixedcvs
Fixed in release:   http://bugs.php.net/fix.php?id=21414r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=21414r=needtrace
Try newer version:  http://bugs.php.net/fix.php?id=21414r=oldversion
Not developer issue:http://bugs.php.net/fix.php?id=21414r=support
Expected behavior:  http://bugs.php.net/fix.php?id=21414r=notwrong
Not enough info:http://bugs.php.net/fix.php?id=21414r=notenoughinfo
Submitted twice:http://bugs.php.net/fix.php?id=21414r=submittedtwice
register_globals:   http://bugs.php.net/fix.php?id=21414r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=21414r=php3
Daylight Savings:   http://bugs.php.net/fix.php?id=21414r=dst
IIS Stability:  http://bugs.php.net/fix.php?id=21414r=isapi
Install GNU Sed:http://bugs.php.net/fix.php?id=21414r=gnused




#21414 [Opn-Bgs]: Your site search is broken

2003-01-04 Thread nicos
 ID:   21414
 Updated by:   [EMAIL PROTECTED]
 Reported By:  [EMAIL PROTECTED]
-Status:   Open
+Status:   Bogus
 Bug Type: Scripting Engine problem
 Operating System: Yours
 PHP Version:  4.3.0
 New Comment:

Please do not submit the same bug more than once. An existing
bug report already describes this very problem. Even if you feel
that your issue is somewhat different, the resolution is likely
to be the same. Because of this, we hope you add your comments
to the existing bug instead.

Thank you for your interest in PHP.


Previous Comments:


[2003-01-04 14:21:04] [EMAIL PROTECTED]

I tried to do a search on your site and got this error 
Parse error: parse error in /local/Web/sites/phpweb/search.php on line
233

Nice to see that I'm not the only one getting parse errors.

Hope this helps
Jason




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




#21416 [NEW]: Session variables timeout prematurely

2003-01-04 Thread maladil
From: [EMAIL PROTECTED]
Operating system: Redhat 7.3
PHP version:  4.2.1
PHP Bug Type: Session related
Bug description:  Session variables timeout prematurely

I am having problems getting simple $_SESSION[] variable to go from one
page to the next.  I have created an extremely stripped down version of
the rest of my code and it can be reached at
http://gcfc.net/testsite1/docs/misc/one.php

our php and server settings are here
http://gcfc.net/testsite1/debug.php

Simply put, one.php sets a session variable.  two.php and three.php simply
check to see if that session variable is set.  If you go from one.php to
two.php and wait for 60 seconds then the session variable is no longer
present, but the session id is still intact.  This happens on IE and
Netscape.  

I have included my code below for the first 2
pages...

?php
//one.php
session_start();
$_SESSION['person']=Bob;
?
htmlheadtitleSession Test page 1/title/head
body
h1You are at page 1/h1
br
a href=two.phpPage 2/abr
a href=three.phpPage 3/a
brSession variable person is 
?php echo $_SESSION['person']; ?
brSession ID = ?php echo session_id(); ?

/body
/html


?php session_start(); ?
htmlheadtitleSession Test page 2/title/headbody
h1You are at page 2/h1br
a href=one.phpPage 1/abr
a href=three.phpPage 3/abr
a href=four.phpPage 4, briefly/a
brSession variable person is 
?php echo $_SESSION['person']; ?
brSession ID = ?php echo session_id(); ?
/body
/html


Thanks
Jason
[EMAIL PROTECTED]
-- 
Edit bug report at http://bugs.php.net/?id=21416edit=1
-- 
Try a CVS snapshot: http://bugs.php.net/fix.php?id=21416r=trysnapshot
Fixed in CVS:   http://bugs.php.net/fix.php?id=21416r=fixedcvs
Fixed in release:   http://bugs.php.net/fix.php?id=21416r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=21416r=needtrace
Try newer version:  http://bugs.php.net/fix.php?id=21416r=oldversion
Not developer issue:http://bugs.php.net/fix.php?id=21416r=support
Expected behavior:  http://bugs.php.net/fix.php?id=21416r=notwrong
Not enough info:http://bugs.php.net/fix.php?id=21416r=notenoughinfo
Submitted twice:http://bugs.php.net/fix.php?id=21416r=submittedtwice
register_globals:   http://bugs.php.net/fix.php?id=21416r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=21416r=php3
Daylight Savings:   http://bugs.php.net/fix.php?id=21416r=dst
IIS Stability:  http://bugs.php.net/fix.php?id=21416r=isapi
Install GNU Sed:http://bugs.php.net/fix.php?id=21416r=gnused




#21414 [Bgs]: Your site search is broken

2003-01-04 Thread traveljason
 ID:   21414
 User updated by:  [EMAIL PROTECTED]
 Reported By:  [EMAIL PROTECTED]
 Status:   Bogus
 Bug Type: Scripting Engine problem
 Operating System: Yours
 PHP Version:  4.3.0
 New Comment:

This was not at all bogus.  I tried to do a search for anything ...
started with looking for session info and then tried other things under
your whole site using IE6, and got the listed error.  I have since
checked, and it looks like what ever it was, it is fixed now.  However
I wasn't able to search for at least 5 minutes.  My guess is that
someone was doing site maint and I happened to be trying that function
then.
Jason


Previous Comments:


[2003-01-04 14:31:47] [EMAIL PROTECTED]

Please do not submit the same bug more than once. An existing
bug report already describes this very problem. Even if you feel
that your issue is somewhat different, the resolution is likely
to be the same. Because of this, we hope you add your comments
to the existing bug instead.

Thank you for your interest in PHP.



[2003-01-04 14:21:04] [EMAIL PROTECTED]

I tried to do a search on your site and got this error 
Parse error: parse error in /local/Web/sites/phpweb/search.php on line
233

Nice to see that I'm not the only one getting parse errors.

Hope this helps
Jason




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




#21416 [Opn-Fbk]: Session variables timeout prematurely

2003-01-04 Thread nicos
 ID:   21416
 Updated by:   [EMAIL PROTECTED]
 Reported By:  [EMAIL PROTECTED]
-Status:   Open
+Status:   Feedback
 Bug Type: Session related
 Operating System: Redhat 7.3
 PHP Version:  4.2.1
 New Comment:

Please try using this CVS snapshot:

  http://snaps.php.net/php4-latest.tar.gz
 
For Windows:
 
  http://snaps.php.net/win32/php4-win32-latest.zip




Previous Comments:


[2003-01-04 14:44:29] [EMAIL PROTECTED]

I am having problems getting simple $_SESSION[] variable to go from one
page to the next.  I have created an extremely stripped down version of
the rest of my code and it can be reached at
http://gcfc.net/testsite1/docs/misc/one.php

our php and server settings are here
http://gcfc.net/testsite1/debug.php

Simply put, one.php sets a session variable.  two.php and three.php
simply check to see if that session variable is set.  If you go from
one.php to two.php and wait for 60 seconds then the session variable is
no longer present, but the session id is still intact.  This happens on
IE and Netscape.  

I have included my code below for the first 2
pages...

?php
//one.php
session_start();
$_SESSION['person']=Bob;
?
htmlheadtitleSession Test page 1/title/head
body
h1You are at page 1/h1
br
a href=two.phpPage 2/abr
a href=three.phpPage 3/a
brSession variable person is 
?php echo $_SESSION['person']; ?
brSession ID = ?php echo session_id(); ?

/body
/html


?php session_start(); ?
htmlheadtitleSession Test page 2/title/headbody
h1You are at page 2/h1br
a href=one.phpPage 1/abr
a href=three.phpPage 3/abr
a href=four.phpPage 4, briefly/a
brSession variable person is 
?php echo $_SESSION['person']; ?
brSession ID = ?php echo session_id(); ?
/body
/html


Thanks
Jason
[EMAIL PROTECTED]




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




#21416 [Com]: Session variables timeout prematurely

2003-01-04 Thread maladil
 ID:   21416
 Comment by:   [EMAIL PROTECTED]
 Reported By:  [EMAIL PROTECTED]
 Status:   Feedback
 Bug Type: Session related
 Operating System: Redhat 7.3
 PHP Version:  4.2.1
 New Comment:

I suggest copying the link into your browser to check this out.  I
clicked on the link from the ticket and the $_SESSION variable won't
appear on any page but one.php, however if you copy the link into the
browser then you can still see the variable for about 45 seconds until
it seems to time out.
Thanks,
Jason


Previous Comments:


[2003-01-04 14:50:52] [EMAIL PROTECTED]

Please try using this CVS snapshot:

  http://snaps.php.net/php4-latest.tar.gz
 
For Windows:
 
  http://snaps.php.net/win32/php4-win32-latest.zip





[2003-01-04 14:44:29] [EMAIL PROTECTED]

I am having problems getting simple $_SESSION[] variable to go from one
page to the next.  I have created an extremely stripped down version of
the rest of my code and it can be reached at
http://gcfc.net/testsite1/docs/misc/one.php

our php and server settings are here
http://gcfc.net/testsite1/debug.php

Simply put, one.php sets a session variable.  two.php and three.php
simply check to see if that session variable is set.  If you go from
one.php to two.php and wait for 60 seconds then the session variable is
no longer present, but the session id is still intact.  This happens on
IE and Netscape.  

I have included my code below for the first 2
pages...

?php
//one.php
session_start();
$_SESSION['person']=Bob;
?
htmlheadtitleSession Test page 1/title/head
body
h1You are at page 1/h1
br
a href=two.phpPage 2/abr
a href=three.phpPage 3/a
brSession variable person is 
?php echo $_SESSION['person']; ?
brSession ID = ?php echo session_id(); ?

/body
/html


?php session_start(); ?
htmlheadtitleSession Test page 2/title/headbody
h1You are at page 2/h1br
a href=one.phpPage 1/abr
a href=three.phpPage 3/abr
a href=four.phpPage 4, briefly/a
brSession variable person is 
?php echo $_SESSION['person']; ?
brSession ID = ?php echo session_id(); ?
/body
/html


Thanks
Jason
[EMAIL PROTECTED]




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




#21416 [Com]: Session variables timeout prematurely

2003-01-04 Thread maladil
 ID:   21416
 Comment by:   [EMAIL PROTECTED]
 Reported By:  [EMAIL PROTECTED]
 Status:   Feedback
 Bug Type: Session related
 Operating System: Redhat 7.3
 PHP Version:  4.2.1
 New Comment:

I am not able to upgrade to a newer version of php.  I have contacted
our host to do so, but they are not going to for some reason.
Thanks,
Jason


Previous Comments:


[2003-01-04 14:54:46] [EMAIL PROTECTED]

I suggest copying the link into your browser to check this out.  I
clicked on the link from the ticket and the $_SESSION variable won't
appear on any page but one.php, however if you copy the link into the
browser then you can still see the variable for about 45 seconds until
it seems to time out.
Thanks,
Jason



[2003-01-04 14:50:52] [EMAIL PROTECTED]

Please try using this CVS snapshot:

  http://snaps.php.net/php4-latest.tar.gz
 
For Windows:
 
  http://snaps.php.net/win32/php4-win32-latest.zip





[2003-01-04 14:44:29] [EMAIL PROTECTED]

I am having problems getting simple $_SESSION[] variable to go from one
page to the next.  I have created an extremely stripped down version of
the rest of my code and it can be reached at
http://gcfc.net/testsite1/docs/misc/one.php

our php and server settings are here
http://gcfc.net/testsite1/debug.php

Simply put, one.php sets a session variable.  two.php and three.php
simply check to see if that session variable is set.  If you go from
one.php to two.php and wait for 60 seconds then the session variable is
no longer present, but the session id is still intact.  This happens on
IE and Netscape.  

I have included my code below for the first 2
pages...

?php
//one.php
session_start();
$_SESSION['person']=Bob;
?
htmlheadtitleSession Test page 1/title/head
body
h1You are at page 1/h1
br
a href=two.phpPage 2/abr
a href=three.phpPage 3/a
brSession variable person is 
?php echo $_SESSION['person']; ?
brSession ID = ?php echo session_id(); ?

/body
/html


?php session_start(); ?
htmlheadtitleSession Test page 2/title/headbody
h1You are at page 2/h1br
a href=one.phpPage 1/abr
a href=three.phpPage 3/abr
a href=four.phpPage 4, briefly/a
brSession variable person is 
?php echo $_SESSION['person']; ?
brSession ID = ?php echo session_id(); ?
/body
/html


Thanks
Jason
[EMAIL PROTECTED]




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




#21416 [Fbk-Opn]: Session variables timeout prematurely

2003-01-04 Thread nicos
 ID:   21416
 Updated by:   [EMAIL PROTECTED]
 Reported By:  [EMAIL PROTECTED]
-Status:   Feedback
+Status:   Open
 Bug Type: Session related
 Operating System: Redhat 7.3
 PHP Version:  4.2.1
 New Comment:

Well I can verify your bug but it has probably been fixed in PHP4.3.0.
So you should really ask your host to really do it.

Thank you.


Previous Comments:


[2003-01-04 15:00:14] [EMAIL PROTECTED]

I am not able to upgrade to a newer version of php.  I have contacted
our host to do so, but they are not going to for some reason.
Thanks,
Jason



[2003-01-04 14:54:46] [EMAIL PROTECTED]

I suggest copying the link into your browser to check this out.  I
clicked on the link from the ticket and the $_SESSION variable won't
appear on any page but one.php, however if you copy the link into the
browser then you can still see the variable for about 45 seconds until
it seems to time out.
Thanks,
Jason



[2003-01-04 14:50:52] [EMAIL PROTECTED]

Please try using this CVS snapshot:

  http://snaps.php.net/php4-latest.tar.gz
 
For Windows:
 
  http://snaps.php.net/win32/php4-win32-latest.zip





[2003-01-04 14:44:29] [EMAIL PROTECTED]

I am having problems getting simple $_SESSION[] variable to go from one
page to the next.  I have created an extremely stripped down version of
the rest of my code and it can be reached at
http://gcfc.net/testsite1/docs/misc/one.php

our php and server settings are here
http://gcfc.net/testsite1/debug.php

Simply put, one.php sets a session variable.  two.php and three.php
simply check to see if that session variable is set.  If you go from
one.php to two.php and wait for 60 seconds then the session variable is
no longer present, but the session id is still intact.  This happens on
IE and Netscape.  

I have included my code below for the first 2
pages...

?php
//one.php
session_start();
$_SESSION['person']=Bob;
?
htmlheadtitleSession Test page 1/title/head
body
h1You are at page 1/h1
br
a href=two.phpPage 2/abr
a href=three.phpPage 3/a
brSession variable person is 
?php echo $_SESSION['person']; ?
brSession ID = ?php echo session_id(); ?

/body
/html


?php session_start(); ?
htmlheadtitleSession Test page 2/title/headbody
h1You are at page 2/h1br
a href=one.phpPage 1/abr
a href=three.phpPage 3/abr
a href=four.phpPage 4, briefly/a
brSession variable person is 
?php echo $_SESSION['person']; ?
brSession ID = ?php echo session_id(); ?
/body
/html


Thanks
Jason
[EMAIL PROTECTED]




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




#21410 [Csd-Opn]: filetype() shows 'dir' for bogus files on windows

2003-01-04 Thread philip
 ID:   21410
 Updated by:   [EMAIL PROTECTED]
-Summary:  filetype() should not print a warning on failure
 Reported By:  [EMAIL PROTECTED]
-Status:   Closed
+Status:   Open
-Bug Type: Documentation problem
+Bug Type: Filesystem function related
-Operating System: Red Hat Linux 7.3
+Operating System: win
 PHP Version:  4.3.0
 New Comment:

I experience this E_WARNING in linux but in Windows I always get the
following with 4.3.0/win2000:

var_dump( filetype(null) ); // string(3) dir

Which seems odd.  Basically instead of the E_WARNING error it shows the
bogus file as a dir.  This happens with CGI, CLI, and Apache2.

Marking this as a filesystem bug.


Previous Comments:


[2003-01-04 14:43:23] [EMAIL PROTECTED]

The documentation now warns about the warnings :-)

Thank you for your report.



[2003-01-04 14:37:31] [EMAIL PROTECTED]

Changing this bug to a documentation problem.

The warning are now expected for 2 cases: when stat or lstat have
failed and when the file type is unknown.

I'm working on fixing the documentation.



[2003-01-04 13:29:51] [EMAIL PROTECTED]

In the filetype() doc, it says the function returns FALSE on error, but
says nothing about a warning being output if it fails. In 4.3.0, A
warning is printed:

Warning: filetype() [function.filetype]: Lstat failed for (null)
(errno=2 - No such file or directory) in
/home/alienhosting/public_html/webmail/plugins/administrator/options.php
on line 431




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




#14484 [Com]: apache2 has not loaded php module

2003-01-04 Thread torsten
 ID:   14484
 Comment by:   [EMAIL PROTECTED]
 Reported By:  [EMAIL PROTECTED]
 Status:   Closed
 Bug Type: Apache2 related
 Operating System: Linux
 PHP Version:  4.1.0
 New Comment:

This problem is related to mod_perl, at leased on my server.
as soon I enable mod_perl/1.99_07-dev Perl/v5.8.0 DAV/2 per httpd.conf
php drops out.
there must be a problem whith mod_perl and I just try to figure this
out at the moment


Previous Comments:


[2002-01-23 11:10:32] [EMAIL PROTECTED]

be careful the configuration change for Apache 2 you must use filter !

watch README from Apache2filter
http://cvs.php.net/co.php/php4/sapi/apache2filter/README?r=1.8

you must replace :

LoadModule php4_module modules/libphp4.so
AddType application/x-httpd-php .php

By

LoadModule php4_module modules/libphp4.so
Files *.php
SetOutputFilter PHP
SetInputFilter PHP
/Files




[2002-01-18 09:02:27] [EMAIL PROTECTED]

I have exactly the same problem with php 4.1.1 with a lot simpler
configure line. every compiles well but apache 2 start without loading
the module



[2002-01-15 14:00:17] [EMAIL PROTECTED]

I have a same problem - Apache 2.0.28 + php4.1.1, linux kernel 2.4.10.



[2001-12-13 07:22:54] [EMAIL PROTECTED]

apache-2.0.28
php-4.1 - configuration line:
configure  --prefix=/opt --with-apxs2=/opt/apache2/bin/apxs
--with-config-file-path=/opt/apache2/bin/conf 
--with-zlib-dir=/usr --with-zlib=/usr --enable-bcmath --with-bz2=/usr
--enable-calendar --with-curl=/usr 
--with-gdbm --enable-dbase --enable-dbx --enable-dio --with-dom=/usr
--enable-filepro --enable-ftp 
--with-gd=/usr --enable-gd-native-ttf --with-jpeg-dir=/usr
--with-png-dir=/usr --with-ttf=/usr 
--with-t1lib=/usr --with-gettext=/usr --with-gmp --with-imap=/usr
--with-ldap=/usr --with-mysql=/usr 
--with-unixODBC=/usr --enable-overload --with-pdflib=/usr/local
--with-jpeg-dir=/usr --with-png-dir=/usr 
--with-tiff-dir=/usr --enable-sockets --enable-sysvsem --enable-sysvshm
--enable-wddx --with-expat-dir=/usr 
--enable-xslt --with-xslt-sablot --with-expat-dir=/usr --enable-yp

in httpd.conf:
LoadModule php4_module modules/libphp4.so
AddType application/x-httpd-php .php
AddType application/x-httpd-php-source .phps

if I run apache, the PHP module isn't loaded (server-info,
server-status)






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




#21410 [Opn]: filetype() shows 'dir' for bogus files on windows

2003-01-04 Thread philip
 ID:   21410
 Updated by:   [EMAIL PROTECTED]
 Reported By:  [EMAIL PROTECTED]
 Status:   Open
 Bug Type: Filesystem function related
 Operating System: win
 PHP Version:  4.3.0
 New Comment:

To be clearer:  This happens with any bogus information, whether it be
a string, NULL, or otherwise.

Of course passing no arguments still results in the standard wrong
parameter count error.


Previous Comments:


[2003-01-04 15:12:16] [EMAIL PROTECTED]

I experience this E_WARNING in linux but in Windows I always get the
following with 4.3.0/win2000:

var_dump( filetype(null) ); // string(3) dir

Which seems odd.  Basically instead of the E_WARNING error it shows the
bogus file as a dir.  This happens with CGI, CLI, and Apache2.

Marking this as a filesystem bug.



[2003-01-04 14:43:23] [EMAIL PROTECTED]

The documentation now warns about the warnings :-)

Thank you for your report.



[2003-01-04 14:37:31] [EMAIL PROTECTED]

Changing this bug to a documentation problem.

The warning are now expected for 2 cases: when stat or lstat have
failed and when the file type is unknown.

I'm working on fixing the documentation.



[2003-01-04 13:29:51] [EMAIL PROTECTED]

In the filetype() doc, it says the function returns FALSE on error, but
says nothing about a warning being output if it fails. In 4.3.0, A
warning is printed:

Warning: filetype() [function.filetype]: Lstat failed for (null)
(errno=2 - No such file or directory) in
/home/alienhosting/public_html/webmail/plugins/administrator/options.php
on line 431




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




#21416 [Opn]: Session variables timeout prematurely

2003-01-04 Thread maladil
 ID:   21416
 User updated by:  [EMAIL PROTECTED]
-Reported By:  [EMAIL PROTECTED]
+Reported By:  [EMAIL PROTECTED]
 Status:   Open
 Bug Type: Session related
 Operating System: Redhat 7.3
 PHP Version:  4.2.1
 New Comment:

my email address was wrong, sorry.

I have tried to persuade my host, but they will not budge, so what can
I do in the mean time as a work around?

[EMAIL PROTECTED]


Previous Comments:


[2003-01-04 15:04:13] [EMAIL PROTECTED]

Well I can verify your bug but it has probably been fixed in PHP4.3.0.
So you should really ask your host to really do it.

Thank you.



[2003-01-04 15:00:14] [EMAIL PROTECTED]

I am not able to upgrade to a newer version of php.  I have contacted
our host to do so, but they are not going to for some reason.
Thanks,
Jason



[2003-01-04 14:54:46] [EMAIL PROTECTED]

I suggest copying the link into your browser to check this out.  I
clicked on the link from the ticket and the $_SESSION variable won't
appear on any page but one.php, however if you copy the link into the
browser then you can still see the variable for about 45 seconds until
it seems to time out.
Thanks,
Jason



[2003-01-04 14:50:52] [EMAIL PROTECTED]

Please try using this CVS snapshot:

  http://snaps.php.net/php4-latest.tar.gz
 
For Windows:
 
  http://snaps.php.net/win32/php4-win32-latest.zip





[2003-01-04 14:44:29] [EMAIL PROTECTED]

I am having problems getting simple $_SESSION[] variable to go from one
page to the next.  I have created an extremely stripped down version of
the rest of my code and it can be reached at
http://gcfc.net/testsite1/docs/misc/one.php

our php and server settings are here
http://gcfc.net/testsite1/debug.php

Simply put, one.php sets a session variable.  two.php and three.php
simply check to see if that session variable is set.  If you go from
one.php to two.php and wait for 60 seconds then the session variable is
no longer present, but the session id is still intact.  This happens on
IE and Netscape.  

I have included my code below for the first 2
pages...

?php
//one.php
session_start();
$_SESSION['person']=Bob;
?
htmlheadtitleSession Test page 1/title/head
body
h1You are at page 1/h1
br
a href=two.phpPage 2/abr
a href=three.phpPage 3/a
brSession variable person is 
?php echo $_SESSION['person']; ?
brSession ID = ?php echo session_id(); ?

/body
/html


?php session_start(); ?
htmlheadtitleSession Test page 2/title/headbody
h1You are at page 2/h1br
a href=one.phpPage 1/abr
a href=three.phpPage 3/abr
a href=four.phpPage 4, briefly/a
brSession variable person is 
?php echo $_SESSION['person']; ?
brSession ID = ?php echo session_id(); ?
/body
/html


Thanks
Jason
[EMAIL PROTECTED]




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




#21417 [NEW]: PHP is garbage

2003-01-04 Thread phil_eccleston
From: [EMAIL PROTECTED]
Operating system: win2000 advanceddatacluster
PHP version:  4.3.0
PHP Bug Type: Unknown/Other Function
Bug description:  PHP is garbage

why does php never work? I can get basic scrpts working but anything of any
real pupose never works, I feel like I am wasting my time, your inablity
to make a working version is frustrating, this scripting language is a
joke, after wasting thousands of dollars trying to get this script engine
working, I have to drop all attemps to even try, I will go back to
developing my asp and xml scripts that actually work back to the
foreground of my secure web pages and forms.

p.s. thanks for wasting my time assholes
-- 
Edit bug report at http://bugs.php.net/?id=21417edit=1
-- 
Try a CVS snapshot: http://bugs.php.net/fix.php?id=21417r=trysnapshot
Fixed in CVS:   http://bugs.php.net/fix.php?id=21417r=fixedcvs
Fixed in release:   http://bugs.php.net/fix.php?id=21417r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=21417r=needtrace
Try newer version:  http://bugs.php.net/fix.php?id=21417r=oldversion
Not developer issue:http://bugs.php.net/fix.php?id=21417r=support
Expected behavior:  http://bugs.php.net/fix.php?id=21417r=notwrong
Not enough info:http://bugs.php.net/fix.php?id=21417r=notenoughinfo
Submitted twice:http://bugs.php.net/fix.php?id=21417r=submittedtwice
register_globals:   http://bugs.php.net/fix.php?id=21417r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=21417r=php3
Daylight Savings:   http://bugs.php.net/fix.php?id=21417r=dst
IIS Stability:  http://bugs.php.net/fix.php?id=21417r=isapi
Install GNU Sed:http://bugs.php.net/fix.php?id=21417r=gnused




#21417 [Opn-Csd]: PHP is garbage

2003-01-04 Thread nicos
 ID:   21417
 Updated by:   [EMAIL PROTECTED]
 Reported By:  [EMAIL PROTECTED]
-Status:   Open
+Status:   Closed
 Bug Type: Unknown/Other Function
 Operating System: win2000 advanceddatacluster
 PHP Version:  4.3.0
 New Comment:

Hello,

Thank you for being as much polite. You've probably not tried our
support to get help or you wouldn't act like that. PHP is one of the
most efficient language and it works very fine with every of my
applications. PHP supports XML, Forms and HTTPs very well and you can
believe me when I say that you're not wasting your time. PHP is easy to
use and it got a nice documentation plus a nice support, take a look at
http://www.php.net/support.php.

Thank you for your report.


Previous Comments:


[2003-01-04 15:59:53] [EMAIL PROTECTED]

why does php never work? I can get basic scrpts working but anything of
any real pupose never works, I feel like I am wasting my time, your
inablity to make a working version is frustrating, this scripting
language is a joke, after wasting thousands of dollars trying to get
this script engine working, I have to drop all attemps to even try, I
will go back to developing my asp and xml scripts that actually work
back to the foreground of my secure web pages and forms.

p.s. thanks for wasting my time assholes




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




#21409 [Opn-Bgs]: PHP_NORMAL_READ parameter in socket_read function gives error

2003-01-04 Thread edink
 ID:   21409
 Updated by:   [EMAIL PROTECTED]
 Reported By:  [EMAIL PROTECTED]
-Status:   Open
+Status:   Bogus
 Bug Type: Sockets related
 Operating System: Windows 2000
 PHP Version:  4.3.0
 New Comment:

Duplicate of #21197


Previous Comments:


[2003-01-04 11:11:41] [EMAIL PROTECTED]

?php
error_reporting (E_ALL);

/* Allow the script to hang around waiting for connections. */
set_time_limit (0);

/* Turn on implicit output flushing so we see what we're getting
 * as it comes in. */
ob_implicit_flush ();

$address = '190.23.198.28';
$port = 1;

if (($sock = socket_create (AF_INET, SOCK_STREAM, 0))  0) {
echo socket_create() failed: reason:  . socket_strerror ($sock) .
\n;
}

if (($ret = socket_bind ($sock, $address, $port))  0) {
echo socket_bind() failed: reason:  . socket_strerror ($ret) .
\n;
}

if (($ret = socket_listen ($sock, 5))  0) {
echo socket_listen() failed: reason:  . socket_strerror ($ret) .
\n;
}

do {
if (($msgsock = socket_accept($sock))  0) {
echo socket_accept() failed: reason:  . socket_strerror ($msgsock)
. \n;
break;
}
/* Send instructions. */
$msg = \nWelcome to the PHP Test Server. \n .
To quit, type 'quit'. To shut down the server type 'shutdown'.\n;
socket_write($msgsock, $msg, strlen($msg));

do {

if (FALSE === ($buf = socket_read ($msgsock, 2048, PHP_NORMAL_READ)))
{
echo socket_read() failed: reason:  . socket_strerror ($ret) 
.
\n;
break 2;
}

/*
while(($tmpbuf = socket_read($msgsock, 512)) !== false) {
$buf .= $tmpbuf;
if(preg_match('\r\n\r\n$'s, $buf))
break;
}
*/
if (!$buf = trim ($buf)) {
continue;
}
if ($buf == 'quit') {
break;
}
if ($buf == 'shutdown') {
socket_close ($msgsock);
break 2;
}
$talkback = PHP: You said '$buf'.\n;
socket_write ($msgsock, $talkback, strlen ($talkback));
echo $buf\n;
} while (true);
socket_close ($msgsock);
} while (true);

socket_close ($sock);
?

this socket example script dies when ran from command line.
but only if i use PHP_NORMAL_READ parameter in socket_read function. it
gives this error:
PHP Warning:  socket_read() unable to read from socket [0]: The
operation comple
ted successfully.
 in C:\php43\serv.php on line 38
socket_read() failed: reason: Incorrect function.
if PHP_NORMAL_READ parameter isn't used, it works beautifully.




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




#21417 [Csd-Bgs]: PHP is garbage

2003-01-04 Thread sesser
 ID:   21417
 Updated by:   [EMAIL PROTECTED]
 Reported By:  [EMAIL PROTECTED]
-Status:   Closed
+Status:   Bogus
 Bug Type: Unknown/Other Function
 Operating System: win2000 advanceddatacluster
 PHP Version:  4.3.0
 New Comment:

Never feed trolls that hide behind anonymous email accounts.


Previous Comments:


[2003-01-04 16:05:41] [EMAIL PROTECTED]

Hello,

Thank you for being as much polite. You've probably not tried our
support to get help or you wouldn't act like that. PHP is one of the
most efficient language and it works very fine with every of my
applications. PHP supports XML, Forms and HTTPs very well and you can
believe me when I say that you're not wasting your time. PHP is easy to
use and it got a nice documentation plus a nice support, take a look at
http://www.php.net/support.php.

Thank you for your report.



[2003-01-04 15:59:53] [EMAIL PROTECTED]

why does php never work? I can get basic scrpts working but anything of
any real pupose never works, I feel like I am wasting my time, your
inablity to make a working version is frustrating, this scripting
language is a joke, after wasting thousands of dollars trying to get
this script engine working, I have to drop all attemps to even try, I
will go back to developing my asp and xml scripts that actually work
back to the foreground of my secure web pages and forms.

p.s. thanks for wasting my time assholes




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




#21417 [Bgs]: PHP is garbage

2003-01-04 Thread philip
 ID:   21417
 Updated by:   [EMAIL PROTECTED]
 Reported By:  [EMAIL PROTECTED]
 Status:   Bogus
 Bug Type: Unknown/Other Function
 Operating System: win2000 advanceddatacluster
 PHP Version:  4.3.0
 New Comment:

PHP has a built-in idiot clause, from config.m4:

if test $USER_IS_IDIOT = yes; then
DISABLE_ENTERPRISE_SUPPORT=true
fi

Sorry, this won't change.


Previous Comments:


[2003-01-04 16:11:54] [EMAIL PROTECTED]

Never feed trolls that hide behind anonymous email accounts.



[2003-01-04 16:05:41] [EMAIL PROTECTED]

Hello,

Thank you for being as much polite. You've probably not tried our
support to get help or you wouldn't act like that. PHP is one of the
most efficient language and it works very fine with every of my
applications. PHP supports XML, Forms and HTTPs very well and you can
believe me when I say that you're not wasting your time. PHP is easy to
use and it got a nice documentation plus a nice support, take a look at
http://www.php.net/support.php.

Thank you for your report.



[2003-01-04 15:59:53] [EMAIL PROTECTED]

why does php never work? I can get basic scrpts working but anything of
any real pupose never works, I feel like I am wasting my time, your
inablity to make a working version is frustrating, this scripting
language is a joke, after wasting thousands of dollars trying to get
this script engine working, I have to drop all attemps to even try, I
will go back to developing my asp and xml scripts that actually work
back to the foreground of my secure web pages and forms.

p.s. thanks for wasting my time assholes




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




#19113 [Opn]: HTTP status 200 returned on HTTP CONNECT when mod_proxy not in use

2003-01-04 Thread php
 ID:   19113
 User updated by:  [EMAIL PROTECTED]
 Reported By:  [EMAIL PROTECTED]
 Status:   Open
 Bug Type: Apache related
 Operating System: FreeBSD 4.6.2
 PHP Version:  4.2.2
 New Comment:

Yes; [EMAIL PROTECTED] is correct.  My previous comment (bug possibly
fixed) was in haste.

The problem still exists in 4.3.0.  Please, someone in the PHP crew
investigate this fully, as it's becoming more and more of an issue and
seems to be affecting essentially everyone who uses PHP and Apache.


Previous Comments:


[2003-01-03 23:39:16] [EMAIL PROTECTED]

Problem still exists in PHP 4.3.0, i'm running Apache 1.3.27 on
FreeBSD.



[2003-01-02 06:32:47] [EMAIL PROTECTED]

I apologise for not being able to test 4.3.0 or any of the snap
releases prior to now -- we use FreeBSD, and we rely on the FreeBSD
port of mod_php4.  The port author has not upgraded to 4.3.0 yet, and
therefore we were stuck using 4.2.3 until earlier this evening when I
removed the port and went with the old method of installing off source
manually.

It seems that this problem may in fact be fixed in 4.3.0.  The problem
documented no longer appears.



[2002-12-28 01:00:02] [EMAIL PROTECTED]

No feedback was provided for this bug for over 2 weeks, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to Open.



[2002-12-18 07:09:42] [EMAIL PROTECTED]

Sorry, you don't understand the problem.

The problem is that apache returns HTTP 200 OK on CONNECT request,
but does NOT really connect to specified addrress. If it is possible to
connect through your server to outside, then it's problem of your
misconfigured proxy.



[2002-12-16 13:54:03] [EMAIL PROTECTED]

This bug is VERY serious.  Our web servers have be attacked and used
for relaying SPAM.  Spammers are using the CONNECT command to proxy to
open relay servers masking their IP addresses with ours.



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

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




#21418 [NEW]: Changing PEAR::DB

2003-01-04 Thread bmichael
From: [EMAIL PROTECTED]
Operating system: 
PHP version:  4.2.3
PHP Bug Type: Feature/Change Request
Bug description:  Changing PEAR::DB

I am justing getting into working with the PEAR::DB and DB_DataObjects
code.

I have some changes that I am making to PEAR::DB and would like to know
who to talk to or how I should submit those changes.

The following is what I am changing:

In PEAR::DB common.php file:
   Added  an new option to the $options array:
 'setPrefetch' = 1

For advanced Oracle queries, you use the OCI8setPrefetch limit to  1.
Other databases might find this useful for processing large queries if
supported by the database type.

Secondly, in PEAR::DB DB.php
   I am adding a fetchStatement routine to DB_result class that supports
limiting and the rownum feature.  This then calls the appropriate
$this-dbh-fetchStatement() routine.

There are others as well, adding a static variable to numCols and numRows
so that fetchStatement can load these variables, while fetchInto and
fetchRow stills functions as expected.

In DB_oci8, changed constructor to use OCI8setPrefetch based upon the
$this-option[setPrefetch]

Created an OCI8setPrefetch function so that it can be called
specifically/dynamically when the option changes. Currently the change
only is reflected in new DB objects after setOptions is called.

As mentioned, changed numRows/numCols also in DB_oci8.

Adding DB_AUTOQUERY_DELETE to buildManipSQL.

Other changes, I am adding. Get number of rows for table in tableInfo for
oci8.  Can use statistics from the table or use COUNT(*) - I will be doing
this shortly.

I am doing a very large project with PEAR::DB and DB_DataObjects using
Oracle to start, with versions running on mysql, mssql, potentially
access, db2, Sybase, etc.  

In doing so, I have created an offshoot of DB_Dataobjects that will fully
sustain many Databases in the same fashion as PEAR::DB. Alan and I have
already talked about it.  But I am just informing the community.

How can I submit the changes to the PEAR::DB code.  

-- 
Edit bug report at http://bugs.php.net/?id=21418edit=1
-- 
Try a CVS snapshot: http://bugs.php.net/fix.php?id=21418r=trysnapshot
Fixed in CVS:   http://bugs.php.net/fix.php?id=21418r=fixedcvs
Fixed in release:   http://bugs.php.net/fix.php?id=21418r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=21418r=needtrace
Try newer version:  http://bugs.php.net/fix.php?id=21418r=oldversion
Not developer issue:http://bugs.php.net/fix.php?id=21418r=support
Expected behavior:  http://bugs.php.net/fix.php?id=21418r=notwrong
Not enough info:http://bugs.php.net/fix.php?id=21418r=notenoughinfo
Submitted twice:http://bugs.php.net/fix.php?id=21418r=submittedtwice
register_globals:   http://bugs.php.net/fix.php?id=21418r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=21418r=php3
Daylight Savings:   http://bugs.php.net/fix.php?id=21418r=dst
IIS Stability:  http://bugs.php.net/fix.php?id=21418r=isapi
Install GNU Sed:http://bugs.php.net/fix.php?id=21418r=gnused




#21418 [Opn-Bgs]: Changing PEAR::DB

2003-01-04 Thread nicos
 ID:  21418
 Updated by:  [EMAIL PROTECTED]
 Reported By: [EMAIL PROTECTED]
-Status:  Open
+Status:  Bogus
 Bug Type:Feature/Change Request
 PHP Version: 4.2.3
 New Comment:

Not a bug please talk about it in [EMAIL PROTECTED]

Try to contact the leader of the package who is Stig [EMAIL PROTECTED] or
look at http://pear.php.net/package-info.php?pacid=46.

If you want to join the PEAR developper team please fill
http://pear.php.net/account-request.php

Thank you for your report.


Previous Comments:


[2003-01-04 17:18:30] [EMAIL PROTECTED]

I am justing getting into working with the PEAR::DB and DB_DataObjects
code.

I have some changes that I am making to PEAR::DB and would like to know
who to talk to or how I should submit those changes.

The following is what I am changing:

In PEAR::DB common.php file:
   Added  an new option to the $options array:
 'setPrefetch' = 1

For advanced Oracle queries, you use the OCI8setPrefetch limit to  1.
Other databases might find this useful for processing large queries if
supported by the database type.

Secondly, in PEAR::DB DB.php
   I am adding a fetchStatement routine to DB_result class that
supports limiting and the rownum feature.  This then calls the
appropriate $this-dbh-fetchStatement() routine.

There are others as well, adding a static variable to numCols and
numRows so that fetchStatement can load these variables, while
fetchInto and fetchRow stills functions as expected.

In DB_oci8, changed constructor to use OCI8setPrefetch based upon the
$this-option[setPrefetch]

Created an OCI8setPrefetch function so that it can be called
specifically/dynamically when the option changes. Currently the change
only is reflected in new DB objects after setOptions is called.

As mentioned, changed numRows/numCols also in DB_oci8.

Adding DB_AUTOQUERY_DELETE to buildManipSQL.

Other changes, I am adding. Get number of rows for table in tableInfo
for oci8.  Can use statistics from the table or use COUNT(*) - I will
be doing this shortly.

I am doing a very large project with PEAR::DB and DB_DataObjects using
Oracle to start, with versions running on mysql, mssql, potentially
access, db2, Sybase, etc.  

In doing so, I have created an offshoot of DB_Dataobjects that will
fully sustain many Databases in the same fashion as PEAR::DB. Alan and
I have already talked about it.  But I am just informing the
community.

How can I submit the changes to the PEAR::DB code.  





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




#21414 [Bgs]: Your site search is broken

2003-01-04 Thread nicos
 ID:   21414
 Updated by:   [EMAIL PROTECTED]
 Reported By:  [EMAIL PROTECTED]
 Status:   Bogus
 Bug Type: Scripting Engine problem
 Operating System: Yours
 PHP Version:  4.3.0
 New Comment:

I didn't said the bug wasn't there but an another bug report was
already there so you submitted the same bug twice (an another user had
done it already). 

Please read our tips on how to report a bug that someone will want to
help fix at http://bugs.php.net/how-to-report.php .

Thank you for your report.



Previous Comments:


[2003-01-04 14:48:20] [EMAIL PROTECTED]

This was not at all bogus.  I tried to do a search for anything ...
started with looking for session info and then tried other things under
your whole site using IE6, and got the listed error.  I have since
checked, and it looks like what ever it was, it is fixed now.  However
I wasn't able to search for at least 5 minutes.  My guess is that
someone was doing site maint and I happened to be trying that function
then.
Jason



[2003-01-04 14:31:47] [EMAIL PROTECTED]

Please do not submit the same bug more than once. An existing
bug report already describes this very problem. Even if you feel
that your issue is somewhat different, the resolution is likely
to be the same. Because of this, we hope you add your comments
to the existing bug instead.

Thank you for your interest in PHP.



[2003-01-04 14:21:04] [EMAIL PROTECTED]

I tried to do a search on your site and got this error 
Parse error: parse error in /local/Web/sites/phpweb/search.php on line
233

Nice to see that I'm not the only one getting parse errors.

Hope this helps
Jason




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




#21418 [Bgs]: Changing PEAR::DB

2003-01-04 Thread philip
 ID:  21418
 Updated by:  [EMAIL PROTECTED]
 Reported By: [EMAIL PROTECTED]
 Status:  Bogus
 Bug Type:Feature/Change Request
 PHP Version: 4.2.3
 New Comment:

It's actually: [EMAIL PROTECTED]


Previous Comments:


[2003-01-04 17:44:26] [EMAIL PROTECTED]

Not a bug please talk about it in [EMAIL PROTECTED]

Try to contact the leader of the package who is Stig [EMAIL PROTECTED] or
look at http://pear.php.net/package-info.php?pacid=46.

If you want to join the PEAR developper team please fill
http://pear.php.net/account-request.php

Thank you for your report.



[2003-01-04 17:18:30] [EMAIL PROTECTED]

I am justing getting into working with the PEAR::DB and DB_DataObjects
code.

I have some changes that I am making to PEAR::DB and would like to know
who to talk to or how I should submit those changes.

The following is what I am changing:

In PEAR::DB common.php file:
   Added  an new option to the $options array:
 'setPrefetch' = 1

For advanced Oracle queries, you use the OCI8setPrefetch limit to  1.
Other databases might find this useful for processing large queries if
supported by the database type.

Secondly, in PEAR::DB DB.php
   I am adding a fetchStatement routine to DB_result class that
supports limiting and the rownum feature.  This then calls the
appropriate $this-dbh-fetchStatement() routine.

There are others as well, adding a static variable to numCols and
numRows so that fetchStatement can load these variables, while
fetchInto and fetchRow stills functions as expected.

In DB_oci8, changed constructor to use OCI8setPrefetch based upon the
$this-option[setPrefetch]

Created an OCI8setPrefetch function so that it can be called
specifically/dynamically when the option changes. Currently the change
only is reflected in new DB objects after setOptions is called.

As mentioned, changed numRows/numCols also in DB_oci8.

Adding DB_AUTOQUERY_DELETE to buildManipSQL.

Other changes, I am adding. Get number of rows for table in tableInfo
for oci8.  Can use statistics from the table or use COUNT(*) - I will
be doing this shortly.

I am doing a very large project with PEAR::DB and DB_DataObjects using
Oracle to start, with versions running on mysql, mssql, potentially
access, db2, Sybase, etc.  

In doing so, I have created an offshoot of DB_Dataobjects that will
fully sustain many Databases in the same fashion as PEAR::DB. Alan and
I have already talked about it.  But I am just informing the
community.

How can I submit the changes to the PEAR::DB code.  





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




#21420 [NEW]: using CONVERT and cursor in query

2003-01-04 Thread lishome2k
From: [EMAIL PROTECTED]
Operating system: windows2000
PHP version:  4.3.0
PHP Bug Type: MSSQL related
Bug description:  using CONVERT and cursor in query

when i use convert and cursor in query,
example :
$query = open cursor scroll for selec convert(char(20),
  send_time, 120) as send_time from table1 where
  id = 1
$mssql_query($query)



PHP has encountered an Access Violation at 01207E9E
display in the window!! help me!!



-- 
Edit bug report at http://bugs.php.net/?id=21420edit=1
-- 
Try a CVS snapshot: http://bugs.php.net/fix.php?id=21420r=trysnapshot
Fixed in CVS:   http://bugs.php.net/fix.php?id=21420r=fixedcvs
Fixed in release:   http://bugs.php.net/fix.php?id=21420r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=21420r=needtrace
Try newer version:  http://bugs.php.net/fix.php?id=21420r=oldversion
Not developer issue:http://bugs.php.net/fix.php?id=21420r=support
Expected behavior:  http://bugs.php.net/fix.php?id=21420r=notwrong
Not enough info:http://bugs.php.net/fix.php?id=21420r=notenoughinfo
Submitted twice:http://bugs.php.net/fix.php?id=21420r=submittedtwice
register_globals:   http://bugs.php.net/fix.php?id=21420r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=21420r=php3
Daylight Savings:   http://bugs.php.net/fix.php?id=21420r=dst
IIS Stability:  http://bugs.php.net/fix.php?id=21420r=isapi
Install GNU Sed:http://bugs.php.net/fix.php?id=21420r=gnused




#20701 [Com]: ld: can't locate file for: -laprutil and after

2003-01-04 Thread bchesneau
 ID:   20701
 Comment by:   [EMAIL PROTECTED]
 Reported By:  [EMAIL PROTECTED]
 Status:   Bogus
 Bug Type: Apache2 related
 Operating System: Mac OS 10.2.2
 PHP Version:  4CVS-2002-11-28 (dev)
 New Comment:

If we remove path of apxs2 and have apache 1.3 installed 
configure  first detect apache1 and stop.


Previous Comments:


[2002-12-08 02:45:29] [EMAIL PROTECTED]

Not PHP bug - bogus.




[2002-12-07 15:23:45] [EMAIL PROTECTED]

With the new release and no patch in the makefile,
the aprutil library is found but I got:
ld: Bad magic number
I think now the problem is not in Php but in Apache2. 
The path to this library belongs
to Apache source tree, not the install tree,
as if the install fails to build the library
for my machine, leaving a pointer to a (useless)
default library in the source tree. I continue
to investigate this.
Thanks a lot



[2002-12-07 01:59:14] [EMAIL PROTECTED]

Please try using this CVS snapshot:

  http://snaps.php.net/php4-latest.tar.gz
 
For Windows:
 
  http://snaps.php.net/win32/php4-win32-latest.zip

try compiling with --with-apxs2 without specifying the patch to the
apxs utility.



[2002-11-29 08:38:58] [EMAIL PROTECTED]

 Does it compile if you remove the 
 --with-apxs2=/usr/local/apache2/bin/apxs configure option?

YES

esj



[2002-11-28 22:01:33] [EMAIL PROTECTED]

Does it compile if you remove the 
--with-apxs2=/usr/local/apache2/bin/apxs configure option?



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

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




#8765 [Com]: Unable to load dynamic library

2003-01-04 Thread iq0099
 ID:   8765
 Comment by:   [EMAIL PROTECTED]
 Reported By:  [EMAIL PROTECTED]
 Status:   Closed
 Bug Type: IIS related
 Operating System: NT 4.0 SP6
 PHP Version:  4.0.4pl1
 New Comment:

Where can we find these DLL files for LDAP and Oracle support?


Previous Comments:


[2001-01-23 11:24:32] [EMAIL PROTECTED]

php_ldap.dll needs libsasl.dll in system32, php_oci8.dll needs
gds32.dll in the same location. not sure about php_oracle.dll.



[2001-01-17 12:49:27] [EMAIL PROTECTED]


Unable to load dynamic library 'c:\php\extentions/php_ldap.dll'- ...
Unable to load dynamic library 'c:\php\extentions/php_oci8.dll'- ...
Unable to load dynamic library 'c:\php\extentions/php_oracle.dll'- ...

My php.ini:
...
extension_dir   =   c:\php\extentions
...
extension=php_cpdf.dll
extension=php_cybercash.dll
extension=php_db.dll
extension=php_dbase.dll
;extension=php_domxml.dll
;extension=php_dotnet.dll
;extension=php_exif.dll
;extension=php_fdf.dll
 extension=php_gd.dll
extension=php_gettext.dll
;extension=php_ifx.dll
extension=php_imap.dll
;extension=php_interbase.dll
extension=php_java.dll
extension=php_ldap.dll
extension=php_mhash.dll
;extension=php_mssql65.dll
extension=php_mssql70.dll
extension=php_oci8.dll
extension=php_oracle.dll
extension=php_pdf.dll
extension=php_pgsql.dll
;extension=php_sablot.dll
;extension=php_swf.dll
;extension=php_sybase_ct.dll
extension=php_zlib.dll

I'm sure they are stored there like the other and i'm sure that there's
no other php.ini hanging around in my system.





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




#9709 [Com]: Unable to load php_ldap.dll

2003-01-04 Thread iq0099
 ID:   9709
 Comment by:   [EMAIL PROTECTED]
 Reported By:  [EMAIL PROTECTED]
 Status:   Closed
 Bug Type: Dynamic loading
 Operating System: Windows NT 4 SP6
 PHP Version:  4.0.4pl1
 New Comment:

Where can I find libsasl.dll??  Its not in the ZIPPED files, its not in
the PHP folders... Where can I find these extra DLLs?


Previous Comments:


[2001-03-13 06:04:06] [EMAIL PROTECTED]

seems like libsasl.dll isn't found. copy libsasl.dll to
%WinDir%/system(32).




[2001-03-12 10:28:50] [EMAIL PROTECTED]

When I try to enable the ldap extension I get the following
error, other extensions I use work fine. The path to the library is
correct and the file is available.

PHP Warning: Unable to load dynamic library
'D:/php4/extensions/php_ldap.dll' - The specified module could not be
found. in Unknown on line 0 




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




#21106 [Fbk-NoF]: browser crash from redirect command in function

2003-01-04 Thread php-bugs
 ID:   21106
 Updated by:   [EMAIL PROTECTED]
 Reported By:  [EMAIL PROTECTED]
-Status:   Feedback
+Status:   No Feedback
 Bug Type: Reproducible crash
 Operating System: win98/pws/ie5
 PHP Version:  4.2.3
 New Comment:

No feedback was provided for this bug for over 2 weeks, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to Open.


Previous Comments:


[2002-12-20 03:41:31] [EMAIL PROTECTED]

Please try using this CVS snapshot:

  http://snaps.php.net/php4-latest.tar.gz
 
For Windows:
 
  http://snaps.php.net/win32/php4-win32-latest.zip





[2002-12-20 03:38:20] [EMAIL PROTECTED]

reopened



[2002-12-20 03:21:34] [EMAIL PROTECTED]

closed



[2002-12-20 03:09:21] [EMAIL PROTECTED]

when using this  code from within a function 
===
$location='http://'.$_SERVER[HTTP_HOST].$_SERVER['PHP_SELF'].'?cmd=frm
'.$temp.'msg='.urlencode($return_msg);
header(Location:.$location);
=

results in the following repeatable crash message from IE5

PHP caused a stack fault in module PHP4TS.DLL at 015f:100b1f96.
Registers:
EAX=00762d90 CS=015f EIP=100b1f96 EFLGS=00010212
EBX=06fcceb0 SS=0167 ESP=00541f54 EBP=06fcd32c
ECX=00792c20 DS=0167 ESI=00761fa0 FS=5a37
EDX=0007 ES=0167 EDI=0001 GS=
Bytes at CS:EIP:
53 55 56 57 8b bc 24 90 04 00 00 33 db 89 5c 24 
Stack dump:
      

      


screen display is

===
CGI Error
The specified CGI application misbehaved by not returning a complete
set
of HTTP headers. The headers it did return are:
===

--end of screen display--



[2002-12-20 03:06:06] [EMAIL PROTECTED]


when using this  code from within a function 
===
$location='http://'.$_SERVER[HTTP_HOST].$_SERVER['PHP_SELF'].'?cmd=frm'.$temp.'msg='.urlencode($return_msg);

header(Location:.$location);
=

results in the following repeatable crash message from IE5


PHP caused a stack fault in module PHP4TS.DLL at 015f:100b1f96.
Registers:
EAX=00762d90 CS=015f EIP=100b1f96 EFLGS=00010212
EBX=06fcceb0 SS=0167 ESP=00541f54 EBP=06fcd32c
ECX=00792c20 DS=0167 ESI=00761fa0 FS=5a37
EDX=0007 ES=0167 EDI=0001 GS=
Bytes at CS:EIP:
53 55 56 57 8b bc 24 90 04 00 00 33 db 89 5c 24 
Stack dump:
       
       



screen display is

===
CGI Error
The specified CGI application misbehaved by not returning a complete
set of HTTP headers. The headers it did return are:
===

--end of screen display--




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




#21421 [NEW]: make failed on installation with apache2

2003-01-04 Thread bchesneau
From: [EMAIL PROTECTED]
Operating system: MACOS X 10.2.3
PHP version:  4.3.0
PHP Bug Type: Compile Failure
Bug description:  make failed on installation with apache2

I've installed apache2 version 2.0.43 in /usr/local/apache2 
with this installation : ./configure --enable-shared=max --
enable-modules=most --with-expat=/usr/local --with-mpm=
worker --enable-info

Try to install php-4.3.0 or latest php4 (00301050430) but 
it failed on make. I configured php with this command line 
: ./configure --with-apxs2=/usr/local/apache2/bin/apxs

The make error is :
ld: can't locate file for: -laprutil

Any id how to solve it ?
-- 
Edit bug report at http://bugs.php.net/?id=21421edit=1
-- 
Try a CVS snapshot: http://bugs.php.net/fix.php?id=21421r=trysnapshot
Fixed in CVS:   http://bugs.php.net/fix.php?id=21421r=fixedcvs
Fixed in release:   http://bugs.php.net/fix.php?id=21421r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=21421r=needtrace
Try newer version:  http://bugs.php.net/fix.php?id=21421r=oldversion
Not developer issue:http://bugs.php.net/fix.php?id=21421r=support
Expected behavior:  http://bugs.php.net/fix.php?id=21421r=notwrong
Not enough info:http://bugs.php.net/fix.php?id=21421r=notenoughinfo
Submitted twice:http://bugs.php.net/fix.php?id=21421r=submittedtwice
register_globals:   http://bugs.php.net/fix.php?id=21421r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=21421r=php3
Daylight Savings:   http://bugs.php.net/fix.php?id=21421r=dst
IIS Stability:  http://bugs.php.net/fix.php?id=21421r=isapi
Install GNU Sed:http://bugs.php.net/fix.php?id=21421r=gnused




#21421 [Opn]: make failed on installation with apache2

2003-01-04 Thread bchesneau
 ID:   21421
 User updated by:  [EMAIL PROTECTED]
 Reported By:  [EMAIL PROTECTED]
 Status:   Open
 Bug Type: Compile Failure
 Operating System: MACOS X 10.2.3
 PHP Version:  4.3.0
 New Comment:

apr-config (/usr/local/apache2/bin/apr-config --link-
libtool --libs) give this result :

/usr/local/apache2/lib/libapr-0.la -lm


Previous Comments:


[2003-01-05 01:09:36] [EMAIL PROTECTED]

I've installed apache2 version 2.0.43 in /usr/local/apache2 
with this installation : ./configure --enable-shared=max --
enable-modules=most --with-expat=/usr/local --with-mpm=
worker --enable-info

Try to install php-4.3.0 or latest php4 (00301050430) but 
it failed on make. I configured php with this command line 
: ./configure --with-apxs2=/usr/local/apache2/bin/apxs

The make error is :
ld: can't locate file for: -laprutil

Any id how to solve it ?




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




#21422 [NEW]: preg_match regexps not greedy by default

2003-01-04 Thread astetson
From: [EMAIL PROTECTED]
Operating system: Linux
PHP version:  4.3.0
PHP Bug Type: *Regular Expressions
Bug description:  preg_match regexps not greedy by default

Perl regexps are greedy by default.  \d+ will get all decimals possible
(\d+? will only find one - it's lazy).  It seems preg_match is not greedy
by default.

code:
preg_match(/^\w+(\d+)$/, $change_link, $change_id);
print(My ID is $change_id[1]BR);

when passed: edit11
change_id[1] is equal to 1.  It should be equal to 11 especially when
my regexp is looking for the end of the line ($) after it!
-- 
Edit bug report at http://bugs.php.net/?id=21422edit=1
-- 
Try a CVS snapshot: http://bugs.php.net/fix.php?id=21422r=trysnapshot
Fixed in CVS:   http://bugs.php.net/fix.php?id=21422r=fixedcvs
Fixed in release:   http://bugs.php.net/fix.php?id=21422r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=21422r=needtrace
Try newer version:  http://bugs.php.net/fix.php?id=21422r=oldversion
Not developer issue:http://bugs.php.net/fix.php?id=21422r=support
Expected behavior:  http://bugs.php.net/fix.php?id=21422r=notwrong
Not enough info:http://bugs.php.net/fix.php?id=21422r=notenoughinfo
Submitted twice:http://bugs.php.net/fix.php?id=21422r=submittedtwice
register_globals:   http://bugs.php.net/fix.php?id=21422r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=21422r=php3
Daylight Savings:   http://bugs.php.net/fix.php?id=21422r=dst
IIS Stability:  http://bugs.php.net/fix.php?id=21422r=isapi
Install GNU Sed:http://bugs.php.net/fix.php?id=21422r=gnused