Bug #48819 [Bgs-ReO]: dl function is undefined

2010-08-16 Thread cynic
Edit report at http://bugs.php.net/bug.php?id=48819edit=1

 ID: 48819
 Updated by: cy...@php.net
 Reported by:pkwan at advsofteng dot net
 Summary:dl function is undefined
-Status: Bogus
+Status: Re-Opened
 Type:   Bug
 Package:Scripting Engine problem
 Operating System:   Windows
 PHP Version:5.3.0
 Block user comment: N

 New Comment:

this bug is not bogus.  it's either valid or should be reclassified as a
documentation bug.  the manual says (as of August 16, 2010):



5.3.0dl() is now disabled in some SAPI's due to stability issues.
The only SAPI's that allow dl() are: CLI, CGI and Embed.



in fact, a peek at php-5.3.3/ext/standard/dl.c suggests that the manual
is quite misleading as it leaves the reader thinking that dl() will work
in non-TS versions of CLI, CGI and Embed just find, when in fact the
function is E_DEPRECATED across the board:



if ((strncmp(sapi_module.name, cgi, 3) != 0) 

(strcmp(sapi_module.name, cli) != 0) 

(strncmp(sapi_module.name, embed, 5) != 0)

) {

#ifdef ZTS

php_error_docref(NULL TSRMLS_CC, E_WARNING, Not supported in
multithreaded Web servers - use extension=%s in your php.ini,
filename);

RETURN_FALSE;

#else

php_error_docref(NULL TSRMLS_CC, E_DEPRECATED, dl() is 
deprecated -
use extension=%s in your php.ini, filename);

#endif

}





that's correct as long as i run php-cgi.exe on the command line:



  var_dump(extension_loaded('sqlsrv'));

  dl('php_sqlsrv.dll');

  var_dump(extension_loaded('sqlsrv'));



run with



  php-cgi -nq -d extension_dir=$somewhere -d error_reporting=-1
test.php



gives



  bool(false)

  bool(true)



however, running the same php-cgi inside Apache 2.2 on Windows, the dl()
function does not exist.



tested with 5.3.3-nts-vc9.


Previous Comments:

[2009-07-06 17:32:18] pkwan at advsofteng dot net

This is definitely a bug. According to PHP 5.3 documentation, dl should
work, at least for CLI, CGI and Embed. Pease read the PHP
documentation.



The PHP 5.3 documentation for dl says:



This function now throws an E_DEPRECATED notice on all sapi's except for
CLI, CGI and Embed. 



Also, the PHP 5.3 change log http://www.php.net/ChangeLog-5.php; says:



Changed dl() to be disabled by default. Enabled only when explicitly
registered by the SAPI. Currently enabled with cli, cgi and embed SAPIs.
(Dmitry) 



So the above clearly says dl should work on CLI, CGI and Embed SAPI. I
am testing using CGI, and it does not work. Therefore it is a bug.



Furthermore, from the PHP documentation on dl, the E_DEPRECATED is only
a notice, not an error. So dl should work in all other SAPI as well.


[2009-07-06 16:24:10] j...@php.net

Thank you for taking the time to write to us, but this is not
a bug. Please double-check the documentation available at
http://www.php.net/manual/ and the instructions on how to report
a bug at http://bugs.php.net/how-to-report.php




[2009-07-06 16:07:01] dani88elx at gmail dot com

This is not a bug.



dl() is deprecated from 5.3 version


[2009-07-06 15:50:30] pkwan at advsofteng dot net

Description:

Using the dl function results in a Call to undefined function dl()
error if the PHP is used with a web server. It is as if the dl
function does not exist in PHP any more. This has been tested using
php-cgi.exe VC6 and on IIS on both Windows 2000 and Windows XP, and
using php-cgi.exe VC9 on IIS on Windows XP.



However, when using php.exe or php-cgi.exe in a DOS shell
interactively, the dl function works normally.





Reproduce code:
---
?php dl(any_name.dll); ?



Expected result:

If the DLL is loaded successfully, no message is expected. Otherwise,
some meaningful error message is expected. 

Actual result:
--
Fatal error: Call to undefined function dl() in
C:\Inetpub\Scripts\phpinfo.php on line 1








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


#39356 [Bgs-Opn]: in_array() causes Nesting level too deep fatal error

2006-11-04 Thread cynic
 ID:   39356
 Updated by:   [EMAIL PROTECTED]
 Reported By:  7am dot online at gmail dot com
-Status:   Bogus
+Status:   Open
 Bug Type: Arrays related
 Operating System: Windows XP
 PHP Version:  5.2.0
 New Comment:

http://php.net/in_array is completely quiet about references

this is a change from 5.1 so it should at least be a documentation
problem.


Previous Comments:


[2006-11-03 14:01:24] [EMAIL PROTECTED]

Thank you for taking the time to write to us, but this is not
a bug. Please double-check the documentation available at
http://www.php.net/manual/ and the instructions on how to report
a bug at http://bugs.php.net/how-to-report.php

In php 5 objects are passed by reference, so your code does in  
fact create a circular dependency. 



[2006-11-03 03:04:24] 7am dot online at gmail dot com

Description:

Doing a in_array() check against an array containing objects with
recursive dependency causes a Nesting level too deep - recursive
dependency? fatal error.

Reproduce code:
---
?php 
class A
{
public $b;
}

class B
{
public $a;
}

$a = new A;
$b = new B;
$b-a = $a;
$a-b = $b;

$test = array($a, $b);

var_dump(in_array($a, $test));

Expected result:

bool(true), as in PHP5.1.6

Actual result:
--
Fatal error: Nesting level too deep - recursive dependency? in
[FILENAME] on line 19





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


#27132 [Asn]: ncurses_getch() interrupted by receipt of a handled signal

2004-08-10 Thread cynic
 ID:   27132
 Updated by:   [EMAIL PROTECTED]
-Reported By:  neuhauser at bellavista dot cz
+Reported By:  neuhauser at chello dot cz
 Status:   Assigned
 Bug Type: Unknown/Other Function
 Operating System: *
 PHP Version:  4CVS, 5CVS (2004-02-25)
 Assigned To:  hholzgra
 New Comment:

the update email feature doesn't seem to work. anyway, in case updating
it under a developer account fails too, I can be reached at
[EMAIL PROTECTED] now.

btw, Hartmut, has this bug seen any attention at all? (just curious,
I'm not holding my breath anymore :)


Previous Comments:


[2004-08-10 15:02:19] neuhauser at bellavista dot cz

update submitter email



[2004-02-03 09:51:52] neuhauser at chello dot cz

Description:

receipt of a signal interrupts ncurses_getch(), which
should never happen

curs_getch(3X):

The behavior of getch and friends in the presence
of handled signals is unspecified in the SVr4 and
XSI Curses documentation.  Under historical curses
implementations, it  varied depending on whether
the operating system's implementation of handled
signal receipt interrupts a read(2) call in
progress or not, and also (in some implementations)
depending on whether an input timeout or
non-blocking mode hsd been set.
   
Programmers concerned about portability should be
prepared  for  either of  two  cases: (a) signal
receipt does not interrupt getch; (b) signal
receipt interrupts getch and causes it to return
ERR with errno set to EINTR.

Under the ncurses implementation, handled signals
never interrupt getch.


(emphasis added)

Reproduce code:
---
compare the behavior of this PHP snippet

?php

function sigalrm()
{
global $c;
$s = sprintf(sigalrm: '%d'\n, $c);
ncurses_addstr($s);
ncurses_refresh();
}

ncurses_init();
ncurses_cbreak();
ncurses_nl();
ncurses_noecho();

pcntl_signal(SIGALRM, 'sigalrm');
declare(ticks = 1);

for (;;) {
pcntl_alarm(1);
$c = ncurses_getch();
if ('q' == chr($c)) {
exit(0);
}
}

ncurses_end();
exit(0);


with its C equivalent

#include unistd.h
#include signal.h
#include curses.h

int c;

void sigalrm()
{
char s[40];
sprintf(s, sigalrm: '%d'\n, c);
addstr(s);
refresh();
}

int main(int argc, char** argv)
{
initscr();
cbreak();
nl();
noecho();

signal(SIGALRM, sigalrm);

for (;;) {
alarm(1);
c = getch();
if ('q' == c) {
return 0;
}
}

endwin();
return 0;
}


Expected result:

I was expecting to see the same output as given by the C version:
single

sigalrm: '0'

line until next keypress, then the zero would be replaced with ascii
code of the pressed key

Actual result:
--
endless series of

sigalrm: '-1'

lines, which suggests that receipt of the alarm, although handled,
interrupts the getch() call which then returns ERR.

(as a sidenote, http://www.php.net/manual/en/ref.ncurses.php says On
error ncurses functions return NCURSES_ERR, but said constant doesn't
exist in 4.3.3 or 4.3.4, both cli)





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


#28930 [Com]: PHP sources assume you're using Bison

2004-07-08 Thread cjs at cynic dot net
 ID:   28930
 Comment by:   cjs at cynic dot net
 Reported By:  eggert at gnu dot org
 Status:   Open
 Bug Type: Compile Failure
 Operating System: Debian GNU/Linux 3.0r1
 PHP Version:  4.3.7
 New Comment:

Same problem on NetBSD 1.6ZG or 2.0 using PHP 5.0.0 RC3. Similar
solution, except that I had to patch a few more files in a similar way.


Previous Comments:


[2004-07-06 20:25:24] eggert at gnu dot org

Changing the status back to open, since it's clearly a bug in the PHP
build procedure.



[2004-07-06 20:23:55] eggert at gnu dot org

The comments by sniper are incorrect. The PHP 4.3.7 zend_ini_parser.c
file was generated by Bison 1.35, not Bison 1.28. A build with Bison
1.28 may or may not work (I haven't checked). But the fundamental
problem here is that the PHP 4.3.7 build process is broken: it assumes
that any .h file built by any yacc implementation is compatible with
any .c file generated by any other yacc implementation. This has never
been the case. The proposed patch fixes the PHP build process so that
it doesn't assume that all yacc implementations are identical.



[2004-07-06 11:40:29] mandreiana at yahoo dot com

Snipper, not all systems have these bison versions.
e.g. Fedora Core 2 has 1.875. Other distros will update it too with new
releases. PHP 4.3.7 doesn't compile on these systems, one has to
mkdir Zend  cp ../Zend/zend_{language,ini}_parser.[ch] Zend

Please fix PHP by using the patch which bison author kindly provided.



[2004-07-06 01:26:03] [EMAIL PROTECTED]

It's working as it should be. (do NOT use anything but 1.35 or rather,
1.28 version of bison!)




[2004-06-25 22:33:22] eggert at gnu dot org

Description:

make install fails as described under actual result.
The problem is that the source files are picking up the wrong include
files: they should be including the new files generated by Bison 1.875,
but they are including the prebuilt files generated by Bison 1.35. Here
is a patch. This patch should fix PHP bug 21802.

diff -prU2 php-4.3.7/Zend/zend_compile.c
php-4.3.7-fix/Zend/zend_compile.c
--- php-4.3.7/Zend/zend_compile.c   2003-08-28 09:08:11 -0700
+++ php-4.3.7-fix/Zend/zend_compile.c   2004-06-25 13:11:23 -0700
@@ -19,5 +19,5 @@
 
 
-#include zend_language_parser.h
+#include zend_language_parser.h
 #include zend.h
 #include zend_compile.h
diff -prU2 php-4.3.7/Zend/zend_highlight.c
php-4.3.7-fix/Zend/zend_highlight.c
--- php-4.3.7/Zend/zend_highlight.c 2003-12-25 10:57:28 -0800
+++ php-4.3.7-fix/Zend/zend_highlight.c 2004-06-25 13:10:57 -0700
@@ -20,5 +20,5 @@
 
 #include zend.h
-#include zend_language_parser.h
+#include zend_language_parser.h
 #include zend_compile.h
 #include zend_highlight.h
diff -prU2 php-4.3.7/Zend/zend_indent.c
php-4.3.7-fix/Zend/zend_indent.c
--- php-4.3.7/Zend/zend_indent.c2002-12-31 08:23:03 -0800
+++ php-4.3.7-fix/Zend/zend_indent.c2004-06-25 13:11:02 -0700
@@ -23,5 +23,5 @@
 
 #include zend.h
-#include zend_language_parser.h
+#include zend_language_parser.h
 #include zend_compile.h
 #include zend_indent.h
diff -prU2 php-4.3.7/Zend/zend_ini_scanner.l
php-4.3.7-fix/Zend/zend_ini_scanner.l
--- php-4.3.7/Zend/zend_ini_scanner.l   2003-07-24 01:44:28 -0700
+++ php-4.3.7-fix/Zend/zend_ini_scanner.l   2004-06-25 13:10:34 -0700
@@ -31,5 +31,5 @@
 #include zend.h
 #include zend_globals.h
-#include zend_ini_parser.h
+#include zend_ini_parser.h
 #include zend_ini_scanner.h
 
diff -prU2 php-4.3.7/Zend/zend_language_scanner.l
php-4.3.7-fix/Zend/zend_language_scanner.l
--- php-4.3.7/Zend/zend_language_scanner.l  2004-02-03 06:31:19 -0800
+++ php-4.3.7-fix/Zend/zend_language_scanner.l  2004-06-25 13:11:16
-0700
@@ -48,5 +48,5 @@
 #include zend.h
 #include zend_alloc.h
-#include zend_language_parser.h
+#include zend_language_parser.h
 #include zend_compile.h
 #include zend_language_scanner.h


Reproduce code:
---
To reproduce the problem, install Bison 1.875 and
build PHP 4.3.7 with the following commands:

mkdir obj
cd obj
sh ../php-4.3.7/configure
make
make install

Expected result:

Expected a clean make install.

Actual result:
--
$ make install
Installing PHP SAPI module:   cgi
Installing PHP CGI into: /tmp/prefix/bin/
Installing PEAR environment:  /tmp/prefix/lib/php/

Parse error: syntax error, unexpected T_WHITESPACE in
/home/eggert/src/php/php-4.3.7/pear/install-pear.php on line 3
make[1]: *** [install-pear-installer] Error 255
make: *** [install-pear] Error 2






-- 
Edit this bug report

#22961 [Opn]: broken test case interface_doubled.phpt

2003-03-30 Thread cynic
 ID:   22961
 Updated by:   [EMAIL PROTECTED]
 Reported By:  [EMAIL PROTECTED]
 Status:   Open
 Bug Type: Unknown/Other Function
 Operating System: FreeBSD 4.8-RC
 PHP Version:  5CVS-2003-03-30 (dev)
-Assigned To:  
+Assigned To:  helly
 New Comment:

assigning to helly as he wrote this test


Previous Comments:


[2003-03-30 06:09:43] [EMAIL PROTECTED]

Index: tests/classes/interface_doubled.phpt
===
RCS file: /repository/php4/tests/classes/interface_doubled.phpt,v
retrieving revision 1.1
diff -u -r1.1 interface_doubled.phpt
this test's FAILure is bogus:

--- tests/classes/interface_doubled.phpt12 Mar 2003 00:09:59
-   1.1
+++ tests/classes/interface_doubled.phpt30 Mar 2003 11:45:48 -
@@ -30,7 +30,7 @@
 
 class base {
function test($class) {
-   echo is_a( . class_name($this) . , $class) . (is_a($this,
$class) ? yes\n : no\n);
+   echo is_a( . get_class($this) . , $class) . (is_a($this, $class)
? yes\n : no\n);
}
 }
  




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



#21979 [Opn-Bgs]: mistake of operator if

2003-01-31 Thread cynic
 ID:   21979
 Updated by:   [EMAIL PROTECTED]
 Reported By:  [EMAIL PROTECTED]
-Status:   Open
+Status:   Bogus
 Bug Type: Scripting Engine problem
 Operating System: windows 2000
 PHP Version:  4.3.0
 New Comment:

Thank you for taking the time to write to us, but this is not
a bug. Please double-check the documentation available at
http://www.php.net/manual/ and the instructions on how to report
a bug at http://bugs.php.net/how-to-report.php

= is not the same as ==



Previous Comments:


[2003-01-31 06:36:42] [EMAIL PROTECTED]

can't  work a script
  $r=0;
  if ($r=1) {$a=1;} //comparison on equal
  else {$a=0;}
  print Result=$a; 
i see always Result=1 
but can work a script
  $r=0;
  if ($r==1) {$a=1;} //comparison on identical
  else {$a=0;}
  print Result=$a;
i did see manual of PHP what must work both ways






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




#21979 [Bgs]: mistake of operator if

2003-01-31 Thread cynic
 ID:   21979
 Updated by:   [EMAIL PROTECTED]
 Reported By:  [EMAIL PROTECTED]
 Status:   Bogus
 Bug Type: Scripting Engine problem
 Operating System: windows 2000
 PHP Version:  4.3.0
 New Comment:

erm, where in the manual did you see the first version?



Previous Comments:


[2003-01-31 06:41:42] [EMAIL PROTECTED]

Thank you for taking the time to write to us, but this is not
a bug. Please double-check the documentation available at
http://www.php.net/manual/ and the instructions on how to report
a bug at http://bugs.php.net/how-to-report.php

= is not the same as ==




[2003-01-31 06:36:42] [EMAIL PROTECTED]

can't  work a script
  $r=0;
  if ($r=1) {$a=1;} //comparison on equal
  else {$a=0;}
  print Result=$a; 
i see always Result=1 
but can work a script
  $r=0;
  if ($r==1) {$a=1;} //comparison on identical
  else {$a=0;}
  print Result=$a;
i did see manual of PHP what must work both ways






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




#21842 [Bgs-Fbk]: sa

2003-01-23 Thread cynic
 ID:   21842
 Updated by:   [EMAIL PROTECTED]
 Reported By:  [EMAIL PROTECTED]
-Status:   Bogus
+Status:   Feedback
 Bug Type: mnoGoSearch related
 Operating System: ssdas
 PHP Version:  4.3.0
 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-23 08:24:17] [EMAIL PROTECTED]

Sorry, but your problem does not imply a bug in PHP itself.  For a
list of more appropriate places to ask for help using PHP, please
visit http://www.php.net/support.php as this bug system is not the
appropriate forum for asking support questions. 

Thank you for your interest in PHP.

.



[2003-01-23 08:18:49] [EMAIL PROTECTED]

asdsd




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




#21842 [Fbk-Bgs]: sa

2003-01-23 Thread cynic
 ID:   21842
 Updated by:   [EMAIL PROTECTED]
 Reported By:  [EMAIL PROTECTED]
-Status:   Feedback
+Status:   Bogus
 Bug Type: mnoGoSearch related
 Operating System: ssdas
 PHP Version:  4.3.0
 New Comment:

heck, wrong status, and late anyway



Previous Comments:


[2003-01-23 08:25:34] [EMAIL PROTECTED]

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

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

Thank you for your interest in PHP.




[2003-01-23 08:24:17] [EMAIL PROTECTED]

Sorry, but your problem does not imply a bug in PHP itself.  For a
list of more appropriate places to ask for help using PHP, please
visit http://www.php.net/support.php as this bug system is not the
appropriate forum for asking support questions. 

Thank you for your interest in PHP.

.



[2003-01-23 08:18:49] [EMAIL PROTECTED]

asdsd




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




#21632 [Opn-Fbk]: Links not always modified by trans-sid

2003-01-14 Thread cynic
 ID:   21632
 Updated by:   [EMAIL PROTECTED]
 Reported By:  [EMAIL PROTECTED]
-Status:   Open
+Status:   Feedback
 Bug Type: Session related
 Operating System: Slackware8.1/kernel2.4.19grsecur
 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-14 05:28:24] [EMAIL PROTECTED]

Hi,

I've noticed a fact. I don't know if it's a bug or a normal stuff.

The website is in /usr/local/apache/htdocs and there the links in the
php pages are automatically modified by --enable-trans-sid.

But, in this pages, I call a function in a php file not present under
the htdocs repository but in /usr/local/apache/scripts-php for security
reasons (mysql password...) and there is a function that take a session
value to display a navigation bar writing links. Those links are not
post-processed by trans-sid.

Is this a bug or a normal stuff ?




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




#21123 [Opn-Bgs]: Call Time pass by Reference should not be removed

2002-12-20 Thread cynic
 ID:   21123
 Updated by:   [EMAIL PROTECTED]
 Reported By:  [EMAIL PROTECTED]
-Status:   Open
+Status:   Bogus
 Bug Type: Feature/Change Request
 Operating System: All
 PHP Version:  4.2.3
 New Comment:

1) you can easily get around this with XForm::addByVal() /
XForm::addByRef()
2) I wonder how you got around writing a very large application
without ever looking in php.ini?




Previous Comments:


[2002-12-20 17:27:33] [EMAIL PROTECTED]

In my opinion I do not think depreciating and removing the Call Time
Pass by Reference feature of PHP is a good idea. There are a number of
valid reasons to use this feature, to which this feature is the only
solution. While programming a very large web database application for
my employer, I've found where this feature is extremely useful. Yet
when I've upgraded to new versions of PHP I've come to find that it is
depreciated. 

My example. In this application I've written a series of classes, I
call them XElements. Each XElement is essentially a class that is
dedicated to an XHTML 1.0 element.  So for example, I have an XForm,
XTable, XTd, XTr, etc.  They all inherit the XElement class. The
XElement class has a number of methods that are useful. The most
important two are add() and draw().  

The add() method takes one argument. This argument is then put into an
array variable of the object, maintaining the order by call to add(). 
So each time I call add() it adds this argument to the end of the
array. What are these arguments? They are the nested CDATA.  Consider
this:

form ...
p
Name
input ... /
Password
input ... /
 /p
/form

The way my code above would work is like this.

$myForm = new XForm();
$myP = new XP();
$myForm-add($myP);

$myP-add(Name);

$myInput1 = new XInput();
$myP-add($myInput1);

$myP-add(Password);

$myInput2 = new XInput();
$myP-add($myInput2);

$myForm-draw();

This is partially pseudo, since my real constructors have many
arguments for attributes of the XHTML code, I've left them out of this
example for clarity. Now with that in mind, onto draw().

The draw() method does one simple thing. It iterates through the array
of CDATA, and writes it out either by 1) if it's a string, echo it, 2)
if it's an object, assume its an XElement and call that XElement's
draw(). You can see how it then works. draw() manages the closing tags,
and knows which tags are allowed CDATA and which are not thus using /
instead of  as well. 

Now, with the above example we can see where Call Time Pass by
Reference comes into play.  If in the first part of my code, I did
$myForm-add($myP); instead of $myForm-add($myP); that would create a
copy of $myP and pass it to add().  Then any calls to $myP after that
add() won't reflect the $myP stored in the CDATA Array.  I could modify
the declaration of add() so that it takes a reference for the argument,
function add($arg) { ... }.  However, then I go to do
$myP-add(Name);, this would happen:

Fatal error: Cannot pass parameter 1 by reference

So what once would originally have only taken one function, would
require two if Call Time Pass by Reference was removed. I'd have to
create one function to add non-references, and one to add references. 
One could say I could have a function for adding string CDATA, and one
for adding XElements, however there comes a time when I don't want to
add a reference to a XElement, but rather have it store a copy. This
may come into play if say I wanted to construct one XInput then change
a field in the object and re-add it over and over, then I would omit
the Call Time Pass by Reference.

From what I can gather, removing Call Time Pass by Reference was
suppose to make it easier to read code, however if I have to add an
additional function to manage non-references, I'm don't see the
benefits anymore.
 






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




#21123 [Bgs]: Call Time pass by Reference should not be removed

2002-12-20 Thread cynic
 ID:   21123
 Updated by:   [EMAIL PROTECTED]
 Reported By:  [EMAIL PROTECTED]
 Status:   Bogus
 Bug Type: Feature/Change Request
 Operating System: All
 PHP Version:  4.2.3
 New Comment:

my apology for the offence.

i *did* read the whole thing.
PHP is not Perl, you can't squeeze a web application into $^, neither
would doing so make your application more readable.
we apparently have different opinion on what constitutes
code-cleanness.

i'm not a member of the PHP development group, i just close a PR every
now and then, and that requires a @php.net account.




Previous Comments:


[2002-12-20 18:09:01] [EMAIL PROTECTED]

Oh and I'm surprised by the fact you appear to be a member of the PHP
development group yet from a very valid request you take the
opportunity to insult me. I've been developing PHP professionly since
version 3.0.9.  I think that's about 4 years now.  I've found a lot of
the 'staff' very friendly and helpful, Cardinal, Philip, even Rasmus at
times. You however, chose to insult me rather than completely
understand my request. Thanks, I'm glad I spent all that money on PHP
shirts to help support the project.



[2002-12-20 18:04:11] [EMAIL PROTECTED]

Apparently you aren't reading my entire comment. First off if you took
the time to understand what depreciated means, Call Time Pass by
Reference will be removed entirely from PHP. Meaning I can't turn it on
in php.ini by setting allow_call_time_pass_reference. That option will
no longer exist in future versions of PHP.

Second, yes that is the way around it. And my point exactly. Removing
Call Time Pass by Reference was intended to make PHP code a bit
cleaner. Well instead of adding one character  to my function, I now
have to create an entirely new function to add to my class. So wheres
the benefit? No instead of consolidating it into one function I have to
split it into two that do 99% the same thing due to the fact Call Time
Pass by Reference was removed. I still don't see the reason for
removing it at all.



[2002-12-20 17:47:30] [EMAIL PROTECTED]

1) you can easily get around this with XForm::addByVal() /
XForm::addByRef()
2) I wonder how you got around writing a very large application
without ever looking in php.ini?





[2002-12-20 17:27:33] [EMAIL PROTECTED]

In my opinion I do not think depreciating and removing the Call Time
Pass by Reference feature of PHP is a good idea. There are a number of
valid reasons to use this feature, to which this feature is the only
solution. While programming a very large web database application for
my employer, I've found where this feature is extremely useful. Yet
when I've upgraded to new versions of PHP I've come to find that it is
depreciated. 

My example. In this application I've written a series of classes, I
call them XElements. Each XElement is essentially a class that is
dedicated to an XHTML 1.0 element.  So for example, I have an XForm,
XTable, XTd, XTr, etc.  They all inherit the XElement class. The
XElement class has a number of methods that are useful. The most
important two are add() and draw().  

The add() method takes one argument. This argument is then put into an
array variable of the object, maintaining the order by call to add(). 
So each time I call add() it adds this argument to the end of the
array. What are these arguments? They are the nested CDATA.  Consider
this:

form ...
p
Name
input ... /
Password
input ... /
 /p
/form

The way my code above would work is like this.

$myForm = new XForm();
$myP = new XP();
$myForm-add($myP);

$myP-add(Name);

$myInput1 = new XInput();
$myP-add($myInput1);

$myP-add(Password);

$myInput2 = new XInput();
$myP-add($myInput2);

$myForm-draw();

This is partially pseudo, since my real constructors have many
arguments for attributes of the XHTML code, I've left them out of this
example for clarity. Now with that in mind, onto draw().

The draw() method does one simple thing. It iterates through the array
of CDATA, and writes it out either by 1) if it's a string, echo it, 2)
if it's an object, assume its an XElement and call that XElement's
draw(). You can see how it then works. draw() manages the closing tags,
and knows which tags are allowed CDATA and which are not thus using /
instead of  as well. 

Now, with the above example we can see where Call Time Pass by
Reference comes into play.  If in the first part of my code, I did
$myForm-add($myP); instead of $myForm-add($myP); that would create a
copy of $myP and pass it to add().  Then any calls to $myP after that
add() won't reflect the $myP stored in the CDATA Array.  I 

#21126 [Opn-Csd]: returncodes in shell $? aren't correct

2002-12-20 Thread cynic
 ID:   21126
 Updated by:   [EMAIL PROTECTED]
 Reported By:  [EMAIL PROTECTED]
-Status:   Open
+Status:   Closed
 Bug Type: Output Control
 Operating System: Solaris 9 - Sparc
 PHP Version:  4.2.2
 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.


Previous Comments:


[2002-12-20 20:02:49] [EMAIL PROTECTED]

Hello,

there is something wrong with the exitcodes in PHP. I use it instead of
Perl for some shellscript addons. I need the exitcodes for sendmail.

Example:

? exit(); ?
Return as exitcode 0 which is ok.

? exit(79); ?
Return as exitcode 255 which isn't ok.

? exit(79); ?
Print out 79 and return exitcode 255, which isn't ok as well.


Here my configure:

'./configure' '--prefix=/www-1/src/php'
'--with-apxs=/usr/local/apache/bin/apxs'
'--with-config-file-path=/usr/local/apache/conf/' '--enable-versioning'
'--with-mysql=/usr/local/mysql' '--enable-ftp' '--enable-bcmath'
'--disable-debug' '--enable-memory-limit=yes' '--enable-track-vars'
'--enable-calendar' '--enable-force-cgi-redirect' '--enable-libgcc'
'--enable-trans-sid' '--with-java=/usr/java' '--enable-yp'
'--enable-sysvsem' '--enable-sysvshm' '--with-zlib=/sw/es-tools/'
'--with-gd=/sw/es-tools/' '--with-system-regex'
'--with-jpeg-dir=/sw/es-tools/pkg/jpeg-6b/'
'--with-tiff-dir=/sw/es-tools/pkg/tiff-3.5.7/'
'--with-ldap=/usr/local/' '--with-db3=/usr/local/BerkeleyDB.3.3/'
'--enable-cli'

I don't  think that a backtrace should help here. If yes, please
contact me.

Thx in forward.

Peter






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




#21062 [Opn-]: Recursive calls may SEGV

2002-12-17 Thread cynic
 ID:   21062
 Updated by:   [EMAIL PROTECTED]
 Reported By:  [EMAIL PROTECTED]
-Status:   Open
+Status:   Won\'t fix
 Bug Type: *Programming Data Structures
 Operating System: Slackware 8.1, Linux 2.4.18 krnl
 PHP Version:  4.3.0RC3
 New Comment:

this is a bazillionth report of this behavior, which won't be fixed for
(IIRC) efficiency reasons.



Previous Comments:


[2002-12-17 03:36:37] [EMAIL PROTECTED]

compiled:
./configure  make  make install

script:
?
function x(){
  x();
}
x();
?

This little piece of code produces a SEGV. At some point the stack is
full, and the program crashes. Why not die() before crashing?

OK, this code is so wrong... But still it should not SEGV.   
Discovered it on PHP 4.2.2 (apache mod) and especially built PHP
4.3.0RC3 (cmdline) to find that 4.3.0RC3 still does this.






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




#20389 [Fbk]: user defined session handler is broken

2002-11-27 Thread cynic
 ID:   20389
 Updated by:   [EMAIL PROTECTED]
 Reported By:  [EMAIL PROTECTED]
 Status:   Feedback
 Bug Type: Session related
 Operating System: Solaris
 PHP Version:  4.2.3
 New Comment:

The 4.2.x branch is as stable (or more stable) than the 4.2.3.

did you mean the 4.3.x branch? :)




Previous Comments:


[2002-11-27 06:18:31] [EMAIL PROTECTED]

You have the option of trying 4.2.3 + some fixes or trying the release
candidate of 4.3.

The 4.2.x branch is as stable (or more stable) than the 4.2.3.  If we
were going to release a 4.2.4, that would be it.

However, we are not going to do that; we are focusing on 4.3 instead.

There is not much more we can do for you without access to your boxes,
and why should we do that?  You are the one being paid to look after
your boxes, not us.

Please test a newer version as suggested so that we can determine if
the problem has been corrected already.
If it has not, then someone may *volunteer* to look into the problem
and resolve it.

[Remember; you can test a newer version of PHP by running a separate
apache instance on another port.]




[2002-11-27 04:36:48] [EMAIL PROTECTED]

The reason that I didn't feedback on the was that the suggested fix was
to move to a later build of PHP for Solaris . Since all our Solaris
machines are in Production I couldn't risk the upgrade.

I beleive this is still a significant problem



[2002-11-26 20:02:40] [EMAIL PROTECTED]

No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to Open. Thank you.





[2002-11-12 08:36:53] [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-11-12 08:19:15] [EMAIL PROTECTED]

System SunOS 5.8 Generic_108528-14
sun4u sparc SUNW,UltraAX-i2 (Solaris 8)
with Apache 1.3.24 and Apache 1.3.26

This also affects PHP 4.2.2.

If session.save_handler is set to user, the user
defined functions appear to not be called.

Furthermore - When Apache is restarted, after the
configuration directive has been set to user
it will very often fail to parse PHP code. I suppose
this can be considered equivalent to a crash.

My test scripts worked perfectly on my Mac OS X
development machine, so I am reasonably sure that
there is not an error in my code.

My configure command:
 './configure' '--prefix=/._ark-deploy/php--4.2.3'
'--with-mysql=/._ark-deploy/mysql--3.23.51'
'--with-apxs=/._ark-deploy/apache--1.3.26/bin/apxs'
'--with-config-file-path=/ark/etc' '--with-zlib' '--enable-xslt'
'--with-xslt-sablot=/._ark-deploy/sablotron--0.96.1' '--with-sablot-js'
'--with-expat-dir=/._ark-deploy/expat--1.95.4'
'--with-gd=/._ark-deploy/gd--1.8.4'
'--with-png-dir=/._ark-deploy/libpng--1.2.4'
'--with-jpeg-dir=/._ark-deploy/jpeg--6b'
'--with-freetype-dir=/._ark-deploy/freetype--2.1.2'
'--with-java=/usr/java' '--with-ming=/._ark-deploy/ming--0.2a'
'--enable-trans-sid'




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




#20657 [Opn-Fbk]: Rundom Apache/PHP Bug

2002-11-26 Thread cynic
 ID:   20657
 Updated by:   [EMAIL PROTECTED]
 Reported By:  [EMAIL PROTECTED]
-Status:   Open
+Status:   Feedback
 Bug Type: Apache related
 Operating System: Windows 2000 Prof.
 PHP Version:  4.3.0RC1
 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.


Previous Comments:


[2002-11-26 13:22:05] [EMAIL PROTECTED]

I'm using PHP 4.3 RC1 with Apache/1.3.24 on Windows 2002 (Windows NT
localhost 5.0 build 2195).
I'm geting an quite not repeatable error.
In i quess random intervals the webserver dies with an error message.
This only happens when calling php sites.
This error does not occur on normal html pages. So i guess its a php
bug.

The Message says that the method read could not be executed in
memory. Coz my windows is in german i've uploaded an screenshot to
http://www.rednoize.com/~marceman/phpbug.gif

Hope i could help ya in some way.

GREETS
marceman




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




#20545 [Bgs]: wrong automatic url rewriting when using session.use_trans_sid

2002-11-21 Thread cynic
 ID:   20545
 Updated by:   [EMAIL PROTECTED]
 Reported By:  [EMAIL PROTECTED]
 Status:   Bogus
 Bug Type: Session related
 Operating System: linux
 PHP Version:  4.2.3
 New Comment:

read your php.ini



Previous Comments:


[2002-11-21 08:44:22] [EMAIL PROTECTED]

Thank you for taking the time to write to us, but this is not
a bug. Please double-check the documentation available at
http://www.php.net/manual/ and the instructions on how to report
a bug at http://bugs.php.net/how-to-report.php



[2002-11-21 08:40:31] [EMAIL PROTECTED]

when using session.use_trans_sid, SID is appended to url with
parameters using the 'PHPSESSID=...' string, wich is not conforming to
SGML nor XML (although most browsers accept this)

'amp;PHPSESSID=...' should be used instead






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




#20406 [Bgs]: defined() does not work properly within function or class

2002-11-13 Thread cynic
 ID:   20406
 Updated by:   [EMAIL PROTECTED]
 Reported By:  [EMAIL PROTECTED]
 Status:   Bogus
 Bug Type: Variables related
 Operating System: Windows XP
 PHP Version:  4.2.0
 New Comment:

first, read the code you gave us again. it can't produce the output you
claim
it does. it will output NOM, and possibly an E_NOTICE. clearly, this
is
not a test case for your perceived problem.

second, i don't know what EasyPHP is, but maybe you should file a PR
with its
vendor?




Previous Comments:


[2002-11-13 07:20:19] [EMAIL PROTECTED]

I was not asking for support nor help. I know that i can replace if
(defined(NAME)) by if (NAME), for example.

I may be wrong about the place where i reported this bug.

But i wonder how you can explain that this is a good behavior for
defined() : how can a constant have a value that you can have access to
and not be defined ?



[2002-11-13 04:58:33] [EMAIL PROTECTED]

Sorry, but your problem does not imply a bug in PHP itself.  For a
list of more appropriate places to ask for help using PHP, please
visit http://www.php.net/support.php as this bug system is not the
appropriate forum for asking support questions. 

Thank you for your interest in PHP.



[2002-11-13 04:39:32] [EMAIL PROTECTED]

The function defined() always return false within a function or class,
although the value of the constant is still available.

the code :

?php
define(NAME, value);
function f() {
 if (defined(NOM)) echo NOM is defined;
 echo NOM;
}
f();
?

will print value only. Currently tested with EasyPHP running with a
Windows XP computer.




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




#11300 [Bgs]: MSCOMCTL.OCX is missing on clean Windows machine.

2002-11-08 Thread cynic
 ID:   11300
 Updated by:   [EMAIL PROTECTED]
 Reported By:  [EMAIL PROTECTED]
 Status:   Bogus
 Bug Type: IIS related
 Operating System: Windows Millenium
 PHP Version:  4.0.5
 New Comment:

you're more than welcom to contribute.



Previous Comments:


[2002-11-08 16:20:40] [EMAIL PROTECTED]

I installed Win2k with SP2 and installed the latest download and
received an error about a missing OCX.

Copying mscomctl.ocx from another Win2k machine to c:\winnt\system32
resolved the install error message.

It would be nice if the PHP install at least indicated that
mscomctl.ocx was what it was looking for!  The installer is a bit
sloppy in this regard.



[2002-05-24 20:12:23] [EMAIL PROTECTED]

Thank you for taking the time to report a problem with PHP.
Unfortunately your version of PHP is too old -- the problem
might already be fixed. Please download a new PHP
version from http://www.php.net/downloads.php

If you are able to reproduce the bug with one of the latest
versions of PHP, please change the PHP version on this bug report
to the version you tested and change the status back to Open.
Again, thank you for your continued support of PHP.





[2001-06-05 20:28:29] [EMAIL PROTECTED]

On a clean Windows Millenium machine, IIS is not installed. Attempting
to install PHP 4.0.5 Windows Installer with all defaults results in the
following error during php.ini copy. It should fail gracefully.

[IISConfig]
 Component 'MSCOMCTL.OCX' or one of it's dependencies not correctly
registered a file is missing or invalid.




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




#20299 [Opn-Bgs]: On the command line, $argv/ $argc are not set

2002-11-07 Thread cynic
 ID:   20299
 Updated by:   [EMAIL PROTECTED]
 Reported By:  [EMAIL PROTECTED]
-Status:   Open
+Status:   Bogus
 Bug Type: Variables related
 Operating System: WinNT SP6
 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:


[2002-11-07 08:28:58] [EMAIL PROTECTED]

Using php on the command line, the variables $argv and $argc are not
set even when arguments are present. I used the newest win32 zip
package from php.net. But it worked on a linux system ...




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




#20299 [Bgs-Fbk]: On the command line, $argv/ $argc are not set

2002-11-07 Thread cynic
 ID:   20299
 Updated by:   [EMAIL PROTECTED]
 Reported By:  [EMAIL PROTECTED]
-Status:   Bogus
+Status:   Feedback
 Bug Type: Variables related
 Operating System: WinNT SP6
 PHP Version:  4.2.3
 New Comment:

what is your register_argc_argv setting?



Previous Comments:


[2002-11-07 08:54:32] [EMAIL PROTECTED]

In PHP 4.2.0, the 'register_globals' setting default changed to
'off'. See http://www.php.net/release_4_2_0.php for more info.
We are sorry about the inconvenience, but this change was a necessary
part of our efforts to make PHP scripting more secure and portable.





[2002-11-07 08:48:44] [EMAIL PROTECTED]

this is the script 'test.php'
-
?php
  print_r($argv);
?
-

when called via
c:\php -f test.php test bla testagain

it should print:
--
Array
(
[0] = test.php
[1] = test
[2] = bla
[3] = testagain
)
-

but nothing happens.

i used php 4.2.3 win32 binaries (zip) on a WinNT SP6 PC.
all other things seem to work.



[2002-11-07 08:36:41] [EMAIL PROTECTED]

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

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

Thank you for your interest in PHP.




[2002-11-07 08:28:58] [EMAIL PROTECTED]

Using php on the command line, the variables $argv and $argc are not
set even when arguments are present. I used the newest win32 zip
package from php.net. But it worked on a linux system ...




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




#19970 [NEW]: feof()/fgets()/fgetcsv() problem

2002-10-18 Thread cynic
From: [EMAIL PROTECTED]
Operating system: FreeBSD 4.7-STABLE
PHP version:  4.2.2
PHP Bug Type: Filesystem function related
Bug description:  feof()/fgets()/fgetcsv() problem

am I the only one who thinks that this should not output anything?

?php
$fd = fopen(__FILE__, 'r');
while (!feof($fd)) fgets($fd, 4096) || var_dump(feof($fd));
fclose($fd);

I get bool(false) from 4.4.0-dev (cli) and 4.2.2 mod_php.

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




#19953 [Bgs]: include_path doesn't work properly

2002-10-18 Thread cynic
 ID:   19953
 Updated by:   [EMAIL PROTECTED]
 Reported By:  [EMAIL PROTECTED]
 Status:   Bogus
 Bug Type: Filesystem function related
 Operating System: suse linux 8.0
 PHP Version:  4.2.2
 New Comment:

nothing strange, really. the ./ bypasses include_path.



Previous Comments:


[2002-10-17 10:03:50] [EMAIL PROTECTED]

Thank you for taking the time to write to us, but this is not
a bug. Please double-check the documentation available at
http://www.php.net/manual/ and the instructions on how to report
a bug at http://bugs.php.net/how-to-report.php

Don't use relative paths inside include_path, it'll only result in
problems.



[2002-10-17 09:24:28] [EMAIL PROTECTED]

The include_path does not seem to work properly for include, may be
also for require etc.

Try the follwing:

ini_set('include_path',..);
require_once(include/standart.php);
- success

ini_set('include_path',..);
require_once(./include/standart.php);
- failure even it's the same file as above !!

strange, isn't it ??!




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




#19970 [Fbk-Opn]: feof()/fgets()/fgetcsv() problem

2002-10-18 Thread cynic
 ID:   19970
 Updated by:   [EMAIL PROTECTED]
 Reported By:  [EMAIL PROTECTED]
-Status:   Feedback
+Status:   Open
 Bug Type: Filesystem function related
 Operating System: FreeBSD 4.7-STABLE
 PHP Version:  4.2.2
 New Comment:

michael: i meant bool(true) of course, sorry for the confusion.

wez: still no banana

roman@freepuppy ~/tmp 1027:0  php -v
PHP 4.3.0-dev (cli), Copyright (c) 1997-2002 The PHP Group
Zend Engine v1.3.0, Copyright (c) 1998-2002 Zend Technologies
roman@freepuppy ~/tmp 1028:1  cat feof1.php 
?php
$fd = fopen(__FILE__, 'r');
while (!feof($fd)) fgets($fd, 4096) || var_dump(feof($fd));
fclose($fd);
roman@freepuppy ~/tmp 1029:0  php feof1.php
bool(true)
roman@freepuppy ~/tmp 1030:0  

fgets() gets to read past EOF, but it shouldn't. looks like feof() is
broken.

roman@freepuppy ~/tmp 1031:0  fc -lf |grep cvs -q up 
 1016  10/18/2002 11:35  cvs -q up
roman@freepuppy ~/tmp 1032:0  date
Fri Oct 18 11:48:31 CEST 2002

roman@freepuppy ~/tmp 1033:0  cat ~/install/php4/config.nice.cli  
 
#! /bin/sh
#
# Created by configure

'./configure' \
'--enable-cli' \
'--enable-inline-optimization' \
'--enable-ftp' \
'--enable-shmop' \
'--enable-sysvsem' \
'--enable-sysvshm' \
'--enable-sockets' \
'--enable-tokenizer' \
'--disable-session' \
'--disable-shared' \
'--with-openssl' \
'--with-zlib' \
'--with-bz2' \
'--with-curl' \
'--with-gettext' \
'--with-iconv' \
'--with-mcrypt=/usr/local' \
'--with-mhash=/usr/local' \
'--with-ncurses' \
'--with-readline' \
'--with-pear' \
'--with-config-file-path=/usr/local/etc' \
'--with-mysql=/usr/local' \
$@

I ./configure --disable-all --enable-cli with the same result.




Previous Comments:


[2002-10-18 03:49:52] [EMAIL PROTECTED]

cynic - can you try HEAD or a snapshot from the last day or so?
I fixed an eof related issue recently.



[2002-10-18 03:45:31] [EMAIL PROTECTED]

I get bool(true) with 4.2.3 and 4.3.0-dev (from yesterday), both
mod_php, Linux 2.4.19.

Maybe it's a documentation problem:

the manual only says about the return value of fgets():

  If an error occurs, returns FALSE.

Nothing is said about the return value on EOF (only People used to the
'C' semantics of fgets()  should note the difference in how EOF is
returned.), so I guess fgets() is free to return whatever it likes on
EOF. Was this different in previous versions of PHP?



[2002-10-18 01:57:06] [EMAIL PROTECTED]

am I the only one who thinks that this should not output anything?

?php
$fd = fopen(__FILE__, 'r');
while (!feof($fd)) fgets($fd, 4096) || var_dump(feof($fd));
fclose($fd);

I get bool(false) from 4.4.0-dev (cli) and 4.2.2 mod_php.





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




#19979 [NEW]: Makefile: 'install' target doesn't invoke 'all' or something

2002-10-18 Thread cynic
From: [EMAIL PROTECTED]
Operating system: FreeBSD 4.7-STABLE
PHP version:  4CVS-2002-10-18
PHP Bug Type: Compile Failure
Bug description:  Makefile: 'install' target doesn't invoke 'all' or something

1) why does it try to install php-cgi
2) why doesn't make install do the same thing as make  make install?

roman@freepuppy ~/install/php4 1049:0  ./configure
--prefix=/home/roman/php --disable-all --enable-cli
...
roman@freepuppy ~/install/php4 1050:0  make install
...
/bin/sh libtool --silent --mode=link gcc -g -O2 -prefer-non-pic -static 
-rpath /usr/home/roman/install/php4/libsext/standard/array.lo
ext/standard/base64.lo ext/standard/basic_functions.lo
ext/standard/browscap.lo ext/standard/crc32.lo ext/standard/crypt.lo
ext/standard/cyr_convert.lo ext/standard/datetime.lo ext/standard/dir.lo
ext/standard/dl.lo ext/standard/dns.lo ext/standard/exec.lo
ext/standard/file.lo ext/standard/filestat.lo ext/standard/flock_compat.lo
ext/standard/formatted_print.lo ext/standard/fsock.lo ext/standard/head.lo
ext/standard/html.lo ext/standard/image.lo ext/standard/info.lo
ext/standard/iptc.lo ext/standard/lcg.lo ext/standard/link.lo
ext/standard/mail.lo ext/standard/math.lo ext/standard/md5.lo
ext/standard/metaphone.lo ext/standard/microtime.lo ext/standard/pack.lo
ext/standard/pageinfo.lo ext/standard/parsedate.lo
ext/standard/quot_print.lo ext/standard/rand.lo ext/standard/reg.lo
ext/standard/soundex.lo ext/standard/string.lo ext/standard/scanf.lo
ext/standard/syslog.lo ext/standard/type.lo ext/standard/uniqid.lo
ext/standard/url.lo ext/standard/url_scanner.lo ext/standard/var.lo
ext/standard/versioning.lo ext/standard/assert.lo
ext/standard/strnatcmp.lo ext/standard/levenshtein.lo
ext/standard/incomplete_class.lo ext/standard/url_scanner_ex.lo
ext/standard/ftp_fopen_wrapper.lo ext/standard/http_fopen_wrapper.lo
ext/standard/php_fopen_wrapper.lo ext/standard/credits.lo
ext/standard/css.lo ext/standard/var_unserializer.lo ext/standard/ftok.lo
ext/standard/aggregation.lo ext/standard/sha1.lo regex/regcomp.lo
regex/regexec.lo regex/regerror.lo regex/regfree.lo TSRM/TSRM.lo
TSRM/tsrm_strtok_r.lo TSRM/tsrm_virtual_cwd.lo main/main.lo
main/snprintf.lo main/spprintf.lo main/php_sprintf.lo main/safe_mode.lo
main/fopen_wrappers.lo main/alloca.lo main/php_ini.lo main/SAPI.lo
main/rfc1867.lo main/php_content_types.lo main/strlcpy.lo main/strlcat.lo
main/mergesort.lo main/reentrancy.lo main/php_variables.lo
main/php_ticks.lo main/streams.lo main/network.lo
main/php_open_temporary_file.lo main/php_logos.lo main/output.lo
main/memory_streams.lo main/user_streams.lo Zend/zend_language_parser.lo
Zend/zend_language_scanner.lo Zend/zend_ini_parser.lo
Zend/zend_ini_scanner.lo Zend/zend_alloc.lo Zend/zend_compile.lo
Zend/zend_constants.lo Zend/zend_dynamic_array.lo Zend/zend_execute_API.lo
Zend/zend_highlight.lo Zend/zend_llist.lo Zend/zend_opcode.lo
Zend/zend_operators.lo Zend/zend_ptr_stack.lo Zend/zend_stack.lo
Zend/zend_variables.lo Zend/zend.lo Zend/zend_API.lo
Zend/zend_extensions.lo Zend/zend_hash.lo Zend/zend_list.lo
Zend/zend_indent.lo Zend/zend_builtin_functions.lo Zend/zend_sprintf.lo
Zend/zend_ini.lo Zend/zend_qsort.lo Zend/zend_multibyte.lo
Zend/zend_execute.lo sapi/cgi/cgi_main.lo sapi/cgi/getopt.lo
main/internal_functions.lo -lcrypt -lm -lcrypt  -o libphp4.la
Installing PHP SAPI module
cp: sapi/cgi/php-cgi: No such file or directory
*** Error code 1

Stop in /usr/home/roman/install/php4.

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




#19970 [Csd]: feof()/fgets()/fgetcsv() problem

2002-10-18 Thread cynic
 ID:   19970
 Updated by:   [EMAIL PROTECTED]
 Reported By:  [EMAIL PROTECTED]
 Status:   Closed
 Bug Type: Filesystem function related
 Operating System: FreeBSD 4.7-STABLE
 PHP Version:  4.2.2
 New Comment:

thanks, wez, works for me, too.



Previous Comments:


[2002-10-18 07:15:46] [EMAIL PROTECTED]

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.

It now works for me.
Let me know if it is still borked. :-)



[2002-10-18 06:59:23] [EMAIL PROTECTED]

Yes, cynic, you're right, it's a bug.

$fd = fopen(__FILE__, 'r');
while (!feof($fd)) 
{
  $s = fgets($fd);
  if($s === false)
echo There was an error! And feof() is ,var_dump(feof($fd));
  // echo $s;
}
fclose($fd);

Prints:

There was an error! And feof() is bool(true)



[2002-10-18 04:55:18] [EMAIL PROTECTED]

michael: i meant bool(true) of course, sorry for the confusion.

wez: still no banana

roman@freepuppy ~/tmp 1027:0  php -v
PHP 4.3.0-dev (cli), Copyright (c) 1997-2002 The PHP Group
Zend Engine v1.3.0, Copyright (c) 1998-2002 Zend Technologies
roman@freepuppy ~/tmp 1028:1  cat feof1.php 
?php
$fd = fopen(__FILE__, 'r');
while (!feof($fd)) fgets($fd, 4096) || var_dump(feof($fd));
fclose($fd);
roman@freepuppy ~/tmp 1029:0  php feof1.php
bool(true)
roman@freepuppy ~/tmp 1030:0  

fgets() gets to read past EOF, but it shouldn't. looks like feof() is
broken.

roman@freepuppy ~/tmp 1031:0  fc -lf |grep cvs -q up 
 1016  10/18/2002 11:35  cvs -q up
roman@freepuppy ~/tmp 1032:0  date
Fri Oct 18 11:48:31 CEST 2002

roman@freepuppy ~/tmp 1033:0  cat ~/install/php4/config.nice.cli  
 
#! /bin/sh
#
# Created by configure

'./configure' \
'--enable-cli' \
'--enable-inline-optimization' \
'--enable-ftp' \
'--enable-shmop' \
'--enable-sysvsem' \
'--enable-sysvshm' \
'--enable-sockets' \
'--enable-tokenizer' \
'--disable-session' \
'--disable-shared' \
'--with-openssl' \
'--with-zlib' \
'--with-bz2' \
'--with-curl' \
'--with-gettext' \
'--with-iconv' \
'--with-mcrypt=/usr/local' \
'--with-mhash=/usr/local' \
'--with-ncurses' \
'--with-readline' \
'--with-pear' \
'--with-config-file-path=/usr/local/etc' \
'--with-mysql=/usr/local' \
$@

I ./configure --disable-all --enable-cli with the same result.





[2002-10-18 03:49:52] [EMAIL PROTECTED]

cynic - can you try HEAD or a snapshot from the last day or so?
I fixed an eof related issue recently.



[2002-10-18 03:45:31] [EMAIL PROTECTED]

I get bool(true) with 4.2.3 and 4.3.0-dev (from yesterday), both
mod_php, Linux 2.4.19.

Maybe it's a documentation problem:

the manual only says about the return value of fgets():

  If an error occurs, returns FALSE.

Nothing is said about the return value on EOF (only People used to the
'C' semantics of fgets()  should note the difference in how EOF is
returned.), so I guess fgets() is free to return whatever it likes on
EOF. Was this different in previous versions of PHP?



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/19970

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




#19926 [Opn-Bgs]: Can't compare equality on strings using various methods

2002-10-16 Thread cynic

 ID:   19926
 Updated by:   [EMAIL PROTECTED]
 Reported By:  [EMAIL PROTECTED]
-Status:   Open
+Status:   Bogus
 Bug Type: Strings related
 Operating System: Win 2K Server
 PHP Version:  4.2.3
 New Comment:

roman@freepuppy ~ 1036:0  php -r
'var_dump(urldecode(%3CItemNumber%3E427-1831A));'
string(21) ItemNumber427-1831A

fix your code.




Previous Comments:


[2002-10-16 10:59:22] [EMAIL PROTECTED]

Update to Bug #19926.

I started to suspect that maybe the strings being compared weren't
really equal after all.  I used the urlencode function to see if there
were hidden characters in either if the strings.  The $LastPNumber
variable that I use to assign the $data[0] element contents to showed
up as:
-
The urlencode for 427-1831A is %3CItemNumber%3E427-1831A
-
...while the data[0] element always showed up as:
-
The urlencode for 427-1831A is 427-1831A
-
...when run through the same sequence.

So, the mystery solved on one end, but a giant hole opens yet again. 
Why is a simple assignment such as:
-
$LastPNumber = trim($data[0]);
-
...resulting in other characters being added (%3CItemNumber%3E)?  Also,
the ItemNumber is the column name that is derived at the very begining
of this routine by reading the first line of the file into another
array named $elements.

Let me start from the beginning.  The routine runs like this:

Read the first line of the CSV file into an array named $elements...
This data will serve as the element Names
Read each subsequent line into an array named $data...
Loop through the $data array for as many count($elements) and create
the XML structures like this...
-
$data[$i] = \t\t . $elements[$i] . . trim($data[$i]) . / .
$elements[$i] .;
-
I use a switch statement to determine the start and end elements and
for other special elements in between.

So, what is causing this behavior?  From the trenches I have no idea. 
But I found a way around it!

My goal is to keep the part numbers unique in the XML file.  As they
exist in the CSV file they are not.  If there are other motorcycles
that a part may fit, then they are listed on a separate row with the
same part number.  If I had all this data in a database, I could use a
DISTINCT on my selection and problem solved!  However, I don't at this
point,  I just want to build XML files with PHP.  Is that asking too
much?  I don't think so.  Since all the CSV rows are sorted by part
number, all I have to do is compare the last part number with the next,
if same, don't add the enclosing element and start a new one, just keep
looping for this data set adding more child elements.

A simple solution formed by a simple mind.  Mine!  However, the strings
refuse to match...
My whole solution was blown away until I figured thus:
All I have to do is check for the existence of the last part number in
the next part number!

So that's what I did.  I used the following:
---
if (strpos($ArrayComp[0], $data[$i])) {
$ev = They are Equal;
} else {
$ev = Equality Failed;
}
echo Evaluates to:  . $ev . br;
echo The  position is  . strval(strpos($ArrayComp[0], $data[$i])) .
br
-

And here are the results:

Set the last Part Number to: 427-1831A
Array ( [0] = 427-1831A ) Comparing the last Part Number (427-1831A)
to: next Row Part Number: 427-1831A
Evaluates to: They are Equal
The position is 12
New number, New Element
Set the last Part Number to: 427-1831A
Array ( [0] = 427-1831A ) Comparing the last Part Number (427-1831A)
to: next Row Part Number: 427-1832A
Evaluates to: Equality Failed
The position is 
New number, New Element
Set the last Part Number to: 427-1832A

Again, the positive number indicates strpos() is working, but not as I
would believe it should.  In any case, I found my workaround, but I
hope someone much smarter than me can either explain...
A. Why I shouldn't attempt something so simple...
B. That there is a problem when comparing strings with strings
C. Why urlencode() does what it does with this particular assignment
and why I shouldn't use it to troubleshoot string problems
D. All of the above

I'm so worn out by all of this, please forgive the verboseness.  I
really am trying to use PHP as the platform from which to develop my
business with, and since I am a Java and Server Side JavaScript

#19884 [Opn-Bgs]: Functions close connections

2002-10-13 Thread cynic

 ID:   19884
 Updated by:   [EMAIL PROTECTED]
 Reported By:  [EMAIL PROTECTED]
-Status:   Open
+Status:   Bogus
 Bug Type: MySQL related
 Operating System: FreeBSD  XP
 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.


i don't think that counts as a script. you know, something that we
could actually run. code, you know?

and:
1. no, don't paste your whole application here.
   isolate the problem to the lowest line count possible.
2. *no* echo htmlprefont$foo/font/pre/html stuff if it's
not required to make the bug show up;
   strip anrything that's not absolutely needed.
3. it needs to be *actual code*. just waving it like this makes it
harder for the developers, and you're less likely to get a speedy fix.
4. *paste* the code here: i made a typo when i was typing it in here
coz i can't use clipboard threads are wasting resources and have the
same ill effect as the previous point. the PHP developers don't enjoy
finding actual bugs buried in heaps of parse errors.

i hope that was explicit enough.




Previous Comments:


[2002-10-13 08:50:52] [EMAIL PROTECTED]

I open a connection to mysql ($conn) for use in my program.  Then I
call a function (FuncName) that begins with the line (global $conn). 
Even though there is no mysql_close($conn) statement when the function
returns I no longer have a mysql connection.  This causes subsequent
database queries to return mysql resource error.  Therefore, it
appears as though the mysql connection is being closed by the function.



[2002-10-13 01:35:36] [EMAIL PROTECTED]

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

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

Thank you for your interest in PHP.




[2002-10-13 00:54:19] [EMAIL PROTECTED]

I have many functions that use a mysql_result_resource that is declared
global (i.e. global $mysql_link).  For some reason after a call to
those functions my mysql_connection disappears/is closed.




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




#19884 [Opn-Bgs]: Functions close connections

2002-10-13 Thread cynic

 ID:   19884
 Updated by:   [EMAIL PROTECTED]
 Reported By:  [EMAIL PROTECTED]
-Status:   Open
+Status:   Bogus
 Bug Type: MySQL related
 Operating System: FreeBSD  XP
 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:


[2002-10-13 00:54:19] [EMAIL PROTECTED]

I have many functions that use a mysql_result_resource that is declared
global (i.e. global $mysql_link).  For some reason after a call to
those functions my mysql_connection disappears/is closed.




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




#19893 [Opn-Fbk]: Output not displayed with $_SERVER

2002-10-13 Thread cynic

 ID:   19893
 Updated by:   [EMAIL PROTECTED]
 Reported By:  [EMAIL PROTECTED]
-Status:   Open
+Status:   Feedback
 Bug Type: Scripting Engine problem
 Operating System: WIndows ME
 PHP Version:  4.2.3
 New Comment:

try it with a different client, like wget or cURL.
also, what does this script output?

?php
error_reporting(E_ALL);
header(Content-Type: text/plain);
print_r($_SERVER['PHP_SELF']);
?





Previous Comments:


[2002-10-13 23:18:07] [EMAIL PROTECTED]

I sem to have this problem. I recently upgraded to PHP 4.2.3. Since it
has register_globals turned off, I went through and attempted to modify
my code to the new format. I seem to keep having this one problem
though.

When I view this in a browser(IE 5.5) form action=?php
echo($_SERVER('PHP_SELF']); ? method=post it will not give me any
output, no warnings, no errors, nothing. When I isolated just this
piece of code, and put it in a seperate document, it should have had
the output of
form action=mypage.php method=post, but for some reason it would not
parse it. I have no clue why this is happening. Is it a bug, or am I
just stupid?




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




#19033 [Csd]: set_error_handler() to accepts object/method tuple

2002-10-10 Thread cynic

 ID:   19033
 Updated by:   [EMAIL PROTECTED]
 Reported By:  [EMAIL PROTECTED]
 Status:   Closed
 Bug Type: Program Execution
 Operating System: linux 2.4.18
 PHP Version:  4.2.1
 New Comment:

i have not tested it, but presumably the interface is the same as for
call_user_func()



Previous Comments:


[2002-10-10 10:00:24] [EMAIL PROTECTED]

I downloaded this: http://snaps.php.net/win32/php4-win32-latest.zip

And it still doesnt work.
?
class Test{
function ErrorHandler($a,$b){
print(Error Handled);
}
}
$error=new Test();
print(AA.$fafa);
set_error_handler('$error-ErrorHandler');
print(AA.$fafa);
?

This bug should be probably reopened



[2002-10-10 05:50:03] [EMAIL PROTECTED]

In CVS, development snapshot is available at
http://snaps.php.net/php4-latest.tar.bz2

From the ChangeLog:
2002-06-12  Andrei Zmievski  [EMAIL PROTECTED]

* NEWS:
set_error_handler() should take methods as callbacks. Also fixed it
to report
invalid callbacks.



[2002-10-10 04:20:42] [EMAIL PROTECTED]

I downloaded Yesterdays laststable version, and bug is still in. When
it was fixed?



[2002-10-10 02:57:17] [EMAIL PROTECTED]

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.





[2002-10-09 13:22:53] [EMAIL PROTECTED]

I still recive this bug.
I'm unable to do this:

$old=set_error_handler(array($error, ErrorHandler));

(from outside the class)
or this:

$old=set_error_handler(array($this, ErrorHandler));
(from inside)

I'm using PHP 4.2.3 for Windows



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/19033

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




#19033 [Csd]: set_error_handler() to accepts object/method tuple

2002-10-10 Thread cynic

 ID:   19033
 Updated by:   [EMAIL PROTECTED]
 Reported By:  [EMAIL PROTECTED]
 Status:   Closed
 Bug Type: Program Execution
 Operating System: linux 2.4.18
 PHP Version:  4.2.1
 New Comment:

works fine for me with a 2 days old HEAD. you're doing something
wrong.

roman@freepuppy ~ 1005:0  php -v
PHP 4.4.0-dev (cli), Copyright (c) 1997-2002 The PHP Group
Zend Engine v1.4.0, Copyright (c) 1998-2002 Zend Technologies
roman@freepuppy ~ 1006:1  tmp/scratch2

Notice: Undefined variable:  fafa in /usr/home/roman/tmp/scratch2 on
line 13
AAError Handled
roman@freepuppy ~ 1007:0  uname -sr
FreeBSD 4.7-RC
roman@freepuppy ~ 1008:0   tmp/scratch2
#!/usr/bin/env php
?

error_reporting(E_ALL);

class Test
{
function ErrorHandler($a,$b)
{
print(Error Handled\n);
}
}
$error=new Test();
print(AA.$fafa);
set_error_handler(array($error, 'ErrorHandler'));
print(AA.$fafa);

roman@freepuppy ~ 1009:0  




Previous Comments:


[2002-10-10 10:34:37] [EMAIL PROTECTED]

?
class Test{
function ErrorHandler($a,$b){
print(Error Handled);
}
}
$error=new Test();
print(AA.$fafa);
set_error_handler(array($error, 'ErrorHandler'));
print(AA.$fafa);
?

Result:


Notice: Undefined variable: fafa in
E:\server\www\sports\futur\test.phtml on line 8
AA
Notice: Array to string conversion in
E:\server\www\sports\futur\test.phtml on line 9

Notice: Undefined variable: fafa in
E:\server\www\sports\futur\test.phtml on line 10
AA


Sp - still doesnt work



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

He's simply using the wrong syntax.

The syntax is either

  array($obj, 'method');

or

  array('class', 'method');

so this makes

set_error_handler(array($obj, 'method'));



[2002-10-10 10:29:45] [EMAIL PROTECTED]

i have not tested it, but presumably the interface is the same as for
call_user_func()




[2002-10-10 10:00:24] [EMAIL PROTECTED]

I downloaded this: http://snaps.php.net/win32/php4-win32-latest.zip

And it still doesnt work.
?
class Test{
function ErrorHandler($a,$b){
print(Error Handled);
}
}
$error=new Test();
print(AA.$fafa);
set_error_handler('$error-ErrorHandler');
print(AA.$fafa);
?

This bug should be probably reopened



[2002-10-10 05:50:03] [EMAIL PROTECTED]

In CVS, development snapshot is available at
http://snaps.php.net/php4-latest.tar.bz2

From the ChangeLog:
2002-06-12  Andrei Zmievski  [EMAIL PROTECTED]

* NEWS:
set_error_handler() should take methods as callbacks. Also fixed it
to report
invalid callbacks.



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/19033

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




#19033 [Opn]: set_error_handler() to accepts object/method tuple

2002-10-10 Thread cynic

 ID:   19033
 Updated by:   [EMAIL PROTECTED]
 Reported By:  [EMAIL PROTECTED]
 Status:   Open
 Bug Type: Program Execution
-Operating System: linux 2.4.18
+Operating System: Windows
 PHP Version:  4.2.1
 New Comment:

OS update.



Previous Comments:


[2002-10-10 10:55:56] [EMAIL PROTECTED]

Verified:
linux works

Win32 snapshot from snaps.php.net seems to be b0rked.

Can't check out CVS HEAD and test (besides that it's currently broken
because of some recent changes).

Reopening and thanks for insisting it doesn't work ;-)



[2002-10-10 10:44:30] [EMAIL PROTECTED]

works fine for me with a 2 days old HEAD. you're doing something
wrong.

roman@freepuppy ~ 1005:0  php -v
PHP 4.4.0-dev (cli), Copyright (c) 1997-2002 The PHP Group
Zend Engine v1.4.0, Copyright (c) 1998-2002 Zend Technologies
roman@freepuppy ~ 1006:1  tmp/scratch2

Notice: Undefined variable:  fafa in /usr/home/roman/tmp/scratch2 on
line 13
AAError Handled
roman@freepuppy ~ 1007:0  uname -sr
FreeBSD 4.7-RC
roman@freepuppy ~ 1008:0   tmp/scratch2
#!/usr/bin/env php
?

error_reporting(E_ALL);

class Test
{
function ErrorHandler($a,$b)
{
print(Error Handled\n);
}
}
$error=new Test();
print(AA.$fafa);
set_error_handler(array($error, 'ErrorHandler'));
print(AA.$fafa);

roman@freepuppy ~ 1009:0  





[2002-10-10 10:34:37] [EMAIL PROTECTED]

?
class Test{
function ErrorHandler($a,$b){
print(Error Handled);
}
}
$error=new Test();
print(AA.$fafa);
set_error_handler(array($error, 'ErrorHandler'));
print(AA.$fafa);
?

Result:


Notice: Undefined variable: fafa in
E:\server\www\sports\futur\test.phtml on line 8
AA
Notice: Array to string conversion in
E:\server\www\sports\futur\test.phtml on line 9

Notice: Undefined variable: fafa in
E:\server\www\sports\futur\test.phtml on line 10
AA


Sp - still doesnt work



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

He's simply using the wrong syntax.

The syntax is either

  array($obj, 'method');

or

  array('class', 'method');

so this makes

set_error_handler(array($obj, 'method'));



[2002-10-10 10:29:45] [EMAIL PROTECTED]

i have not tested it, but presumably the interface is the same as for
call_user_func()




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/19033

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




#19830 [Opn-Bgs]: Try to show the time but when running it, a parse error comes out

2002-10-09 Thread cynic

 ID:   19830
 Updated by:   [EMAIL PROTECTED]
 Reported By:  [EMAIL PROTECTED]
-Status:   Open
+Status:   Bogus
 Bug Type: Date/time related
 Operating System: Win2000 Adv Server
 PHP Version:  4.2.3
 New Comment:

Thank you for taking the time to write to us, but this is not
a bug. Please double-check the documentation available at
http://www.php.net/manual/ and the instructions on how to report
a bug at http://bugs.php.net/how-to-report.php


Previous Comments:


[2002-10-09 05:07:42] [EMAIL PROTECTED]

what I did:
$hourtime=strftime(%H)strftime(%H:%M:%S
%p)-strftime(%H)${${userName._session}.time._session};

what I expected to happen:
to show how long I stay in the website

what happened:
parse error, unexpected T_String

Anyone who knows how to solve this problem, please help...




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




#15438 [Opn]: include_once fails when comparing output to a value

2002-10-08 Thread cynic

 ID:   15438
 Updated by:   [EMAIL PROTECTED]
 Reported By:  [EMAIL PROTECTED]
 Status:   Open
 Bug Type: Scripting Engine problem
 Operating System: FreeBSD/Linux
 PHP Version:  4.1.1 and 4.2.3
 New Comment:

confirmed with 4.4.0-dev (cli)/ ZE 1.4.0. i'm including a repro recipe


# This is a shell archive.  Save it in a file, remove anything before
# this line, and then unpack it by entering sh file.  Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
#   foo.php
#   bar.inc
#
echo x - foo.php
sed 's/^X//' foo.php  'END-of-foo.php'
X#!/usr/bin/env php
X?
X
Xif (include('bar.inc') == true) {
Xprint 1. ok\n;
X}
X
Xif (true == include('bar.inc')) {
Xprint 2. ok\n;
X}
X
X$rv = include('bar.inc');
Xif (true == $rv) {
Xprint 3. ok\n;
X}
END-of-foo.php
echo x - bar.inc
sed 's/^X//' bar.inc  'END-of-bar.inc'
X?
Xprint Hello world\n;
X
END-of-bar.inc
exit




Previous Comments:


[2002-10-08 06:02:46] [EMAIL PROTECTED]

I already forgot about this bug, but received the email today that this
was considered bugus.
Well i'm surprised, and tested it a few times more (with a newer php
version), and i'm still convinced that this is a bug.

A few new examples:

?
if( include(include.txt) == true )
{
   print File included\n;
}
?

The code above returns this fatal error:

Warning: Failed opening '1' for inclusion
(include_path='.:/usr/local/lib/php') in
/usr/local/apache/htdocs/test.php on line 2


And now i do it the longer way:
?
$status = include(include.txt);

if( $status == true )
{
   printf(File included!\n);
}
?

Works perfectly

And another way that works:

?
if( true == include(include.txt) )
{
   print File included\n;
}
?


The problem really seems what [EMAIL PROTECTED] said, a scripting engine
bug. 

PS. Your reply about me asking a support question here is rather weird
to me, i was just reporting a bug..



[2002-10-07 22:17:06] [EMAIL PROTECTED]

Sorry, but the bug system is not the appropriate forum for asking
support questions. Your problem does not imply a bug in PHP itself.
For a list of more appropriate places to ask for help using PHP,
please visit http://www.php.net/support.php

Thank you for your interest in PHP.

You can only check if include/include_once failed or succeeded if the
included file returns a value. This is clearly documented at:
http://www.php.net/manual/en/function.include.php



[2002-02-09 06:17:06] [EMAIL PROTECTED]

I'm not sure this is actually a bug. I gather the returned value from
an include is the one you specify in the included file with 'return
$var'
Read more at http://www.php.net/manual/en/function.include.php about
return() in included files.

If you want to evaluate if an include was succesfull you could add:

$var = true;
return $var

at the end of the included file, but this should also do the trick:

((int) @include_once(../lib/test.php)) or die(Don't exist);

which is probably just a check if there's some warning text just like
michael already demonstrated.



[2002-02-08 10:51:58] [EMAIL PROTECTED]

Actually you can check if an include failed or not like this, but I
think the parser gets confused if you use the '== false'.
Making this a scripting engine problem.

Derick



[2002-02-08 09:48:32] [EMAIL PROTECTED]

RTM! You can't include_once check for succes on include/include_once.
include(_once) is not a function.



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/15438

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




#19797 [Opn-Bgs]: failed loadmodule

2002-10-07 Thread cynic

 ID:   19797
 Updated by:   [EMAIL PROTECTED]
 Reported By:  [EMAIL PROTECTED]
-Status:   Open
+Status:   Bogus
 Bug Type: Apache2 related
 Operating System: windows xp pro
 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.


first, this is by far not enough info.
second, it's very likely to be a pilot error.




Previous Comments:


[2002-10-07 07:02:54] [EMAIL PROTECTED]

when I try to load phpmodule then failed to load phpmodule.
I use 3 computers(desktop in home, desktop in work, notebok).
phpmodule works collectly in home only.
 





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




#19754 [Opn-Fbk]: header redirect not woring right

2002-10-04 Thread cynic

 ID:   19754
 Updated by:   [EMAIL PROTECTED]
 Reported By:  [EMAIL PROTECTED]
-Status:   Open
+Status:   Feedback
 Bug Type: Unknown/Other Function
 Operating System: win98en
 PHP Version:  4.2.3
 New Comment:

what do you get on that very page if you change the header call to
echo?



Previous Comments:


[2002-10-04 09:56:27] [EMAIL PROTECTED]

code:

$location = Location:
http://.$_SERVER['HTTP_HOST'].dirname($_SERVER['PHP_SELF'])./.index.php;
header($location);

doesn't work under IE 6.0en - nothing happens - displays blank page

but works fine under Mozilla 1.1 - i.e. redirects to proper page

the same code under PHP 4.0.6 and with the same IE6.0 works fine...




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




#19737 [Opn-Bgs]: Problems in trasforming italian words with accent

2002-10-03 Thread cynic

 ID:   19737
 Updated by:   [EMAIL PROTECTED]
 Reported By:  [EMAIL PROTECTED]
-Status:   Open
+Status:   Bogus
 Bug Type: Sablotron XSL
 Operating System: FreeBSD 4.7-PRERELEASE
 PHP Version:  4CVS-2002-10-03
 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.


some error occur???
http://bugs.php.net/how-to-report.php
http://www.tuxedo.org/~esr/faqs/smart-questions.html


Previous Comments:


[2002-10-03 10:05:00] [EMAIL PROTECTED]

Hi with an xml files like this(pay attention to words with accent
è-é-ò-à-ù-ì)

?xml version=1.0?
FOO
   NAMEil mio nome è mai più/NAME
/FOO

and with a xsl file like
?xml version=1.0?
xsl:stylesheet version=1.0
 xmlns:xsl=http://www.w3.org/1999/XSL/Transform;

xsl:template match=FOO
   xsl:value-of select=NAME
/xsl:template
/xsl:stylesheet

using xslt_process(..) to trasform some error occur. While if we
delete
these accents (èéòàùì) it's all ok.



[2002-10-03 10:03:43] [EMAIL PROTECTED]

Hi with an xml files like this(pay attention to words with accent
è-é-ò-à-ù-ì)

?xml version=1.0?
FOO
   NAMEil mio nome è mai più/NAME
/FOO

and with a xsl file like
?xml version=1.0?
xsl:stylesheet version=1.0
 xmlns:xsl=http://www.w3.org/1999/XSL/Transform;

xsl:template match=FOO
   xsl:value-of select=NAME
/xsl:template


using xslt_process(..) to trasform some error occur. While if we delete
these accents (èéòàùì) it's all ok.






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




#19634 [Opn-Bgs]: Mapping of .html and .htm files fails

2002-09-27 Thread cynic

 ID:   19634
 Updated by:   [EMAIL PROTECTED]
 Reported By:  [EMAIL PROTECTED]
-Status:   Open
+Status:   Bogus
 Bug Type: IIS related
 Operating System: Windows 2k SP3
 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:


[2002-09-27 06:35:13] [EMAIL PROTECTED]

Mapping .html and .htm files to the php.exe file in 4.2.3 returns The
directory name is invalid when trying to run a .html file.

.html and .htm have been mapped to ASP and work correctly, it is with
this latest version of PHP that this error occurs.




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




#19473 [Csd-Bgs]: httpd segfaults

2002-09-19 Thread cynic

 ID:   19473
 Updated by:   [EMAIL PROTECTED]
 Reported By:  [EMAIL PROTECTED]
-Status:   Closed
+Status:   Bogus
 Bug Type: Apache related
 Operating System: Linux 2.4.17 SMP (SuSE 7.2)
 PHP Version:  4.2.3
 New Comment:

user error - not a bug



Previous Comments:


[2002-09-19 03:35:30] [EMAIL PROTECTED]

My bad. I have found the cause of the problem.

Cheers,


Paul



[2002-09-18 18:59:22] [EMAIL PROTECTED]

It's obviously some clash with SSL. Are you sure you have linked every
library which you're compiling PHP with, with the SAME ssl libs? For
example Curl?

You should try configuring PHP first with minimal amount of
configure options and then try and add them one by one to see which one
causes this.

--Jani





[2002-09-18 05:40:18] [EMAIL PROTECTED]

Dear PHP,

I have just encountered the following problem when attempting to build
a large RPM of apache, mod_ssl, mod_auth_kerb and mod_php. The final
product will be a static build of apache with the modules listed.

Within the spec file I am configure php in the following manner:

./configure \
 --prefix=%{_usr} \
 --bindir=%{_bindir} \
 --libdir=%{_libdir} \
 --with-config-file-path=%{sysconfdir} \
 --with-apache=../%{name_apache} \
 --disable-rpath \
 --with-pgsql=/usr \
 --with-xml \
 --enable-debug \
 --enable-safe-mode \
 --enable-memory-limit \
 --with-kerberos \
 --with-imap \
 --with-imap-ssl \
 --enable-versioning \
 --with-gd \
 --with-jpeg-dir=/usr \
 --enable-xslt --with-xslt-sablot \
 --enable-sysvshm --enable-sysvsem --with-regex=php \
 --with-sockets \
 --with-png-dir=/usr \
 --with-zlib-dir=/usr \
 --without-mysql \
 --with-xpm-dir=/usr/X11R6 \
 --with-curl


** NOTE: I removed --with-openssl in accordance with the solution
[EMAIL PROTECTED] provided for a similar looking bug with ENOTTY.



Apache configuration:


env \
 'LIBS=-L/usr/kerberos/lib -lkrb5 -lk5crypto -lcom_err' \
 'INCLUDES=-I/usr/include/openssl -I/usr/kerberos/include' \
 'SSL_BASE=SYSTEM' \
 'LDFLAGS=-L/usr/X11R6/lib' \
 '-DKRB5 -DKRB_DEF_REALM=\\\DOC.IC.AC.UK\\\
-DSSL_EXPERIMENTAL_PERDIRCA_IGNORE' \
./configure \
 --prefix=%{datadir} \
 --bindir=%{_bindir} \
 --sbindir=%{_sbindir} \
 --datadir=%{datadir} \
 --sysconfdir=%{sysconfdir} \
 --mandir=%{_mandir} \
 --logfiledir=%{logdir} \
 --localstatedir=%{_var} \
 --runtimedir=%{_var}/run \
 --libexecdir=%{_libdir}/%{name} \
 --proxycachedir=%{_var}/cache/http \
 --includedir=%{includedir} \
 --verbose \
 --enable-module=info \
 --enable-module=rewrite \
 --enable-module=digest \
 --enable-module=proxy \
 --enable-module=auth_dbm \
 --enable-module=ssl \
 --enable-rule=SSL_SDBM \
 --enable-rule=SSL_EXPERIMENTAL \
 --add-module=src/modules/kerberos/mod_auth_kerb.c \
 --with-perl=`which perl` \
 --server-uid=%{apache_user} \
 --server-gid=%{apache_group} \
 --enable-suexec \
 --suexec-logfile=/export/logs/suexec_log \
 --activate-module=src/modules/php4/libphp4.a


strace on the httpd binary gives:


open(./php.ini, O_RDONLY) = -1 ENOENT (No such file or
directory)
open(/etc/httpd/php.ini, O_RDONLY)= 3
getcwd(/usr/sbin, 4095)   = 10
lstat64(/etc, {st_mode=S_IFDIR|0755, st_size=5566, ...}) = 0
lstat64(/etc/httpd, {st_mode=S_IFDIR|0755, st_size=205, ...}) = 0
lstat64(/etc/httpd/php.ini, {st_mode=S_IFREG|0400, st_size=2907,
...}) = 0
brk(0x8346000)  = 0x8346000
ioctl(3, TCGETS, 0xb2ac)= -1 ENOTTY (Inappropriate
ioctl for dev
ice)
fstat64(3, {st_mode=S_IFREG|0400, st_size=2907, ...}) = 0
old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS,
-1, 0) = 0
x40018000
read(3, ;***..., 8192) = 2907
read(3, , 4096)   = 0
brk(0x8347000)  = 0x8347000
read(3, , 8192)   = 0
ioctl(3, TCGETS, 0xbfffe708)= -1 ENOTTY (Inappropriate
ioctl for dev
ice)
close(3)= 0
munmap(0x40018000, 4096)= 0
brk(0x8348000)  = 0x8348000
brk(0x8349000)  = 0x8349000
brk(0x834a000)  = 0x834a000
brk(0x834b000)  = 0x834b000
brk(0x834c000)  = 0x834c000
brk(0x834d000)  = 0x834d000
brk(0x834e000)  = 0x834e000
brk(0x834f000)  = 0x834f000
brk(0x835)  = 0x835
brk(0x8351000)  = 0x8351000
brk(0x8352000)  = 0x8352000
brk(0x8353000)  = 0x8353000
brk(0x8354000)

Bug #17252 Updated: addslashes not working on double quotes

2002-05-15 Thread cynic

 ID:   17252
 Updated by:   [EMAIL PROTECTED]
 Reported By:  [EMAIL PROTECTED]
-Status:   Open
+Status:   Bogus
 Bug Type: Unknown/Other Function
 Operating System: windows 95
 PHP Version:  4.0CVS-2002-05-15
 New Comment:

Sorry, but the bug system is not the appropriate forum for asking
support questions. Your problem does not imply a bug in PHP itself.
For a list of more appropriate places to ask for help using PHP,
please visit http://www.php.net/support.php

Thank you for your interest in PHP.


Previous Comments:


[2002-05-15 12:05:41] [EMAIL PROTECTED]

Hi,

The addslashes functions isn't working on the double quotes.
example:

$tmp = addslashes(t'est);
print($tmp);

gives a parse error...

i'm using php 4.0 - win32, mysql and apache version 1.3

Could you help me fix my problem?


Martine




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




Bug #16972 Updated: 1 by1 pixel image problem

2002-05-03 Thread cynic

 ID:   16972
 Updated by:   [EMAIL PROTECTED]
 Reported By:  [EMAIL PROTECTED]
-Status:   Open
+Status:   Bogus
 Bug Type: Output Control
 Operating System: Red Hat Linux 6.2
 PHP Version:  4.1.2
 New Comment:

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


Previous Comments:


[2002-05-03 00:48:55] [EMAIL PROTECTED]

The more I think about this problem, the more I believe it must be a
configuration problem.  However, since I have shared hosting accounts,
I am dependent on my web host to set the configuration.  If anyone can
think of where the configuration may be set wrong, please let me know,
so I can notify my web host (in this case, Linuxwebhost) where to
look.

In the meantime, I have found a rather awkward solution to keep the web
tracking system working with Netscape.  I have the PHP web tracking
script check to see if it has received an identical request from an
html page with the 1 by 1 pixel image in the last few seconds. 
(Identical in terms of user IP and page visited.)  For IE, I can simply
use the die command to stop the process.  However, Netscape will
continuously try to call the  1 by 1 pixel image.  I had put in the
command print OK hoping that would stop the browser.  I noticed that
I could direct a 1 by 1 pixel at another PHP script, such as a form
mail script which prints html to the screen, and Netscape would not
make multiple requests for the image.  So I experimented, and placed
the flush command ahead of the print command.  Flush and print together
stop the Netscape browser.

However, as I said, that is a very awkward solution.  Hopefully, a
better solution can be found, such as finding the source of a
configuration error.

Thanks,

Robert Jenkins



[2002-05-02 14:56:46] [EMAIL PROTECTED]

Thank your for your help.

I have developed a PHP web tracker (ideal-tracker.com) which relies on
a 1 by 1 pixel image placed on the html page being tracked.  I also
have another web host for a second site and I run an identical version
of the web tracker on this additional site for test purposes.  This
second host recently upgraded to PHP 4.12 and now I am having problems
with multiple counting of pages.

Basically, the browser requests the 1 by 1 pixel image over and over. I
inserted code to kill the script should an identical request come
within 15 seconds.  This works fine with IE.  However, Netscape
continues to request the 1 by 1 pixel image, and every 15 seconds, a
hit is recorded.  The process would basically go on forever unless the
user hits the stop button or closes out the browser.

This did not happed in either 4.04 or 4.06.

Do you have any suggestions?

Thanks,

Robert Jenkins




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




Bug #16972 Updated: 1 by1 pixel image problem

2002-05-03 Thread cynic

 ID:   16972
 Updated by:   [EMAIL PROTECTED]
 Reported By:  [EMAIL PROTECTED]
 Status:   Bogus
 Bug Type: Output Control
 Operating System: Red Hat Linux 6.2
 PHP Version:  4.1.2
 New Comment:

how could anyone tell without seeing a *short* and *self-contained*
script first?

I suggest you take this issue to php-general@, and if the conclusion on
the list is that it's really a change NOT announced in ChangeLog or
NEWS, take it (along with a short script) here.




Previous Comments:


[2002-05-03 09:05:14] [EMAIL PROTECTED]

But at first I thought it was a bug.  In fact, I'm only speculating
that it is a configuration problem.  I would like some confirmation as
to whether a bug truly exists which would cause this behavior or
whether it is a problem in the configuration.  If it is a bug causing
4.12 to behave differently than earlier versions, then it should be
addressed.



[2002-05-03 04:11:49] [EMAIL PROTECTED]

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



[2002-05-03 00:48:55] [EMAIL PROTECTED]

The more I think about this problem, the more I believe it must be a
configuration problem.  However, since I have shared hosting accounts,
I am dependent on my web host to set the configuration.  If anyone can
think of where the configuration may be set wrong, please let me know,
so I can notify my web host (in this case, Linuxwebhost) where to
look.

In the meantime, I have found a rather awkward solution to keep the web
tracking system working with Netscape.  I have the PHP web tracking
script check to see if it has received an identical request from an
html page with the 1 by 1 pixel image in the last few seconds. 
(Identical in terms of user IP and page visited.)  For IE, I can simply
use the die command to stop the process.  However, Netscape will
continuously try to call the  1 by 1 pixel image.  I had put in the
command print OK hoping that would stop the browser.  I noticed that
I could direct a 1 by 1 pixel at another PHP script, such as a form
mail script which prints html to the screen, and Netscape would not
make multiple requests for the image.  So I experimented, and placed
the flush command ahead of the print command.  Flush and print together
stop the Netscape browser.

However, as I said, that is a very awkward solution.  Hopefully, a
better solution can be found, such as finding the source of a
configuration error.

Thanks,

Robert Jenkins



[2002-05-02 14:56:46] [EMAIL PROTECTED]

Thank your for your help.

I have developed a PHP web tracker (ideal-tracker.com) which relies on
a 1 by 1 pixel image placed on the html page being tracked.  I also
have another web host for a second site and I run an identical version
of the web tracker on this additional site for test purposes.  This
second host recently upgraded to PHP 4.12 and now I am having problems
with multiple counting of pages.

Basically, the browser requests the 1 by 1 pixel image over and over. I
inserted code to kill the script should an identical request come
within 15 seconds.  This works fine with IE.  However, Netscape
continues to request the 1 by 1 pixel image, and every 15 seconds, a
hit is recorded.  The process would basically go on forever unless the
user hits the stop button or closes out the browser.

This did not happed in either 4.04 or 4.06.

Do you have any suggestions?

Thanks,

Robert Jenkins




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




Bug #16990 Updated: 4.1.1 works good, but 4.2.0 - CGI timeout :(

2002-05-03 Thread cynic

 ID:   16990
 Updated by:   [EMAIL PROTECTED]
 Reported By:  [EMAIL PROTECTED]
-Status:   Open
+Status:   Bogus
 Bug Type: IIS related
 Operating System: Win2K Adv. Server
 PHP Version:  4.2.0
 New Comment:

cli = Command Line Interface. for CGI, you want php.exe, which should
be part of the download too.



Previous Comments:


[2002-05-03 09:06:06] [EMAIL PROTECTED]

I've just setup 4.2.0 (remove 4.1.1 files at all and unzip 4.2.0 into
proper directory and rename php-cli.exe to php.exe, and config
c:\winnt\php.ini), check IIS - all paths are OK etc. So I'm trying to
get /index.php - GET / HTTP/1.0 - 502 CGI Timeout etc.
If I try to do php.exe -r phpinfo();, for example - all is ok. 
But 4.1.1 works good... Please, help me.

OS: Win2K Advanced Server, SP2, .NET (Visual Studio .NET)




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




Bug #16993 Updated: Characters with ascii127 crash

2002-05-03 Thread cynic

 ID:   16993
 Updated by:   [EMAIL PROTECTED]
 Reported By:  [EMAIL PROTECTED]
-Status:   Open
+Status:   Bogus
 Bug Type: Sablotron XSL
 Operating System: Windows 2000
 PHP Version:  4.2.0
 New Comment:

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

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



Previous Comments:


[2002-05-03 09:47:53] [EMAIL PROTECTED]

Possible bug in xslt_process()

If in the source xml code are characters with ascii code greater than
127, for example some national characters (ö, ü, ...), they will not be
displayed correctly in the result after the transformation. Instead the
character I get two strange characters. For a specified source
character (127) I always get specified characters. Of course, in the
xml tag I use the correct encoding attribute, for example ISO-8859-2.

Thanks.




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




Bug #16199 Updated: Loop not looping

2002-05-03 Thread cynic

 ID:   16199
 Updated by:   [EMAIL PROTECTED]
 Reported By:  [EMAIL PROTECTED]
 Status:   Feedback
 Bug Type: Scripting Engine problem
 Operating System: FreeBSD 4.5
 PHP Version:  4.1.2
 New Comment:

what about the semicolon after for (...) ?



Previous Comments:


[2002-05-03 09:47:59] [EMAIL PROTECTED]

i have an even simpler example:

for ($i=0; $i60; $i++);
{
echo $i . br;
}

this is producing only one iteration throught the loop!  
the result of this loop is visible at http://www.gleep.org/
test/index.php and the loop visible at http://
www.gleep.org/test/index.phps

i'm running 4.2.0 on apache 1.3.24 on a linux box.  i've 
tried it on 4.1.2 and i get the same thing!

i know i've used for loops before and not had this 
problem...



[2002-03-21 18:04:26] [EMAIL PROTECTED]

Hey guys,
 I have try statically filling the var, and the problem does indeed
still persist.  Here's recap:

FreeBSD 4.5
php 4.1.2
apache 1.3.23

My configure line:

 './configure' '--with-apxs=/usr/local/sbin/apxs'
'--with-config-file-path=/usr/local/etc' '--enable-versioning'
'--with-system-regex' '--disable-debug' '--enable-track-vars'
'--without-gd' '--without-mysql' '--with-zlib'
'--with-mysql=/usr/local' '--enable-sockets' '--enable-trans-sid'
'--prefix=/usr/local'

And of coarse, the above code.



[2002-03-21 16:03:15] [EMAIL PROTECTED]

The way you set it up looks correct, but when I print the value of the
inner loop.  It does, in fact only print the value of 2, then stops.  I
can continue to reproduce this on 2 of my BSD machines, and quite
honestly, the code does look ok.

--Paul



[2002-03-21 00:30:48] [EMAIL PROTECTED]

Can't reproduce on Linux using 4.0.6/4.1.0/4.2.0 or Windows XP
w/4.0.6.

I get 0 and 1 as expected.  Of course without the original data I can't
figure anything out I had to rebuild the data from your print_r output
to this.

$SESSION_DATA = array(
Domain = www.test.com,
Start IP = 64.24.23.32,
End IP = 6.23.23.23,
Netmask = 255.255.255.255,
Number of Disks = 2,
Disk Type = ide,
Enable Raid = Y,
Disk Sizes = array(
0 = array (SIZE = 40,
/ = 39,
Swap = 1),
1 = array(SIZE = 40,
/home = 40)
)
);

Yeah, it probably is you ;)
Here's my output

Domainbrwww.test.combr
Start IPbr64.24.23.32br
End IPbr6.23.23.23br
Netmaskbr255.255.255.255br
Number of Disksbr2br
Disk Typebridebr
Enable RaidbrYbr
Disk Sizesbr040br
140br

-Chris



[2002-03-21 00:10:43] [EMAIL PROTECTED]

Please see below.  I have included all information possible that could
be of assistance.  This looks possibly like, the array is too deep, or
perhaps a type not being an int, but I honestly think it's something
else.  I hope it's not me.  I've been staring at this for a long time
and had other look at it.  :)  Thanks Paul


/* This is the output from print_r that in the function below */

Array ( [Domain] = www.test.com [Start IP] = 64.24.23.32 [End IP] =
6.23.23.23 [Netmask] = 255.255.255.255 [Number of Disks] = 2 [Disk
Type] = ide [Enable Raid] = Y [Disk Sizes] = Array ( [0] = Array (
[SIZE] = 40 [/] = 39 [Swap] = 1 ) [1] = Array ( [SIZE] = 40
[/home] = 40 ) ) ) 

function do_last(){
global $SESSION_DATA

/* See above for output -- Used for debugging 
print_r($SESSION_DATA); */

while(list($key,$value) = each($SESSION_DATA)){
 print $key . br;

 /* Handle a special key */
 if($key == Disk Sizes){

 /* This following code should output 2 values that are
stored in the array, but if a un-comment out print $a, the value is
initially 2.  What happened to it being 0? */ 
 for($a=0;$acount($SESSION_DATA[$key]);$a++){
  //print $a;
  print $SESSION_DATA[$key][$a][SIZE] .
br;
  }
  }
  else{
  print $value . br;
  }
 }




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




Bug #16199 Updated: Loop not looping

2002-05-03 Thread cynic

 ID:   16199
 Updated by:   [EMAIL PROTECTED]
 Reported By:  [EMAIL PROTECTED]
-Status:   Feedback
+Status:   Bogus
 Bug Type: Scripting Engine problem
 Operating System: FreeBSD 4.5
 PHP Version:  4.1.2


Previous Comments:


[2002-05-03 10:02:52] [EMAIL PROTECTED]

what about the semicolon after for (...) ?




[2002-05-03 09:47:59] [EMAIL PROTECTED]

i have an even simpler example:

for ($i=0; $i60; $i++);
{
echo $i . br;
}

this is producing only one iteration throught the loop!  
the result of this loop is visible at http://www.gleep.org/
test/index.php and the loop visible at http://
www.gleep.org/test/index.phps

i'm running 4.2.0 on apache 1.3.24 on a linux box.  i've 
tried it on 4.1.2 and i get the same thing!

i know i've used for loops before and not had this 
problem...



[2002-03-21 18:04:26] [EMAIL PROTECTED]

Hey guys,
 I have try statically filling the var, and the problem does indeed
still persist.  Here's recap:

FreeBSD 4.5
php 4.1.2
apache 1.3.23

My configure line:

 './configure' '--with-apxs=/usr/local/sbin/apxs'
'--with-config-file-path=/usr/local/etc' '--enable-versioning'
'--with-system-regex' '--disable-debug' '--enable-track-vars'
'--without-gd' '--without-mysql' '--with-zlib'
'--with-mysql=/usr/local' '--enable-sockets' '--enable-trans-sid'
'--prefix=/usr/local'

And of coarse, the above code.



[2002-03-21 16:03:15] [EMAIL PROTECTED]

The way you set it up looks correct, but when I print the value of the
inner loop.  It does, in fact only print the value of 2, then stops.  I
can continue to reproduce this on 2 of my BSD machines, and quite
honestly, the code does look ok.

--Paul



[2002-03-21 00:30:48] [EMAIL PROTECTED]

Can't reproduce on Linux using 4.0.6/4.1.0/4.2.0 or Windows XP
w/4.0.6.

I get 0 and 1 as expected.  Of course without the original data I can't
figure anything out I had to rebuild the data from your print_r output
to this.

$SESSION_DATA = array(
Domain = www.test.com,
Start IP = 64.24.23.32,
End IP = 6.23.23.23,
Netmask = 255.255.255.255,
Number of Disks = 2,
Disk Type = ide,
Enable Raid = Y,
Disk Sizes = array(
0 = array (SIZE = 40,
/ = 39,
Swap = 1),
1 = array(SIZE = 40,
/home = 40)
)
);

Yeah, it probably is you ;)
Here's my output

Domainbrwww.test.combr
Start IPbr64.24.23.32br
End IPbr6.23.23.23br
Netmaskbr255.255.255.255br
Number of Disksbr2br
Disk Typebridebr
Enable RaidbrYbr
Disk Sizesbr040br
140br

-Chris



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/16199

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




Bug #16830 Updated: file_exists() returns TRUE instead of FALSE

2002-04-27 Thread cynic

 ID:   16830
 Updated by:   [EMAIL PROTECTED]
 Reported By:  [EMAIL PROTECTED]
 Status:   Analyzed
 Bug Type: Filesystem function related
 Operating System: ANY
 PHP Version:  4.3.0-dev
 New Comment:

Jani, the var_dump()s IMO show two bugs: the other is that is_file()
returned int(0), while it's documented to be a bool type. could you
check this too?



Previous Comments:


[2002-04-27 10:41:44] [EMAIL PROTECTED]

Duh. You're right, it's a bug. 

?php

$filename=;

$bb = is_file($filename);
var_dump($bb);

$aa = file_exists($filename);
var_dump($aa);

?

Outputs:

int(0)
bool(true)


--Jani




[2002-04-27 00:27:58] [EMAIL PROTECTED]

c:\winnt\system32\php4ts.dll matches the php4ts.dll from the php 4.2.0
package. All other PHP files are in php's own directory. When I install
a new version of PHP, I always delete the whole old PHP directory and
create a new one to prevent keeping rests from old versions. I also
always use the new php.ini-dist and modify it again instead of keeping
the old php.ini.

Additionally, in the last PHP version I had installed (4.1.2),
file_exists() DID work! It just stopped working with PHP 4.2.0, so I
doubt that error could be from forgetting to overwrite old DLLs with
new ones.

What does the script I posted before say for _you_, Jani?



[2002-04-26 22:11:06] [EMAIL PROTECTED]

Just in case..are you absolutely sure you have updated
all dlls related to PHP in your system? (I assume you had
some older PHP there before)

e.g. php4ts.dll is quite important to be new. Try searching
your filesystem for it. You might have many of them there.

--Jani




[2002-04-26 12:47:20] [EMAIL PROTECTED]

Sander, please tell me the Bug ID for it.

I did search the Bugs DB for open bugs with file_exists.
The bug I'm talking about was reported as bug for PHP 4.1.0 ( Bug ID:
15218 ) and it has actually been fixed in 4.1.2, but now it appeared
again in PHP 4.2.0 !!
So this is no duplicate bugreport, I think.



[2002-04-26 11:59:39] [EMAIL PROTECTED]

Plese, SEARCH the bugdb. There is a report about this. (sorry Jani ;)



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/16830

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




Bug #16830 Updated: file_exists() returns TRUE instead of FALSE

2002-04-27 Thread cynic

 ID:   16830
 Updated by:   [EMAIL PROTECTED]
 Reported By:  [EMAIL PROTECTED]
 Status:   Analyzed
 Bug Type: Filesystem function related
 Operating System: ANY
 PHP Version:  4.3.0-dev
 New Comment:

something stinks here:

[2002-04-27 10:41:44] [EMAIL PROTECTED]  

$filename=;
$bb = is_file($filename);
var_dump($bb); 


int(0)

yohgaki:

$filename=;
   
$bb = is_file($filename);
var_dump($bb); 


bool(false)  


so does is_file() return false or 0? plus it returned int(1) for you,
which it shouldn't either (should return bool(true) instead). WTF?




Previous Comments:


[2002-04-27 20:09:29] [EMAIL PROTECTED]

I added following test case (ext/standard/tests/file/003.phpt)

?php

$filename=;

$bb = is_file($filename);
var_dump($bb);

$aa = file_exists($filename);
var_dump($aa);

$filename=php.ini-dist;

$bb = is_file($filename);
var_dump($bb);

$aa = file_exists($filename);
var_dump($aa);

?

Result:
[yohgaki@dev HEAD]$ cat ext/standard/tests/file/003.out
bool(false)
bool(false)
int(1)
bool(true)





[2002-04-27 19:57:58] [EMAIL PROTECTED]

Just curious, is this fixed?
(I was about to commit test case for this bug)

[yohgaki@dev HEAD]$ ./cli-php ext/standard/tests/file/003.inc 
bool(false)
bool(false)






[2002-04-27 13:09:43] [EMAIL PROTECTED]

Jani, the var_dump()s IMO show two bugs: the other is that is_file()
returned int(0), while it's documented to be a bool type. could you
check this too?




[2002-04-27 10:41:44] [EMAIL PROTECTED]

Duh. You're right, it's a bug. 

?php

$filename=;

$bb = is_file($filename);
var_dump($bb);

$aa = file_exists($filename);
var_dump($aa);

?

Outputs:

int(0)
bool(true)


--Jani




[2002-04-27 00:27:58] [EMAIL PROTECTED]

c:\winnt\system32\php4ts.dll matches the php4ts.dll from the php 4.2.0
package. All other PHP files are in php's own directory. When I install
a new version of PHP, I always delete the whole old PHP directory and
create a new one to prevent keeping rests from old versions. I also
always use the new php.ini-dist and modify it again instead of keeping
the old php.ini.

Additionally, in the last PHP version I had installed (4.1.2),
file_exists() DID work! It just stopped working with PHP 4.2.0, so I
doubt that error could be from forgetting to overwrite old DLLs with
new ones.

What does the script I posted before say for _you_, Jani?



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/16830

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




Bug #16850 Updated: POST vars not in $_REQUEST[]

2002-04-26 Thread cynic

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

Please do not submit the same bug more than once.


Previous Comments:


[2002-04-26 07:38:04] [EMAIL PROTECTED]

With PHP 4.1.2 the post vars from a form are found in $_REQUEST[], but
with 4.2.0 only get vars seem to be there.
(same php.ini file for both versions used).





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




Bug #16759 Updated: POST cutting names

2002-04-24 Thread cynic

 ID:   16759
 Updated by:   [EMAIL PROTECTED]
 Reported By:  [EMAIL PROTECTED]
-Status:   Closed
+Status:   Bogus
 Bug Type: IIS related
 Operating System: win2000, IIS 5.0
 PHP Version:  4.2.0


Previous Comments:


[2002-04-24 04:27:16] [EMAIL PROTECTED]

sorry for the inconvenience, it was my fault ...

After double checking I have found that my IIS was still using old
php4isapi.dll from the php-4.1.2 package

now everything works well ...

thanks for your time



[2002-04-23 18:48:53] [EMAIL PROTECTED]

What was the previous version of PHP on your machine?
Did you update also the php4ts.dll file from the 4.2.0 package?




[2002-04-23 11:35:38] [EMAIL PROTECTED]

Using the POST method cause cutting the first character 
from the name of the form control. Using the GET method works as
expected (no cutting).

example:
FORM METHOD=POST ACTION=debug.php
INPUT TYPE=submit NAME=action VALUE=val
/FORM

gives result:
[_POST] = Array
(
[ction] = val
)

quick-fix:
just prefix all NAMEs with any char 
(NAME=action becomes NAME=_action)






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




Bug #16725 Updated: test.php.dat also can be parsed

2002-04-22 Thread cynic

 ID:   16725
 Updated by:   [EMAIL PROTECTED]
 Reported By:  [EMAIL PROTECTED]
 Status:   Feedback
 Bug Type: Apache related
 Operating System: windows,linux
 PHP Version:  4.1.2
 New Comment:

are you sure Multiviews wasn't added? I expected this bug to be
caused by
multiviews, and seeing it turned on seems to back my guess.



Previous Comments:


[2002-04-22 04:24:13] [EMAIL PROTECTED]

and i change nothing but the content in the httpd.conf file i added is
:


ServerName myserver
Listen 80

DirectoryIndex index.html index.htm default.htm index.php index.php3
index.phtml index.jsp


DocumentRoot e:/website

Directory e:/website
Options Indexes FollowSymLinks MultiViews
AllowOverride All

Files *.inc  
  Order Deny,Allow  
  Deny From All   
  Allow from 127.0.0.1
/Files

Files *.ihtml  
  Order Deny,Allow  
  Deny From All   
  Allow from 127.0.0.1
/Files

Files *.nlx  
  Order Deny,Allow  
  Deny From All   
  Allow from 127.0.0.1
/Files

Files *.sql  
  Order Deny,Allow  
  Deny From All   
  Allow from 127.0.0.1
/Files

Files *.inf  
  Order Deny,Allow  
  Deny From All   
  Allow from 127.0.0.1
/Files

Limit GET POST
#   Options  indexes FollowSymLinks 
Options   FollowSymLinks
Order deny,allow
deny from all
Allow from all
/Limit

/Directory


CustomLog |d:/apache/bin/rotatelogs d:/apache/logs/%Y_%m_%d.access.log
86400 480 common
ErrorLog  |d:/apache/bin/rotatelogs d:/apache/logs/%Y_%m_%d.error.log
86400 480

ScriptAlias /php412/ d:/php4.1.2/

Action application/x-httpd-php /php412/php.exe 

AddType application/x-httpd-php .php
AddType application/x-httpd-php .php3
AddType application/x-httpd-php-source .phps



[2002-04-22 04:13:12] [EMAIL PROTECTED]

it has no relation to the apache server 
because under the same apache server ,
php4.0.6 is ok
but the php4.1.2 has the problem



[2002-04-22 03:49:05] [EMAIL PROTECTED]

Can you send me your httpd.conf by mail? I guess it's a problem with
your configuration but I'm not sure.
Alternatively, you can paste the relevant sections of it here.



[2002-04-21 22:23:17] [EMAIL PROTECTED]

php version 4.1.2
test.php.dat content:
?php
echo hello world!;
?

in apache server ,it also can be parsed
http://yourserver/test.php.dat
you can see --
hello world!

in iis server 
you can see --
?php 
echo hello world!;
?




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




Bug #16651 Updated: Linux Redhat

2002-04-17 Thread cynic

 ID:  16651
 Updated by:  [EMAIL PROTECTED]
 Reported By: [EMAIL PROTECTED]
-Status:  Open
+Status:  Bogus
 Bug Type:PHP options/info functions
 PHP Version: 4.1.2
 New Comment:

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


Previous Comments:


[2002-04-17 02:37:10] [EMAIL PROTECTED]

Hello

I have a linux redhat system with sybase as the backend 
server using php4 as the front end using apache 
webserver,I wrote a simple program in php to connect to 
sybase and when i execute the program it gives me the 
following error

Error: Connection to localhost is broken

I'am struggling to find a solution to this error

Can anyone help me please

Thanx





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




Bug #16652 Updated: sybase connectivity in php

2002-04-17 Thread cynic

 ID:   16652
 Updated by:   [EMAIL PROTECTED]
 Reported By:  [EMAIL PROTECTED]
-Status:   Open
+Status:   Bogus
 Bug Type: PHP options/info functions
 Operating System: Linux Redhat
 PHP Version:  4.1.2
 New Comment:

Please do not submit the same bug more than once.


Previous Comments:


[2002-04-17 03:42:16] [EMAIL PROTECTED]

I'am using a linux redhat system with sybase as the backend with php
and apache ,i wrote a program in php to connect to sybase and it gives
the following error

Error: Conection to LocalHost is broken.

Please help
thanc
sam




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




Bug #15535 Updated: Un-HTML-Entities

2002-04-16 Thread cynic

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

Go read the get_html_translation_table() manual page.




Previous Comments:


[2002-04-17 01:08:04] [EMAIL PROTECTED]

Sorry i didn't know where to post first, 
My Comment is ^above^ !



[2002-04-17 01:02:06] [EMAIL PROTECTED]

I didn't get what i want with Derick's idea.

My original String was: Schlenger amp; Meilhamer

and after the procedure with:

$trans = get_html_translation_table(HTML_ENTITIES);

$str = Schlenger amp; Meilhamer;

echo strtr($str, $trans);

This is what i get: Schlenger amp;amp; Meilhamer

what i wanted to get: Schlenger  Meilhamer


So, This does not work like i want it to.

Regards, 
Maximilian



[2002-02-13 06:54:47] [EMAIL PROTECTED]

I'm closing this, because you can do this:

$trans = get_html_translation_table(HTML_ENTITIES);

$str = Hallo amp; lt;Fraugt; amp; Krauml;mer

$original = strtr($str, $trans);


IMO, this does not warrant a new function.
See also:
http://www.php.net/manual/en/function.get-html-translation-table.php


Derick



[2002-02-13 06:51:01] [EMAIL PROTECTED]

I will look into it.
I'm not sure about the name though.
html_entity_decode($string) ?
--Wez.



[2002-02-13 05:35:24] [EMAIL PROTECTED]

Hello PHP-Team, 

Some People wrote about that already, 
and they submitted some kind of work-arounds. 

My Feature-Request is about the function 
htmlentities() and htmlspecialchars() 

Well, i think a lot of people would appreciate 
if you would integrate functions like 
UNhtmlentities and UNhtmlspecialchars 
which would convert 'htmlspecialcharacterized' 
strings back to their original values. 

Regards, 
Maximilian




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




Bug #15535 Updated: Un-HTML-Entities

2002-04-16 Thread cynic

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

Although... I don't see why there shouldn't be unhtmlentities() or
whatever.



Previous Comments:


[2002-04-17 01:13:38] [EMAIL PROTECTED]

Go read the get_html_translation_table() manual page.





[2002-04-17 01:08:04] [EMAIL PROTECTED]

Sorry i didn't know where to post first, 
My Comment is ^above^ !



[2002-04-17 01:02:06] [EMAIL PROTECTED]

I didn't get what i want with Derick's idea.

My original String was: Schlenger amp; Meilhamer

and after the procedure with:

$trans = get_html_translation_table(HTML_ENTITIES);

$str = Schlenger amp; Meilhamer;

echo strtr($str, $trans);

This is what i get: Schlenger amp;amp; Meilhamer

what i wanted to get: Schlenger  Meilhamer


So, This does not work like i want it to.

Regards, 
Maximilian



[2002-02-13 06:54:47] [EMAIL PROTECTED]

I'm closing this, because you can do this:

$trans = get_html_translation_table(HTML_ENTITIES);

$str = Hallo amp; lt;Fraugt; amp; Krauml;mer

$original = strtr($str, $trans);


IMO, this does not warrant a new function.
See also:
http://www.php.net/manual/en/function.get-html-translation-table.php


Derick



[2002-02-13 06:51:01] [EMAIL PROTECTED]

I will look into it.
I'm not sure about the name though.
html_entity_decode($string) ?
--Wez.



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

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




Bug #15829 Updated: using nonexistingn back reference in regex crashes PHP

2002-04-12 Thread cynic

 ID:   15829
 Updated by:   [EMAIL PROTECTED]
 Reported By:  [EMAIL PROTECTED]
 Status:   Open
 Bug Type: Reproducible crash
 Operating System: Debian (Sid) Linux
 PHP Version:  4.0CVS-2002-03-0
 New Comment:

I have it segfaulting there as well.

FreeBSD roman.mobil.cz 4.4-STABLE FreeBSD 4.4-STABLE #0: Wed Dec 26
12:45:18 CET 2001
[EMAIL PROTECTED]:/usr/obj/usr/src/sys/CRUDPUPPY_3  i386

'./configure' \
'--disable-shared' \
'--disable-session' \
'--enable-debug' \
'--enable-inline-optimization' \
'--enable-dio' \
'--enable-ftp' \
'--enable-pcntl' \
'--enable-shmop' \
'--enable-sysvsem' \
'--enable-sysvshm' \
'--enable-sockets' \
'--enable-tokenizer' \
'--without-mysql' \
'--with-openssl' \
'--with-zlib' \
'--with-bz2' \
'--with-curl' \
'--with-gettext' \
'--with-iconv' \
'--with-ncurses' \
'--with-readline' \
$@

I don't have a backtrace yet.


Previous Comments:


[2002-03-02 07:42:55] [EMAIL PROTECTED]

It crashes with a plain ./configure too btw...



[2002-03-02 07:25:30] [EMAIL PROTECTED]

Doesn't crash for me:

php -q

?php $a=abc123;
  echo ereg_replace(123,'def\1ghi',$a)?

abcdef\1ghi


Derick



[2002-03-02 07:24:07] [EMAIL PROTECTED]

Errm...
That test passes here too:
\0 back reference   
... passed

But this one doesn't:
nonexisting back reference (012.phpt)   
... failed
(it crashes)




[2002-03-02 07:15:12] [EMAIL PROTECTED]

With my configuration it passes. 

Running tests in /home/yohgaki/cvs/php/DEV/ext/standard/tests/reg
=
\0 back reference   
... passed

However, there is something wrong in current PHP. I got exit status 255
when run-tests.php finished. (It doesn't now)

The real problem may be in broken heap memory area by some other
place.





[2002-03-02 06:47:48] [EMAIL PROTECTED]

The testscript ext/standard/tests/reg/012.phpt ( nonexisting back
reference) causes PHP to segfault:

?php $a=abc123;
  echo ereg_replace(123,'def\1ghi',$a)?

#0  0x4017e197 in memcpy () from /lib/libc.so.6
#1  0x08133fd5 in php_reg_replace (pattern=0x82daf4c 123, 
replace=0x82daf64 def\\1ghi, string=0x82daf84 abc123, icase=0,

extended=1) at reg.c:377
#2  0x081343ca in php_ereg_replace (ht=3, return_value=0x82daf2c, 
this_ptr=0x0, return_value_used=1, icase=0) at reg.c:475
#3  0x081344b5 in zif_ereg_replace (ht=3,nonexisting back reference
 return_value=0x82daf2c, 
this_ptr=0x0, return_value_used=1) at reg.c:493
#4  0x08175b9e in execute (op_array=0x82dafcc) at
./zend_execute.c:1598
#5  0x080895ee in zend_execute_scripts (type=8, retval=0x0,
file_count=3)
at zend.c:810
#6  0x080946e6 in php_execute_script (primary_file=0xba48) at
main.c:1337
#7  0x08076493 in main (argc=2, argv=0xbac4) at php_cli.c:555
#8  0x4012265f in __libc_start_main () from /lib/libc.so.6

Configure line:
'./configure'  '--with-apxs=/usr/local/apache/bin/apxs'  '--with-mysql'
 '--enable-ftp'  '--enable-sockets'  '--enable-calendar' 
'--enable-bcmath'  '--with-pcntl'  '--enable-ctype'  '--with-mhash' 
'--with-openssl'  '--enable-dbase'  '--with-curl'  '--enable-dbx' 
'--enable-dio'  '--enable-exif'  '--with-pgsql'  '--with-pspell' 
'--enable-filepro'  '--enable-gd'  '--enable-gd-native-ttf' 
'--with-jpeg-dir=/usr'  '--with-png-dir=/usr'  '--with-gettext' 
'--with-gmp'  '--enable-mailparse'  '--enable-mbstring' 
'--enable-mbstr-enc-trans'  '--enable-mgrexeg'  '--with-zlib' 
'--with-bzip2'  '--with-imap'  '--enable-inline-optimization' 
'--with-readline' 




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




Bug #16574 Updated: Accessing Data from HTML page using post method

2002-04-12 Thread cynic

 ID:   16574
 Updated by:   [EMAIL PROTECTED]
 Reported By:  [EMAIL PROTECTED]
-Status:   Open
+Status:   Bogus
 Bug Type: *General Issues
 Operating System: Win95 WinNT4.0
 PHP Version:  4.1.2
 New Comment:

Please do not submit the same bug more than once.


Previous Comments:


[2002-04-12 13:45:35] [EMAIL PROTECTED]

Ok, i'm trying to access data from a html page using the method post
and php file. It works perfectly, but usually a have problems with the
variable names.
For example, i have a text field in a html page and i want to pass the
information typed in that text field to a php file, because i need to
manipulate this data from the text field. That text field i called
tf_project the html page index.html and the php file script.php.
Ok, when i click on the html button to pass the data I'm supposed to be
capable to access the data just accessing the $tf_project variable in
the php script that the post method called. The method post you can
invoke using the html tag in html file like that:
form name=form1 method=post action=../php/script.php
Then, the problem that i'm reporting is, in the php script the 
$tf_project variable value is empty, but it's supposed to store the
value passed from the html text field. If i change the text's field
name to textproject and try to access the value again in the php script
using now $textproject it works. I tough it was a php limitation with
the _ character to name variables, but in another situation i was
using text filed name =  project and php variable $project, then i had
the same problem again, i just changed the names to title1 and $title1
and my php script worked perfectly!!
I'm using the php4.1.1 and win95 for development, i executed the same
test in winnt and with php4.1.2 in the both operational systems, the
same problem occurred again.
I made these simple examples just to verify the same problem that i
always have in my php applications when i use html and php.





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




Bug #15829 Updated: using nonexistingn back reference in regex crashes PHP

2002-04-12 Thread cynic

 ID:   15829
 Updated by:   [EMAIL PROTECTED]
 Reported By:  [EMAIL PROTECTED]
 Status:   Open
 Bug Type: Reproducible crash
 Operating System: Debian (Sid) Linux
 PHP Version:  4.0CVS-2002-03-0
 New Comment:

which branch? I'm seeing this on HEAD.
I've just started a new build, will post backtrace within 20 minutes.




Previous Comments:


[2002-04-12 14:57:17] [EMAIL PROTECTED]

Doesn't crash here either..




[2002-04-12 12:38:02] [EMAIL PROTECTED]

I have it segfaulting there as well.

FreeBSD roman.mobil.cz 4.4-STABLE FreeBSD 4.4-STABLE #0: Wed Dec 26
12:45:18 CET 2001
[EMAIL PROTECTED]:/usr/obj/usr/src/sys/CRUDPUPPY_3  i386

'./configure' \
'--disable-shared' \
'--disable-session' \
'--enable-debug' \
'--enable-inline-optimization' \
'--enable-dio' \
'--enable-ftp' \
'--enable-pcntl' \
'--enable-shmop' \
'--enable-sysvsem' \
'--enable-sysvshm' \
'--enable-sockets' \
'--enable-tokenizer' \
'--without-mysql' \
'--with-openssl' \
'--with-zlib' \
'--with-bz2' \
'--with-curl' \
'--with-gettext' \
'--with-iconv' \
'--with-ncurses' \
'--with-readline' \
$@

I don't have a backtrace yet.



[2002-03-02 07:42:55] [EMAIL PROTECTED]

It crashes with a plain ./configure too btw...



[2002-03-02 07:25:30] [EMAIL PROTECTED]

Doesn't crash for me:

php -q

?php $a=abc123;
  echo ereg_replace(123,'def\1ghi',$a)?

abcdef\1ghi


Derick



[2002-03-02 07:24:07] [EMAIL PROTECTED]

Errm...
That test passes here too:
\0 back reference   
... passed

But this one doesn't:
nonexisting back reference (012.phpt)   
... failed
(it crashes)




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/15829

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




Bug #15829 Updated: using nonexistingn back reference in regex crashes PHP

2002-04-12 Thread cynic

 ID:   15829
 Updated by:   [EMAIL PROTECTED]
 Reported By:  [EMAIL PROTECTED]
 Status:   Open
 Bug Type: Reproducible crash
 Operating System: Debian (Sid) Linux
 PHP Version:  4.0CVS-2002-03-0
 New Comment:

I'm afraid this will get through terribly mangled...

roman@roman ~/install/php4-latest  cat ~/tmp/ereg.test
 141:1
?
$foo = abc123;
echo ereg_replace(123, 'def\1ghi', $foo);
echo \n;
?
roman@roman ~/install/php4-latest  ./php -c /dev/null -qC
~/tmp/ereg.test   142:0
zsh: 84733 segmentation fault (core dumped)  ./php -c /dev/null -qC
~/tmp/ereg.test
roman@roman ~/install/php4-latest  gdb ./php ./php.core   
 144:0
GNU gdb 4.18
Copyright 1998 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and
you are
welcome to change it and/or distribute copies of it under certain
conditions.
Type show copying to see the conditions.
There is absolutely no warranty for GDB.  Type show warranty for
details.
This GDB was configured as i386-unknown-freebsd...
Core was generated by `php'.
Program terminated with signal 11, Segmentation fault.
Reading symbols from /usr/lib/libhistory.so.4...done.
Reading symbols from /usr/lib/libreadline.so.4...done.
Reading symbols from /usr/lib/libncurses.so.5...done.
Reading symbols from /usr/local/lib/libgiconv.so.2...done.
Reading symbols from /usr/local/lib/libintl.so.1...done.
Reading symbols from /usr/lib/libssl.so.2...done.
Reading symbols from /usr/lib/libcrypto.so.2...done.
Reading symbols from /usr/local/lib/libcurl.so.2...done.
Reading symbols from /usr/lib/libbz2.so.1...done.
Reading symbols from /usr/lib/libz.so.2...done.
Reading symbols from /usr/lib/libcrypt.so.2...done.
Reading symbols from /usr/lib/libm.so.2...done.
Reading symbols from /usr/lib/libc.so.4...done.
Reading symbols from /usr/libexec/ld-elf.so.1...done.
#0  0x284c7c82 in memcpy () from /usr/lib/libc.so.4
(gdb) bt
#0  0x284c7c82 in memcpy () from /usr/lib/libc.so.4
#1  0xd570337c in ?? ()
#2  0x80cd88a in php_ereg_replace (ht=3, return_value=0x820b864,
this_ptr=0x0, return_value_used=1, icase=0)
at /home/roman/install/php4-latest/ext/standard/reg.c:476
#3  0x80cd9d8 in zif_ereg_replace (ht=3, return_value=0x820b864,
this_ptr=0x0, return_value_used=1)
at /home/roman/install/php4-latest/ext/standard/reg.c:494
#4  0x815633a in execute (op_array=0x820c724) at
/home/roman/install/php4-latest/Zend/zend_execute.c:1598
#5  0x8145f6d in zend_execute_scripts (type=8, retval=0x0,
file_count=3)
at /home/roman/install/php4-latest/Zend/zend.c:810
#6  0x8118b69 in php_execute_script (primary_file=0xbfbffa78)
at /home/roman/install/php4-latest/main/main.c:1405
#7  0x815baf4 in main (argc=5, argv=0xbfbffaf4) at
/home/roman/install/php4-latest/sapi/cgi/cgi_main.c:1020
#8  0x8064819 in _start ()
(gdb) 



Previous Comments:


[2002-04-12 15:22:41] [EMAIL PROTECTED]

I reported this BEFORE 4.2.0 was branched. 
I can't reproduce it anymore with todya's HEAD.



[2002-04-12 15:09:12] [EMAIL PROTECTED]

which branch? I'm seeing this on HEAD.
I've just started a new build, will post backtrace within 20 minutes.





[2002-04-12 14:57:17] [EMAIL PROTECTED]

Doesn't crash here either..




[2002-04-12 12:38:02] [EMAIL PROTECTED]

I have it segfaulting there as well.

FreeBSD roman.mobil.cz 4.4-STABLE FreeBSD 4.4-STABLE #0: Wed Dec 26
12:45:18 CET 2001
[EMAIL PROTECTED]:/usr/obj/usr/src/sys/CRUDPUPPY_3  i386

'./configure' \
'--disable-shared' \
'--disable-session' \
'--enable-debug' \
'--enable-inline-optimization' \
'--enable-dio' \
'--enable-ftp' \
'--enable-pcntl' \
'--enable-shmop' \
'--enable-sysvsem' \
'--enable-sysvshm' \
'--enable-sockets' \
'--enable-tokenizer' \
'--without-mysql' \
'--with-openssl' \
'--with-zlib' \
'--with-bz2' \
'--with-curl' \
'--with-gettext' \
'--with-iconv' \
'--with-ncurses' \
'--with-readline' \
$@

I don't have a backtrace yet.



[2002-03-02 07:42:55] [EMAIL PROTECTED]

It crashes with a plain ./configure too btw...



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/15829

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




Bug #16251 Updated: config.guess returns value incompatible with configure

2002-03-25 Thread cynic

 ID:   16251
 Updated by:   [EMAIL PROTECTED]
 Reported By:  [EMAIL PROTECTED]
 Status:   Analyzed
 Bug Type: *Configuration Issues
 Operating System: UnixWare 7.1.1
 PHP Version:  4.1.2
 New Comment:

patches to the faulty third-party tools would be better IMO.
consider a manual fix applied to configure.in (or whatever) in 
a release, and this typical scenario:

PHP v. X.Y.Z, feature foo doesn't work
can you try a snapshot?
i can't configure it
um, yes. hack configure.in this and that way, and rerun buildconf

manual hacks to released sources would mean much less testing 
IMNSHO.



Previous Comments:


[2002-03-25 04:53:50] [EMAIL PROTECTED]

problem is in autoconf, not php itself

maybe we could apply manual fixes for releases?



[2002-03-25 04:23:55] [EMAIL PROTECTED]

Hi !

On UnixWare 7.1.1 config.guess returns value

i486-unknown-sysv5UnixWare7.1.1

, but configure script expects on this operating system value of type
i486-unknown-sysv5uw7.1.1
So --host=i486-unknown-sysv5uw7.1.1 must be specified to get correct
configuration on this system. This behavior is at least since PHP 4.0.6
and in 4.2.0RC1 is still present. Probably the same problem is on any
version of UnixWare including Caldera OpenUNIX 8. Config.guess should
be modified to return e.g. sysv5uw7 (i.e. uw instead of UnixWare).

Pavel





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




Bug #15961 Updated: buildconf failure

2002-03-09 Thread cynic

 ID:   15961
 Updated by:   [EMAIL PROTECTED]
 Reported By:  [EMAIL PROTECTED]
-Status:   Feedback
+Status:   Open
 Bug Type: Compile Failure
 Operating System: FreeBSD 4.4-STABLE
 PHP Version:  4.1.2
 New Comment:

no difference:

cynic@cynic ~/install/php-4.1.2  ./cvsclean   
  265:0
cynic@cynic ~/install/php-4.1.2  cvs up 2/dev/null   
  266:0
cynic@cynic ~/install/php-4.1.2  PATH=/opt/bin:$PATH ./buildconf  
  267:0
buildconf: checking installation...
buildconf: autoconf version 2.52 (ok)
buildconf: automake version 1.4 (ok)
buildconf: libtool version 1.4 (ok)
*** Error code 1

Stop in /home/cynic/install/php-4.1.2.
*** Error code 1

Stop in /home/cynic/install/php-4.1.2.
cynic@cynic ~/install/php-4.1.2   
  268:1

I realize this is not the most useful PR, and I'll welcome any advice
on hunting
this down.




Previous Comments:


[2002-03-09 01:38:52] [EMAIL PROTECTED]

Try downgrading to automake 1.4

Derick



[2002-03-08 13:06:23] [EMAIL PROTECTED]

cynic@cynic ~/install/php-4.1.2  PATH=/opt/bin:$PATH ./buildconf
buildconf: checking installation...
buildconf: autoconf version 2.52 (ok)
buildconf: automake version 1.5 (ok)
buildconf: libtool version 1.4 (ok)
*** Error code 1

Stop in /home/cynic/install/php-4.1.2.
*** Error code 1

Stop in /home/cynic/install/php-4.1.2.
cynic@cynic ~/install/php-4.1.2 


to be honest, I don't know WTF is going on, or where should I look.






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




Bug #15961 Updated: buildconf failure

2002-03-09 Thread cynic

 ID:   15961
 Updated by:   [EMAIL PROTECTED]
 Reported By:  [EMAIL PROTECTED]
 Status:   Open
 Bug Type: Compile Failure
 Operating System: FreeBSD 4.4-STABLE
 PHP Version:  4.1.2
 New Comment:

I should also note that ./buildconf *does* work in HEAD (barring the
hiccup with an empty case statement in config.status:1472; see
http://bugs.php.net/?id=15959), and I can even run make test, so this
problem got fixed after the branch.

(`make test` result isn't quite satisfactory, will post to php-qa@)


Previous Comments:


[2002-03-09 11:27:53] [EMAIL PROTECTED]

no difference:

cynic@cynic ~/install/php-4.1.2  ./cvsclean   
  265:0
cynic@cynic ~/install/php-4.1.2  cvs up 2/dev/null   
  266:0
cynic@cynic ~/install/php-4.1.2  PATH=/opt/bin:$PATH ./buildconf  
  267:0
buildconf: checking installation...
buildconf: autoconf version 2.52 (ok)
buildconf: automake version 1.4 (ok)
buildconf: libtool version 1.4 (ok)
*** Error code 1

Stop in /home/cynic/install/php-4.1.2.
*** Error code 1

Stop in /home/cynic/install/php-4.1.2.
cynic@cynic ~/install/php-4.1.2   
  268:1

I realize this is not the most useful PR, and I'll welcome any advice
on hunting
this down.





[2002-03-09 01:38:52] [EMAIL PROTECTED]

Try downgrading to automake 1.4

Derick



[2002-03-08 13:06:23] [EMAIL PROTECTED]

cynic@cynic ~/install/php-4.1.2  PATH=/opt/bin:$PATH ./buildconf
buildconf: checking installation...
buildconf: autoconf version 2.52 (ok)
buildconf: automake version 1.5 (ok)
buildconf: libtool version 1.4 (ok)
*** Error code 1

Stop in /home/cynic/install/php-4.1.2.
*** Error code 1

Stop in /home/cynic/install/php-4.1.2.
cynic@cynic ~/install/php-4.1.2 


to be honest, I don't know WTF is going on, or where should I look.






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




Bug #15937 Updated: Call-time pass-by-reference has been deprecated

2002-03-08 Thread cynic

 ID:   15937
 Updated by:   [EMAIL PROTECTED]
 Reported By:  [EMAIL PROTECTED]
 Status:   Bogus
 Bug Type: Documentation problem
 Operating System: SuSE Linux 6.0
 PHP Version:  4.0.5
 New Comment:

Egon, I don't know about builtin functions, but passing arguments by
reference is *much* slower in userland functions.
I don't see a reason it should be any different with builtin ones.



Previous Comments:


[2002-03-07 14:13:30] [EMAIL PROTECTED]

Sebastian, please make a performance comparison. If a by-reference is
faster, so make a note in the docs and mark this error as deleted.



[2002-03-07 14:07:15] [EMAIL PROTECTED]

Performance is of no concern here. If a function doesn't modify a var,
it wont copy it. As strlen() doesn't modify the value, it is not
copied, and no performance is lost.

Making this bogus again.



[2002-03-07 14:05:02] [EMAIL PROTECTED]

reopened this bug.

the reason for me to use the call-by-reference is performance...




[2002-03-07 13:31:19] [EMAIL PROTECTED]

there's nothing wrong with strlen(). why do you pass it the argument by
reference? strlen() doesn't modify it, so it's completely useless.

this PR is bogus.





[2002-03-07 13:22:23] [EMAIL PROTECTED]

Warning: Call-time pass-by-reference has been deprecated - argument
passed by value; If you would like to pass it by reference, modify the
declaration of strlen(). If you would like to enable call-time
pass-by-reference, you can set allow_call_time_pass_reference to true
in your INI file. However, future versions may not support this any
longer. in xxx line 653

To what shall I modify the declartion of strlen? It's not documented
anywhere...




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




Bug #15955 Updated: header(Location: ...) doesn't work

2002-03-08 Thread cynic

 ID:   15955
 Updated by:   [EMAIL PROTECTED]
 Reported By:  [EMAIL PROTECTED]
-Status:   Open
+Status:   Bogus
 Bug Type: Unknown/Other Function
 Operating System: Win 98 SE
 PHP Version:  4.1.2
 New Comment:

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

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



Previous Comments:


[2002-03-08 07:12:13] [EMAIL PROTECTED]

Hi,

I'm running PHP 4.1.2 with Apache 1.3.x.

And in my projekt the function header(Location: ... ) doesn't work
:(

I tried this with several projects. Always the same effect. The
browser/server seems to ignore the command. If I use the same browser
on an other server it works fine.




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




Bug #15882 Updated: applying a patch

2002-03-05 Thread cynic

 ID:   15882
 Updated by:   [EMAIL PROTECTED]
 Reported By:  [EMAIL PROTECTED]
-Status:   Open
+Status:   Bogus
 Bug Type: *General Issues
 Operating System: windows xp
 PHP Version:  4.1.1
 New Comment:

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


Previous Comments:


[2002-03-05 11:55:39] [EMAIL PROTECTED]

I have php 4.1.1 for windows xp and i downloaded the patch for 4.1.2
but I dont know how to apply it.  for some reason winzip thinks the
file belongs to it.  when I extract the file i get a text document with
some code in it, how to I put that code intot he actual php so that it
will upgrade to version 4.1.2  thanx Jason




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