#24453 [Opn]: w32api registerfunction fails on 3rd call

2003-07-03 Thread jlim at natsoft dot com
 ID:   24453
 User updated by:  jlim at natsoft dot com
 Reported By:  jlim at natsoft dot com
 Status:   Open
 Bug Type: Feature/Change Request
 Operating System: Windows XP
 PHP Version:  4.3.2
 New Comment:

OK, tested again with 4.3.3RC2-dev, Windows XP with the following
results

C:\php4\php43b>php d:\inetpub\wwwroot\php\w32.inc.php
Content-type: text/html
X-Powered-By: PHP/4.3.3RC2-dev

Ticks=57669013
u='jlim '
Array
(
[0] => registerfunction
[1] => unregisterfunction
[2] => registercallback
[3] => definetype
[4] => gettypesize
[5] => inittype
[6] => decref
[7] => gettickcount
[8] => getusername
)

Fatal error:  Call to undefined function:  registerfunction() in
d:\in
etpub\wwwroot\php\w32.inc.php on line 18

Also tested on a 2nd windows 2000 server, with php 4.3.2. Same result.


Previous Comments:


[2003-07-02 15:04:25] [EMAIL PROTECTED]

Works here as expected with 4.3.2 CLI and CGI on XP Pro.




[2003-07-02 01:11:52] jlim at natsoft dot com

Description:

If the 3rd registerfunction (for messageboxa) is commented out, the
code works properly.

Tested with cli version of php.

Reproduce code:
---
registerfunction("long GetTickCount () From Kernel32.dll");
echo "Ticks=",$api->GetTickCount(),"\n";

$api->registerfunction("long GetUserName (string &a, int &b) From
advapi32.dll");
$s1 = "";
$size = strlen($s1);

$api->GetUsername($s1,$size);
$s1 = substr($s1,0,$size);
echo "u='$s1'\n";

print_r(get_class_methods($api));
$api->registerfunction("int MessageBoxA(long hWnd, string &title,
string &lpCaption, int uType) from User32.dll");
?>

Expected result:

Ticks=192755858
u='jlim '
Array
(
[0] => registerfunction
[1] => unregisterfunction
[2] => registercallback
[3] => definetype
[4] => gettypesize
[5] => inittype
[6] => decref
[7] => gettickcount
[8] => getusername
)


Actual result:
--
Ticks=192755858
u='jlim '
Array
(
[0] => registerfunction
[1] => unregisterfunction
[2] => registercallback
[3] => definetype
[4] => gettypesize
[5] => inittype
[6] => decref
[7] => gettickcount
[8] => getusername
)

Fatal error:  Call to undefined function:  registerfunction() in
d:\in
etpub\wwwroot\php\w32.inc.php on line 18





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



#23922 [Opn->Csd]: With assert(string): $this unavailable inside of eval() code

2003-07-03 Thread sterling
 ID:   23922
 Updated by:   [EMAIL PROTECTED]
 Reported By:  dave at codewhore dot org
-Status:   Open
+Status:   Closed
 Bug Type: Zend Engine 2 problem
 Operating System: Linux 2.4
 PHP Version:  5CVS-2003-05-31 (dev)
 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:


[2003-05-31 09:48:09] dave at codewhore dot org

Hi:

Given the following script, which uses assert to eval() a string that
references the current class instance:

foo == 1'); }

function as_expr()
{ assert($this->foo == 1); }
  }

  $foo = new foo();
  $foo->as_expr();
  $foo->as_string();
?>

PHP 4.3-cvs executes it correctly, but PHP 5.0-cvs with ZE2 fails:

  Fatal error: Using $this when not in object context in
/home/dave/test.php(8) : assert code on line 1

Is this expected behavior? More specifically, is $this no longer
available inside of an eval() on ZE2? 


Thanks in advance,

- Dave





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



#24473 [NEW]: Maybe wrong system or exec command

2003-07-03 Thread habr at iinfo dot cz
From: habr at iinfo dot cz
Operating system: WINXP->Linux
PHP version:  4CVS-2003-07-03 (stable)
PHP Bug Type: *General Issues
Bug description:  Maybe wrong system or exec command

Description:

system("mysqldump --user=*** --password=*** --host=localhost --force
database table > /www/sqldump.sql");

This command executes mysql and doesn't create the file, the output is
only on the screen.I don't know why the file isn't created.

Thanx



Reproduce code:
---
system("mysqldump --user=*** --password=*** --host=localhost --force
database table > /www/sqldump.sql");

Expected result:

Output to the file, not tho the scrren or to the variable like


system(" ",$array);

Actual result:
--
screen output only, no redirection

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



#24472 [Opn->Fbk]: Cannot add support for openssl

2003-07-03 Thread derick
 ID:   24472
 Updated by:   [EMAIL PROTECTED]
 Reported By:  bond at skali dot net
-Status:   Open
+Status:   Feedback
 Bug Type: OpenSSL related
 Operating System: Redhat 8.0
 PHP Version:  5.0.0b1 (beta1)
 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-07-03 01:54:26] bond at skali dot net

Description:

When I am configuring php with openssl, it return that libssl not
found. i already install openssl-0.9.7b.






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



#24408 [Bgs]: misinterpretation (file as a folder/directory - without an error)

2003-07-03 Thread theo at sponholz dot de
 ID:   24408
 User updated by:  theo at sponholz dot de
 Reported By:  theo at sponholz dot de
 Status:   Bogus
 Bug Type: *Directory/Filesystem functions
 Operating System: Linux 2.2.24-6.2.3
 PHP Version:  4.3.1
 New Comment:

i know that i can use absolute links, but i don't want to.
an other problem, caused by my first one, 
is shown @
http://www.sponholz.de/bilder/sp.de.uo.jpg
[some searchengines impair my user online status]

i installed apache 2 (php432) on my local pc [Win32] to check ...
 - the same problem

my question:
is it a feature of php or of apache?
THX, 
THEO


Previous Comments:


[2003-06-30 13:30:37] postings-php-bug at hans-spath dot de

I think the "problem" is like this:

If the stylesheet is located at
"http://www.sponholz.de/style.css";
and is refered like

from theo.php, the browser will search for
"http://www.sponholz.de/style.css";
if the request was 
"http://www.sponholz.de/theo.php";
but the browser will search for
"http://www.sponholz.de/theo.php/style.css";
if the request was 
"http://www.sponholz.de/theo.php/";

So this is indeed no PHP bug, but an Apache feature.

To "fix" this behavior, theo.php should refer to style.css by using

or
http://www.sponholz.de/style.css";>



[2003-06-30 13:00:19] [EMAIL PROTECTED]

Without knowing what you're actually doing there, I've no idea how you
could 'disable' it..

Using 4.3.2 I can't reproduce anything like your site has.




[2003-06-30 12:26:36] theo at sponholz dot de

is it possible to disable this feature?
THEO



[2003-06-30 12:10:54] [EMAIL PROTECTED]

Too old PHP version, plus it's not a bug but feature.. :)




[2003-06-30 09:40:18] theo at sponholz dot de

Description:

the Apache/1.3.26 with php-mod misinterprets a file as a directory
for example:
http://www.sponholz.de/theo.php/
(there is no dir. "/theo.php/" under "http://www.sponholz.de/";, just a
file "theo.php")

if you type "http://www.sponholz.de/theo.php"; the site will be shown
correctly. 

if you type "http://www.sponholz.de/theo.php/"; (with an ending
[SLASH]), then the server shows a site without CCS and pictures. Boths
are included relativ. 

further: 
you can add strings like:
"http://www.sponholz.de/theo.php/type.PHP.what.PHP.you/.want";
instead of returning an error
"http://www.sponholz.de/theo.php/";
will be shown.

my problem / wish:

i wanna get an error, when a file or a dir./folder does not exist. 

by the way (i tried this @ php.net, but the php.net-server refers to
google ...)
thx 4 help,
theo






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



#24401 [Com]: register globals does not work correctly??!!

2003-07-03 Thread fuhaha at seoul dot com
 ID:   24401
 Comment by:   fuhaha at seoul dot com
 Reported By:  eero at jlug dot org
 Status:   Open
 Bug Type: *General Issues
 Operating System: Linux
 PHP Version:  5.0.0b1 (beta1)
 New Comment:

php5.0b1 on linux machine. (redhat 9.0)
setted register_globals=On
and phpinfo() check result is register_globals On On

it has problem.

do not recognize GET values, and POST values.

why happend this problem ? 
help me plz.


Previous Comments:


[2003-06-30 08:59:56] philippe dot nonn at cgeyDOT dot com

Hi,

it seems that register_globals don't even work on the Windows version.

When I call a php form which call phpinfo() with parameters (like
phpinfo.php?foo=test), there is non global variable $foo. 

The only way to get the $foo variable is to use get['foo']

Philippe



[2003-06-30 06:34:34] petrich at tronic-media dot com

Hi,
still have the problem;

(register_globals = On in php.ini are ignored, ServerApi = Apache2)

Configure String:
./configure --disable-all
--with-apxs2=/mnt/60giga/samba/public/www/apache2/bin/apxs

Hans-Jürgen Petrich



[2003-06-30 06:22:57] eero at jlug dot org

Now compiled with ./configure  --with-mysql
--with-apxs=/home/apache/bin/apxs and problems still exists.



[2003-06-30 06:01:28] [EMAIL PROTECTED]

1. Drop this:
  export CFLAGS="-march=athlon -O3 -pipe -fomit-frame-pointer"

2. Using /usr/lib as path to ANY php configure option is incorrect (use
/usr instead)

3. Remove following configure options:
  --enable-versioning
  --enable-inline-optimization

4. Try this configure line instead:

  # rm config.cache
  # ./configure --disable-all --with-apxs=home/apache/bin/apxs




[2003-06-30 05:43:07] eero at jlug dot org

and following settings are also on:

register_globals = On
register_long_arrays = On
register_argc_argv = On


echo $QUERY_STRING also stops working and so.



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

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



#23979 [Com]: @getimagesize

2003-07-03 Thread diana dot castillo at nvtechnologies dot com
 ID:   23979
 Comment by:   diana dot castillo at nvtechnologies dot com
 Reported By:  diana at interhotel dot com
 Status:   Assigned
 Bug Type: GetImageSize related
 Operating System: windows
 PHP Version:  4.3.2
 Assigned To:  wez
 New Comment:

I am the one who originally reported this, but I dont remember my
password to comment on it, my original report was with
[EMAIL PROTECTED] email.
I found out that there was something I could change in my error
reporting program so that the error would not print out to the screen .


Previous Comments:


[2003-07-02 23:44:22] nilanjan at unlimitedfx dot com

getimagesize() fails for remote files on PHP 4.3.2 on SunOS - so I
suppose this kind of a problem is not limited to a Win32 platform...

I get the following error:

Warning: getimagesize(http://www.exoticindiaart.com/panels/wb05sm.jpg):
failed to open stream: HTTP request failed! HTTP/1.1 404 Not Found



[2003-06-03 11:18:58] [EMAIL PROTECTED]

I cannot replicate this Linux and the original report suggests that the
script was executed on Windows. So, it is likely this is a win32 only
bug.



[2003-06-03 05:37:03] [EMAIL PROTECTED]

Sounds like a stream problem, assigning to Wez.
Can you please come up with a short script to reproduce this problem,
without using a database?



[2003-06-03 05:32:25] diana at interhotel dot com

I use @getimagesize to resize pictures that I get from a url which
comes
from a database which is always changing.  The problem is that
sometimes the
url does not contain the picture is is supposed to , and then I get the
following error, I thought this was fixed in version 4.3.2 but I still
get it:
Warning:
getimagesize(http://www.hotelresb2b.com/images/hoteles/P1KYHC022030.JPG):
failed to open stream: HTTP request failed! HTTP/1.1 404 Not Found at
c:\inetpub\wwwroot\web\site\ReservationManager.php line 299.
Warning:
getimagesize(http://www.hotelresb2b.com/planos/PLKYHC022030.GIF):
failed to open stream: HTTP request failed! HTTP/1.1 404 Not Found at
c:\inetpub\wwwroot\web\site\ReservationManager.php line 312.




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



#24465 [Com]: No abilty to assign value to object array

2003-07-03 Thread postings-php-bug at hans-spath dot de
 ID:   24465
 Comment by:   postings-php-bug at hans-spath dot de
 Reported By:  artpego at hotmail dot com
 Status:   Open
 Bug Type: COM related
 Operating System: Windows XP SP1
 PHP Version:  4.3.2
 New Comment:

Maybe this helps you:
http://www.phpbuilder.net/columns/alain20001003.php3?page=3
Look for "$cell".

However, I think this is not a bug, but a support question. So this is
not the appropriate place to ask.


Previous Comments:


[2003-07-03 00:45:49] artpego at hotmail dot com

Do not dismiss this so quickly as not understanding PHP syntax. I am a
very compentant PHP coder for a large company (a company which I am
trying to show that PHP can replace their horrible asp/VB systems for
accessing SAP). I understand PHP syntax very well and that using:
$optionAdd(1,"TEXT")="FCURR = 'NTD'";
Will cause a parse error ##using an equal '=' sign after what php would
see as a funtion call is impossible## None the less, I have not found a
way to assign this value. The 
whole point is that I have to assign a value to a co-ordinate:

TABLE   COL1
ROW1  #VALUE#

this co-oridinate/value is represented by (1,1)

I can retrieve the default value assigned to this co-ordinate by
using:

$myValue=$optionAdd->value(1,1); ## LEGAL, I get my value back

I am unable to ASSIGN a value since every time I try it would be
hurting the parser's feelings or breaking the metods rules.

$optionAdd->value(1,1)="Some Text"; Unexpected '=' Error
$optionAdd->value="Some Text"; propput failed invalid index
$optionAdd->appendRow(1,1);
$optionAdd="Some Text"; Invalid number of arguments appendRow

The list goes on and on. I have spent more time than I can imagine
hunting for ways to modify my script. I have researched the SAP COM
methods for alternate solutions, I have studied examples in every other
language, I tried everything I know how to do. I cannot do this. If you
it is as simple as not understanding PHP syntax, then show me how it is
done, otherwise, tell me why it can't be done.



[2003-07-02 21:38:38] [EMAIL PROTECTED]

Learn PHP syntax first.




[2003-07-02 15:01:15] artpego at hotmail dot com

Description:

This is caused while using the "RFC_READ_TABLE" remote function call
for SAP R/3. The ability to add a value to a temporary table at a
specified row and column is required.






Reproduce code:
---
$funSap=new COM("SAP.Functions") or die ("Did Not Create");
$myFun=$funSap->Add("RFC_READ_TABLE");
$optionAdd=$myFun->Tables("OPTIONS");
$optionAdd->AppendRow();
$optionAdd(1,"TEXT")="FCURR = 'NTD'";

Expected result:

The script above supposed to do the following:

a) $optionAdd=$myFun->Tables("OPTIONS")
## CREATE A TABLE NAMED OPTIONS.

b) $optionAdd->AppendRow()
## METHOD CALLED TO ADD A BLANK ROW TO THE OPTIONS TABLE

c) $optionAdd(1,"TEXT")="FCURR = 'NTD'"
## ASSIGN THE VALUE "FCURR = 'NTD'" TO THE OPTIONS TABLE (ROW 1,
COLUMN1)==(1,"TEXT")

Actual result:
--
## ERROR -> parse error, unexpected '=' in line ...
This is due to the line $optionAdd(1,"TEXT")="FCURR = 'NTD'"

I have tried countless combinations, read every piece of documentation,
searched the internet for over a week and can see exambles in every
other language doing exactly this with COM objects (VB,Java,PERL,Etc).

Every other part of the script works
a) I can connect to SAP
b) I can query functions and tables and get results

However: If I am unable to use the portion of the script listed above,
there is no way to limit my queries through a "WHERE CLAUSE" or even
select specific fields... This means my query results would return
every row from the entire table (some have millions of entries) and
there is a buffer width of 512 Bytes that can not be exceeded for each
row. Your assistance will be greatly appreciated.

Michael





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



#24465 [Opn->Bgs]: No abilty to assign value to object array

2003-07-03 Thread derick
 ID:   24465
 Updated by:   [EMAIL PROTECTED]
 Reported By:  artpego at hotmail dot com
-Status:   Open
+Status:   Bogus
 Bug Type: COM related
 Operating System: Windows XP SP1
 PHP Version:  4.3.2
 New Comment:

Right


Previous Comments:


[2003-07-03 03:51:45] postings-php-bug at hans-spath dot de

Maybe this helps you:
http://www.phpbuilder.net/columns/alain20001003.php3?page=3
Look for "$cell".

However, I think this is not a bug, but a support question. So this is
not the appropriate place to ask.



[2003-07-03 00:45:49] artpego at hotmail dot com

Do not dismiss this so quickly as not understanding PHP syntax. I am a
very compentant PHP coder for a large company (a company which I am
trying to show that PHP can replace their horrible asp/VB systems for
accessing SAP). I understand PHP syntax very well and that using:
$optionAdd(1,"TEXT")="FCURR = 'NTD'";
Will cause a parse error ##using an equal '=' sign after what php would
see as a funtion call is impossible## None the less, I have not found a
way to assign this value. The 
whole point is that I have to assign a value to a co-ordinate:

TABLE   COL1
ROW1  #VALUE#

this co-oridinate/value is represented by (1,1)

I can retrieve the default value assigned to this co-ordinate by
using:

$myValue=$optionAdd->value(1,1); ## LEGAL, I get my value back

I am unable to ASSIGN a value since every time I try it would be
hurting the parser's feelings or breaking the metods rules.

$optionAdd->value(1,1)="Some Text"; Unexpected '=' Error
$optionAdd->value="Some Text"; propput failed invalid index
$optionAdd->appendRow(1,1);
$optionAdd="Some Text"; Invalid number of arguments appendRow

The list goes on and on. I have spent more time than I can imagine
hunting for ways to modify my script. I have researched the SAP COM
methods for alternate solutions, I have studied examples in every other
language, I tried everything I know how to do. I cannot do this. If you
it is as simple as not understanding PHP syntax, then show me how it is
done, otherwise, tell me why it can't be done.



[2003-07-02 21:38:38] [EMAIL PROTECTED]

Learn PHP syntax first.




[2003-07-02 15:01:15] artpego at hotmail dot com

Description:

This is caused while using the "RFC_READ_TABLE" remote function call
for SAP R/3. The ability to add a value to a temporary table at a
specified row and column is required.






Reproduce code:
---
$funSap=new COM("SAP.Functions") or die ("Did Not Create");
$myFun=$funSap->Add("RFC_READ_TABLE");
$optionAdd=$myFun->Tables("OPTIONS");
$optionAdd->AppendRow();
$optionAdd(1,"TEXT")="FCURR = 'NTD'";

Expected result:

The script above supposed to do the following:

a) $optionAdd=$myFun->Tables("OPTIONS")
## CREATE A TABLE NAMED OPTIONS.

b) $optionAdd->AppendRow()
## METHOD CALLED TO ADD A BLANK ROW TO THE OPTIONS TABLE

c) $optionAdd(1,"TEXT")="FCURR = 'NTD'"
## ASSIGN THE VALUE "FCURR = 'NTD'" TO THE OPTIONS TABLE (ROW 1,
COLUMN1)==(1,"TEXT")

Actual result:
--
## ERROR -> parse error, unexpected '=' in line ...
This is due to the line $optionAdd(1,"TEXT")="FCURR = 'NTD'"

I have tried countless combinations, read every piece of documentation,
searched the internet for over a week and can see exambles in every
other language doing exactly this with COM objects (VB,Java,PERL,Etc).

Every other part of the script works
a) I can connect to SAP
b) I can query functions and tables and get results

However: If I am unable to use the portion of the script listed above,
there is no way to limit my queries through a "WHERE CLAUSE" or even
select specific fields... This means my query results would return
every row from the entire table (some have millions of entries) and
there is a buffer width of 512 Bytes that can not be exceeded for each
row. Your assistance will be greatly appreciated.

Michael





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



#24465 [Bgs->Sus]: No abilty to assign value to object array

2003-07-03 Thread wez
 ID:   24465
 Updated by:   [EMAIL PROTECTED]
 Reported By:  artpego at hotmail dot com
-Status:   Bogus
+Status:   Suspended
 Bug Type: COM related
 Operating System: Windows XP SP1
 PHP Version:  4.3.2
 New Comment:

PHP does not currently support this kind of thing.
PHP 5 *should* allow it using [] array access, but it does not yet.
Suspending this until the required hooks are present in the engine.


Previous Comments:


[2003-07-03 03:56:22] [EMAIL PROTECTED]

Right



[2003-07-03 03:51:45] postings-php-bug at hans-spath dot de

Maybe this helps you:
http://www.phpbuilder.net/columns/alain20001003.php3?page=3
Look for "$cell".

However, I think this is not a bug, but a support question. So this is
not the appropriate place to ask.



[2003-07-03 00:45:49] artpego at hotmail dot com

Do not dismiss this so quickly as not understanding PHP syntax. I am a
very compentant PHP coder for a large company (a company which I am
trying to show that PHP can replace their horrible asp/VB systems for
accessing SAP). I understand PHP syntax very well and that using:
$optionAdd(1,"TEXT")="FCURR = 'NTD'";
Will cause a parse error ##using an equal '=' sign after what php would
see as a funtion call is impossible## None the less, I have not found a
way to assign this value. The 
whole point is that I have to assign a value to a co-ordinate:

TABLE   COL1
ROW1  #VALUE#

this co-oridinate/value is represented by (1,1)

I can retrieve the default value assigned to this co-ordinate by
using:

$myValue=$optionAdd->value(1,1); ## LEGAL, I get my value back

I am unable to ASSIGN a value since every time I try it would be
hurting the parser's feelings or breaking the metods rules.

$optionAdd->value(1,1)="Some Text"; Unexpected '=' Error
$optionAdd->value="Some Text"; propput failed invalid index
$optionAdd->appendRow(1,1);
$optionAdd="Some Text"; Invalid number of arguments appendRow

The list goes on and on. I have spent more time than I can imagine
hunting for ways to modify my script. I have researched the SAP COM
methods for alternate solutions, I have studied examples in every other
language, I tried everything I know how to do. I cannot do this. If you
it is as simple as not understanding PHP syntax, then show me how it is
done, otherwise, tell me why it can't be done.



[2003-07-02 21:38:38] [EMAIL PROTECTED]

Learn PHP syntax first.




[2003-07-02 15:01:15] artpego at hotmail dot com

Description:

This is caused while using the "RFC_READ_TABLE" remote function call
for SAP R/3. The ability to add a value to a temporary table at a
specified row and column is required.






Reproduce code:
---
$funSap=new COM("SAP.Functions") or die ("Did Not Create");
$myFun=$funSap->Add("RFC_READ_TABLE");
$optionAdd=$myFun->Tables("OPTIONS");
$optionAdd->AppendRow();
$optionAdd(1,"TEXT")="FCURR = 'NTD'";

Expected result:

The script above supposed to do the following:

a) $optionAdd=$myFun->Tables("OPTIONS")
## CREATE A TABLE NAMED OPTIONS.

b) $optionAdd->AppendRow()
## METHOD CALLED TO ADD A BLANK ROW TO THE OPTIONS TABLE

c) $optionAdd(1,"TEXT")="FCURR = 'NTD'"
## ASSIGN THE VALUE "FCURR = 'NTD'" TO THE OPTIONS TABLE (ROW 1,
COLUMN1)==(1,"TEXT")

Actual result:
--
## ERROR -> parse error, unexpected '=' in line ...
This is due to the line $optionAdd(1,"TEXT")="FCURR = 'NTD'"

I have tried countless combinations, read every piece of documentation,
searched the internet for over a week and can see exambles in every
other language doing exactly this with COM objects (VB,Java,PERL,Etc).

Every other part of the script works
a) I can connect to SAP
b) I can query functions and tables and get results

However: If I am unable to use the portion of the script listed above,
there is no way to limit my queries through a "WHERE CLAUSE" or even
select specific fields... This means my query results would return
every row from the entire table (some have millions of entries) and
there is a buffer width of 512 Bytes that can not be exceeded for each
row. Your assistance will be greatly appreciated.

Michael





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



#24167 [Csd->Opn]: [PATCH] FastCGI server processes dying when script not found

2003-07-03 Thread mweilguni at sime dot com
 ID:   24167
 User updated by:  mweilguni at sime dot com
 Reported By:  mweilguni at sime dot com
-Status:   Closed
+Status:   Open
 Bug Type: CGI related
 Operating System: Redhat Linux 7.2
 PHP Version:  4.3.2
 Assigned To:  shane
 New Comment:

The bug is not really fixed. The request now works (I get "No input
file specified"), but the affected server process still terminates and
after 8 such requests alle servers are gone. What's the reason to
terminate the request if no input file was found?


Previous Comments:


[2003-06-29 18:16:36] [EMAIL PROTECTED]

Fixed. See bug #24009.




[2003-06-29 15:07:16] [EMAIL PROTECTED]

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

Thank you for your interest in PHP.

this is a dup of 24009, patch being submitted shortly



[2003-06-18 10:29:45] [EMAIL PROTECTED]

Try this patch http://bb.prohost.org/fcgi.txt and let me know if it
fixes the problem.



[2003-06-13 07:46:40] [EMAIL PROTECTED]

Shane should know? :)




[2003-06-13 03:14:07] mweilguni at sime dot com

Description:

We use PHP 4.3.2 + FastCGI + Apache/mod_fcgi. The PHP fastcgi server is
started in our setup with 8 preforked php-servers,
so after a restart the process tree will look like:
\_ /usr/bin/php-fcgi-4.3.2
   |   \_ /usr/bin/php-fcgi-4.3.2
   |   \_ /usr/bin/php-fcgi-4.3.2
   |   \_ /usr/bin/php-fcgi-4.3.2
   |   \_ /usr/bin/php-fcgi-4.3.2
   |   \_ /usr/bin/php-fcgi-4.3.2
   |   \_ /usr/bin/php-fcgi-4.3.2
   |   \_ /usr/bin/php-fcgi-4.3.2
   |   \_ /usr/bin/php-fcgi-4.3.2

so far it's ok. when I request for a non-existant script, I get the
error "No input file specified.". That's ok too. But after that, one
server process died:
\_ /usr/bin/php-fcgi-4.3.2
   |   \_ /usr/bin/php-fcgi-4.3.2
   |   \_ /usr/bin/php-fcgi-4.3.2
   |   \_ /usr/bin/php-fcgi-4.3.2
   |   \_ /usr/bin/php-fcgi-4.3.2
   |   \_ /usr/bin/php-fcgi-4.3.2
   |   \_ /usr/bin/php-fcgi-4.3.2
   |   \_ /usr/bin/php-fcgi-4.3.2

After requesting a non-existant script 8 times all servers are gone,
only the master server process remains:
\_ /usr/bin/php-fcgi-4.3.2

I checked the file sapi/cgi/cgi_main.c and it seems the error is in
line 1473:
if (retval == FAILURE && file_handle.handle.fp == NULL) {
SG(sapi_headers).http_response_code = 404;
PUTS("No input file specified.\n");
php_request_shutdown((void *) 0);
php_module_shutdown(TSRMLS_C);
return FAILURE;
}

IMO this should be:
if (retval == FAILURE && file_handle.handle.fp == NULL) {
SG(sapi_headers).http_response_code = 404;
PUTS("No input file specified.\n");
#if PHP_FASTCGI
continue; 
#endif
php_request_shutdown((void *) 0);
php_module_shutdown(TSRMLS_C);
return FAILURE;
}

It seems to work fine, but I'm not really sure if this is right.






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



#13053 [Com]: oci8 error, this kill oracle-prosseces in the oracle-instance.

2003-07-03 Thread mmi at uhb-consulting dot de
 ID:   13053
 Comment by:   mmi at uhb-consulting dot de
 Reported By:  jsun at basefarm dot no
 Status:   Bogus
 Bug Type: OCI8 related
 Operating System: sun solaris 64 bits
 PHP Version:  4.0.6
 New Comment:

We have the same problem with 
php4.3.2/Apache/1.3.26 on Linux SUSE 7.2 with Kernel 2.4.4-4GB, Oracle
8.1.7.0 doing a lot of Selects,
we tried to update from 4.2.2 to 4.2.3 to 4.3.2 to solve the problem
but it didn't.
 

Errors are mixed between 
Warning: OCISessionBegin: ORA-24327: need explicit attach before
authenticating a user 
and
Warning:  Unknown(): _oci_close_session: OCISessionEnd: Error while
trying to retrieve text for error ORA-03113

The Problem is not really reproduceable, but apears only after a long
runtime of apache, after restarting apache the problem doesnt't appear
for a time, then suddenly it appears again.


Previous Comments:


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

latest infos:
Our customer said, that this problem still exists with php4.2.3, but we
could not reproduce it yesterday (we made stress-tests, killed the
Oracle connections via Oracle).

We upgradet to php4.3.0 and the customer will also upgrade their Oracle
client from 8.1.7.0 to 8.1.7.4 (at the moment only the Oracle server is
running 8.1.7.4).

Now I'm waiting for feedback from the customer.



[2003-01-28 11:48:17] [EMAIL PROTECTED]

Note:

Bug #21897
ORA-03113: end-of-file on communication channel

is relevant, but close because duplicated.

This one seems to be "bogus", though i hpe to see whether the bug can
still be encountered and have some more details to trace it down.

Maxim Maletsky



[2002-12-02 09:48:10] ccourtoi at istar dot fr

Hi, 

The last news about our ORA-24327 error
We changed the version of php into 4.2.3 and it seems that the
connection failed problem has disappeared.
Thanx for your advice,

Caroline :o)



[2002-11-26 10:37:00] [EMAIL PROTECTED]

Yes. Try the lastest CVS from snaps.php.net and, if this still happens,
give us some more details.



[2002-11-26 04:22:55] ccourtoi at istar dot fr

I have exactly the same problem with PHP 4.1.1
Do I need to change the php version to solve this bug ?



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

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



#19859 [Ver->Csd]: __call() does not catch call_user_func_array() calls

2003-07-03 Thread stas
 ID:   19859
 Updated by:   [EMAIL PROTECTED]
 Reported By:  tater at potatoe dot com
-Status:   Verified
+Status:   Closed
 Bug Type: Zend Engine 2 problem
 Operating System: All
 PHP Version:  5.0.0-dev
 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.

fixed


Previous Comments:


[2002-10-11 05:33:13] tater at potatoe dot com

If an undefined class method is called via call_user_func_array(), the
ZE2 __call() handler won't catch it.

class test
{
  function __call($method,$args)
  {
print "test::__call invoked for method '$method'\n";
  }
}
$x = new test;
$x->fake(1);
call_user_func_array(array($x,'fake'),array(1));

Output:
test::__call invoked for method 'fake'
Warning: call_user_func_array() [function.call-user-func-array]: First
argumented is expected to be a valid callback, 'test::fake' was given
in /usr/local/book/book/catalog/classes/bug.php on line 11





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



#24474 [NEW]: get_element_by_id doesn`t work

2003-07-03 Thread grest at interia dot pl
From: grest at interia dot pl
Operating system: WinXp
PHP version:  4.3.2
PHP Bug Type: DOM XML related
Bug description:  get_element_by_id doesn`t work

Description:

get_element_by_id doesn`t work and always returns NULL.

Reproduce code:
---
MY DTD:











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



#21760 [Com]: socket_read PHP_NORMAL_READ problem

2003-07-03 Thread johan at piri dot nu
 ID:   21760
 Comment by:   johan at piri dot nu
 Reported By:  sunday at csh dot rit dot edu
 Status:   No Feedback
 Bug Type: Sockets related
 Operating System: FreeBSD 4.7
 PHP Version:  4.3.0
 New Comment:

I am experiencing this problem too. And it seems that is has not been
fixed with PHP 5.0.0b1.


Previous Comments:


[2003-06-29 06:43:49] jason at superlink dot net

Bug is on 4.3.2 on redhat too.



[2003-06-17 11:53:13] zstealer at nospam dot msn dot com

Im having a similar problem, Im working on an IRC bot, Im using the
latest stable version for windows, (4.3.3 i think) and Windows XP
professional with all the latest updates.

Obviously, when i do socket_read with PHP_NORMAL_READ, it returns
nothing, but PHP_BINARY_READ works fine.

Please fix this, I have been looking for help for a long time, Many
people told me PHP_NORMAL_READ is currently buggy at the moment.



[2003-06-06 21:55:27] jason at superlink dot net

I have this problem on PHP 4.3.2 with FreeBSD 4.8.

socket_read() will return an infinate amount of "\n" from the socket. 

This ends up using a LOT of cpu as you can well imagine.

I had to write a script to kill all php processes when over 40% cpu
usage. (This was before I knew about the infinate \n output).



[2003-05-27 05:59:46] phpbugs at miloware dot org

I'm having similar problems (PHP 4.3.1 / Windows 2003 Server Ent).

Seems that adding PHP_NORMAL_READ will cause socket_read() to fail:
Warning: socket_read() unable to read from socket [0]

While ommiting the parameter will cause socket_read() to either not
reading all the data available, or cause a never ending loop.

Hope this helps



[2003-05-15 08:37:44] wills at housing dot ufl dot edu

I am having a similar problem with the latest -STABLE snapshot from
8:30GMT today. When I use socket_read with PHP_NORMAL_READ, I get no
data returned and 'Operation completed successfully' as the returned
error.

This is on a Win2k SP3 system, IIS 5.0, again with the latest -STABLE
snapshot. This also occurs with 4.3.2-RC2. 

I would be happy to test patches but I do not have the means to compile
a new PHP so I am depending on the SNAPSHOTs.



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

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



#24474 [Opn->Fbk]: get_element_by_id doesn`t work

2003-07-03 Thread derick
 ID:   24474
 Updated by:   [EMAIL PROTECTED]
 Reported By:  grest at interia dot pl
-Status:   Open
+Status:   Feedback
 Bug Type: DOM XML related
 Operating System: WinXp
 PHP Version:  4.3.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".

Thank you for your interest in PHP.



Previous Comments:


[2003-07-03 04:33:10] grest at interia dot pl

Description:

get_element_by_id doesn`t work and always returns NULL.

Reproduce code:
---
MY DTD:















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



#24474 [Fbk->Opn]: get_element_by_id doesn`t work

2003-07-03 Thread grest at interia dot pl
 ID:   24474
 User updated by:  grest at interia dot pl
 Reported By:  grest at interia dot pl
-Status:   Feedback
+Status:   Open
 Bug Type: DOM XML related
 Operating System: WinXp
 PHP Version:  4.3.2
 New Comment:

$fileName = "filmy.xml";
$fid = $HTTP_POST_VARS['deltitle'];
if(!$dom = domxml_open_file($fileName)) {
  echo "Error while parsing the document\n";
  exit;
}
$node = $dom->get_element_by_id($fid);
$parent = $node->parent_node();
$delnode = $parent->remove_child($node);
$dom->dump_file("filmy.xml", true);


Previous Comments:


[2003-07-03 04:36:10] [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-07-03 04:33:10] grest at interia dot pl

Description:

get_element_by_id doesn`t work and always returns NULL.

Reproduce code:
---
MY DTD:















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



#24457 [Fbk->Opn]: Segfault when executing a script

2003-07-03 Thread s dot vanvelthem at ibelgique dot com
 ID:   24457
 User updated by:  s dot vanvelthem at ibelgique dot com
 Reported By:  s dot vanvelthem at ibelgique dot com
-Status:   Feedback
+Status:   Open
 Bug Type: Reproducible crash
 Operating System: Sco OpenServer 5.05
 PHP Version:  4.3.3RC1
 New Comment:

Here's the trace (with the latest STABLE release
php4-STABLE-200307030930.tar.gz)

bash-2.03# /opt/K/SKUNK2000/Gdb/5.0/usr/local/bin/gdb
/usr/local/bin/php /u/too
ls/printps/core
GNU gdb 5.0
Copyright 2000 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-pc-sco3.2v5.0.5"...
Core was generated by `printps.php'.
Program terminated with signal 11, Segmentation fault.
Reading symbols from /usr/lib/libsocket.so.1...done.
Loaded symbols for /usr/lib/libsocket.so.1
Reading symbols from /usr/lib/libc.so.1...done.
Loaded symbols for /usr/lib/libc.so.1
#0  0x80021602 in getcwd () from /usr/lib/libc.so.1
(gdb)bt
#0  0x80021602 in getcwd () from /usr/lib/libc.so.1
#1  0x8007ffe0 in pathcanon () from /usr/lib/libsocket.so.1
#2  0x800802c0 in realpath () from /usr/lib/libsocket.so.1
#3  0x8129570 in php_execute_script (primary_file=0x8047c54)
at /seb/php4-STABLE-200307030930/main/main.c:1652
#4  0x817570f in main (argc=2, argv=0x8047c90)
at /seb/php4-STABLE-200307030930/sapi/cli/php_cli.c:818
#5  0x805ff5b in _start ()
(gdb) 

Thanks


Previous Comments:


[2003-07-02 06:54:21] [EMAIL PROTECTED]

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

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





[2003-07-02 06:38:32] s dot vanvelthem at ibelgique dot com

Description:

when I try to execute a script with PHP4.3.3RC1/OpenServer, I've got a
Segmentation fault if I don't specifiy the entire pathname before the
script file


ex :

* ./my_script.php gives me a segmentation fault
* /home/seb/my_script.php is OK

see also php_scandir.c error at compile time, is this useful?

  
I'm using :
 
 SCO OpenServer 5.05
 Gcc 2.95.2pl1
 UDK 7.1.1

ERRORS AND WARNING NOTES

./configure --enable-cli --disable-cgi

-> warning : you will need bison 1.28
-> warning : you will need bison 1.28 if you want to regenerate the
Zend
parser (found 1.25)

gmake 

->/seb/php4-STABLE-200307020930/ext/standard/exec.c: In function
`proc_open_rsrc_dtor':
->/seb/php4-STABLE-200307020930/ext/standard/exec.c:578: warning: cast
from pointer to integer of different size
->/seb/php4-STABLE-200307020930/ext/standard/exec.c: In function
`zif_proc_open':
->seb/php4-STABLE-200307020930/ext/standard/exec.c:993: warning: cast
to
pointer from integer of different size
->/seb/php4-STABLE-200307020930/ext/standard/var_unserializer.c: In
function `php_var_unserialize':
->/seb/php4-STABLE-200307020930/ext/standard/var_unserializer.c:308:
warning: comparison is always false due to limited range of data type
->seb/php4-STABLE-200307020930/main/php_scandir.c: In function
`php_scandir':
->/seb/php4-STABLE-200307020930/main/php_scandir.c:116: warning:
passing
arg 4 of `qsort' from incompatible pointer type







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



#24474 [Opn->Fbk]: get_element_by_id doesn`t work

2003-07-03 Thread derick
 ID:   24474
 Updated by:   [EMAIL PROTECTED]
 Reported By:  grest at interia dot pl
-Status:   Open
+Status:   Feedback
 Bug Type: DOM XML related
 Operating System: WinXp
 PHP Version:  4.3.2
 New Comment:

Please provide a FULL self-contained script which should work when we
copy and paste it into a file and run it with php . This is
useles.


Previous Comments:


[2003-07-03 04:50:30] grest at interia dot pl

$fileName = "filmy.xml";
$fid = $HTTP_POST_VARS['deltitle'];
if(!$dom = domxml_open_file($fileName)) {
  echo "Error while parsing the document\n";
  exit;
}
$node = $dom->get_element_by_id($fid);
$parent = $node->parent_node();
$delnode = $parent->remove_child($node);
$dom->dump_file("filmy.xml", true);



[2003-07-03 04:36:10] [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-07-03 04:33:10] grest at interia dot pl

Description:

get_element_by_id doesn`t work and always returns NULL.

Reproduce code:
---
MY DTD:















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



#24413 [Opn->Fbk]: exception example provided on php site fails

2003-07-03 Thread stas
 ID:   24413
 Updated by:   [EMAIL PROTECTED]
 Reported By:  tleake at ebuyer dot com
-Status:   Open
+Status:   Feedback
 Bug Type: Zend Engine 2 problem
 Operating System: mandrake linux 9.0
 PHP Version:  5.0.0b1 (beta1)
 New Comment:

Could you please point out where is this code on the site?


Previous Comments:


[2003-06-30 11:34:35] tleake at ebuyer dot com

Description:

Trying the code below from the php site fails with the following error.
This is php-5.0.0 beta1 compiled with --disable-all under linux


Call to undefined method exception::__construct()

Reproduce code:
---
getMessage();
}
?> 

Expected result:

hello

Actual result:
--

Fatal error:  Call to undefined method exception::__construct()
in /home/tony/software/web/php-5.0.0b1/sapi/cgi/test.php on line
4





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



#24476 [NEW]: Character translation in mssql_query

2003-07-03 Thread andrea dot balducci at antos dot it
From: andrea dot balducci at antos dot it
Operating system: WINXP / WIN2000 SRV
PHP version:  5.0.0b1 (beta1)
PHP Bug Type: MSSQL related
Bug description:  Character translation in mssql_query

Description:

I'm trying to insert chars like ò à è é ì in a sql server 2K table.
Sometimes the chars are traslated in others.



Tryed with php 4.x and 5

Reproduce code:
---
Table Sample:
CREATE TABLE pippo (
[a] [text] COLLATE Latin1_General_CI_AS NULL ,
[b] [text] COLLATE SQL_Latin1_General_CP1_CI_AS NULL 
)

Script sample:



Expected result:

Select * from pippo
  A  B
--- ---
òàèéìù  òàèéìù

Actual result:
--
Select * from pippo
  A  B
--- ---
=ÓÞÚý¨  =ÓÞÚý¨


Using Sql Profiler i've discovered that the query issued to sql server by
mssql_query has the characters already changed. So sql exec "INSERT INTO
PIPPO (A,B) VALUES ('=ÓÞÚý¨','=ÓÞÚý¨')"

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



#24471 [Opn->Bgs]: protected data member redeclared as public

2003-07-03 Thread stas
 ID:   24471
 Updated by:   [EMAIL PROTECTED]
 Reported By:  greg at chiaraquartet dot net
-Status:   Open
+Status:   Bogus
 Bug Type: Zend Engine 2 problem
 Operating System: linux
 PHP Version:  5.0.0b1 (beta1)
 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

You can increase visibility in derived classes (e.g.,
protected->public) but you can not decrease visibility (since it
violates the base class API). 


Previous Comments:


[2003-07-03 00:09:43] greg at chiaraquartet dot net

Description:

if a protected data member is re-declared as public in a child class,
it is redefined as public.  Shouldn't the parent class protected
declaration override the child class as it does for private?

Reproduce code:
---
a;
}
}

class my extends test
{
var $a = 7;
function __construct()
{
print $this->a;
parent::__construct();
}
}
$a = new test; // 6
$a = new my; // 77
print $a->a; // should give error, is 7
$a->a = 4;
print $a->a; // 4
?>

Expected result:

Fatal Error, cannot redeclare a protected data member as public

Actual result:
--
67774





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



#24473 [Opn->Bgs]: Maybe wrong system or exec command

2003-07-03 Thread sniper
 ID:   24473
 Updated by:   [EMAIL PROTECTED]
 Reported By:  habr at iinfo dot cz
-Status:   Open
+Status:   Bogus
 Bug Type: *General Issues
 Operating System: WINXP->Linux
 PHP Version:  4CVS-2003-07-03 (stable)
 New Comment:

Works fine here..propably permissions problem.




Previous Comments:


[2003-07-03 02:19:24] habr at iinfo dot cz

Description:

system("mysqldump --user=*** --password=*** --host=localhost --force
database table > /www/sqldump.sql");

This command executes mysql and doesn't create the file, the output is
only on the screen.I don't know why the file isn't created.

Thanx



Reproduce code:
---
system("mysqldump --user=*** --password=*** --host=localhost --force
database table > /www/sqldump.sql");

Expected result:

Output to the file, not tho the scrren or to the variable like


system(" ",$array);

Actual result:
--
screen output only, no redirection





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



#24413 [Fbk->Opn]: exception example provided on php site fails

2003-07-03 Thread tleake at ebuyer dot com
 ID:   24413
 User updated by:  tleake at ebuyer dot com
 Reported By:  tleake at ebuyer dot com
-Status:   Feedback
+Status:   Open
 Bug Type: Zend Engine 2 problem
 Operating System: mandrake linux 9.0
 PHP Version:  5.0.0b1 (beta1)
 New Comment:

Sure its http://www.php.net/zend-engine-2.php in the section exceptions


Previous Comments:


[2003-07-03 05:01:49] [EMAIL PROTECTED]

Could you please point out where is this code on the site?



[2003-06-30 11:34:35] tleake at ebuyer dot com

Description:

Trying the code below from the php site fails with the following error.
This is php-5.0.0 beta1 compiled with --disable-all under linux


Call to undefined method exception::__construct()

Reproduce code:
---
getMessage();
}
?> 

Expected result:

hello

Actual result:
--

Fatal error:  Call to undefined method exception::__construct()
in /home/tony/software/web/php-5.0.0b1/sapi/cgi/test.php on line
4





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



#24167 [Opn->Asn]: [PATCH] FastCGI server processes dying when script not found

2003-07-03 Thread sniper
 ID:   24167
 Updated by:   [EMAIL PROTECTED]
 Reported By:  mweilguni at sime dot com
-Status:   Open
+Status:   Assigned
 Bug Type: CGI related
 Operating System: Redhat Linux 7.2
 PHP Version:  4.3.2
 Assigned To:  shane
 New Comment:

Shane, take a look?



Previous Comments:


[2003-07-03 04:11:47] mweilguni at sime dot com

The bug is not really fixed. The request now works (I get "No input
file specified"), but the affected server process still terminates and
after 8 such requests alle servers are gone. What's the reason to
terminate the request if no input file was found?



[2003-06-29 18:16:36] [EMAIL PROTECTED]

Fixed. See bug #24009.




[2003-06-29 15:07:16] [EMAIL PROTECTED]

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

Thank you for your interest in PHP.

this is a dup of 24009, patch being submitted shortly



[2003-06-18 10:29:45] [EMAIL PROTECTED]

Try this patch http://bb.prohost.org/fcgi.txt and let me know if it
fixes the problem.



[2003-06-13 07:46:40] [EMAIL PROTECTED]

Shane should know? :)




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

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



#24474 [Fbk->Opn]: get_element_by_id doesn`t work

2003-07-03 Thread grest at interia dot pl
 ID:   24474
 User updated by:  grest at interia dot pl
 Reported By:  grest at interia dot pl
-Status:   Feedback
+Status:   Open
 Bug Type: DOM XML related
 Operating System: WinXp
 PHP Version:  4.3.2
 New Comment:

del.php
get_element_by_id($fid);
$parent = $node->parent_node();
$delnode = $parent->remove_child($node);
$dom->dump_file("filmy.xml", true);
$filename = "filmy.xsl";
$xmldoc = domxml_open_file("filmy.xml");
$xsldoc = domxml_xslt_stylesheet_file($filename);
$result =  $xsldoc->process($xmldoc);
print $xsldoc->result_dump_mem($result);
?>

filmy.xml:




13 Duchów
Grzesiek HDD



8 kobiet

Grzesiek HDD




simply.html:








I`m sure that 'deltitle' and $fid variable are correct "connected"
(sorry for my English :P ), but get_element_by_id doesn`t find the node
in XML file(filmy.xml)


Previous Comments:


[2003-07-03 04:57:25] [EMAIL PROTECTED]

Please provide a FULL self-contained script which should work when we
copy and paste it into a file and run it with php . This is
useles.



[2003-07-03 04:50:30] grest at interia dot pl

$fileName = "filmy.xml";
$fid = $HTTP_POST_VARS['deltitle'];
if(!$dom = domxml_open_file($fileName)) {
  echo "Error while parsing the document\n";
  exit;
}
$node = $dom->get_element_by_id($fid);
$parent = $node->parent_node();
$delnode = $parent->remove_child($node);
$dom->dump_file("filmy.xml", true);



[2003-07-03 04:36:10] [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-07-03 04:33:10] grest at interia dot pl

Description:

get_element_by_id doesn`t work and always returns NULL.

Reproduce code:
---
MY DTD:















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



#24369 [Opn->Fbk]: Error: 1285-302 The parse tree is too large.

2003-07-03 Thread sniper
 ID:   24369
 Updated by:   [EMAIL PROTECTED]
 Reported By:  bxny78 at yahoo dot com
-Status:   Open
+Status:   Feedback
 Bug Type: Compile Failure
 Operating System: aix 5.1
 PHP Version:  4.3.2
 New Comment:

I bet the compiler version is different in your AIX 4.3.3?
Doesn't the native compiler work? (instead of GCC)



Previous Comments:


[2003-07-02 22:52:07] bxny78 at yahoo dot com

FYI - this same code was compiled on AIX 4.3.3 and works well, with the
same level of everything (gcc, make, flex, bison, etc)



[2003-07-02 22:46:03] bxny78 at aol dot com

Config line --

./configure --with-ibm-db2=/home/db2inst1/sqllib \
--with-apxs=/usr/HTTPServer/bin/apxs \
--prefix=/usr/HTTPServer/php \
--with-config-file-path=/usr/HTTPServer/php/conf \
--with-gd \
--with-jpeg-dir=/usr/lib/ \
--with-png-dir=/usr/local/include/libpng \
--with-odbc \
--with-zlib



[2003-07-02 22:17:01] [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.





[2003-06-27 19:02:41] [EMAIL PROTECTED]

What was the configure line you used?




[2003-06-27 18:03:43] bxny78 at yahoo dot com

Description:

I have the below error message when running "make" on aix 5.1 with gcc
2.9-aix51-020209

Reproduce code:
---
configure went ok...

Expected result:

no errors ;-)

Actual result:
--
gcc  -IZend/ -I/php/php-4.3.2/Zend/ -DPHP_ATOM_INC
-I/php/php432/include
 -I/php/php432/main -I/php/php-4.3.2 -I/php/php432/Zend
-I/usr/local/include -I/
php/php-4.3.2/ext/xml/expat -I/php/php-4.3.2/main -I/php/php-4.3.2/Zend
-I/php/p
hp-4.3.2/TSRM  -I/php/php432/TSRM  -g -O2  -c
Zend/zend_language_parser.c -o Zen
d/zend_language_parser.o  && echo > Zend/zend_language_parser.lo
lex -Pzend -S/php/php-4.3.2/Zend/flex.skl
-oZend/zend_language_scanner.c
 -i /php/php-4.3.2/Zend/zend_language_scanner.l
0: Warning: 1285-300 The P flag is not valid.
0: Warning: 1285-300 The z flag is not valid.
0: Warning: 1285-300 The e flag is not valid.
0: Warning: 1285-300 The d flag is not valid.
0: Warning: 1285-300 The S flag is not valid.
0: Warning: 1285-300 The / flag is not valid.
0: Warning: 1285-300 The p flag is not valid.
0: Warning: 1285-300 The h flag is not valid.
0: Warning: 1285-300 The p flag is not valid.
0: Warning: 1285-300 The / flag is not valid.
0: Warning: 1285-300 The p flag is not valid.
0: Warning: 1285-300 The h flag is not valid.
0: Warning: 1285-300 The p flag is not valid.
0: Warning: 1285-300 The - flag is not valid.
0: Warning: 1285-300 The 4 flag is not valid.
0: Warning: 1285-300 The . flag is not valid.
0: Warning: 1285-300 The 3 flag is not valid.
0: Warning: 1285-300 The . flag is not valid.
0: Warning: 1285-300 The 2 flag is not valid.
0: Warning: 1285-300 The / flag is not valid.
0: Warning: 1285-300 The Z flag is not valid.
0: Warning: 1285-300 The e flag is not valid.
0: Warning: 1285-300 The d flag is not valid.
0: Warning: 1285-300 The / flag is not valid.
0: Warning: 1285-300 The f flag is not valid.
0: Warning: 1285-300 The l flag is not valid.
0: Warning: 1285-300 The e flag is not valid.
0: Warning: 1285-300 The x flag is not valid.
0: Warning: 1285-300 The . flag is not valid.
0: Warning: 1285-300 The s flag is not valid.
0: Warning: 1285-300 The k flag is not valid.
0: Warning: 1285-300 The l flag is not valid.
0: Warning: 1285-300 The o flag is not valid.
0: Warning: 1285-300 The Z flag is not valid.
0: Warning: 1285-300 The e flag is not valid.
0: Warning: 1285-300 The d flag is not valid.
0: Warning: 1285-300 The / flag is not valid.
0: Warning: 1285-300 The z flag is not valid.
0: Warning: 1285-300 The e flag is not valid.
0: Warning: 1285-300 The d flag is not valid.
0: Warning: 1285-300 The _ flag is not valid.
0: Warning: 1285-300 The l flag is not valid.
0: Warning: 1285-300 The a flag is not valid.
0: Warning: 1285-300 The g flag is not valid.
0: Warning: 1285-300 The u flag is not valid.
0: Warning: 1285-300 The a flag is not valid.
0: Warning: 1285-300 The g flag is not valid.
0: Warning: 1285-300 The e flag is not valid.
0: Warning: 1285-300 The _ flag is not valid.
0: Warning: 1285-300 The s flag is not valid.
0: Warning: 1285-300 The a flag is not valid.
0: Warning: 1285-300 The e flag is not valid.
0: Warning: 1285-339 Ratfor is not supported with lex.
0: Warning: 1285-300 The . flag is not valid.

#24474 [Opn->Bgs]: get_element_by_id doesn`t work

2003-07-03 Thread sniper
 ID:   24474
 Updated by:   [EMAIL PROTECTED]
 Reported By:  grest at interia dot pl
-Status:   Open
+Status:   Bogus
 Bug Type: DOM XML related
 Operating System: WinXp
 PHP Version:  4.3.2
 New Comment:

Your xml is not valid:

# /usr/bin/xmllint filmy.xml 
filmy.xml:5: error: Input is not proper UTF-8, indicate encoding !
13 Duchów
  ^
filmy.xml:5: error: Bytes: 0xF3 0x77 0x3C 0x2F
13 Duchów
  ^



Previous Comments:


[2003-07-03 05:18:31] grest at interia dot pl

del.php
get_element_by_id($fid);
$parent = $node->parent_node();
$delnode = $parent->remove_child($node);
$dom->dump_file("filmy.xml", true);
$filename = "filmy.xsl";
$xmldoc = domxml_open_file("filmy.xml");
$xsldoc = domxml_xslt_stylesheet_file($filename);
$result =  $xsldoc->process($xmldoc);
print $xsldoc->result_dump_mem($result);
?>

filmy.xml:




13 Duchów
Grzesiek HDD



8 kobiet

Grzesiek HDD




simply.html:








I`m sure that 'deltitle' and $fid variable are correct "connected"
(sorry for my English :P ), but get_element_by_id doesn`t find the node
in XML file(filmy.xml)



[2003-07-03 04:57:25] [EMAIL PROTECTED]

Please provide a FULL self-contained script which should work when we
copy and paste it into a file and run it with php . This is
useles.



[2003-07-03 04:50:30] grest at interia dot pl

$fileName = "filmy.xml";
$fid = $HTTP_POST_VARS['deltitle'];
if(!$dom = domxml_open_file($fileName)) {
  echo "Error while parsing the document\n";
  exit;
}
$node = $dom->get_element_by_id($fid);
$parent = $node->parent_node();
$delnode = $parent->remove_child($node);
$dom->dump_file("filmy.xml", true);



[2003-07-03 04:36:10] [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-07-03 04:33:10] grest at interia dot pl

Description:

get_element_by_id doesn`t work and always returns NULL.

Reproduce code:
---
MY DTD:















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



#24472 [Fbk->Bgs]: Cannot add support for openssl

2003-07-03 Thread sniper
 ID:   24472
 Updated by:   [EMAIL PROTECTED]
 Reported By:  bond at skali dot net
-Status:   Feedback
+Status:   Bogus
 Bug Type: OpenSSL related
 Operating System: Redhat 8.0
 PHP Version:  5.0.0b1 (beta1)
 New Comment:

Wild guess: Install the openssl-devel RPM too.



Previous Comments:


[2003-07-03 02:45:53] [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-07-03 01:54:26] bond at skali dot net

Description:

When I am configuring php with openssl, it return that libssl not
found. i already install openssl-0.9.7b.






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



#19434 [Fbk->Opn]: oci8 + ldap -> crash

2003-07-03 Thread ronan dot salmon at staff dot ittralee dot ie
 ID:   19434
 User updated by:  ronan dot salmon at staff dot ittralee dot ie
 Reported By:  ronan dot salmon at staff dot ittralee dot ie
-Status:   Feedback
+Status:   Open
 Bug Type: OCI8 related
 Operating System: redhat 7.3
 PHP Version:  4.2.3
 New Comment:

./configure   --prefix=/home/sysadmin/usr 
--exec-prefix=/home/sysadmin/usr   --bindir=/home/sysadmin/usr/bin  
--sbindir=/home/sysadmin/usr/sbin  --sysconfdir=/home/sysadmin/etc  
--datadir=/home/sysadmin/usr/share  
--includedir=/home/sysadmin/usr/include --sysconfdir=/home/sysadmin/etc
  --datadir=/home/sysadmin/usr/share   --includedir=/usr/include
--libdir=/home/sysadmin/usr/lib  
--libexecdir=/home/sysadmin/usr/libexec
--mandir=/home/sysadmin/usr/share/man  
--infodir=/home/sysadmin/usr/share/info
--with-config-file-path=/home/sysadmin/etc
  --enable-debug  --with-exec-dir=/home/sysadmin/usr/bin  
--with-ldap=/home/oracle/Oracle-9.0.1/ --enable-sigchild
--with-oci8=/home/oracle/Oracle-9.0.1/

[~/php]$ gdb /home/sysadmin/usr/bin/php
GNU gdb Red Hat Linux (5.2-2)
This GDB was configured as "i386-redhat-linux"...
(gdb) run login.php
Starting program: /home/sysadmin/usr/bin/php login.php
[New Thread 1024 (LWP 3629)]
 
Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 1024 (LWP 3629)]
__pthread_mutex_lock (mutex=0xff3a881f) at mutex.c:99
99  mutex.c: No such file or directory.
in mutex.c
(gdb) bt
#0  __pthread_mutex_lock (mutex=0xff3a881f) at mutex.c:99
#1  0x40889f94 in __libc_free (mem=0x409dc460) at malloc.c:3152
#2  0x08066b42 in zif_ldap_get_entries (ht=2, return_value=0x820eb94,
this_ptr=0x0, return_value_used=1)
at /home/sysadmin/php/php4-STABLE-200307030930/ext/ldap/ldap.c:953
#3  0x0817023f in execute (op_array=0x820ed14)
at
/home/sysadmin/php/php4-STABLE-200307030930/Zend/zend_execute.c:1616
#4  0x081600e2 in zend_execute_scripts (type=8, retval=0x0,
file_count=3)
at /home/sysadmin/php/php4-STABLE-200307030930/Zend/zend.c:886
#5  0x0812f984 in php_execute_script (primary_file=0xba00)
at /home/sysadmin/php/php4-STABLE-200307030930/main/main.c:1685
#6  0x0817664c in main (argc=2, argv=0xbab4)
at
/home/sysadmin/php/php4-STABLE-200307030930/sapi/cgi/cgi_main.c:1542
#7  0x40829316 in __libc_start_main (main=0x8175c74 , argc=2,
ubp_av=0xbab4, init=0x8062af8 <_init>, fini=0x8176f00 <_fini>,
rtld_fini=0x4000d2fc <_dl_fini>, stack_end=0xbaac)
at ../sysdeps/generic/libc-start.c:129
(gdb)



I tried on a Redhat 9.0 with oracle-9.2.0.1 and it does crash as well
:

./configure   --prefix=/usr  --exec-prefix=/usr   --bindir=/usr/bin  
--sbindir=/usr/sbin  --sysconfdir=/etc   --datadir=/usr/share  
--includedir=/usr/include --sysconfdir=/etc   --datadir=/usr/share  
--includedir=/usr/include --libdir=/usr/lib   --libexecdir=/usr/libexec
--mandir=/usr/share/man   --infodir=/usr/share/info   --prefix=/usr
--with-config-file-path=/etc   --enable-debug  --with-exec-dir=/usr/bin
  --with-ldap=/home/oracle/Oracle-9.2.0.1 --enable-sigchild
--with-oci8=/home/oracle/Oracle-9.2.0.1

[~/php]# gdb php
(gdb) run login.php
Starting program: /usr/bin/php login.php
[New Thread 16384 (LWP 376)]
 
Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 16384 (LWP 376)]
0x40a20a34 in _int_free () from /lib/libc.so.6
(gdb) bt
#0  0x40a20a34 in _int_free () from /lib/libc.so.6
#1  0x40a1f9cc in free () from /lib/libc.so.6
#2  0x080662c3 in zif_ldap_get_entries (ht=2, return_value=0x8209e5c,
this_ptr=0x0, return_value_used=1)
at /root/php/php4-STABLE-200307030930/ext/ldap/ldap.c:953
#3  0x0816674f in execute (op_array=0x820531c) at
/root/php/php4-STABLE-200307030930/Zend/zend_execute.c:1616
#4  0x08156d25 in zend_execute_scripts (type=8, retval=0x0,
file_count=3) at /root/php/php4-STABLE-200307030930/Zend/zend.c:886
#5  0x081276f4 in php_execute_script (primary_file=0xb9a0) at
/root/php/php4-STABLE-200307030930/main/main.c:1685
#6  0x0816ca29 in main (argc=2, argv=0xba54) at
/root/php/php4-STABLE-200307030930/sapi/cgi/cgi_main.c:1542
#7  0x409c85cd in __libc_start_main () from /lib/libc.so.6
(gdb)


Previous Comments:


[2003-06-29 21:37:12] [EMAIL PROTECTED]

Please try using this CVS snapshot:

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





[2002-09-27 06:06:22] ronan dot salmon at staff dot ittralee dot ie

Configure Command =>  './configure' '--prefix=/usr'
'--exec-prefix=/usr' '--bindir=/usr/bin' '--sbindir=/usr/sbin'
'--sysconfdir=/etc' '--datadir=/usr/share' '--includedir=/usr/include'
'--libdir=/usr/lib' '--libexecdir=/usr/libexec'
'--mandir=/usr/share/man' '--infodir=/usr/share/info' '--prefix=/usr'
'--with-config-file-path=/etc' '--enable-debug'
'--with-exec-dir=/usr/bin' '--with-l

#24474 [Bgs]: get_element_by_id doesn`t work

2003-07-03 Thread grest at interia dot pl
 ID:   24474
 User updated by:  grest at interia dot pl
 Reported By:  grest at interia dot pl
 Status:   Bogus
 Bug Type: DOM XML related
 Operating System: WinXp
 PHP Version:  4.3.2
 New Comment:

I`ve checked this out, and this is not the reason.


Previous Comments:


[2003-07-03 05:26:34] [EMAIL PROTECTED]

Your xml is not valid:

# /usr/bin/xmllint filmy.xml 
filmy.xml:5: error: Input is not proper UTF-8, indicate encoding !
13 Duchów
  ^
filmy.xml:5: error: Bytes: 0xF3 0x77 0x3C 0x2F
13 Duchów
  ^




[2003-07-03 05:18:31] grest at interia dot pl

del.php
get_element_by_id($fid);
$parent = $node->parent_node();
$delnode = $parent->remove_child($node);
$dom->dump_file("filmy.xml", true);
$filename = "filmy.xsl";
$xmldoc = domxml_open_file("filmy.xml");
$xsldoc = domxml_xslt_stylesheet_file($filename);
$result =  $xsldoc->process($xmldoc);
print $xsldoc->result_dump_mem($result);
?>

filmy.xml:




13 Duchów
Grzesiek HDD



8 kobiet

Grzesiek HDD




simply.html:








I`m sure that 'deltitle' and $fid variable are correct "connected"
(sorry for my English :P ), but get_element_by_id doesn`t find the node
in XML file(filmy.xml)



[2003-07-03 04:57:25] [EMAIL PROTECTED]

Please provide a FULL self-contained script which should work when we
copy and paste it into a file and run it with php . This is
useles.



[2003-07-03 04:50:30] grest at interia dot pl

$fileName = "filmy.xml";
$fid = $HTTP_POST_VARS['deltitle'];
if(!$dom = domxml_open_file($fileName)) {
  echo "Error while parsing the document\n";
  exit;
}
$node = $dom->get_element_by_id($fid);
$parent = $node->parent_node();
$delnode = $parent->remove_child($node);
$dom->dump_file("filmy.xml", true);



[2003-07-03 04:36:10] [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.




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

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



#24477 [NEW]: Problem returning new class by ref from function

2003-07-03 Thread karl at karlaustin dot com
From: karl at karlaustin dot com
Operating system: RH7.3
PHP version:  5CVS-2003-07-03 (dev)
PHP Bug Type: Zend Engine 2 problem
Bug description:  Problem returning new class by ref from function

Description:

Fatal error: Only variables or references can be returned by reference in
/usr/local/php5/lib/php/DB/common.php on line 737

If seems that doing:

return new DB_result($this, $result);

in a function results in the above error, but:

$_tmp = new DB_result($this, $result);
return $_tmp;

Is fine.


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



#24477 [Opn->Ver]: Apache child process segfaults or bus error whil trying to use graph functions

2003-07-03 Thread derick
 ID:   24477
 Updated by:   [EMAIL PROTECTED]
-Summary:  Problem returning new class by ref from function
 Reported By:  karl at karlaustin dot com
-Status:   Open
+Status:   Verified
 Bug Type: Zend Engine 2 problem
-Operating System: RH7.3
+Operating System: Solaris 8 & 9
-PHP Version:  5CVS-2003-07-03 (dev)
+PHP Version:  4.3.2
 New Comment:

Cause:
http://news.php.net/article.php?group=php.zend-engine.cvs&article=1432

I wonder if we really should break BC here...


Previous Comments:


[2003-07-03 06:13:42] karl at karlaustin dot com

Description:

Fatal error: Only variables or references can be returned by reference
in /usr/local/php5/lib/php/DB/common.php on line 737

If seems that doing:

return new DB_result($this, $result);

in a function results in the above error, but:

$_tmp = new DB_result($this, $result);
return $_tmp;

Is fine.






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



#24413 [Opn->Csd]: exception example provided on php site fails

2003-07-03 Thread stas
 ID:   24413
 Updated by:   [EMAIL PROTECTED]
 Reported By:  tleake at ebuyer dot com
-Status:   Open
+Status:   Closed
 Bug Type: Zend Engine 2 problem
 Operating System: mandrake linux 9.0
 PHP Version:  5.0.0b1 (beta1)
 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.

Should work now (except for MyException should be MyExceptionFoo in the
catch). 


Previous Comments:


[2003-07-03 05:15:06] tleake at ebuyer dot com

Sure its http://www.php.net/zend-engine-2.php in the section exceptions



[2003-07-03 05:01:49] [EMAIL PROTECTED]

Could you please point out where is this code on the site?



[2003-06-30 11:34:35] tleake at ebuyer dot com

Description:

Trying the code below from the php site fails with the following error.
This is php-5.0.0 beta1 compiled with --disable-all under linux


Call to undefined method exception::__construct()

Reproduce code:
---
getMessage();
}
?> 

Expected result:

hello

Actual result:
--

Fatal error:  Call to undefined method exception::__construct()
in /home/tony/software/web/php-5.0.0b1/sapi/cgi/test.php on line
4





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



#24477 [Ver]: Apache child process segfaults or bus error whil trying to use graph functions

2003-07-03 Thread karl at karlaustin dot com
 ID:   24477
 User updated by:  karl at karlaustin dot com
 Reported By:  karl at karlaustin dot com
 Status:   Verified
 Bug Type: Zend Engine 2 problem
 Operating System: Solaris 8 & 9
 PHP Version:  4.3.2
 New Comment:

Well from the text of that item it would suggest that doing:

return new object(); 

is fine, but:

return (new object());

is not fine, that's how it would seem to me as an end user.

 PEAR is ridled with returns like the one I list (Although IMHO it
should have only one return and assign return values to a variable then
return at the end, but that's another story).


Previous Comments:


[2003-07-03 06:17:54] [EMAIL PROTECTED]

Cause:
http://news.php.net/article.php?group=php.zend-engine.cvs&article=1432

I wonder if we really should break BC here...



[2003-07-03 06:13:42] karl at karlaustin dot com

Description:

Fatal error: Only variables or references can be returned by reference
in /usr/local/php5/lib/php/DB/common.php on line 737

If seems that doing:

return new DB_result($this, $result);

in a function results in the above error, but:

$_tmp = new DB_result($this, $result);
return $_tmp;

Is fine.






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



#24480 [NEW]: Unable to load dynamic library "php_impa.dll"

2003-07-03 Thread znaminko at finos dot cz
From: znaminko at finos dot cz
Operating system: WINNT 4.0
PHP version:  4.3.2
PHP Bug Type: IIS related
Bug description:  Unable to load dynamic library "php_impa.dll"

Description:

Hello
Version 4.3.2:
Unable to load dynamic library "php_impa.dll" - The specified module could
not be found OS: WINNT 4.0 IIS 4
Version 4.2.3 no problem
Znaminko



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



#24465 [Sus]: No abilty to assign value to object array

2003-07-03 Thread artpego at hotmail dot com
 ID:   24465
 User updated by:  artpego at hotmail dot com
 Reported By:  artpego at hotmail dot com
 Status:   Suspended
 Bug Type: Feature/Change Request
 Operating System: Windows XP SP1
 PHP Version:  4.3.2
 New Comment:

Thank You All for your replies. I have written an Excel-to-tsv program
and the cell method syntax is similar; however, the method works
nothing like this. 
Yes, I thought it would be something like [], but, I have tried using
[] && {}; however, it treats it simply as an array and of course
complains when you add a comma [1,1]. I just mainly wanted to make sure
I had not lost my mind! Atleast knowing that this *May* be supported in
the future is a big relief. Again, Thank you.


Previous Comments:


[2003-07-03 03:58:16] [EMAIL PROTECTED]

PHP does not currently support this kind of thing.
PHP 5 *should* allow it using [] array access, but it does not yet.
Suspending this until the required hooks are present in the engine.



[2003-07-03 03:56:22] [EMAIL PROTECTED]

Right



[2003-07-03 03:51:45] postings-php-bug at hans-spath dot de

Maybe this helps you:
http://www.phpbuilder.net/columns/alain20001003.php3?page=3
Look for "$cell".

However, I think this is not a bug, but a support question. So this is
not the appropriate place to ask.



[2003-07-03 00:45:49] artpego at hotmail dot com

Do not dismiss this so quickly as not understanding PHP syntax. I am a
very compentant PHP coder for a large company (a company which I am
trying to show that PHP can replace their horrible asp/VB systems for
accessing SAP). I understand PHP syntax very well and that using:
$optionAdd(1,"TEXT")="FCURR = 'NTD'";
Will cause a parse error ##using an equal '=' sign after what php would
see as a funtion call is impossible## None the less, I have not found a
way to assign this value. The 
whole point is that I have to assign a value to a co-ordinate:

TABLE   COL1
ROW1  #VALUE#

this co-oridinate/value is represented by (1,1)

I can retrieve the default value assigned to this co-ordinate by
using:

$myValue=$optionAdd->value(1,1); ## LEGAL, I get my value back

I am unable to ASSIGN a value since every time I try it would be
hurting the parser's feelings or breaking the metods rules.

$optionAdd->value(1,1)="Some Text"; Unexpected '=' Error
$optionAdd->value="Some Text"; propput failed invalid index
$optionAdd->appendRow(1,1);
$optionAdd="Some Text"; Invalid number of arguments appendRow

The list goes on and on. I have spent more time than I can imagine
hunting for ways to modify my script. I have researched the SAP COM
methods for alternate solutions, I have studied examples in every other
language, I tried everything I know how to do. I cannot do this. If you
it is as simple as not understanding PHP syntax, then show me how it is
done, otherwise, tell me why it can't be done.



[2003-07-02 21:38:38] [EMAIL PROTECTED]

Learn PHP syntax first.




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

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



#24482 [NEW]: GLOB_ONLYDIR is not working

2003-07-03 Thread acoon at acoon dot dk
From: acoon at acoon dot dk
Operating system: FreeBSD 4.5
PHP version:  4.3.2
PHP Bug Type: *Directory/Filesystem functions
Bug description:  GLOB_ONLYDIR is not working

Description:

When using GLOB_ONLYDIR on FreeBSD 4.5 is returns an error.


PHP was configured like this.
'./configure' '--with-mysql' '--with-apxs=/usr/local/sbin/apxs'
'--with-curl' '--with-gd' '--with-jpeg-dir=/usr/local/include/'
'--with-zlib-dir' '--enable-ftp' '--with-ttf' '--enable-bcmath'


Changes made to php.ini:
register_globals = On

Reproduce code:
---
";
}
?>


Expected result:

I would expect to get all dirs printet.

Actual result:
--
Warning: glob() expects parameter 2 to be long, string given in index.php
on line 43

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



#24480 [Opn->Bgs]: Unable to load dynamic library "php_impa.dll"

2003-07-03 Thread derick
 ID:   24480
 Updated by:   [EMAIL PROTECTED]
 Reported By:  znaminko at finos dot cz
-Status:   Open
+Status:   Bogus
 Bug Type: IIS related
 Operating System: WINNT 4.0
 PHP Version:  4.3.2
 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

Spelling?


Previous Comments:


[2003-07-03 07:12:09] znaminko at finos dot cz

Description:

Hello
Version 4.3.2:
Unable to load dynamic library "php_impa.dll" - The specified module
could not be found OS: WINNT 4.0 IIS 4
Version 4.2.3 no problem
Znaminko







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



#24482 [Opn->Ana]: GLOB_ONLYDIR is not working

2003-07-03 Thread hholzgra
 ID:   24482
 Updated by:   [EMAIL PROTECTED]
 Reported By:  acoon at acoon dot dk
-Status:   Open
+Status:   Analyzed
 Bug Type: *Directory/Filesystem functions
 Operating System: FreeBSD 4.5
 PHP Version:  4.3.2
-Assigned To:  
+Assigned To:  hholzgra
 New Comment:

the comment in the manual is missleading,
GLOB_ONLYDIR is a GNU extension so it is only available on systems with
GNU libc

i'm looking into adding an emulation wrapper to the C code

if it doesn't work i'll update the documentation


Previous Comments:


[2003-07-03 07:30:22] acoon at acoon dot dk

Description:

When using GLOB_ONLYDIR on FreeBSD 4.5 is returns an error.


PHP was configured like this.
'./configure' '--with-mysql' '--with-apxs=/usr/local/sbin/apxs'
'--with-curl' '--with-gd' '--with-jpeg-dir=/usr/local/include/'
'--with-zlib-dir' '--enable-ftp' '--with-ttf' '--enable-bcmath'


Changes made to php.ini:
register_globals = On

Reproduce code:
---
";
}
?>


Expected result:

I would expect to get all dirs printet.

Actual result:
--
Warning: glob() expects parameter 2 to be long, string given in
index.php on line 43





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



#24473 [Bgs]: Maybe wrong system or exec command

2003-07-03 Thread habr at iinfo dot cz
 ID:   24473
 User updated by:  habr at iinfo dot cz
 Reported By:  habr at iinfo dot cz
 Status:   Bogus
 Bug Type: Program Execution
 Operating System: WINXP->Linux
 PHP Version:  4CVS-2003-07-03 (stable)
 New Comment:

what kind of permitions do you mean?


Previous Comments:


[2003-07-03 05:13:37] [EMAIL PROTECTED]

Works fine here..propably permissions problem.





[2003-07-03 02:19:24] habr at iinfo dot cz

Description:

system("mysqldump --user=*** --password=*** --host=localhost --force
database table > /www/sqldump.sql");

This command executes mysql and doesn't create the file, the output is
only on the screen.I don't know why the file isn't created.

Thanx



Reproduce code:
---
system("mysqldump --user=*** --password=*** --host=localhost --force
database table > /www/sqldump.sql");

Expected result:

Output to the file, not tho the scrren or to the variable like


system(" ",$array);

Actual result:
--
screen output only, no redirection





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



#24483 [NEW]: Mono integration doesn't work

2003-07-03 Thread kris dot hofmans at pandora dot be
From: kris dot hofmans at pandora dot be
Operating system: Linux
PHP version:  5.0.0b1 (beta1)
PHP Bug Type: Unknown/Other Function
Bug description:  Mono integration doesn't work

Description:

I've been trying to get this to work for a couple of days now.

When I call a page that uses mono I get this in the apache logs:

** ERROR **: file jit.c: line 4100 (mono_get_lmf_addr): should not be
reached
aborting...
[Thu Jul 03 15:41:34 2003] [notice] child pid 7752 exit signal Aborted
(6)

I get this with the most basic helloworld sample from sterling.

I'm using the mono repository provided here:
http://www.debianplanet.com/mono/ on a freshly installed adamantix (former
trusteddebian) system.

Reproduce code:
---
WriteLine("Hello World");
?> 

Expected result:

Hello World

Actual result:
--
nothing, just the log entry.

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



#24483 [Opn->Asn]: Apache child process segfaults or bus error whil trying to use graph functions

2003-07-03 Thread derick
 ID:   24483
 Updated by:   [EMAIL PROTECTED]
-Summary:  Mono integration doesn't work
 Reported By:  kris dot hofmans at pandora dot be
-Status:   Open
+Status:   Assigned
 Bug Type: Unknown/Other Function
-Operating System: Linux
+Operating System: Solaris 8 & 9
-PHP Version:  5.0.0b1 (beta1)
+PHP Version:  4.3.2
-Assigned To:  
+Assigned To:  sterling


Previous Comments:


[2003-07-03 08:57:50] kris dot hofmans at pandora dot be

Description:

I've been trying to get this to work for a couple of days now.

When I call a page that uses mono I get this in the apache logs:

** ERROR **: file jit.c: line 4100 (mono_get_lmf_addr): should not be
reached
aborting...
[Thu Jul 03 15:41:34 2003] [notice] child pid 7752 exit signal Aborted
(6)

I get this with the most basic helloworld sample from sterling.

I'm using the mono repository provided here:
http://www.debianplanet.com/mono/ on a freshly installed adamantix
(former trusteddebian) system.

Reproduce code:
---
WriteLine("Hello World");
?> 

Expected result:

Hello World

Actual result:
--
nothing, just the log entry.





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



#24483 [Asn]: Mono integration doesn't work

2003-07-03 Thread kris dot hofmans at pandora dot be
 ID:   24483
 User updated by:  kris dot hofmans at pandora dot be
-Summary:  Apache child process segfaults or  bus error whil
   trying to use graph functions
 Reported By:  kris dot hofmans at pandora dot be
 Status:   Assigned
 Bug Type: Unknown/Other Function
-Operating System: Solaris 8 & 9
+Operating System: Linux
-PHP Version:  4.3.2
+PHP Version:  5.0.0b1 (beta1)
 Assigned To:  sterling
 New Comment:

The summary, os and version changed? I'm sorry I'm new at bugzilla.


Previous Comments:


[2003-07-03 08:57:50] kris dot hofmans at pandora dot be

Description:

I've been trying to get this to work for a couple of days now.

When I call a page that uses mono I get this in the apache logs:

** ERROR **: file jit.c: line 4100 (mono_get_lmf_addr): should not be
reached
aborting...
[Thu Jul 03 15:41:34 2003] [notice] child pid 7752 exit signal Aborted
(6)

I get this with the most basic helloworld sample from sterling.

I'm using the mono repository provided here:
http://www.debianplanet.com/mono/ on a freshly installed adamantix
(former trusteddebian) system.

Reproduce code:
---
WriteLine("Hello World");
?> 

Expected result:

Hello World

Actual result:
--
nothing, just the log entry.





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



#24483 [Asn]: Mono integration doesn't work

2003-07-03 Thread derick
 ID:   24483
 Updated by:   [EMAIL PROTECTED]
 Reported By:  kris dot hofmans at pandora dot be
 Status:   Assigned
 Bug Type: Unknown/Other Function
 Operating System: Linux
 PHP Version:  5.0.0b1 (beta1)
 Assigned To:  sterling
 New Comment:

Sorry, that was my mistake...


Previous Comments:


[2003-07-03 09:10:57] kris dot hofmans at pandora dot be

The summary, os and version changed? I'm sorry I'm new at bugzilla.



[2003-07-03 08:57:50] kris dot hofmans at pandora dot be

Description:

I've been trying to get this to work for a couple of days now.

When I call a page that uses mono I get this in the apache logs:

** ERROR **: file jit.c: line 4100 (mono_get_lmf_addr): should not be
reached
aborting...
[Thu Jul 03 15:41:34 2003] [notice] child pid 7752 exit signal Aborted
(6)

I get this with the most basic helloworld sample from sterling.

I'm using the mono repository provided here:
http://www.debianplanet.com/mono/ on a freshly installed adamantix
(former trusteddebian) system.

Reproduce code:
---
WriteLine("Hello World");
?> 

Expected result:

Hello World

Actual result:
--
nothing, just the log entry.





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



#24482 [Ana->Fbk]: GLOB_ONLYDIR is not working

2003-07-03 Thread hholzgra
 ID:   24482
 Updated by:   [EMAIL PROTECTED]
 Reported By:  acoon at acoon dot dk
-Status:   Analyzed
+Status:   Feedback
 Bug Type: *Directory/Filesystem functions
 Operating System: FreeBSD 4.5
 PHP Version:  4.3.2
 Assigned To:  hholzgra
 New Comment:

Please try using this CVS snapshot:

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

should be fixed in PHP 5 CVS now,
i will merge the changes into the 4.3 tree as soon as i know that it
doesn't break anything


Previous Comments:


[2003-07-03 07:56:53] [EMAIL PROTECTED]

the comment in the manual is missleading,
GLOB_ONLYDIR is a GNU extension so it is only available on systems with
GNU libc

i'm looking into adding an emulation wrapper to the C code

if it doesn't work i'll update the documentation



[2003-07-03 07:30:22] acoon at acoon dot dk

Description:

When using GLOB_ONLYDIR on FreeBSD 4.5 is returns an error.


PHP was configured like this.
'./configure' '--with-mysql' '--with-apxs=/usr/local/sbin/apxs'
'--with-curl' '--with-gd' '--with-jpeg-dir=/usr/local/include/'
'--with-zlib-dir' '--enable-ftp' '--with-ttf' '--enable-bcmath'


Changes made to php.ini:
register_globals = On

Reproduce code:
---
";
}
?>


Expected result:

I would expect to get all dirs printet.

Actual result:
--
Warning: glob() expects parameter 2 to be long, string given in
index.php on line 43





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



#24484 [NEW]: SMTP variable in php.ini useless

2003-07-03 Thread anelson at mlis dot com
From: anelson at mlis dot com
Operating system: Redhat 7.2/3
PHP version:  4.3.1
PHP Bug Type: Mail related
Bug description:  SMTP variable in php.ini useless

Description:

By adding the line:

SMTP = 64.90.xxx.xxx

where xxx is more of the address, the mail() function still uses
localhost.  I've seen some stuff about these variables working only on
windows.  Is this true.  Otherwise, there is no error message or anything.
 Seems like the variable just does nothing.



Reproduce code:
---


SMTP = 64.90.xxx.xxx



Expected result:

I expected to have the mail try to go out through the SMTP server
specified

Actual result:
--
The mail went out from localhost

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



#24484 [Opn->Bgs]: SMTP variable in php.ini useless

2003-07-03 Thread derick
 ID:   24484
 Updated by:   [EMAIL PROTECTED]
 Reported By:  anelson at mlis dot com
-Status:   Open
+Status:   Bogus
 Bug Type: Mail related
 Operating System: Redhat 7.2/3
 PHP Version:  4.3.1
 New Comment:

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.

It's windows only...


Previous Comments:


[2003-07-03 09:46:30] anelson at mlis dot com

Description:

By adding the line:

SMTP = 64.90.xxx.xxx

where xxx is more of the address, the mail() function still uses
localhost.  I've seen some stuff about these variables working only on
windows.  Is this true.  Otherwise, there is no error message or
anything.  Seems like the variable just does nothing.



Reproduce code:
---


SMTP = 64.90.xxx.xxx



Expected result:

I expected to have the mail try to go out through the SMTP server
specified

Actual result:
--
The mail went out from localhost





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



#24484 [Bgs]: SMTP variable in php.ini useless

2003-07-03 Thread anelson at mlis dot com
 ID:   24484
 User updated by:  anelson at mlis dot com
 Reported By:  anelson at mlis dot com
 Status:   Bogus
 Bug Type: Mail related
 Operating System: Redhat 7.2/3
 PHP Version:  4.3.1
 New Comment:

Ok, I just wanted it documented, since there is no information anywhere
else.  In the end, modifying the sendmail configuration is the better
method.  I did try this on multiple machines pointing to multiple SMTP
servers to no avail.

Also, there is no fix in the changelog to 4.3.2


Previous Comments:


[2003-07-03 09:48:01] [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.

It\'s windows only...



[2003-07-03 09:46:30] anelson at mlis dot com

Description:

By adding the line:

SMTP = 64.90.xxx.xxx

where xxx is more of the address, the mail() function still uses
localhost.  I've seen some stuff about these variables working only on
windows.  Is this true.  Otherwise, there is no error message or
anything.  Seems like the variable just does nothing.



Reproduce code:
---


SMTP = 64.90.xxx.xxx



Expected result:

I expected to have the mail try to go out through the SMTP server
specified

Actual result:
--
The mail went out from localhost





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



#24485 [NEW]: $a = $b; become $a=&$b; when I use a function

2003-07-03 Thread gomez at efrei dot fr
From: gomez at efrei dot fr
Operating system: windows and linux
PHP version:  4.3.2
PHP Bug Type: Arrays related
Bug description:  $a = $b; become $a=&$b; when I use a function

Description:

In an array, classes become classes references when I use a function
member.

Because of that, I don't copy it anymore, I just produce more  pointers to
it.
(see the '&' in the var dump)

If you comment the magic line, the bug won't appear.

Tested under linux (php 4.1.2 and 4.2.3)
and windows (php 4.3.2)

Reproduce code:
---
show(); /* magic line */
$A[0]->value = 'A';
$B = $A;
$B[0]->value = 'B';
echo $A[0]->value.$B[0]->value;
echo "\n";
var_dump( $A );

?>

Expected result:

AB
array(1) {
  [0]=>
  object(a)(1) {
["value"]=>
string(1) "A"
  }
}

Actual result:
--
BB
array(1) {
  [0]=>
  &object(a)(1) {
["value"]=>
string(1) "B"
  }
}


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



#24224 [Com]: ibase_blob_get overflow

2003-07-03 Thread cryo28 at rbcmal dot ru
 ID:   24224
 Comment by:   cryo28 at rbcmal dot ru
 Reported By:  cryo28 at rbcmail dot ru
 Status:   Feedback
 Bug Type: InterBase related
 Operating System: Win2000 and Linux
 PHP Version:  4.3.2
 New Comment:

Got Warning: ibase_blob_get(): PHP module internal error in
/usr/local/apache2/wwwroot/objectcms/index.php on line 21

and $image = (bool) FALSE :((

(Linux RedHat 9.0. Patch over PHP 4.3.2)


Previous Comments:


[2003-06-29 11:40:39] [EMAIL PROTECTED]

Try applying the following patch (http://bb.prohost.org/ibase.txt) and
please let me know if it fixes the problem.



[2003-06-17 09:12:28] cryo28 at rbcmail dot ru

Description:

Bug was reproduced on Windows 2000 + PHP 4.3.1 + Firebird 1.0(W2K) and
on RedHat Linux 9.0 + PHP 4.3.2 + Firebird 1.5 RC3(Linux).

If BLOB size > 64K actual size of data returned by ibase_blob_get
equals to Actual Size minus 64K.



Reproduce code:
---
while ($res = fetchRow($q)) {
$val = $res->BLOBDATA;
$blobinfo = ibase_blob_info($val);
$blobhndl = ibase_blob_open($val);
$image = ibase_blob_get($blobhndl, blobinfo[0]);
echo $blobinfo[0]."\n";
echo strlen($image)."\n";
ibase_blob_close($blobhndl);
}

Expected result:

Above script produces, for example, 5 5 if BLOBDATA size
5.[OK]. But if BLOBDATA size more than 65535 bytes script producing
something like this:

65978 442
i.e. 442=65978-65536.

ibase_blob_echo($VAL) works right.







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



#24486 [NEW]: strange behaviour with references

2003-07-03 Thread [EMAIL PROTECTED]
From: [EMAIL PROTECTED]
Operating system: Linux
PHP version:  4.3.2
PHP Bug Type: Unknown/Other Function
Bug description:  strange behaviour with references

Description:

we just detected a strange behaviour with references and foreach:
after the foreach() is done in the sample code the & disappear in the
var_dump for the first two elements, the third is of course still a valid
reference because $row exists
i tried to reproduce that effect in different ways but it only happens
when using a foreach

Reproduce code:
---


Actual result:
--
array(3) {
  [0]=>
  &int(1)
  [1]=>
  &int(4)
  [2]=>
  &int(9)
}
value: 1
value: 4
value: 9
array(3) {
  [0]=>
  &int(1)
  [1]=>
  &int(4)
  [2]=>
  &int(9)
}
value: 1
value: 4
value: 9
array(3) {
  [0]=>
  int(1)
  [1]=>
  int(4)
  [2]=>
  &int(9)
}

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



#24487 [NEW]: Preg_match and '# ... #x' delimiters

2003-07-03 Thread nightstorm at tlen dot pl
From: nightstorm at tlen dot pl
Operating system: Mandrake Linux 9
PHP version:  5CVS-2003-07-03 (dev)
PHP Bug Type: PCRE related
Bug description:  Preg_match and '# ... #x' delimiters

Description:

I've changed my PHP 5 alpha into PHP 5 beta 1 from cvs. And i've noticed
that my template parser, which was written on PHP 5 alpha, didn't work. I
analyzed the script and i've noticed that problem's with preg_match and
preg_match_all instructions. They crashes, when the regular expression
contains '#' and '#s', '#is', or other combinations - the browser shows
the message that page cannot be found. When I remove or preg_match, or
these '#' from the expression, everything works good. Probably someone
changed some code in PCRE module, because the same code was working on PHP
5 ALPHA.

Reproduce code:
---
if(preg_match('#\{(.*?)\}#s', 'tralalalalalacompiled
{BLOCK} tralalalah', $found)){
  echo ''; print_r($found); echo '';
}



Expected result:

  print_r result  

Actual result:
--
The browser (Galeon) shows that message (in a message window):
"http://eniac.block22 couldn't be found. Please check the name and try
again".

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



#24369 [Fbk->Opn]: Error: 1285-302 The parse tree is too large.

2003-07-03 Thread bxny78 at yahoo dot com
 ID:   24369
 User updated by:  bxny78 at yahoo dot com
 Reported By:  bxny78 at yahoo dot com
-Status:   Feedback
+Status:   Open
 Bug Type: Compile Failure
 Operating System: aix 5.1
 PHP Version:  4.3.2
 New Comment:

The native compiler had many other errors - as I was reading some other
url - it seems like GNU gcc was prefered to compile php.

I tar the compiled binary from 4.3.3 and moved it to the 5.1 system and
it's working...


Previous Comments:


[2003-07-03 05:19:15] [EMAIL PROTECTED]

I bet the compiler version is different in your AIX 4.3.3?
Doesn't the native compiler work? (instead of GCC)




[2003-07-02 22:52:07] bxny78 at yahoo dot com

FYI - this same code was compiled on AIX 4.3.3 and works well, with the
same level of everything (gcc, make, flex, bison, etc)



[2003-07-02 22:46:03] bxny78 at aol dot com

Config line --

./configure --with-ibm-db2=/home/db2inst1/sqllib \
--with-apxs=/usr/HTTPServer/bin/apxs \
--prefix=/usr/HTTPServer/php \
--with-config-file-path=/usr/HTTPServer/php/conf \
--with-gd \
--with-jpeg-dir=/usr/lib/ \
--with-png-dir=/usr/local/include/libpng \
--with-odbc \
--with-zlib



[2003-06-27 19:02:41] [EMAIL PROTECTED]

What was the configure line you used?




[2003-06-27 18:03:43] bxny78 at yahoo dot com

Description:

I have the below error message when running "make" on aix 5.1 with gcc
2.9-aix51-020209

Reproduce code:
---
configure went ok...

Expected result:

no errors ;-)

Actual result:
--
gcc  -IZend/ -I/php/php-4.3.2/Zend/ -DPHP_ATOM_INC
-I/php/php432/include
 -I/php/php432/main -I/php/php-4.3.2 -I/php/php432/Zend
-I/usr/local/include -I/
php/php-4.3.2/ext/xml/expat -I/php/php-4.3.2/main -I/php/php-4.3.2/Zend
-I/php/p
hp-4.3.2/TSRM  -I/php/php432/TSRM  -g -O2  -c
Zend/zend_language_parser.c -o Zen
d/zend_language_parser.o  && echo > Zend/zend_language_parser.lo
lex -Pzend -S/php/php-4.3.2/Zend/flex.skl
-oZend/zend_language_scanner.c
 -i /php/php-4.3.2/Zend/zend_language_scanner.l
0: Warning: 1285-300 The P flag is not valid.
0: Warning: 1285-300 The z flag is not valid.
0: Warning: 1285-300 The e flag is not valid.
0: Warning: 1285-300 The d flag is not valid.
0: Warning: 1285-300 The S flag is not valid.
0: Warning: 1285-300 The / flag is not valid.
0: Warning: 1285-300 The p flag is not valid.
0: Warning: 1285-300 The h flag is not valid.
0: Warning: 1285-300 The p flag is not valid.
0: Warning: 1285-300 The / flag is not valid.
0: Warning: 1285-300 The p flag is not valid.
0: Warning: 1285-300 The h flag is not valid.
0: Warning: 1285-300 The p flag is not valid.
0: Warning: 1285-300 The - flag is not valid.
0: Warning: 1285-300 The 4 flag is not valid.
0: Warning: 1285-300 The . flag is not valid.
0: Warning: 1285-300 The 3 flag is not valid.
0: Warning: 1285-300 The . flag is not valid.
0: Warning: 1285-300 The 2 flag is not valid.
0: Warning: 1285-300 The / flag is not valid.
0: Warning: 1285-300 The Z flag is not valid.
0: Warning: 1285-300 The e flag is not valid.
0: Warning: 1285-300 The d flag is not valid.
0: Warning: 1285-300 The / flag is not valid.
0: Warning: 1285-300 The f flag is not valid.
0: Warning: 1285-300 The l flag is not valid.
0: Warning: 1285-300 The e flag is not valid.
0: Warning: 1285-300 The x flag is not valid.
0: Warning: 1285-300 The . flag is not valid.
0: Warning: 1285-300 The s flag is not valid.
0: Warning: 1285-300 The k flag is not valid.
0: Warning: 1285-300 The l flag is not valid.
0: Warning: 1285-300 The o flag is not valid.
0: Warning: 1285-300 The Z flag is not valid.
0: Warning: 1285-300 The e flag is not valid.
0: Warning: 1285-300 The d flag is not valid.
0: Warning: 1285-300 The / flag is not valid.
0: Warning: 1285-300 The z flag is not valid.
0: Warning: 1285-300 The e flag is not valid.
0: Warning: 1285-300 The d flag is not valid.
0: Warning: 1285-300 The _ flag is not valid.
0: Warning: 1285-300 The l flag is not valid.
0: Warning: 1285-300 The a flag is not valid.
0: Warning: 1285-300 The g flag is not valid.
0: Warning: 1285-300 The u flag is not valid.
0: Warning: 1285-300 The a flag is not valid.
0: Warning: 1285-300 The g flag is not valid.
0: Warning: 1285-300 The e flag is not valid.
0: Warning: 1285-300 The _ flag is not valid.
0: Warning: 1285-300 The s flag is not valid.
0: Warning: 1285-300 The a flag is not valid.
0: Warning: 1285-300 The e flag is not valid.
0: Warning: 1285-339 Ratfor is not supported with lex.
0: Warning: 1285-300 The . flag is not valid.
0: Warning: 1285-300 The i flag is not valid.
1210: Error: 1285-302

#24476 [Opn->Bgs]: Character translation in mssql_query

2003-07-03 Thread fmk
 ID:   24476
 Updated by:   [EMAIL PROTECTED]
 Reported By:  andrea dot balducci at antos dot it
-Status:   Open
+Status:   Bogus
 Bug Type: MSSQL related
 Operating System: WINXP / WIN2000 SRV
 PHP Version:  5.0.0b1 (beta1)
 New Comment:

I have tested the latest version of both php4 and php5 and I can't
reproduce this problem.

It sounds like you are using two different methods to access the
database. When PHP is used with a web server the MSSQL extension will
use codepage 125x (ANSI). When called from a command line the MSSQL
extension uses the DOS code page (437 for US).

The MS SQL Server client libraries can be configured to do an automatic
ANSI to OEM conversion. If that option is enabled you will see the same
characters from both web server and command line. If it is disabled the
output will not look the same.


Previous Comments:


[2003-07-03 05:04:11] andrea dot balducci at antos dot it

Description:

I'm trying to insert chars like ò à è é ì in a sql server 2K table.
Sometimes the chars are traslated in others.



Tryed with php 4.x and 5

Reproduce code:
---
Table Sample:
CREATE TABLE pippo (
[a] [text] COLLATE Latin1_General_CI_AS NULL ,
[b] [text] COLLATE SQL_Latin1_General_CP1_CI_AS NULL 
)

Script sample:



Expected result:

Select * from pippo
  A  B
--- ---
òàèéìù  òàèéìù

Actual result:
--
Select * from pippo
  A  B
--- ---
=ÓÞÚý¨  =ÓÞÚý¨


Using Sql Profiler i've discovered that the query issued to sql server
by mssql_query has the characters already changed. So sql exec "INSERT
INTO PIPPO (A,B) VALUES ('=ÓÞÚý¨','=ÓÞÚý¨')"





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



#24484 [Bgs]: SMTP variable in php.ini useless

2003-07-03 Thread pollita
 ID:   24484
 Updated by:   [EMAIL PROTECTED]
 Reported By:  anelson at mlis dot com
 Status:   Bogus
 Bug Type: Mail related
 Operating System: Redhat 7.2/3
 PHP Version:  4.3.1
 New Comment:

>From php.ini-dist:

[mail function]
; For Win32 only.
SMTP = localhost

From: http://www.php.net/manual/en/ref.mail.php

SMTP 
Used under Windows only: DNS name or IP address of the SMTP server
PHP should use for mail sent with the mail() function. 


I'm curious where you even found the SMTP ini option since both of
these places have documented their Win32-only nature for some time.


Previous Comments:


[2003-07-03 09:53:09] anelson at mlis dot com

Ok, I just wanted it documented, since there is no information anywhere
else.  In the end, modifying the sendmail configuration is the better
method.  I did try this on multiple machines pointing to multiple SMTP
servers to no avail.

Also, there is no fix in the changelog to 4.3.2



[2003-07-03 09:48:01] [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.

It\'s windows only...



[2003-07-03 09:46:30] anelson at mlis dot com

Description:

By adding the line:

SMTP = 64.90.xxx.xxx

where xxx is more of the address, the mail() function still uses
localhost.  I've seen some stuff about these variables working only on
windows.  Is this true.  Otherwise, there is no error message or
anything.  Seems like the variable just does nothing.



Reproduce code:
---


SMTP = 64.90.xxx.xxx



Expected result:

I expected to have the mail try to go out through the SMTP server
specified

Actual result:
--
The mail went out from localhost





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



#24484 [Bgs]: SMTP variable in php.ini useless

2003-07-03 Thread anelson at mlis dot com
 ID:   24484
 User updated by:  anelson at mlis dot com
 Reported By:  anelson at mlis dot com
 Status:   Bogus
 Bug Type: Mail related
 Operating System: Redhat 7.2/3
 PHP Version:  4.3.1
 New Comment:

Maybe on this page there should be a column for OS.  Also in
"Programming PHP" from O'Reilly, there isn't any reference to it being
Windows only.  It was clear that sendmail_from was Windows, but not
SMTP itself.

http://us2.php.net/manual/en/function.ini-set.php

Thanks for being on top of things.


Previous Comments:


[2003-07-03 13:22:39] [EMAIL PROTECTED]

>From php.ini-dist:

[mail function]
; For Win32 only.
SMTP = localhost

From: http://www.php.net/manual/en/ref.mail.php

SMTP 
Used under Windows only: DNS name or IP address of the SMTP server
PHP should use for mail sent with the mail() function. 


I'm curious where you even found the SMTP ini option since both of
these places have documented their Win32-only nature for some time.



[2003-07-03 09:53:09] anelson at mlis dot com

Ok, I just wanted it documented, since there is no information anywhere
else.  In the end, modifying the sendmail configuration is the better
method.  I did try this on multiple machines pointing to multiple SMTP
servers to no avail.

Also, there is no fix in the changelog to 4.3.2



[2003-07-03 09:48:01] [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.

It\'s windows only...



[2003-07-03 09:46:30] anelson at mlis dot com

Description:

By adding the line:

SMTP = 64.90.xxx.xxx

where xxx is more of the address, the mail() function still uses
localhost.  I've seen some stuff about these variables working only on
windows.  Is this true.  Otherwise, there is no error message or
anything.  Seems like the variable just does nothing.



Reproduce code:
---


SMTP = 64.90.xxx.xxx



Expected result:

I expected to have the mail try to go out through the SMTP server
specified

Actual result:
--
The mail went out from localhost





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



#11442 [Csd]: Random "Warnig: Failed opening" on any php file

2003-07-03 Thread aferriz at yahoo dot com
 ID:   11442
 User updated by:  aferriz at yahoo dot com
 Reported By:  aferriz at yahoo dot com
 Status:   Closed
 Bug Type: iPlanet related
 Operating System: Solaris 7
 PHP Version:  4.3.2
 New Comment:

Ok, its been fixed in 4.3.2.
Sorry for my last post, in my last installation, I was using a wrong
path and I ended up using 4.3.1 shared library, 4.3.2 works fine now.


Previous Comments:


[2003-07-02 21:42:43] [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.





[2003-07-02 11:33:15] aferriz at yahoo dot com

I've just installed another Solaris 7 server with
iPlanet-WebServer-Enterprise/PHP 4.3.2 and I have the same problem
"Failed opening ..." at random points, again, this is a hi-load
server.
I'll try to install PHP 5.0 Beta just for testing.



[2003-05-16 03:52:59] [EMAIL PROTECTED]

Closing this one now after the recent fixes for broken 
Solaris systems. Reopen it if it doesn't work with a snap 
from http://snaps.php.net or the upcomming 4.3.2 release. 



[2003-04-02 08:02:40] koralix at konixx dot cjb dot net

mustafa at xxx dot lt 
--
I have read that include_path in php.ini should be set to ".", then
that
include_path shoul be commented, but nothing helps...

that helped in my case! WindowsME thanks a lot!



[2003-01-10 16:19:28] solarstring at yahoo dot com

I have installed the latest version of php (4.3.2 - Jan2) on Solaris
5.8 , IPlanet, and can verify this problem still exists.  In fact, a
different server with the same build configuration of php, and same
versions of Netscape/Iplanet, php works fine...
PHP Version 4.3.0 

System  SunOS wildcat 5.8 Generic_108528-17 sun4u  
Build Date  Jan 2 2003 16:57:46  
Configure Command  './configure' '--enable-libgcc'
'--prefix=/usr/local' '--with-oci8=/u/ora/app/oracle/product/9.0.1'
'--with-nsapi=/u/web/netscape/iplanet/' '--enable-sysvsem'
'--enable-discard-path' '--enable-magic-quotes' '--enable-memory-limit'
'--enable-versioning' '--enable-track-vars' '--enable-trans-sid'
'--enable-sigchild'  
Server API  NSAPI  
Virtual Directory Support  enabled  
Configuration File (php.ini) Path  /usr/local/lib/php.ini  
PHP API  20020918  
PHP Extension  20020429  
Zend Extension  20021010  
Debug Build  no  
Thread Safety  enabled  
Registered PHP Streams  php, http, ftp  


Have there been any bug patches explicitly related to this?



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

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



#24416 [Com]: Apache2 won't start with PHP5 beta

2003-07-03 Thread aaron at gwmicro dot com
 ID:   24416
 Comment by:   aaron at gwmicro dot com
 Reported By:  ldf13 at hotmail dot com
 Status:   Bogus
 Bug Type: Apache2 related
 Operating System: Windows XP
 PHP Version:  5CVS-2003-06-30 (dev)
 New Comment:

nuno,

Thanks for the info. What you noted still didn't work for me, but it
did prompt me to keep trying. Finally, I had success. Here's what I had
to do:

copy x:/php/php4ts.dll to x:/php/sapi
copy x:/php/dlls/iconv.dll to x:/php

Plus the obligatory:
LoadModule php5_module c:/php/sapi/php4apache2.dll
AddType application/x-httpd-php .php

A little frustrating that there appear so many different solutions in
terms of where to copy what (unless we -- you, me, and a host of Google
groupers -- keep mistyping things). But at least it works for now.

Thanks for your help,

Aaron


Previous Comments:


[2003-07-02 12:54:49] nuno at dbforums dot com

Sure Aaron, copy the files:

php4ts.dll
iconv.dll

to c:/php/sapi/

Then simply add this to your httpd.conf file:

LoadModule php5_module c:/php/sapi/php4apache2.dll
AddType application/x-httpd-php .php

Once that's all done, restart Apache. :)
NET STOP APACHE2
NET START APACHE2



[2003-07-02 09:59:31] aaron at gwmicro dot com

nuno,

Would you care to enlighten the rest of us (me)? 

Aaron



[2003-07-01 22:06:05] nuno at dbforums dot com

Thankfully to strace (an amazing little tool BTW) and install.txt
(duh), I finally managed to install PHP5 with Apache2.0.46.

Therefore, I need to eat my words and I would like to take this
opportunity to present my sincere apologies to the PHP Team.
To sniper, a special thank you for his support.

Best wishes,

nuno :)



[2003-07-01 16:37:55] aaron at gwmicro dot com

I take back my comments about getting this working, sort of. I still
have one machine running Apache2 2.0.46, and PHP 5.0.0b2-dev
successfully. I have another machine, however, running Apache2 2.0.46
and PHP 5.0.0b2-dev unsuccessfully. What bothers me is that the paths
on both systems are EXACTLY the same. So I copied both the Apache2 dir,
and the PHP dir to the second machine thinking that, since everything
is already working, it ought to just work on the second machine.
Foolish me:

Cannot load D:/PHP/sapi/php4apache2.dll into server: The specified
procedure could not be found.

"Specified procedure could not be found." Hmmm...that is certainly
different from the original error of "The
specified module could not be found." We're finding the module, but
we're not finding the procedure, which makes me think that the
php4apache2.dll ain't the right one for this Apache (I remember
fighting this battle with the PHP 4.3.X versions), but it works
perfectly on the first machine, and the directories are identical!

Color me confused...

Both machines are Windows XP Pro, Athlon 1.4Ghz, 512MB RAM, practically
identical in every way, including the software that is installed. 

Aaron



[2003-07-01 13:37:53] nuno at dbforums dot com

Please forgive my ignorance but, how's that suppose to help?
[quote]
"Syntax error on line 169 of C:/Apache2/conf/httpd.conf:
Cannot load C:/Apache2/modules/php4apache2.dll into server: The
specified module could not be found"
[/quote]

Line 169: LoadModule php5_module modules/php4apache2.dll

Can you enlighten me further about this error and how to resolve it?

Thank you.



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

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



#19434 [Opn->Fbk]: oci8 + ldap -> crash

2003-07-03 Thread sniper
 ID:   19434
 Updated by:   [EMAIL PROTECTED]
 Reported By:  ronan dot salmon at staff dot ittralee dot ie
-Status:   Open
+Status:   Feedback
 Bug Type: OCI8 related
 Operating System: redhat 7.3
-PHP Version:  4.2.3
+PHP Version:  4.3.3RC2-dev
 New Comment:

Try add --enable-experimental-zts to your configure line.
(guessing, but e.g. with Apache, you have to have Apache linked with
libpthread..)



Previous Comments:


[2003-07-03 05:56:56] ronan dot salmon at staff dot ittralee dot ie

./configure   --prefix=/home/sysadmin/usr 
--exec-prefix=/home/sysadmin/usr   --bindir=/home/sysadmin/usr/bin  
--sbindir=/home/sysadmin/usr/sbin  --sysconfdir=/home/sysadmin/etc  
--datadir=/home/sysadmin/usr/share  
--includedir=/home/sysadmin/usr/include --sysconfdir=/home/sysadmin/etc
  --datadir=/home/sysadmin/usr/share   --includedir=/usr/include
--libdir=/home/sysadmin/usr/lib  
--libexecdir=/home/sysadmin/usr/libexec
--mandir=/home/sysadmin/usr/share/man  
--infodir=/home/sysadmin/usr/share/info
--with-config-file-path=/home/sysadmin/etc
  --enable-debug  --with-exec-dir=/home/sysadmin/usr/bin  
--with-ldap=/home/oracle/Oracle-9.0.1/ --enable-sigchild
--with-oci8=/home/oracle/Oracle-9.0.1/

[~/php]$ gdb /home/sysadmin/usr/bin/php
GNU gdb Red Hat Linux (5.2-2)
This GDB was configured as "i386-redhat-linux"...
(gdb) run login.php
Starting program: /home/sysadmin/usr/bin/php login.php
[New Thread 1024 (LWP 3629)]
 
Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 1024 (LWP 3629)]
__pthread_mutex_lock (mutex=0xff3a881f) at mutex.c:99
99  mutex.c: No such file or directory.
in mutex.c
(gdb) bt
#0  __pthread_mutex_lock (mutex=0xff3a881f) at mutex.c:99
#1  0x40889f94 in __libc_free (mem=0x409dc460) at malloc.c:3152
#2  0x08066b42 in zif_ldap_get_entries (ht=2, return_value=0x820eb94,
this_ptr=0x0, return_value_used=1)
at /home/sysadmin/php/php4-STABLE-200307030930/ext/ldap/ldap.c:953
#3  0x0817023f in execute (op_array=0x820ed14)
at
/home/sysadmin/php/php4-STABLE-200307030930/Zend/zend_execute.c:1616
#4  0x081600e2 in zend_execute_scripts (type=8, retval=0x0,
file_count=3)
at /home/sysadmin/php/php4-STABLE-200307030930/Zend/zend.c:886
#5  0x0812f984 in php_execute_script (primary_file=0xba00)
at /home/sysadmin/php/php4-STABLE-200307030930/main/main.c:1685
#6  0x0817664c in main (argc=2, argv=0xbab4)
at
/home/sysadmin/php/php4-STABLE-200307030930/sapi/cgi/cgi_main.c:1542
#7  0x40829316 in __libc_start_main (main=0x8175c74 , argc=2,
ubp_av=0xbab4, init=0x8062af8 <_init>, fini=0x8176f00 <_fini>,
rtld_fini=0x4000d2fc <_dl_fini>, stack_end=0xbaac)
at ../sysdeps/generic/libc-start.c:129
(gdb)



I tried on a Redhat 9.0 with oracle-9.2.0.1 and it does crash as well
:

./configure   --prefix=/usr  --exec-prefix=/usr   --bindir=/usr/bin  
--sbindir=/usr/sbin  --sysconfdir=/etc   --datadir=/usr/share  
--includedir=/usr/include --sysconfdir=/etc   --datadir=/usr/share  
--includedir=/usr/include --libdir=/usr/lib   --libexecdir=/usr/libexec
--mandir=/usr/share/man   --infodir=/usr/share/info   --prefix=/usr
--with-config-file-path=/etc   --enable-debug  --with-exec-dir=/usr/bin
  --with-ldap=/home/oracle/Oracle-9.2.0.1 --enable-sigchild
--with-oci8=/home/oracle/Oracle-9.2.0.1

[~/php]# gdb php
(gdb) run login.php
Starting program: /usr/bin/php login.php
[New Thread 16384 (LWP 376)]
 
Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 16384 (LWP 376)]
0x40a20a34 in _int_free () from /lib/libc.so.6
(gdb) bt
#0  0x40a20a34 in _int_free () from /lib/libc.so.6
#1  0x40a1f9cc in free () from /lib/libc.so.6
#2  0x080662c3 in zif_ldap_get_entries (ht=2, return_value=0x8209e5c,
this_ptr=0x0, return_value_used=1)
at /root/php/php4-STABLE-200307030930/ext/ldap/ldap.c:953
#3  0x0816674f in execute (op_array=0x820531c) at
/root/php/php4-STABLE-200307030930/Zend/zend_execute.c:1616
#4  0x08156d25 in zend_execute_scripts (type=8, retval=0x0,
file_count=3) at /root/php/php4-STABLE-200307030930/Zend/zend.c:886
#5  0x081276f4 in php_execute_script (primary_file=0xb9a0) at
/root/php/php4-STABLE-200307030930/main/main.c:1685
#6  0x0816ca29 in main (argc=2, argv=0xba54) at
/root/php/php4-STABLE-200307030930/sapi/cgi/cgi_main.c:1542
#7  0x409c85cd in __libc_start_main () from /lib/libc.so.6
(gdb)



[2003-06-29 21:37:12] [EMAIL PROTECTED]

Please try using this CVS snapshot:

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





[2002-09-27 06:06:22] ronan dot salmon at staff dot ittralee dot ie

Configure Command =>  './configure' '--prefix=/usr'
'--exec-prefix=/usr' '--bindir=/usr/bin' '--sb

#24483 [Asn->Bgs]: Mono integration doesn't work

2003-07-03 Thread sterling
 ID:   24483
 Updated by:   [EMAIL PROTECTED]
 Reported By:  kris dot hofmans at pandora dot be
-Status:   Assigned
+Status:   Bogus
 Bug Type: Unknown/Other Function
 Operating System: Linux
 PHP Version:  5.0.0b1 (beta1)
 Assigned To:  sterling
 New Comment:

Mono doesn't work from within Apache, as Console.WriteLine() writes to
the *console*, not to apache's stdout.  If you want this to work in
apache, you need to try something like mod_haydn (http://haydn.sf.net/)
or mod_mono (forgot the url).

Try it from the command line first though.


Previous Comments:


[2003-07-03 09:14:23] [EMAIL PROTECTED]

Sorry, that was my mistake...



[2003-07-03 09:10:57] kris dot hofmans at pandora dot be

The summary, os and version changed? I'm sorry I'm new at bugzilla.



[2003-07-03 08:57:50] kris dot hofmans at pandora dot be

Description:

I've been trying to get this to work for a couple of days now.

When I call a page that uses mono I get this in the apache logs:

** ERROR **: file jit.c: line 4100 (mono_get_lmf_addr): should not be
reached
aborting...
[Thu Jul 03 15:41:34 2003] [notice] child pid 7752 exit signal Aborted
(6)

I get this with the most basic helloworld sample from sterling.

I'm using the mono repository provided here:
http://www.debianplanet.com/mono/ on a freshly installed adamantix
(former trusteddebian) system.

Reproduce code:
---
WriteLine("Hello World");
?> 

Expected result:

Hello World

Actual result:
--
nothing, just the log entry.





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



#24486 [Opn->Fbk]: strange behaviour with references

2003-07-03 Thread sniper
 ID:   24486
 Updated by:   [EMAIL PROTECTED]
 Reported By:  [EMAIL PROTECTED]
-Status:   Open
+Status:   Feedback
-Bug Type: Unknown/Other Function
+Bug Type: Scripting Engine problem
 Operating System: Linux
 PHP Version:  4.3.2
 New Comment:

And you know that foreach() operates with a copy of the original
array..? And this reference thing is problem..why?



Previous Comments:


[2003-07-03 11:19:53] [EMAIL PROTECTED]

Description:

we just detected a strange behaviour with references and foreach:
after the foreach() is done in the sample code the & disappear in the
var_dump for the first two elements, the third is of course still a
valid reference because $row exists
i tried to reproduce that effect in different ways but it only happens
when using a foreach

Reproduce code:
---


Actual result:
--
array(3) {
  [0]=>
  &int(1)
  [1]=>
  &int(4)
  [2]=>
  &int(9)
}
value: 1
value: 4
value: 9
array(3) {
  [0]=>
  &int(1)
  [1]=>
  &int(4)
  [2]=>
  &int(9)
}
value: 1
value: 4
value: 9
array(3) {
  [0]=>
  int(1)
  [1]=>
  int(4)
  [2]=>
  &int(9)
}





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



#24483 [Bgs]: Mono integration doesn't work

2003-07-03 Thread kris dot hofmans at pandora dot be
 ID:   24483
 User updated by:  kris dot hofmans at pandora dot be
 Reported By:  kris dot hofmans at pandora dot be
 Status:   Bogus
 Bug Type: Unknown/Other Function
 Operating System: Linux
 PHP Version:  5.0.0b1 (beta1)
 Assigned To:  sterling
 New Comment:

oh boy, is my face red :)

Although there is no explicit mention of this I could have figured it
out looking at the stack.php example.

I expected the "console" output would be translated to whatever output
handling available, I was thinking about using the CLI binary to test
but unfortunatly it doesn't compile here (I'm going to look into it
though).

Now if I could only figure out where you guys are hiding that java
extension I'm all set :)


Previous Comments:


[2003-07-03 14:37:54] [EMAIL PROTECTED]

Mono doesn't work from within Apache, as Console.WriteLine() writes to
the *console*, not to apache's stdout.  If you want this to work in
apache, you need to try something like mod_haydn (http://haydn.sf.net/)
or mod_mono (forgot the url).

Try it from the command line first though.



[2003-07-03 09:14:23] [EMAIL PROTECTED]

Sorry, that was my mistake...



[2003-07-03 09:10:57] kris dot hofmans at pandora dot be

The summary, os and version changed? I'm sorry I'm new at bugzilla.



[2003-07-03 08:57:50] kris dot hofmans at pandora dot be

Description:

I've been trying to get this to work for a couple of days now.

When I call a page that uses mono I get this in the apache logs:

** ERROR **: file jit.c: line 4100 (mono_get_lmf_addr): should not be
reached
aborting...
[Thu Jul 03 15:41:34 2003] [notice] child pid 7752 exit signal Aborted
(6)

I get this with the most basic helloworld sample from sterling.

I'm using the mono repository provided here:
http://www.debianplanet.com/mono/ on a freshly installed adamantix
(former trusteddebian) system.

Reproduce code:
---
WriteLine("Hello World");
?> 

Expected result:

Hello World

Actual result:
--
nothing, just the log entry.





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



#22108 [Com]: php doesn't ignore the utf-8 BOM

2003-07-03 Thread jaanus at heeringson dot com
 ID:   22108
 Comment by:   jaanus at heeringson dot com
 Reported By:  bugzilla at jellycan dot com
 Status:   Assigned
 Bug Type: Feature/Change Request
 Operating System: Any
 PHP Version:  All (as of the current implementation)
 Assigned To:  moriyoshi
 New Comment:

There are some consequenses that are not mentioned in the above
comments. More than one BOM renders a perfectly valid XHTM file
non-valid. Apparently the XHTML specification allows BOM characters,
but only ONE, not multiple which is what you get if you include other
utf-8 files (include, require). This in turn results in the possibility
that the xml declaration in not read since it is not found. This is the
case with the w3c validator.


Previous Comments:


[2003-06-04 03:11:51] [EMAIL PROTECTED]

That script appears to be written in UTF-16. As for UTF-16, it could
actually be a parser problem as well, but this report addresses the
issue related to UTF-8.



[2003-06-04 02:59:33] [EMAIL PROTECTED]

Actually, not totally. A friend mailed me a PHP script, which had the
annoying BOM AND the whole file was in double byte (saved by
notepad)... which definitely makes it a parser problem too (\0 < \0 ?
\0 p   doesn't match "http://bugs.php.net/22108

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



#22108 [Com]: php doesn't ignore the utf-8 BOM

2003-07-03 Thread jaanus at heeringson dot com
 ID:   22108
 Comment by:   jaanus at heeringson dot com
 Reported By:  bugzilla at jellycan dot com
 Status:   Assigned
 Bug Type: Feature/Change Request
 Operating System: Any
 PHP Version:  All (as of the current implementation)
 Assigned To:  moriyoshi
 New Comment:

One thing i forgot to mention in my previous post is that multiple
BOM's also inhibit Internet Explorer 6 from rendering pages in
standards-compliance mode, which is a big issue when developing by w3c
standards.


Previous Comments:


[2003-07-03 14:59:44] jaanus at heeringson dot com

There are some consequenses that are not mentioned in the above
comments. More than one BOM renders a perfectly valid XHTM file
non-valid. Apparently the XHTML specification allows BOM characters,
but only ONE, not multiple which is what you get if you include other
utf-8 files (include, require). This in turn results in the possibility
that the xml declaration in not read since it is not found. This is the
case with the w3c validator.



[2003-06-04 03:11:51] [EMAIL PROTECTED]

That script appears to be written in UTF-16. As for UTF-16, it could
actually be a parser problem as well, but this report addresses the
issue related to UTF-8.



[2003-06-04 02:59:33] [EMAIL PROTECTED]

Actually, not totally. A friend mailed me a PHP script, which had the
annoying BOM AND the whole file was in double byte (saved by
notepad)... which definitely makes it a parser problem too (\0 < \0 ?
\0 p   doesn't match "http://bugs.php.net/22108

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



#24401 [Com]: register globals does not work correctly??!!

2003-07-03 Thread Colin_Witt at baylor dot edu
 ID:   24401
 Comment by:   Colin_Witt at baylor dot edu
 Reported By:  eero at jlug dot org
 Status:   Open
 Bug Type: *General Issues
 Operating System: Linux
 PHP Version:  5.0.0b1 (beta1)
 New Comment:

Same issue here with PHP 5.0.0b1 running on Mac OS X 
10.2.6.

php.ini file says register_globals = On

phpinfo() says register_globals On On

http://localhost/index.php?id=1234 should create $id 
with value 1234, but it does not. If I add a check at 
the top of the script like this, it works:

if ($id == "") { $id = $_GET['id']; }

But there are other GET variables being passed elsewhere 
in the app, and they too are not properly registered.


Previous Comments:


[2003-07-03 03:41:06] fuhaha at seoul dot com

php5.0b1 on linux machine. (redhat 9.0)
setted register_globals=On
and phpinfo() check result is register_globals On On

it has problem.

do not recognize GET values, and POST values.

why happend this problem ? 
help me plz.



[2003-06-30 08:59:56] philippe dot nonn at cgeyDOT dot com

Hi,

it seems that register_globals don't even work on the Windows version.

When I call a php form which call phpinfo() with parameters (like
phpinfo.php?foo=test), there is non global variable $foo. 

The only way to get the $foo variable is to use get['foo']

Philippe



[2003-06-30 06:34:34] petrich at tronic-media dot com

Hi,
still have the problem;

(register_globals = On in php.ini are ignored, ServerApi = Apache2)

Configure String:
./configure --disable-all
--with-apxs2=/mnt/60giga/samba/public/www/apache2/bin/apxs

Hans-Jürgen Petrich



[2003-06-30 06:22:57] eero at jlug dot org

Now compiled with ./configure  --with-mysql
--with-apxs=/home/apache/bin/apxs and problems still exists.



[2003-06-30 06:01:28] [EMAIL PROTECTED]

1. Drop this:
  export CFLAGS="-march=athlon -O3 -pipe -fomit-frame-pointer"

2. Using /usr/lib as path to ANY php configure option is incorrect (use
/usr instead)

3. Remove following configure options:
  --enable-versioning
  --enable-inline-optimization

4. Try this configure line instead:

  # rm config.cache
  # ./configure --disable-all --with-apxs=home/apache/bin/apxs




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

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



#24453 [Opn]: w32api registerfunction fails on 3rd call

2003-07-03 Thread stone
 ID:   24453
 Updated by:   [EMAIL PROTECTED]
 Reported By:  jlim at natsoft dot com
 Status:   Open
 Bug Type: Feature/Change Request
 Operating System: Windows XP
-PHP Version:  4.3.2
+PHP Version:  4.3.3-RC2dev
 New Comment:

No errors with 4.3.3 RC2 dev on XP either.


Previous Comments:


[2003-07-03 02:02:47] jlim at natsoft dot com

OK, tested again with 4.3.3RC2-dev, Windows XP with the following
results

C:\php4\php43b>php d:\inetpub\wwwroot\php\w32.inc.php
Content-type: text/html
X-Powered-By: PHP/4.3.3RC2-dev

Ticks=57669013
u='jlim '
Array
(
[0] => registerfunction
[1] => unregisterfunction
[2] => registercallback
[3] => definetype
[4] => gettypesize
[5] => inittype
[6] => decref
[7] => gettickcount
[8] => getusername
)

Fatal error:  Call to undefined function:  registerfunction() in
d:\in
etpub\wwwroot\php\w32.inc.php on line 18

Also tested on a 2nd windows 2000 server, with php 4.3.2. Same result.



[2003-07-02 15:04:25] [EMAIL PROTECTED]

Works here as expected with 4.3.2 CLI and CGI on XP Pro.




[2003-07-02 01:11:52] jlim at natsoft dot com

Description:

If the 3rd registerfunction (for messageboxa) is commented out, the
code works properly.

Tested with cli version of php.

Reproduce code:
---
registerfunction("long GetTickCount () From Kernel32.dll");
echo "Ticks=",$api->GetTickCount(),"\n";

$api->registerfunction("long GetUserName (string &a, int &b) From
advapi32.dll");
$s1 = "";
$size = strlen($s1);

$api->GetUsername($s1,$size);
$s1 = substr($s1,0,$size);
echo "u='$s1'\n";

print_r(get_class_methods($api));
$api->registerfunction("int MessageBoxA(long hWnd, string &title,
string &lpCaption, int uType) from User32.dll");
?>

Expected result:

Ticks=192755858
u='jlim '
Array
(
[0] => registerfunction
[1] => unregisterfunction
[2] => registercallback
[3] => definetype
[4] => gettypesize
[5] => inittype
[6] => decref
[7] => gettickcount
[8] => getusername
)


Actual result:
--
Ticks=192755858
u='jlim '
Array
(
[0] => registerfunction
[1] => unregisterfunction
[2] => registercallback
[3] => definetype
[4] => gettypesize
[5] => inittype
[6] => decref
[7] => gettickcount
[8] => getusername
)

Fatal error:  Call to undefined function:  registerfunction() in
d:\in
etpub\wwwroot\php\w32.inc.php on line 18





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



#24488 [NEW]: php4_module to php5_module rename does NOT work !

2003-07-03 Thread x86zman at bigfoot dot com
From: x86zman at bigfoot dot com
Operating system: Win32 (2000 Prof. SP4)
PHP version:  5CVS-2003-07-03 (dev)
PHP Bug Type: Apache2 related
Bug description:  php4_module to php5_module rename does NOT work !

Description:

Hello PHP-DEV People !

i'd like you to know that the needed correction does NOT solve the module
loading issue, why this ? i can't see something i done wrong.

I Use this Software :

OS : Win32 [ 2000 Prof. w/ sp4 ] (as soon as i get my replacement HD back
i'll be on my beloved gentoo/sorcerer again)
Web-Server : Apache 2.0.46
PHP : 5.0.0b2-dev (CVS 20030702_1430, got from snaps.php.net)

On this Hardware : AMD Athlon 1.6GHz w/ 768MB of RAM (80GB HDD, 1.3GB free
on OS partition (where apache2 resides))

and these are my module configuration lines at apache2's httpd.conf :

LoadModule access_module modules/mod_access.so
LoadModule actions_module modules/mod_actions.so
LoadModule alias_module modules/mod_alias.so
LoadModule asis_module modules/mod_asis.so
LoadModule auth_module modules/mod_auth.so
#LoadModule auth_anon_module modules/mod_auth_anon.so
#LoadModule auth_dbm_module modules/mod_auth_dbm.so
#LoadModule auth_digest_module modules/mod_auth_digest.so
LoadModule autoindex_module modules/mod_autoindex.so
#LoadModule cern_meta_module modules/mod_cern_meta.so
LoadModule cgi_module modules/mod_cgi.so
#LoadModule dav_module modules/mod_dav.so
#LoadModule dav_fs_module modules/mod_dav_fs.so
LoadModule dir_module modules/mod_dir.so
LoadModule env_module modules/mod_env.so
#LoadModule expires_module modules/mod_expires.so
#LoadModule file_cache_module modules/mod_file_cache.so
#LoadModule headers_module modules/mod_headers.so
LoadModule imap_module modules/mod_imap.so
LoadModule include_module modules/mod_include.so
#LoadModule info_module modules/mod_info.so
LoadModule isapi_module modules/mod_isapi.so
LoadModule log_config_module modules/mod_log_config.so
LoadModule mime_module modules/mod_mime.so
#LoadModule mime_magic_module modules/mod_mime_magic.so
#LoadModule proxy_module modules/mod_proxy.so
#LoadModule proxy_connect_module modules/mod_proxy_connect.so
#LoadModule proxy_http_module modules/mod_proxy_http.so
#LoadModule proxy_ftp_module modules/mod_proxy_ftp.so
LoadModule negotiation_module modules/mod_negotiation.so
#LoadModule rewrite_module modules/mod_rewrite.so
LoadModule setenvif_module modules/mod_setenvif.so
#LoadModule speling_module modules/mod_speling.so
#LoadModule status_module modules/mod_status.so
#LoadModule unique_id_module modules/mod_unique_id.so
LoadModule userdir_module modules/mod_userdir.so
#LoadModule usertrack_module modules/mod_usertrack.so
#LoadModule vhost_alias_module modules/mod_vhost_alias.so
#LoadModule ssl_module modules/mod_ssl.so
LoadModule php5_module modules/mod_php5.so

when i comment the last (php5 related) line, apache2 comes up without a
hitch. (i've checked it's usable also)

i know for sure that this is the exact pathname to the module, and that it
do exist where there by that name, as i've ran a quad-check upon it...
just to make sure.

i've thought about the php4->php5 stuff by myself even before visiting
here, as it's so trivial... seems very weird that it don't work though.

Reproduce code:
---
grab that snapshot from snaps.php.net and test it on W2K.Prof w/ SP4 &
Apache 2.0.46 configured as reporeted...

Expected result:

apache2 starts

Actual result:
--
apache2 don't start

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



#24488 [Opn]: php4_module to php5_module rename does NOT work !

2003-07-03 Thread x86zman at bigfoot dot com
 ID:   24488
 User updated by:  x86zman at bigfoot dot com
 Reported By:  x86zman at bigfoot dot com
 Status:   Open
 Bug Type: Apache2 related
 Operating System: Win32 (2000 Prof. SP4)
-PHP Version:  5CVS-2003-07-03 (dev)
+PHP Version:  5CVS-2003-07-02 (dev)
 New Comment:

corrected the PHP Ver.


Previous Comments:


[2003-07-03 15:57:51] x86zman at bigfoot dot com

Description:

Hello PHP-DEV People !

i'd like you to know that the needed correction does NOT solve the
module loading issue, why this ? i can't see something i done wrong.

I Use this Software :

OS : Win32 [ 2000 Prof. w/ sp4 ] (as soon as i get my replacement HD
back i'll be on my beloved gentoo/sorcerer again)
Web-Server : Apache 2.0.46
PHP : 5.0.0b2-dev (CVS 20030702_1430, got from snaps.php.net)

On this Hardware : AMD Athlon 1.6GHz w/ 768MB of RAM (80GB HDD, 1.3GB
free on OS partition (where apache2 resides))

and these are my module configuration lines at apache2's httpd.conf :

LoadModule access_module modules/mod_access.so
LoadModule actions_module modules/mod_actions.so
LoadModule alias_module modules/mod_alias.so
LoadModule asis_module modules/mod_asis.so
LoadModule auth_module modules/mod_auth.so
#LoadModule auth_anon_module modules/mod_auth_anon.so
#LoadModule auth_dbm_module modules/mod_auth_dbm.so
#LoadModule auth_digest_module modules/mod_auth_digest.so
LoadModule autoindex_module modules/mod_autoindex.so
#LoadModule cern_meta_module modules/mod_cern_meta.so
LoadModule cgi_module modules/mod_cgi.so
#LoadModule dav_module modules/mod_dav.so
#LoadModule dav_fs_module modules/mod_dav_fs.so
LoadModule dir_module modules/mod_dir.so
LoadModule env_module modules/mod_env.so
#LoadModule expires_module modules/mod_expires.so
#LoadModule file_cache_module modules/mod_file_cache.so
#LoadModule headers_module modules/mod_headers.so
LoadModule imap_module modules/mod_imap.so
LoadModule include_module modules/mod_include.so
#LoadModule info_module modules/mod_info.so
LoadModule isapi_module modules/mod_isapi.so
LoadModule log_config_module modules/mod_log_config.so
LoadModule mime_module modules/mod_mime.so
#LoadModule mime_magic_module modules/mod_mime_magic.so
#LoadModule proxy_module modules/mod_proxy.so
#LoadModule proxy_connect_module modules/mod_proxy_connect.so
#LoadModule proxy_http_module modules/mod_proxy_http.so
#LoadModule proxy_ftp_module modules/mod_proxy_ftp.so
LoadModule negotiation_module modules/mod_negotiation.so
#LoadModule rewrite_module modules/mod_rewrite.so
LoadModule setenvif_module modules/mod_setenvif.so
#LoadModule speling_module modules/mod_speling.so
#LoadModule status_module modules/mod_status.so
#LoadModule unique_id_module modules/mod_unique_id.so
LoadModule userdir_module modules/mod_userdir.so
#LoadModule usertrack_module modules/mod_usertrack.so
#LoadModule vhost_alias_module modules/mod_vhost_alias.so
#LoadModule ssl_module modules/mod_ssl.so
LoadModule php5_module modules/mod_php5.so

when i comment the last (php5 related) line, apache2 comes up without a
hitch. (i've checked it's usable also)

i know for sure that this is the exact pathname to the module, and that
it do exist where there by that name, as i've ran a quad-check upon
it... just to make sure.

i've thought about the php4->php5 stuff by myself even before visiting
here, as it's so trivial... seems very weird that it don't work though.

Reproduce code:
---
grab that snapshot from snaps.php.net and test it on W2K.Prof w/ SP4 &
Apache 2.0.46 configured as reporeted...

Expected result:

apache2 starts

Actual result:
--
apache2 don't start





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



#24488 [Opn]: php4_module to php5_module rename does NOT work !

2003-07-03 Thread x86zman at bigfoot dot com
 ID:   24488
 User updated by:  x86zman at bigfoot dot com
 Reported By:  x86zman at bigfoot dot com
 Status:   Open
 Bug Type: Apache2 related
-Operating System: Win32 (2000 Prof. SP4)
+Operating System: Win32 (2000 Prof. w/ SP4)
 PHP Version:  5CVS-2003-07-02 (dev)
 New Comment:

corrected the OS Ver.


Previous Comments:


[2003-07-03 16:04:49] x86zman at bigfoot dot com

corrected the PHP Ver.



[2003-07-03 15:57:51] x86zman at bigfoot dot com

Description:

Hello PHP-DEV People !

i'd like you to know that the needed correction does NOT solve the
module loading issue, why this ? i can't see something i done wrong.

I Use this Software :

OS : Win32 [ 2000 Prof. w/ sp4 ] (as soon as i get my replacement HD
back i'll be on my beloved gentoo/sorcerer again)
Web-Server : Apache 2.0.46
PHP : 5.0.0b2-dev (CVS 20030702_1430, got from snaps.php.net)

On this Hardware : AMD Athlon 1.6GHz w/ 768MB of RAM (80GB HDD, 1.3GB
free on OS partition (where apache2 resides))

and these are my module configuration lines at apache2's httpd.conf :

LoadModule access_module modules/mod_access.so
LoadModule actions_module modules/mod_actions.so
LoadModule alias_module modules/mod_alias.so
LoadModule asis_module modules/mod_asis.so
LoadModule auth_module modules/mod_auth.so
#LoadModule auth_anon_module modules/mod_auth_anon.so
#LoadModule auth_dbm_module modules/mod_auth_dbm.so
#LoadModule auth_digest_module modules/mod_auth_digest.so
LoadModule autoindex_module modules/mod_autoindex.so
#LoadModule cern_meta_module modules/mod_cern_meta.so
LoadModule cgi_module modules/mod_cgi.so
#LoadModule dav_module modules/mod_dav.so
#LoadModule dav_fs_module modules/mod_dav_fs.so
LoadModule dir_module modules/mod_dir.so
LoadModule env_module modules/mod_env.so
#LoadModule expires_module modules/mod_expires.so
#LoadModule file_cache_module modules/mod_file_cache.so
#LoadModule headers_module modules/mod_headers.so
LoadModule imap_module modules/mod_imap.so
LoadModule include_module modules/mod_include.so
#LoadModule info_module modules/mod_info.so
LoadModule isapi_module modules/mod_isapi.so
LoadModule log_config_module modules/mod_log_config.so
LoadModule mime_module modules/mod_mime.so
#LoadModule mime_magic_module modules/mod_mime_magic.so
#LoadModule proxy_module modules/mod_proxy.so
#LoadModule proxy_connect_module modules/mod_proxy_connect.so
#LoadModule proxy_http_module modules/mod_proxy_http.so
#LoadModule proxy_ftp_module modules/mod_proxy_ftp.so
LoadModule negotiation_module modules/mod_negotiation.so
#LoadModule rewrite_module modules/mod_rewrite.so
LoadModule setenvif_module modules/mod_setenvif.so
#LoadModule speling_module modules/mod_speling.so
#LoadModule status_module modules/mod_status.so
#LoadModule unique_id_module modules/mod_unique_id.so
LoadModule userdir_module modules/mod_userdir.so
#LoadModule usertrack_module modules/mod_usertrack.so
#LoadModule vhost_alias_module modules/mod_vhost_alias.so
#LoadModule ssl_module modules/mod_ssl.so
LoadModule php5_module modules/mod_php5.so

when i comment the last (php5 related) line, apache2 comes up without a
hitch. (i've checked it's usable also)

i know for sure that this is the exact pathname to the module, and that
it do exist where there by that name, as i've ran a quad-check upon
it... just to make sure.

i've thought about the php4->php5 stuff by myself even before visiting
here, as it's so trivial... seems very weird that it don't work though.

Reproduce code:
---
grab that snapshot from snaps.php.net and test it on W2K.Prof w/ SP4 &
Apache 2.0.46 configured as reporeted...

Expected result:

apache2 starts

Actual result:
--
apache2 don't start





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



#24433 [Bgs->Opn]: Incorrect version-output

2003-07-03 Thread sandro dot mathys at blappy dot com
 ID:   24433
 User updated by:  sandro dot mathys at blappy dot com
 Reported By:  sandro dot mathys at blappy dot com
-Status:   Bogus
+Status:   Open
 Bug Type: *General Issues
 Operating System: linux 2.4.20
 PHP Version:  5.0.0b1 (beta1)
 New Comment:

could anyone check this? i think it's no longer a bogus...


Previous Comments:


[2003-07-02 06:59:36] sandro dot mathys at blappy dot com

i've found the problem...took the snapshot from today (7:30-snapshot).

during installation, the php-installer writes a loadmodule for the
php5module into httpd.conf

but if there exists a loadmodule-command for the old php4module, this
won't be deleted and so the new module won't work.

sorry for my bad english... :( ...i hope, ou understood!



[2003-07-01 11:26:38] [EMAIL PROTECTED]

Either you got a broken snapshot or you got the WRONG snapshot..I just
checked the latest PHP 5 snapshot and has the correct version
information.




[2003-07-01 07:46:23] sandro dot mathys at blappy dot com

oh, there is more than this error:
Zend Engine v1.3.0

that should be v2.0.0 or something like that...



[2003-07-01 07:04:58] postings-bug-php at hans-spath dot de

Problem *not* present in *Windows* version:

M:\php>500b1\php -v
PHP 5.0.0b1 (cgi-fcgi) (built: Jun 28 2003 00:31:05)
Copyright (c) 1997-2003 The PHP Group
Zend Engine v2.0.0-dev, Copyright (c) 1998-2003 Zend Technologies

M:\php>500dev200306301130\php -v
PHP 5.0.0b2-dev (cgi-fcgi) (built: Jun 30 2003 13:41:33)
Copyright (c) 1997-2003 The PHP Group
Zend Engine v2.0.0-dev, Copyright (c) 1998-2003 Zend Technologies

M:\php>500dev200307011030\php -v
PHP 5.0.0b2-dev (cgi-fcgi) (built: Jul  1 2003 12:10:02)
Copyright (c) 1997-2003 The PHP Group
Zend Engine v2.0.0-dev, Copyright (c) 1998-2003 Zend Technologies



[2003-07-01 07:01:10] sandro dot mathys at blappy dot com

Description:

php -v and phpinfo() are saying i've installed:
PHP Version 4.3.3RC2-dev

but it's the latest 5.0.0 b1-snapshot






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



#24482 [Fbk->Opn]: GLOB_ONLYDIR is not working

2003-07-03 Thread acoon at acoon dot dk
 ID:   24482
 User updated by:  acoon at acoon dot dk
 Reported By:  acoon at acoon dot dk
-Status:   Feedback
+Status:   Open
 Bug Type: *Directory/Filesystem functions
 Operating System: FreeBSD 4.5
 PHP Version:  4.3.2
 Assigned To:  hholzgra
 New Comment:

I've just tried php4-STABLE-200307031330
I still get the same error.

And i get another error when doing 'make install' in
php4-STABLE-200307031330.


Installing shared extensions:
/usr/local/lib/php/extensions/no-debug-non-zts-20020429/
Installing PEAR environment:  /usr/local/lib/php/
[PEAR] Archive_Tar: Could not open the package file:
package-Archive_Tar.xml
[PEAR] Console_Getopt: Could not open the package file:
package-Console_Getopt.xml
[PEAR] PEAR: Could not open the package file: package-PEAR.xml
[PEAR] DB: Could not open the package file: DB-1.5.0RC1.tar
[PEAR] HTTP: Could not open the package file: HTTP-1.2.tar
[PEAR] Mail: Could not open the package file: Mail-1.1.0.tar
[PEAR] Net_SMTP: Could not open the package file: Net_SMTP-1.2.3.tar
[PEAR] Net_Socket: Could not open the package file:
Net_Socket-1.0.1.tar
[PEAR] XML_Parser: Could not open the package file:
XML_Parser-1.0.1.tar
[PEAR] XML_RPC: Could not open the package file: XML_RPC-1.0.4.tar
Installing build environment: /usr/local/lib/php/build/
Installing header files:  /usr/local/include/php/
Installing helper programs:   /usr/local/bin/



Previous Comments:


[2003-07-03 09:41:08] [EMAIL PROTECTED]

Please try using this CVS snapshot:

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

should be fixed in PHP 5 CVS now,
i will merge the changes into the 4.3 tree as soon as i know that it
doesn't break anything



[2003-07-03 07:56:53] [EMAIL PROTECTED]

the comment in the manual is missleading,
GLOB_ONLYDIR is a GNU extension so it is only available on systems with
GNU libc

i'm looking into adding an emulation wrapper to the C code

if it doesn't work i'll update the documentation



[2003-07-03 07:30:22] acoon at acoon dot dk

Description:

When using GLOB_ONLYDIR on FreeBSD 4.5 is returns an error.


PHP was configured like this.
'./configure' '--with-mysql' '--with-apxs=/usr/local/sbin/apxs'
'--with-curl' '--with-gd' '--with-jpeg-dir=/usr/local/include/'
'--with-zlib-dir' '--enable-ftp' '--with-ttf' '--enable-bcmath'


Changes made to php.ini:
register_globals = On

Reproduce code:
---
";
}
?>


Expected result:

I would expect to get all dirs printet.

Actual result:
--
Warning: glob() expects parameter 2 to be long, string given in
index.php on line 43





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



#24489 [NEW]: Access Violation

2003-07-03 Thread eduardo at tre-to dot gov dot br
From: eduardo at tre-to dot gov dot br
Operating system: win2000 AdvServer
PHP version:  4.3.2
PHP Bug Type: iPlanet related
Bug description:  Access Violation

Description:

Hello!
I am running PHP 4.3.2.2 under Win2k Adv Srv and IIS 5, in CGI mode.

When I run any script, phpinfo() itself generates an error.

First, an windows error message show (my translate):
"unknown make errors and will be closed by Windows. You will need to
restart the program.

An error log will be created."

After click on OK buttom of window message, the message above is appended
to the end of the php's page result:
"ERROR: could not get the task list "

On the Event Viewer is created an log:

Tipo de evento: Erro
Origem do evento:   Perflib
Categoria do evento:Nenhuma
Id. do evento:  1000
Data:   3/7/2003
Hora:   16:35:27
Usuário:N/A
Computador: WEB-TO
Descrição:
Foi negado o acesso aos dados de desempenho para IUSR_WEB-TO, tentado por
meio de C:\WINNT\System32\drwtsn32.exe 


Translate:
"Went denied access to performance's data to IUSR_WEB-TO, called by
C:\WINNT\System32\drwtsn32.exe "

Always everybody enter the site, the message is showed on the server.

Thanks!


Reproduce code:
---
Any script

Actual result:
--
This is the error log in Dr. Watson:


Exceção de aplicativo:
Aplicativo:  (pid=2736)
Data e hora: 3/7/2003 às 17:15:53.261
Número da exceção: c005 (violação de acesso)

*> Informação do sistema <*
Nome do computador: WEB-TO
Nome de usuário: IUSR_WEB-TO
Número de processadores: 1
Tipo de processador: x86 Family 5 Model 4 Stepping 3
Versão do Windows 2000: 5.0
Versão atual: 2195
Service Pack: None
Tipo atual: Uniprocessor Free
Empresa registrada: TRE-TO
Proprietário registrado: TRE-TO

*> Lista de tarefas <*

(0040 - 0040D000) 
(77F8 - 77FFD000) 
(1000 - 10149000) 
(77E8 - 77F3D000) 
(77E1 - 77E75000) 
(77F4 - 77F7C000) 
(7500 - 75009000) 
(74FE - 74FF4000) 
(7800 - 78046000) 
(77DB - 77E0A000) 
(77D4 - 77DAF000) 
(74FD - 74FD8000) 
(77A5 - 77B45000) 
(779B - 77A45000) 
(1F7D - 1F804000) 
(76B1 - 76B4E000) 
(77C7 - 77CBA000) 
(77B5 - 77BDA000) 
(7759 - 777D5000) 
(1F8C - 1F8D8000) 
(00B7 - 00B8) 
(00B8 - 00B9A000) 
(6040 - 60506000) 
(6060 - 60686000) 
(6080 - 6084D000) 
(7755 - 77581000) 
(00BA - 00BA6000) 
(6020 - 60265000) 
(6000 - 60122000) 
(60A0 - 60A2B000) 
(60B0 - 60BA9000) 
(60E0 - 60E1) 
(6110 - 61137000) 
(00BB - 00C11000) 
(6150 - 6150E000) 
(6170 - 6172) 
(6190 - 61906000) 
(6210 - 62106000) 
(00C2 - 00C26000) 
(6230 - 62306000) 
(6250 - 62508000) 
(00C3 - 00C37000) 
(00C4 - 00C51000) 
(6270 - 6274) 
(6290 - 62B23000) 
(6310 - 63108000) 
(6035 - 60356000) 
(6320 - 63273000) 
(010A - 010A8000) 
(010B - 010B9000) 
(6470 - 6470B000) 
(7784 - 7784C000) 
(7798 - 779A4000) 
(777E - 777E8000) 
(7795 - 7797A000) 
(777F - 777F5000) 
(7783 - 7783E000) 
(74F8 - 74F91000) 
(74FC - 74FC7000) 

Despejo de estado para o identificador do segmento 0xa60

eax=0012ffb0 ebx= ecx=00aa62cc edx=0108002c esi=00ab1f34
edi=00aaa948
eip=77f87808 esp=0012fad4 ebp=0012fb08 iopl=0 nv up ei pl nz na pe
nc
cs=001b  ss=0023  ds=0023  es=0023  fs=0038  gs=
efl=0202


função: RtlDeleteCriticalSection
77f877e0 55   pushebp
77f877e1 8bec mov ebp,esp
77f877e3 6aff push0xff
77f877e5 689878f877   push0x77f87898
77f877ea 68db80fb77   push0x77fb80db
77f877ef 64a1 mov eax,fs:[] 
fs:=
77f877f5 50   pusheax
77f877f6 648925   mov fs:[],esp 
fs:=
77f877fd 51   pushecx
77f877fe 51   pushecx
77f877ff 83ec10   sub esp,0x10
77f87802 53   pushebx
77f87803 56   pushesi
77f87804 57   pushedi
77f87805 8b5d08   mov ebx,[ebp+0x8] 
ss:0093d0de=
FALHA -> 77f87808 8b4310   mov eax,[ebx+0x10]
ds:0080d5d6=
77f8780b 85c0 testeax,eax
77f8780d 0f85829a jne RtlMultiByteToUnicodeN+0x2bb
(77f91295)
77f87813 8365e000 and   dword ptr [ebp+0xe0],0x0
ss:0093d0de=
77f87817 6820d3fc77   push0x77fcd320
77f8781c e82b32   callRtlEnterCriticalSection
(77f8aa4c)
77f87821 8365fc00 and   dword ptr [ebp+0xfc],0x0
ss:0093d0de=

#9852 [Com]: Header redirect and db connection cause "CGI misbehaved"

2003-07-03 Thread fletchsod at juno dot com
 ID:   9852
 Comment by:   fletchsod at juno dot com
 Reported By:  ron dot baldwin at sourceprose dot com
 Status:   Closed
 Bug Type: IIS related
 Operating System: Windows 2000
 PHP Version:  4.2.1
 New Comment:

I'm having this problem with II5, Win2000 (Service Pack 4), MS-SQL 2000
(Service Pack 3) and PHP 4.3.2.   I have found no workable solution and
this is definitely not a Microsoft Problem, it's an PHP error coding. 
I use the CGI part of the PHP with the odbc scripts, not mssql scripts
and I still get error with the header() part most of the time.

For those of you who have problem.  Fuck the php developers because
they aren't going to fix this.  I saw a clipping from someone who had a
workaround to this problem, so I'll post it here for your convience...

--snip--
  I had similar problems with close to the same configuration and
changed strategies completely by having the IIS server handle the
header output.
  This was done by making the IIS server use the php DLL instead of the
.exe as a CGI. My php files work fine now. It took some digging, but
there is an installation/configuration explanation in the MS IIS help
files. 
--snip--


Previous Comments:


[2003-06-26 17:35:18] nospam at kolbly dot com

I am running win2003, IIS6 PHP 4.3.2, Dell Dimension 4400 or T1840
Emachine and have tried EVERY suggestion here with no luck.  I have
opened up a case with Microsoft with no luck there either. They will
look further into the problem if I can duplicate the problem without
PHP.

So far, I cannot duplicate the problem without using PHP.  I have tried
the non-php samples here and wrote a simple cgi that connects to the MS
sample database and reloads itself, but cannot reproduce the problem
without PHP.  With PHP, I reproduce the problem 100% of the time.

If anybody else has some sample C/C++/C# source code I can compile and
demonstrate the problem, please send it to me so I can forward it onto
Microsoft.

My only conclusion is that this IS a PHP error, or at the very least
the culprit is very much in doubt.  Please DO reopen the bug - I don't
want to have to go the .NET route :-(



[2003-06-11 09:52:20] wharrison at pro dot ie

To follow up I set cgi.rfc2616_headers = 1 as Pedro suggested and have
had no problems reported since. So I suggest trying this to anyone with
these problems.



[2003-05-29 15:08:55] eduardo at tre-to dot gov dot br

Why this bug is Close if no concret solution are found?



[2003-05-29 15:03:34] eduardo at tre-to dot gov dot br

Hello!
I have the error message:

HTTP/1.1 502 Gateway Error Server: Microsoft-IIS/5.0 Date: Thu, 29 May
2003 19:24:31 GMT Content-Length: 186 Content-Type: text/html 

each time that i open an PHP page. With or whiout db conection,
header(...), frames, etc.
I know that the message is shown always that the time set on IIS to be
the timeout to CGI Script:
On IIS select the site and click Properties.
Click the Home Directory tab.
On Application Protection, select:High (Isoleted)
Click Configuration. 
Select Process Options. 
See the option: CGI Configurations-> CGI Script timeout.
Always, on this time, the message error appears. If you select the
Application Protection to other option, the default time (300s) is set
to.

I am using php 4.3.3 on cgi mode in IIS5 and W2K Adv Server. On same
php and IIS, with W2K Professional the problem don't occurs.

The Event Log shows:
The script started from the URL '/xxx.php' with parameters '' has not
responded within the configured timeout period.  The HTTP server is
terminating the script. 
For additional information specific to this message please visit the
Microsoft Online Support site located at:
http://www.microsoft.com/contentredirect.asp. 

I already experienced all of the kinds shown in this(and in others Bug
#) but nothing solve the bug.
I am desperate because it go well before I reinstalled the system and
updated the IIS4 to IIS5 and php 4.0.1 to 4.3.3.

Now, only rest me test the isapi, that the self PHP's instruction say
that isn't stable...



[2003-05-28 08:50:36] wharrison at pro dot ie

I am trying Pedro's cgi.rfc2616_headers = 1 tip. We noticed this
problem a few times a day on an WinNT, IIS, PHP 4.3, MSSQL 2000 setup.
I could also reproduce this with the bounce.php suggested a while ago.
I was cosidering switching to Apache untill I read the post above.



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

-- 
Edit this bug

#24389 [Fbk->Csd]: PHP 5 : Windows build needs a MySQL DLL

2003-07-03 Thread edink
 ID:   24389
 Updated by:   [EMAIL PROTECTED]
 Reported By:  philip at cornado dot com
-Status:   Feedback
+Status:   Closed
 Bug Type: Feature/Change Request
 Operating System: Windows
 PHP Version:  5CVS-2003-06-29 (dev)
 Assigned To:  edink
 New Comment:

Philip, this bug was fixed, so leave it closed.


Previous Comments:


[2003-07-02 20:55:21] [EMAIL PROTECTED]

ipa, did you copy libmySQL.dll to your SYSTEMROOT?  And/or has this
been fixed in the newest snap?



[2003-07-02 13:08:36] enc at omni dot lt

Well, i guess Postgre now will get more attention from PHP Windows
users.



[2003-06-30 16:16:42] ipa at assis dot lt

php_mysql.dll from snap says
PHP Warning:  Unknown(): Invalid library (maybe not a PHP library)
'php_mysql.dll'  in Unknown on line 0



[2003-06-29 20:21:31] [EMAIL PROTECTED]

OK. PHP 5 snaps and distro's include php_mysql.dll (php extension) and
dlls\libmySQL.dll (remember to copy this to the system folder).



[2003-06-29 18:04:40] [EMAIL PROTECTED]

Hm, anyone know where to find non-GPLed libmysql 3.x 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/24389

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



#24490 [NEW]: imap_headerinfo returns only one address in To field

2003-07-03 Thread bob at midnightweb dot net
From: bob at midnightweb dot net
Operating system: RedHat Linux 8.0
PHP version:  4.3.2
PHP Bug Type: IMAP related
Bug description:  imap_headerinfo returns only one address in To field

Description:

The imap_headerinfo() function appears to only return the first address in
the To field of messages that contain more than one address in that field.
 Addresses in the Cc field apear to be unaffected by this bug.

I have tried upgrading the C-Client to 2002b-6, and then recompiling the
latest stable PHP release ( 4.3.2 ).

The examples are given with a message with the following To headers:

-- Begin snipit --
From: "Bob" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>, <[EMAIL PROTECTED]>,
<[EMAIL PROTECTED]>
--  End snipit  --

NOTE: The email addresses in this report have been altered to preserve the
privacy of the user.

Reproduce code:
---
$mailbox = imap_open($servername.".$cfldr", $username, $password);
$msgheader = @imap_headerinfo($mailbox, $msg);
ob_start();
print_r( $msgheader );
error_log( ob_get_contents() );
ob_end_clean();

Expected result:

In the error_log of the web server, there should be a print_r output of
the object returned by imap_headerinfo() that looks as follows with the
"to" and "toaddress" elements:
-- Begin assumed snipit --
[toaddress] => "[EMAIL PROTECTED]" <[EMAIL PROTECTED]>
[to] => Array
(
[0] => stdClass Object
(
[personal] => [EMAIL PROTECTED]
[mailbox] => user
[host] => mydomain.com
)
[1] => stdClass Object
(
[personal] => [EMAIL PROTECTED]
[mailbox] => user2
[host] => mydomain.com
)
[2] => stdClass Object
(
[personal] => [EMAIL PROTECTED]
[mailbox] => user3
[host] => mydomain.com
)
)

--  End assumed snipit  --

Actual result:
--
There is the print_r output, however with incomplete "to" array and
"toaddress" string elements:
-- Begin snipit --
[toaddress] => "[EMAIL PROTECTED]" <[EMAIL PROTECTED]>
[to] => Array
(
[0] => stdClass Object
(
[personal] => [EMAIL PROTECTED]
[mailbox] => user
[host] => mydomain.com
)

)
--  End snipit  --


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



#24450 [Opn]: TTF and FreeType functions lock font file

2003-07-03 Thread choinet at rocketmail dot com
 ID:   24450
 User updated by:  choinet at rocketmail dot com
 Reported By:  choinet at rocketmail dot com
 Status:   Open
 Bug Type: GD related
 Operating System: Windows XP
 PHP Version:  4.3.3RC1
 New Comment:

I don't necessarily want to delete the file, but I want to be able to
hypothetically delete the parent directory above it :) I'm developing
an image management system that also allows for random image generation
with text, and perhaps I would need to remove a parent directory or the
file itself.


Previous Comments:


[2003-07-01 18:37:04] [EMAIL PROTECTED]

Just curious..but why do you want to delete the file? :)




[2003-07-01 17:45:37] choinet at rocketmail dot com

Description:

My computer setup is Apache 2.0.46,PHP 4.3.2, and Windows XP SP1. Only
modifications to php.ini are: 'extension=php_gd2.dll' and 'log_errors'
are enabled. Originally, I was trying to use the imagettftext()
function to write text to a png file. I used the function in a similar
context as described by the manual, and the text write was successful.
However, I stumbled upon the discovery that the font file that the
function uses was locked by either the webserver or PHP process, as I
was not able to unlink or remove the font file.

I tried to isolate the problem by testing the code on Windows XP with
Apache 1.3.27, Apache 2.0.46, and IIS 5.1 and either PHP 4.2.3, 4.3.2,
4.3.3RC1, or 5.0, so I am thinking that it has something to do with the
operating system. Furthermore, this problem does not occur with a
webserver running Apache/PHP 4.3.2 on Linux. Also, this problem applies
to various true-type font files.

The problem only goes away after I stop or restart the webserver.

In summary, there are four functions that use a font file that lock it:
imagettftext(), imagettfbbox(), imagefttext(), and imageftbbox().





Reproduce code:
---
$im = imagecreatefrompng('test.png');
$blue = imagecolorallocate($im, 0, 102, 255);
$font = 'tahoma.ttf';
//
// These four functions lock the font file and do not release it
//
imagettftext($im, 10, 0, 10, 25, $blue, $font, 'text');
imagettfbbox (20, 0, $font, 'text');
imagefttext ($im, 12, 0, 10, 20, 5, $font, 'text', $foo);
imageftbbox (12, 0, $font, 'text', $foo);

header('Content-Type: image/png');
imagepng($im);
imagedestroy($im);

unlink($font);

Expected result:

I expect to see the png image generated and the font file unlinked.

Actual result:
--
The image displays fine but the font file cannot be deleted.

(Windows Error Dialog Box after manually attempting to delete
arial.ttf)

Cannot delete arial: It is being used by another person or program.
Close any programs that might be using the file and try again.

(Apache Error Log)

[client 127.0.0.1] PHP Warning:  unlink(arial.ttf): Permission denied
in C:\Apache2\htdocs\gd\dynamic.php on line 16





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



#24453 [Opn]: w32api registerfunction fails on 3rd call

2003-07-03 Thread jlim at natsoft dot com
 ID:   24453
 User updated by:  jlim at natsoft dot com
 Reported By:  jlim at natsoft dot com
 Status:   Open
 Bug Type: Feature/Change Request
 Operating System: Windows XP
 PHP Version:  4.3.3-RC2dev
 New Comment:

Here is my phpinfo:

Content-type: text/html
X-Powered-By: PHP/4.3.3RC2-dev




phpinfo()



http://www.php.net/";>PHP Version 4.3.3RC2-dev



System Windows NT TIGRESS 5.1
build 2600 
Build Date Jul  2 2003 10:12:16

Server API CGI/FastCGI 
Virtual Directory Support enabled

Configuration File (php.ini) Path C:\php4\php43b\php.ini 
PHP API 20020918 
PHP Extension 20020429 
Zend Extension 20021010

Debug Build no 
Thread Safety enabled 
Registered PHP Streams php, http,
ftp, compress.zlib   



http://www.zend.com/";>
This program makes use of the Zend Scripting Language Engine:Zend
Engine v1.3.0, Copyright (c) 1998-2003 Zend Technologies



PHP
Credits

Configuration
PHP Core

DirectiveLocal ValueMaster
Value
allow_call_time_pass_referenceOnOn
allow_url_fopenOnOn
always_populate_raw_post_dataOffOff
arg_separator.input&&
arg_separator.output&&
asp_tagsOffOff
auto_append_fileno
valueno value
auto_prepend_fileno
valueno value
browscapno valueno value
default_charsetno
valueno value
default_mimetypetext/htmltext/html
define_syslog_variablesOffOff
disable_classesno
valueno value
disable_functionsno
valueno value
display_errorsOnOn
display_startup_errorsOffOff
doc_rootno valueno value
docref_extno valueno value
docref_rootno valueno value
enable_dlOnOn
error_append_stringno
valueno value
error_logno valueno value
error_prepend_stringno
valueno value
error_reporting20392039
expose_phpOnOn
extension_dirC:\php4\php43b\extensionsC:\php4\php43b\extensions
file_uploadsOnOn
gpc_orderGPCGPC
highlight.bg#FF#FF
highlight.comment#FF8000#FF8000
highlight.default#BB#BB
highlight.html#00#00
highlight.keyword#007700#007700
highlight.string#DD#DD
html_errorsOnOn
ignore_repeated_errorsOffOff
ignore_repeated_sourceOffOff
ignore_user_abortOffOff
implicit_flushOffOff
include_path.;C:\php4\includes\pear.;C:\php4\includes\pear
log_errorsOffOff
log_errors_max_len10241024
magic_quotes_gpcOffOff
magic_quotes_runtimeOffOff
magic_quotes_sybaseOffOff
max_execution_time3030
max_input_time6060
open_basedirno
valueno value
output_bufferingno
valueno value
output_handlerno
valueno value
post_max_size8M8M
precision1212
register_argc_argvOnOn
register_globalsOnOn
report_memleaksOnOn
safe_modeOffOff
safe_mode_exec_dirno
valueno value
safe_mode_gidOffOff
safe_mode_include_dirno
valueno value
sendmail_from[EMAIL PROTECTED][EMAIL PROTECTED]
sendmail_pathno
valueno value
serialize_precision100100
short_open_tagOnOn
SMTPlocalhostlocalhost
smtp_port2525
sql.safe_modeOffOff
track_errorsOffOff
unserialize_callback_funcno
valueno value
upload_max_filesize2M2M
upload_tmp_dirno
valueno value
user_dirno valueno value
variables_orderEGPCSEGPCS
xmlrpc_error_number00
xmlrpc_errorsOffOff
y2k_complianceOnOn

Win32 API

Win32 API Support enabled


bcmath

BCMath support enabled 

calendar

Calendar support enabled


com

DirectiveLocal ValueMaster
Value
com.allow_dcomOffOff
com.autoregister_casesensitiveOnOn
com.autoregister_typelibOffOff
com.autoregister_verboseOffOff
com.typelib_fileno
valueno value

ctype

ctype functions enabled


curl

CURL support enabled 
CURL Information libcurl/7.10.5
OpenSSL/0.9.7b 

ftp

FTP support enabled 

gd

GD Support enabled 
GD Version bundled (2.0.15
compatible) 
FreeType Support enabled

FreeType Linkage with freetype

GIF Read Support enabled

JPG Support enabled 
PNG Support enabled 
WBMP Support enabled 
XBM Support enabled 

interbase

Interbase Support enabled

Revision $Revision: 1.91.2.10 $

Dynamic Module yes 
Allow Persistent Links Yes

Persistent Links 0/unlimited

Total Links 0/unlimited

Timestamp Format %m/%d/%Y %H:%M:%S

Date Format %m/%d/%Y 
Time Format %H:%M:%S 

mssql

MSSQL Supportenabled
Active Persistent Links 0

Active Links 0 
Library version 7.0 


DirectiveLocal ValueMaster
Value
mssql.allow_per

#24492 [NEW]: sqlite doesn't compiled

2003-07-03 Thread [EMAIL PROTECTED]
From: [EMAIL PROTECTED]
Operating system: RH9.0
PHP version:  4CVS-2003-07-04 (stable)
PHP Bug Type: Compile Failure
Bug description:  sqlite doesn't compiled

Description:

(i'm using PECL_4_3 of pecl)

here is the log:

[EMAIL PROTECTED] sqlite]# phpize
Configuring for:
  PHP Api Version:   20020918
  Zend Module Api No:   20020429
  Zend Extension Api No:   20021010
[EMAIL PROTECTED] sqlite]# ./configure
checking for gcc... gcc
checking for C compiler default output... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ANSI C... none needed
checking whether gcc and cc understand -c and -o together... yes
checking if compiler supports -R... no
checking if compiler supports -Wl,-rpath,... yes
checking for PHP prefix... /usr/local
checking for PHP includes... -I/usr/local/include/php
-I/usr/local/include/php/m
ain -I/usr/local/include/php/Zend -I/usr/local/include/php/TSRM
checking for PHP extension directory...
/usr/local/lib/php/extensions/debug-non-
zts-20020429
checking how to run the C preprocessor... gcc -E
checking for egrep... grep -E
checking for gawk... gawk
checking for sqlite support... yes, shared
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking for char *... yes
checking size of char *... 4
checking for lemon... no
checking for usleep... yes
checking for nanosleep... yes
checking time.h usability... yes
checking time.h presence... yes
checking for time.h... yes
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking for ld used by GCC... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for /usr/bin/ld option to reload object files... -r
checking for BSD-compatible nm... /usr/bin/nm -B
checking for a sed that does not truncate output... /bin/sed
checking whether ln -s works... yes
checking how to recognise dependent libraries... pass_all
checking command to parse /usr/bin/nm -B output... ok
checking dlfcn.h usability... yes
checking dlfcn.h presence... yes
checking for dlfcn.h... yes
checking for ranlib... ranlib
checking for strip... strip
checking for objdir... .libs
checking for gcc option to produce PIC... -fPIC
checking if gcc PIC flag -fPIC works... yes
checking if gcc static flag -static works... yes
checking if gcc supports -c -o file.o... yes
checking if gcc supports -c -o file.lo... yes
checking if gcc supports -fno-rtti -fno-exceptions... yes
checking whether the linker (/usr/bin/ld) supports shared libraries...
yes
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking dynamic linker characteristics... GNU/Linux ld.so
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... no
checking whether -lc should be explicitly linked in... no
creating libtool
configure: creating ./config.status
config.status: creating config.h
[EMAIL PROTECTED] sqlite]# make
sed -e s/--VERS--/2.8.3/ -e s/--ENCODING--/ISO8859/
/home/moshe/downloads/sqlite
/libsqlite/src/sqlite.h.in
>/home/moshe/downloads/sqlite/libsqlite/src/sqlite.h
/bin/sh /home/moshe/downloads/sqlite/libtool --mode=compile gcc
-I/home/moshe/do
wnloads/sqlite/libsqlite/src -I. -I/home/moshe/downloads/sqlite
-DPHP_ATOM_INC -
I/home/moshe/downloads/sqlite/include -I/home/moshe/downloads/sqlite/main
-I/hom
e/moshe/downloads/sqlite -I/usr/local/include/php
-I/usr/local/include/php/main
-I/usr/local/include/php/Zend -I/usr/local/include/php/TSRM 
-DHAVE_CONFIG_H  -g
 -O2  -prefer-pic -c /home/moshe/downloads/sqlite/sqlite.c -o sqlite.lo
gcc -I/home/moshe/downloads/sqlite/libsqlite/src -I.
-I/home/moshe/downloads/sql
ite -DPHP_ATOM_INC -I/home/moshe/downloads/sqlite/include
-I/home/moshe/download
s/sqlite/main -I/home/moshe/downloads/sqlite -I/usr/local/include/php
-I/usr/loc
al/include/php/main -I/usr/local/include/php/Zend
-I/usr/local/include/php/TSRM
-DHAVE_CONFIG_H -g -O2 -c /home/moshe/downloads/sqlite/sqlite.c  -fPIC
-DPIC -o
sqlite.lo
echo '/* Automatically generated file.  Do not edit */'
>/home/moshe/downloads/s
qlite/libsqlite/src/opcodes.h
grep '^case OP_' /home/moshe/downloads/sqlite/libsqlite/src/vdbe.c | \
  sed -e 's/://' | \
  awk '{printf "#define %-30s %3d\n", $2, ++cnt}'
>>/home/moshe/downloads/sqlite
/libsqlite/src/opcodes.h
echo '/* Automatically generated file.  Do not edit */'
>/home/moshe/downloads/s
qlite/libsqlite/src/opcodes.c
echo 'cha

#24492 [Opn->Bgs]: sqlite doesn't compiled

2003-07-03 Thread momo
 ID:   24492
 Updated by:   [EMAIL PROTECTED]
 Reported By:  [EMAIL PROTECTED]
-Status:   Open
+Status:   Bogus
 Bug Type: Compile Failure
 Operating System: RH9.0
 PHP Version:  4CVS-2003-07-04 (stable)
 New Comment:

linefeed issue (i checked on windows)


Previous Comments:


[2003-07-04 01:07:59] [EMAIL PROTECTED]

Description:

(i'm using PECL_4_3 of pecl)

here is the log:

[EMAIL PROTECTED] sqlite]# phpize
Configuring for:
  PHP Api Version:   20020918
  Zend Module Api No:   20020429
  Zend Extension Api No:   20021010
[EMAIL PROTECTED] sqlite]# ./configure
checking for gcc... gcc
checking for C compiler default output... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ANSI C... none needed
checking whether gcc and cc understand -c and -o together... yes
checking if compiler supports -R... no
checking if compiler supports -Wl,-rpath,... yes
checking for PHP prefix... /usr/local
checking for PHP includes... -I/usr/local/include/php
-I/usr/local/include/php/m
ain -I/usr/local/include/php/Zend -I/usr/local/include/php/TSRM
checking for PHP extension directory...
/usr/local/lib/php/extensions/debug-non-
zts-20020429
checking how to run the C preprocessor... gcc -E
checking for egrep... grep -E
checking for gawk... gawk
checking for sqlite support... yes, shared
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking for char *... yes
checking size of char *... 4
checking for lemon... no
checking for usleep... yes
checking for nanosleep... yes
checking time.h usability... yes
checking time.h presence... yes
checking for time.h... yes
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking for ld used by GCC... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for /usr/bin/ld option to reload object files... -r
checking for BSD-compatible nm... /usr/bin/nm -B
checking for a sed that does not truncate output... /bin/sed
checking whether ln -s works... yes
checking how to recognise dependent libraries... pass_all
checking command to parse /usr/bin/nm -B output... ok
checking dlfcn.h usability... yes
checking dlfcn.h presence... yes
checking for dlfcn.h... yes
checking for ranlib... ranlib
checking for strip... strip
checking for objdir... .libs
checking for gcc option to produce PIC... -fPIC
checking if gcc PIC flag -fPIC works... yes
checking if gcc static flag -static works... yes
checking if gcc supports -c -o file.o... yes
checking if gcc supports -c -o file.lo... yes
checking if gcc supports -fno-rtti -fno-exceptions... yes
checking whether the linker (/usr/bin/ld) supports shared libraries...
yes
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking dynamic linker characteristics... GNU/Linux ld.so
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... no
checking whether -lc should be explicitly linked in... no
creating libtool
configure: creating ./config.status
config.status: creating config.h
[EMAIL PROTECTED] sqlite]# make
sed -e s/--VERS--/2.8.3/ -e s/--ENCODING--/ISO8859/
/home/moshe/downloads/sqlite
/libsqlite/src/sqlite.h.in
>/home/moshe/downloads/sqlite/libsqlite/src/sqlite.h
/bin/sh /home/moshe/downloads/sqlite/libtool --mode=compile gcc
-I/home/moshe/do
wnloads/sqlite/libsqlite/src -I. -I/home/moshe/downloads/sqlite
-DPHP_ATOM_INC -
I/home/moshe/downloads/sqlite/include
-I/home/moshe/downloads/sqlite/main -I/hom
e/moshe/downloads/sqlite -I/usr/local/include/php
-I/usr/local/include/php/main
-I/usr/local/include/php/Zend -I/usr/local/include/php/TSRM 
-DHAVE_CONFIG_H  -g
 -O2  -prefer-pic -c /home/moshe/downloads/sqlite/sqlite.c -o
sqlite.lo
gcc -I/home/moshe/downloads/sqlite/libsqlite/src -I.
-I/home/moshe/downloads/sql
ite -DPHP_ATOM_INC -I/home/moshe/downloads/sqlite/include
-I/home/moshe/download
s/sqlite/main -I/home/moshe/downloads/sqlite -I/usr/local/include/php
-I/usr/loc
al/include/php/main -I/usr/local/include/php/Zend
-I/usr/local/include/php/TSRM
-DHAVE_CONFIG_H -g -O2 -c /home/moshe/downloads/sqlite/sqlite.c  -fPIC
-DPIC -o
sqlite.lo
echo '/* Automatically generated file.  Do not edit */'
>/home/moshe/downloads/s
qlite/libsqlite/src/opcodes.h
grep '^case OP_' /home/moshe/downloads/sqlite/libsqlite/s

#24482 [Opn->Fbk]: GLOB_ONLYDIR is not working

2003-07-03 Thread sniper
 ID:   24482
 Updated by:   [EMAIL PROTECTED]
 Reported By:  acoon at acoon dot dk
-Status:   Open
+Status:   Feedback
 Bug Type: *Directory/Filesystem functions
 Operating System: FreeBSD 4.5
 PHP Version:  4.3.2
 Assigned To:  hholzgra
 New Comment:

The fix is in PHP _5_ not in PHP 4 (yet), so try the latest PHP _5_
snapshot..



Previous Comments:


[2003-07-03 16:21:37] acoon at acoon dot dk

I've just tried php4-STABLE-200307031330
I still get the same error.

And i get another error when doing 'make install' in
php4-STABLE-200307031330.


Installing shared extensions:
/usr/local/lib/php/extensions/no-debug-non-zts-20020429/
Installing PEAR environment:  /usr/local/lib/php/
[PEAR] Archive_Tar: Could not open the package file:
package-Archive_Tar.xml
[PEAR] Console_Getopt: Could not open the package file:
package-Console_Getopt.xml
[PEAR] PEAR: Could not open the package file: package-PEAR.xml
[PEAR] DB: Could not open the package file: DB-1.5.0RC1.tar
[PEAR] HTTP: Could not open the package file: HTTP-1.2.tar
[PEAR] Mail: Could not open the package file: Mail-1.1.0.tar
[PEAR] Net_SMTP: Could not open the package file: Net_SMTP-1.2.3.tar
[PEAR] Net_Socket: Could not open the package file:
Net_Socket-1.0.1.tar
[PEAR] XML_Parser: Could not open the package file:
XML_Parser-1.0.1.tar
[PEAR] XML_RPC: Could not open the package file: XML_RPC-1.0.4.tar
Installing build environment: /usr/local/lib/php/build/
Installing header files:  /usr/local/include/php/
Installing helper programs:   /usr/local/bin/




[2003-07-03 09:41:08] [EMAIL PROTECTED]

Please try using this CVS snapshot:

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

should be fixed in PHP 5 CVS now,
i will merge the changes into the 4.3 tree as soon as i know that it
doesn't break anything



[2003-07-03 07:56:53] [EMAIL PROTECTED]

the comment in the manual is missleading,
GLOB_ONLYDIR is a GNU extension so it is only available on systems with
GNU libc

i'm looking into adding an emulation wrapper to the C code

if it doesn't work i'll update the documentation



[2003-07-03 07:30:22] acoon at acoon dot dk

Description:

When using GLOB_ONLYDIR on FreeBSD 4.5 is returns an error.


PHP was configured like this.
'./configure' '--with-mysql' '--with-apxs=/usr/local/sbin/apxs'
'--with-curl' '--with-gd' '--with-jpeg-dir=/usr/local/include/'
'--with-zlib-dir' '--enable-ftp' '--with-ttf' '--enable-bcmath'


Changes made to php.ini:
register_globals = On

Reproduce code:
---
";
}
?>


Expected result:

I would expect to get all dirs printet.

Actual result:
--
Warning: glob() expects parameter 2 to be long, string given in
index.php on line 43





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



#24489 [Opn->Fbk]: Access Violation

2003-07-03 Thread sniper
 ID:   24489
 Updated by:   [EMAIL PROTECTED]
 Reported By:  eduardo at tre-to dot gov dot br
-Status:   Open
+Status:   Feedback
 Bug Type: iPlanet related
 Operating System: win2000 AdvServer
 PHP Version:  4.3.2
 New Comment:

Please try using this CVS snapshot:

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




Previous Comments:


[2003-07-03 16:26:27] eduardo at tre-to dot gov dot br

Description:

Hello!
I am running PHP 4.3.2.2 under Win2k Adv Srv and IIS 5, in CGI mode.

When I run any script, phpinfo() itself generates an error.

First, an windows error message show (my translate):
"unknown make errors and will be closed by Windows. You will need to
restart the program.

An error log will be created."

After click on OK buttom of window message, the message above is
appended to the end of the php's page result:
"ERROR: could not get the task list "

On the Event Viewer is created an log:

Tipo de evento: Erro
Origem do evento:   Perflib
Categoria do evento:Nenhuma
Id. do evento:  1000
Data:   3/7/2003
Hora:   16:35:27
Usuário:N/A
Computador: WEB-TO
Descrição:
Foi negado o acesso aos dados de desempenho para IUSR_WEB-TO, tentado
por meio de C:\WINNT\System32\drwtsn32.exe 


Translate:
"Went denied access to performance's data to IUSR_WEB-TO, called by
C:\WINNT\System32\drwtsn32.exe "

Always everybody enter the site, the message is showed on the server.

Thanks!


Reproduce code:
---
Any script

Actual result:
--
This is the error log in Dr. Watson:


Exceção de aplicativo:
Aplicativo:  (pid=2736)
Data e hora: 3/7/2003 às 17:15:53.261
Número da exceção: c005 (violação de acesso)

*> Informação do sistema <*
Nome do computador: WEB-TO
Nome de usuário: IUSR_WEB-TO
Número de processadores: 1
Tipo de processador: x86 Family 5 Model 4 Stepping 3
Versão do Windows 2000: 5.0
Versão atual: 2195
Service Pack: None
Tipo atual: Uniprocessor Free
Empresa registrada: TRE-TO
Proprietário registrado: TRE-TO

*> Lista de tarefas <*

(0040 - 0040D000) 
(77F8 - 77FFD000) 
(1000 - 10149000) 
(77E8 - 77F3D000) 
(77E1 - 77E75000) 
(77F4 - 77F7C000) 
(7500 - 75009000) 
(74FE - 74FF4000) 
(7800 - 78046000) 
(77DB - 77E0A000) 
(77D4 - 77DAF000) 
(74FD - 74FD8000) 
(77A5 - 77B45000) 
(779B - 77A45000) 
(1F7D - 1F804000) 
(76B1 - 76B4E000) 
(77C7 - 77CBA000) 
(77B5 - 77BDA000) 
(7759 - 777D5000) 
(1F8C - 1F8D8000) 
(00B7 - 00B8) 
(00B8 - 00B9A000) 
(6040 - 60506000) 
(6060 - 60686000) 
(6080 - 6084D000) 
(7755 - 77581000) 
(00BA - 00BA6000) 
(6020 - 60265000) 
(6000 - 60122000) 
(60A0 - 60A2B000) 
(60B0 - 60BA9000) 
(60E0 - 60E1) 
(6110 - 61137000) 
(00BB - 00C11000) 
(6150 - 6150E000) 
(6170 - 6172) 
(6190 - 61906000) 
(6210 - 62106000) 
(00C2 - 00C26000) 
(6230 - 62306000) 
(6250 - 62508000) 
(00C3 - 00C37000) 
(00C4 - 00C51000) 
(6270 - 6274) 
(6290 - 62B23000) 
(6310 - 63108000) 
(6035 - 60356000) 
(6320 - 63273000) 
(010A - 010A8000) 
(010B - 010B9000) 
(6470 - 6470B000) 
(7784 - 7784C000) 
(7798 - 779A4000) 
(777E - 777E8000) 
(7795 - 7797A000) 
(777F - 777F5000) 
(7783 - 7783E000) 
(74F8 - 74F91000) 
(74FC - 74FC7000) 

Despejo de estado para o identificador do segmento 0xa60

eax=0012ffb0 ebx= ecx=00aa62cc edx=0108002c esi=00ab1f34
edi=00aaa948
eip=77f87808 esp=0012fad4 ebp=0012fb08 iopl=0 nv up ei pl nz na
pe nc
cs=001b  ss=0023  ds=0023  es=0023  fs=0038  gs=
efl=0202


função: RtlDeleteCriticalSection
77f877e0 55   pushebp
77f877e1 8bec mov ebp,esp
77f877e3 6aff push0xff
77f877e5 689878f877   push0x77f87898
77f877ea 68db80fb77   push0x77fb80db
77f877ef 64a1 mov eax,fs:[] 
fs:=
77f877f5 50   pusheax
77f877f6 648925   mov fs:[],esp 
fs:=
77f877fd 51   pushecx
77f877fe 51   pushecx
77f877ff 83ec10   sub esp,0x10
77f87802 53   pushebx
77f87803 56   pushesi
77f87804 57   pushedi
77f87805 8b5d08   mov ebx,[ebp+0x8] 
ss:0093d0de=
FALHA -> 77f87808 8b4310   mov eax,[ebx+0x10]
ds:0080d5d6=
77f8780b 85c0  

#24490 [Opn->Fbk]: imap_headerinfo returns only one address in To field

2003-07-03 Thread sniper
 ID:   24490
 Updated by:   [EMAIL PROTECTED]
 Reported By:  bob at midnightweb dot net
-Status:   Open
+Status:   Feedback
 Bug Type: IMAP related
 Operating System: RedHat Linux 8.0
 PHP Version:  4.3.2
 New Comment:

Please try using this CVS snapshot:

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




Previous Comments:


[2003-07-03 18:14:00] bob at midnightweb dot net

Description:

The imap_headerinfo() function appears to only return the first address
in the To field of messages that contain more than one address in that
field.  Addresses in the Cc field apear to be unaffected by this bug.

I have tried upgrading the C-Client to 2002b-6, and then recompiling
the latest stable PHP release ( 4.3.2 ).

The examples are given with a message with the following To headers:

-- Begin snipit --
From: "Bob" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>, <[EMAIL PROTECTED]>,
<[EMAIL PROTECTED]>
--  End snipit  --

NOTE: The email addresses in this report have been altered to preserve
the privacy of the user.

Reproduce code:
---
$mailbox = imap_open($servername.".$cfldr", $username, $password);
$msgheader = @imap_headerinfo($mailbox, $msg);
ob_start();
print_r( $msgheader );
error_log( ob_get_contents() );
ob_end_clean();

Expected result:

In the error_log of the web server, there should be a print_r output of
the object returned by imap_headerinfo() that looks as follows with the
"to" and "toaddress" elements:
-- Begin assumed snipit --
[toaddress] => "[EMAIL PROTECTED]" <[EMAIL PROTECTED]>
[to] => Array
(
[0] => stdClass Object
(
[personal] => [EMAIL PROTECTED]
[mailbox] => user
[host] => mydomain.com
)
[1] => stdClass Object
(
[personal] => [EMAIL PROTECTED]
[mailbox] => user2
[host] => mydomain.com
)
[2] => stdClass Object
(
[personal] => [EMAIL PROTECTED]
[mailbox] => user3
[host] => mydomain.com
)
)

--  End assumed snipit  --

Actual result:
--
There is the print_r output, however with incomplete "to" array and
"toaddress" string elements:
-- Begin snipit --
[toaddress] => "[EMAIL PROTECTED]" <[EMAIL PROTECTED]>
[to] => Array
(
[0] => stdClass Object
(
[personal] => [EMAIL PROTECTED]
[mailbox] => user
[host] => mydomain.com
)

)
--  End snipit  --






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



#24401 [Opn->Fbk]: register globals does not work correctly??!!

2003-07-03 Thread sniper
 ID:   24401
 Updated by:   [EMAIL PROTECTED]
 Reported By:  eero at jlug dot org
-Status:   Open
+Status:   Feedback
 Bug Type: *General Issues
 Operating System: Linux
 PHP Version:  5.0.0b1 (beta1)
 New Comment:

Try the latest PHP 5 snapshot from http://snaps.php.net/



Previous Comments:


[2003-07-03 15:38:13] Colin_Witt at baylor dot edu

Same issue here with PHP 5.0.0b1 running on Mac OS X 
10.2.6.

php.ini file says register_globals = On

phpinfo() says register_globals On On

http://localhost/index.php?id=1234 should create $id 
with value 1234, but it does not. If I add a check at 
the top of the script like this, it works:

if ($id == "") { $id = $_GET['id']; }

But there are other GET variables being passed elsewhere 
in the app, and they too are not properly registered.



[2003-07-03 03:41:06] fuhaha at seoul dot com

php5.0b1 on linux machine. (redhat 9.0)
setted register_globals=On
and phpinfo() check result is register_globals On On

it has problem.

do not recognize GET values, and POST values.

why happend this problem ? 
help me plz.



[2003-06-30 08:59:56] philippe dot nonn at cgeyDOT dot com

Hi,

it seems that register_globals don't even work on the Windows version.

When I call a php form which call phpinfo() with parameters (like
phpinfo.php?foo=test), there is non global variable $foo. 

The only way to get the $foo variable is to use get['foo']

Philippe



[2003-06-30 06:34:34] petrich at tronic-media dot com

Hi,
still have the problem;

(register_globals = On in php.ini are ignored, ServerApi = Apache2)

Configure String:
./configure --disable-all
--with-apxs2=/mnt/60giga/samba/public/www/apache2/bin/apxs

Hans-Jürgen Petrich



[2003-06-30 06:22:57] eero at jlug dot org

Now compiled with ./configure  --with-mysql
--with-apxs=/home/apache/bin/apxs and problems still exists.



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

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



#24488 [Opn->Bgs]: php4_module to php5_module rename does NOT work !

2003-07-03 Thread sniper
 ID:   24488
 Updated by:   [EMAIL PROTECTED]
 Reported By:  x86zman at bigfoot dot com
-Status:   Open
+Status:   Bogus
 Bug Type: Apache2 related
 Operating System: Win32 (2000 Prof. w/ SP4)
 PHP Version:  5CVS-2003-07-02 (dev)
 New Comment:

Mixed php4/php5 dlls. Not php bug.
(try check your error_log for once before submitting bogus reports)



Previous Comments:


[2003-07-03 16:07:31] x86zman at bigfoot dot com

corrected the OS Ver.



[2003-07-03 16:04:49] x86zman at bigfoot dot com

corrected the PHP Ver.



[2003-07-03 15:57:51] x86zman at bigfoot dot com

Description:

Hello PHP-DEV People !

i'd like you to know that the needed correction does NOT solve the
module loading issue, why this ? i can't see something i done wrong.

I Use this Software :

OS : Win32 [ 2000 Prof. w/ sp4 ] (as soon as i get my replacement HD
back i'll be on my beloved gentoo/sorcerer again)
Web-Server : Apache 2.0.46
PHP : 5.0.0b2-dev (CVS 20030702_1430, got from snaps.php.net)

On this Hardware : AMD Athlon 1.6GHz w/ 768MB of RAM (80GB HDD, 1.3GB
free on OS partition (where apache2 resides))

and these are my module configuration lines at apache2's httpd.conf :

LoadModule access_module modules/mod_access.so
LoadModule actions_module modules/mod_actions.so
LoadModule alias_module modules/mod_alias.so
LoadModule asis_module modules/mod_asis.so
LoadModule auth_module modules/mod_auth.so
#LoadModule auth_anon_module modules/mod_auth_anon.so
#LoadModule auth_dbm_module modules/mod_auth_dbm.so
#LoadModule auth_digest_module modules/mod_auth_digest.so
LoadModule autoindex_module modules/mod_autoindex.so
#LoadModule cern_meta_module modules/mod_cern_meta.so
LoadModule cgi_module modules/mod_cgi.so
#LoadModule dav_module modules/mod_dav.so
#LoadModule dav_fs_module modules/mod_dav_fs.so
LoadModule dir_module modules/mod_dir.so
LoadModule env_module modules/mod_env.so
#LoadModule expires_module modules/mod_expires.so
#LoadModule file_cache_module modules/mod_file_cache.so
#LoadModule headers_module modules/mod_headers.so
LoadModule imap_module modules/mod_imap.so
LoadModule include_module modules/mod_include.so
#LoadModule info_module modules/mod_info.so
LoadModule isapi_module modules/mod_isapi.so
LoadModule log_config_module modules/mod_log_config.so
LoadModule mime_module modules/mod_mime.so
#LoadModule mime_magic_module modules/mod_mime_magic.so
#LoadModule proxy_module modules/mod_proxy.so
#LoadModule proxy_connect_module modules/mod_proxy_connect.so
#LoadModule proxy_http_module modules/mod_proxy_http.so
#LoadModule proxy_ftp_module modules/mod_proxy_ftp.so
LoadModule negotiation_module modules/mod_negotiation.so
#LoadModule rewrite_module modules/mod_rewrite.so
LoadModule setenvif_module modules/mod_setenvif.so
#LoadModule speling_module modules/mod_speling.so
#LoadModule status_module modules/mod_status.so
#LoadModule unique_id_module modules/mod_unique_id.so
LoadModule userdir_module modules/mod_userdir.so
#LoadModule usertrack_module modules/mod_usertrack.so
#LoadModule vhost_alias_module modules/mod_vhost_alias.so
#LoadModule ssl_module modules/mod_ssl.so
LoadModule php5_module modules/mod_php5.so

when i comment the last (php5 related) line, apache2 comes up without a
hitch. (i've checked it's usable also)

i know for sure that this is the exact pathname to the module, and that
it do exist where there by that name, as i've ran a quad-check upon
it... just to make sure.

i've thought about the php4->php5 stuff by myself even before visiting
here, as it's so trivial... seems very weird that it don't work though.

Reproduce code:
---
grab that snapshot from snaps.php.net and test it on W2K.Prof w/ SP4 &
Apache 2.0.46 configured as reporeted...

Expected result:

apache2 starts

Actual result:
--
apache2 don't start





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



#24433 [Opn->Bgs]: Incorrect version-output

2003-07-03 Thread sniper
 ID:   24433
 Updated by:   [EMAIL PROTECTED]
 Reported By:  sandro dot mathys at blappy dot com
-Status:   Open
+Status:   Bogus
 Bug Type: *General Issues
 Operating System: linux 2.4.20
 PHP Version:  5.0.0b1 (beta1)
 New Comment:

This is really, REALLY bogus since there IS NO installer for PHP 5.



Previous Comments:


[2003-07-03 16:08:55] sandro dot mathys at blappy dot com

could anyone check this? i think it's no longer a bogus...



[2003-07-02 06:59:36] sandro dot mathys at blappy dot com

i've found the problem...took the snapshot from today (7:30-snapshot).

during installation, the php-installer writes a loadmodule for the
php5module into httpd.conf

but if there exists a loadmodule-command for the old php4module, this
won't be deleted and so the new module won't work.

sorry for my bad english... :( ...i hope, ou understood!



[2003-07-01 11:26:38] [EMAIL PROTECTED]

Either you got a broken snapshot or you got the WRONG snapshot..I just
checked the latest PHP 5 snapshot and has the correct version
information.




[2003-07-01 07:46:23] sandro dot mathys at blappy dot com

oh, there is more than this error:
Zend Engine v1.3.0

that should be v2.0.0 or something like that...



[2003-07-01 07:04:58] postings-bug-php at hans-spath dot de

Problem *not* present in *Windows* version:

M:\php>500b1\php -v
PHP 5.0.0b1 (cgi-fcgi) (built: Jun 28 2003 00:31:05)
Copyright (c) 1997-2003 The PHP Group
Zend Engine v2.0.0-dev, Copyright (c) 1998-2003 Zend Technologies

M:\php>500dev200306301130\php -v
PHP 5.0.0b2-dev (cgi-fcgi) (built: Jun 30 2003 13:41:33)
Copyright (c) 1997-2003 The PHP Group
Zend Engine v2.0.0-dev, Copyright (c) 1998-2003 Zend Technologies

M:\php>500dev200307011030\php -v
PHP 5.0.0b2-dev (cgi-fcgi) (built: Jul  1 2003 12:10:02)
Copyright (c) 1997-2003 The PHP Group
Zend Engine v2.0.0-dev, Copyright (c) 1998-2003 Zend Technologies



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

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