[PHP-DEV] PHP 4.0 Bug #8937 Updated: unset() in context with GLOBAL

2001-01-26 Thread jmoore

ID: 8937
Updated by: jmoore
Reported By: [EMAIL PROTECTED]
Old-Status: Open
Status: Closed
Bug Type: Scripting Engine problem
Assigned To: 
Comments:

Have a closer look at

   http://bugs.php.net/bugs.php?id=1971

and the commentary of Zeev. You have to
use unset($GLOBALS["x"]);

-- 
Björn Schotte[EMAIL PROTECTED]
http://rent-a-phpwizard.de/  [EMAIL PROTECTED]



Previous Comments:
---

[2001-01-26 10:25:19] [EMAIL PROTECTED]
unset() in context with GLOBAL has a serious bug. This bug appeard,
when I changed a PHP3-program to PHP4. The problem is now,
that constructs like the following are several times in this old program.

Sorry, I haven't checked, if this problem is fixed in 4.0.4. If so, perhaps someone 
can tell me? TIA.

Think this problem depends Zend, cause ZEND_CHANGES tells me:

"unset() is no longer a function, but a statement.  It was never
documented as a function so the impact should be no bigger than nada."

I have made a test-case:

?

function test1 ($dir) {
GLOBAL $x;
unset($x);
$x[$dir]=true;
mydirname($dir);
}


function test2 ($dir) {
GLOBAL $x;
### unset($x);   no unset!
$x[$dir]=true;
mydirname($dir);
}

function mydirname ($dir) {
GLOBAL $x;
$dir=ereg_Replace('/[^/]*$','',$dir);
if (!empty($dir)) {
echo "'$dir'br"; flush();
mydirname($dir);
$x[$dir]=true;
}
}

$dir="/hugo/bla/fasel/test"; # first char must be '/' !

unset($x);
test1($dir);
echo "DIRS called with function test1(): "; print_r($x);

echo "br";

unset($x);
test2($dir);
echo "DIRS called with function test2(): "; print_r($x);

?

---


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


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




[PHP-DEV] PHP 4.0 Bug #7701 Updated: loads include files twice

2001-01-29 Thread jmoore

ID: 7701
Updated by: jmoore
Reported By: [EMAIL PROTECTED]
Status: Assigned
Bug Type: IIS related
Assigned To: jmoore
Comments:

lets actually assign this this time and see if I remember to do it ;)

Previous Comments:
---

[2000-12-30 12:18:06] [EMAIL PROTECTED]
Ill try to recreate this one and get to the bottom of it.

James

---

[2000-11-08 17:21:55] [EMAIL PROTECTED]
after trying include_once the same error ocurrs

"Fatal error: Cannot redeclare imagens_carregar() in include/funcoes.php on line 18"

imagens_carregar() is the first function in the included file



---

[2000-11-08 16:24:15] [EMAIL PROTECTED]
sometimes... I can't especify how or the circumstances that make it happen.

when I load the PHP script (that has an 'include' statement) it loads twice the 
include file...

mod0.php:

"if(!$fs) 
include("funcoes.php");"

funcoes.php:

"
$fs=1;
..."

the $fs variable was a way I used to check if the problem is in the script or in the 
script engine...

IF THE BROWSER RELOADS THE PAGE, IT OPENS CORRECTLY...
IF THE BROWSER RELOADS THE PAGE AGAIN, HAPPENS THE ERROR AGAIN...

I'm using the phpisapi.dll with no extensions


---


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


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




[PHP-DEV] PHP 4.0 Bug #7570 Updated: PHP has encountered an Access Violation at 014B7CA8

2001-01-29 Thread jmoore

ID: 7570
Updated by: jmoore
Reported By: [EMAIL PROTECTED]
Old-Status: Open
Status: Feedback
Bug Type: IIS related
Assigned To: 
Comments:

Can you provide more information about your setup and see if the access violations 
occur on pages without db access as well pls. Do you have a C compiler so that you can 
make backtraces etc?

James

Previous Comments:
---

[2000-11-01 12:09:01] [EMAIL PROTECTED]
Platform: NT server 4.0 SP4 build 1381

PHP: 4.0.3pl1

Problem: Regular access violations, which seem to be random. If I hit Ctr-R to 
refresh, and keep my finger on it to force lotsa refreshes at once, the script works 
as normal. At other times, it works as normal anyway.

I'm using a DB on MS SQL Server 7.0, and there are some pre-existing ASP pages which 
are querying the thing also, so I'm not sure if this will cause a clash. Can you tell 
me if this is an internal PHP problem, or one that's related to NT and SQL Server? NB: 
if I could have used Solaris and MySQL, I would have! ;0)


---


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


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




[PHP-DEV] PHP 4.0 Bug #7917 Updated: ISAPI module hangs IIS5

2001-01-29 Thread jmoore

ID: 7917
Updated by: jmoore
Reported By: [EMAIL PROTECTED]
Old-Status: Open
Status: Feedback
Bug Type: IIS related
Assigned To: 
Comments:

Cant reproduce this, can you please provide more information IE whats in the 
scripts/you general setup.

James

Previous Comments:
---

[2000-11-21 21:38:31] [EMAIL PROTECTED]
When PHP works as ISAPI module and .phtml - files are queried, it processes and gives 
to client 2 files and hangs all IIS (all web-nodes) when 3d php-file is queried. Then 
restarting IIS is needed...
CGI-module works correctly.

---


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


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




[PHP-DEV] PHP 4.0 Bug #7858 Updated: Access Violation at 0D884CE6

2001-01-29 Thread jmoore

ID: 7858
Updated by: jmoore
Reported By: [EMAIL PROTECTED]
Old-Status: Open
Status: Feedback
Bug Type: IIS related
Assigned To: 
Comments:

Dont have much to go on really. Does it occur after a certain script is called? do all 
the scripts have certain function calls in common? do they all connect to a datase?? 
do you have a compiler so you can track it down a bit more?

Any infomation that could help us track down the bug would be useful, anything that 
could be rare or unique about your setup.

I would gess that this is from a corrupted file maybe the error msg will give you a 
better idea. Try reinstalling any files that appear in the error mesaages, especially 
the IIS releated ones.

James

Previous Comments:
---

[2001-01-12 18:28:08] [EMAIL PROTECTED]
reclassifying

---

[2000-11-17 01:52:08] [EMAIL PROTECTED]
Get this message randomly. There is no way I can see to
effectively reproduce it.

Have to restart web service to fix

No extra modules compiled in

Using ISAPI version

running IIS5 for virtual hosts

DLLs in system32 dir have execute and read permissions 
for Internet Guest Account

---


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


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




[PHP-DEV] PHP 4.0 Bug #6603 Updated: ISAPI Several bugs

2001-01-29 Thread jmoore

ID: 6603
Updated by: jmoore
Reported By: [EMAIL PROTECTED]
Status: Feedback
Bug Type: IIS related
Assigned To: 
Comments:

Hmm I cant get this to happen for me at all, Im running IIS 5 under win2k can you give 
me more information about your setup too and possibly create backtraces as you 
obviously have a C compiler (if you are implementing your own isapi server ;)

James

Previous Comments:
---

[2000-12-15 19:50:46] [EMAIL PROTECTED]
Please try the latest build from http://www.php4win.de/

--Jani

---

[2000-11-12 10:55:47] [EMAIL PROTECTED]
I've tested 4.0.3 as well and the problems remain here. About the ISAPI. I've heard 
that problems happens even on IIS Web server as well. Just a plain .php file will 
reproduce the problem. 

About the ftell() function, snippet of code:

..
$line = fgets($file, 1024);
echo ftell($file);
..

First time the number echoed is correct, second time not (it's shifted), third time 
correct, then again not. By the time I mean another page load. Anything more I could 
help you with?

---

[2000-11-11 15:25:30] [EMAIL PROTECTED]
please provide short reproducing code for (still existant?) bugs.

---

[2000-09-07 10:48:10] [EMAIL PROTECTED]
I've come accross the following ISAPI bugs. When you try to free the PHP4ISAPI.dll the 
function zend_hash_copy generates an access violation. The same zend_hash_copy 
function generates an access vialotation when the function httpextensionproc is 
executed for the second and more times. The reason I have found this problem is that 
I'm implementing my own ISAPI server.

One more thing I've found is that the ftell() function sometimes returns a bad 
position of the file. Sometimes not sometimes yes and the difference is only 1 byte. 
When I use the same function under the CGI interface (not ISAPI) it works just fine. 
Hope this will help you.

Thank you
Jakub

---


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


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




[PHP-DEV] PHP 4.0 Bug #5773 Updated: ISAPI filter won't function with long directory name

2001-01-29 Thread jmoore

ID: 5773
Updated by: jmoore
Reported By: [EMAIL PROTECTED]
Old-Status: Feedback
Status: Closed
Bug Type: IIS related
Assigned To: 
Comments:

No user feedback, cant reproduce, Workaround supplied. Closing

James

Previous Comments:
---

[2000-12-30 13:18:20] [EMAIL PROTECTED]
Cant reproduce this on PHP ISAPI dll (PHP 4.0.4RC6), IIS 5, win2k. Think this is an 
IIS 4 problem which has been fixed in IIS 5. (It converts space to %20), this might be 
related to 
http://support.microsoft.com/support/kb/articles/Q164/1/44.asp?LN=EN-USSD=gnFR=0qry=directory%20namesrnk=10src=DHCS_MSPSS_gn_SRCHSPR=IIS


could you also try with long dirs with out spaces in, short dirnames with spaces and 
see if it has anything to do with spaces.

James

---

[2000-09-08 14:41:18] [EMAIL PROTECTED]
Yes, the same symptoms occur under Windows NT 4.0 / IIS 4.0.  The CGI module still 
loads.

---

[2000-09-04 20:15:38] [EMAIL PROTECTED]
Does this problem still exist with php4.0.2 ?

--Jani

---

[2000-07-25 03:15:12] [EMAIL PROTECTED]
Update:  the ISAPI filter works under Windows 98 SE / PWS 4.0 in a long filename 
directory path.

---

[2000-07-25 00:58:43] [EMAIL PROTECTED]
If the PHP files are copied to a folder such as "D:Program FilesPHP" the ISAPI filter 
will not load.  After copying the files to "D:inetsrvPHP" it loads.  During the error 
condition the server returns error 500 (internal server error) for PHP pages.  The CGI 
module loads both ways, with the long name in the configuration field as:

"D:Program FilesPHPphp.exe" %s %s

(however using quotes doesn't work for ISAPI...in fact without them MMC won't let you 
exit the dialog, claiming an invalid path).

---

The remainder of the comments for this report are too long.  To view the rest of the 
comments, please view the bug report online.

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


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




[PHP-DEV] PHP 4.0 Bug #5274 Updated: missing symbols - and a crude fix

2001-01-29 Thread jmoore

ID: 5274
Updated by: jmoore
Reported By: [EMAIL PROTECTED]
Old-Status: Feedback
Status: Closed
Bug Type: Compile Failure
Assigned To: 
Comments:

No user feedback.

Closing

Previous Comments:
---

[2000-12-18 10:56:35] [EMAIL PROTECTED]
This should be fixed now. Could you try the latest
snapshot from http://snaps.php.net/ to verify?

--Jani

---

[2000-11-29 04:42:40] [EMAIL PROTECTED]
reclassified

---

[2000-11-27 11:49:29] [EMAIL PROTECTED]
User reported problem still exists with latest CVS.

To php-dev:
-

Anyone using (or have access to) SCO ??

--Jani

---

[2000-11-27 05:37:42] [EMAIL PROTECTED]
Could you please verify whether this is still happening
with latest CVS ?

--Jani

---

[2000-08-19 12:49:49] [EMAIL PROTECTED]
User reports: problem still persists with latest snapshot.

--Jani

---

The remainder of the comments for this report are too long.  To view the rest of the 
comments, please view the bug report online.

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


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




[PHP-DEV] PHP 4.0 Bug #4968 Updated: microtime() does not work properly

2001-02-04 Thread jmoore

ID: 4968
Updated by: jmoore
Reported By: [EMAIL PROTECTED]
Old-Status: Analyzed
Status: Assigned
Bug Type: Date/time related
Assigned To: jmoore
Comments:

Ill look into this one.

James

Previous Comments:
---

[2000-12-19 18:55:47] [EMAIL PROTECTED]
Feedback from Cynic [EMAIL PROTECTED]:

Tested on NT 5 SP 1 Apache 1.3.15-dev / DSO PHP 4.0.5-dev from 
13.12.2000. 
It still exists.


---

[2000-09-13 23:43:22] [EMAIL PROTECTED]
the problem is still existent, try this code it´s much better:

for ($i=1;$i=10;$i++){
   list($micro,$time)=explode(" ",microtime());
   $add=$micro+$time;
   print ($add$last ? 'Last:'.$last.' -Current:'.$add.'BR' : '');
   $last=$add; }

---

[2000-09-13 21:41:24] [EMAIL PROTECTED]
i failed to reproduce this with php 4.0.2.
does this problem still exist?

---

[2000-08-01 23:49:44] [EMAIL PROTECTED]
wow, It still doesn´t work and crashes after a while

---

[2000-06-12 04:33:23] [EMAIL PROTECTED]
is microtime() supposed not to work under win32? If it is, there´s a serious bug in 
it. The following script works as intended (it produces no lines with an *) running on 
Linux - the same script under win32 fails at some points (search for "*" and exampine 
the values around it)...

microtime() *seems* to work under win32, it produces a string with a micro and a 
timestamp part, subsequent values are raising compared to the ancestor in the micro 
part - the timestamp part seems *not* to be incremented after the micro part exceeds 
0,9(period), it is incremented from time to time - I even don´t know when, perhaps 
every fourth pass...

If it is not intended to work under win32 a warning should appear OR it should be 
implemented if possible...


?
for ($i=1;$i=1;$i++){
list($micro,$time)=explode(" ",microtime());
$add=$micro+$time;
print ($last? ($add$last ? '*' : '') : '')."Mt$microtTt$timetSt$ addBR";
$last=$add; }
?

---

The remainder of the comments for this report are too long.  To view the rest of the 
comments, please view the bug report online.


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


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




[PHP-DEV] PHP 4.0 Bug #4968 Updated: microtime() does not work properly

2001-02-04 Thread jmoore

ID: 4968
Updated by: jmoore
Reported By: [EMAIL PROTECTED]
Old-Status: Assigned
Status: Closed
Bug Type: Date/time related
Assigned To: jmoore
Comments:

Fixed in CVS

Previous Comments:
---

[2001-02-04 06:55:29] [EMAIL PROTECTED]
Ill look into this one.

James

---

[2000-12-19 18:55:47] [EMAIL PROTECTED]
Feedback from Cynic [EMAIL PROTECTED]:

Tested on NT 5 SP 1 Apache 1.3.15-dev / DSO PHP 4.0.5-dev from 
13.12.2000. 
It still exists.


---

[2000-09-13 23:43:22] [EMAIL PROTECTED]
the problem is still existent, try this code it´s much better:

for ($i=1;$i=10;$i++){
   list($micro,$time)=explode(" ",microtime());
   $add=$micro+$time;
   print ($add$last ? 'Last:'.$last.' -Current:'.$add.'BR' : '');
   $last=$add; }

---

[2000-09-13 21:41:24] [EMAIL PROTECTED]
i failed to reproduce this with php 4.0.2.
does this problem still exist?

---

[2000-08-01 23:49:44] [EMAIL PROTECTED]
wow, It still doesn´t work and crashes after a while

---

The remainder of the comments for this report are too long.  To view the rest of the 
comments, please view the bug report online.


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


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




[PHP-DEV] PHP 4.0 Bug #8932 Updated: gettimeofday improvement suggestion

2001-02-04 Thread jmoore

ID: 8932
Updated by: jmoore
Reported By: [EMAIL PROTECTED]
Old-Status: Open
Status: Closed
Bug Type: Date/time related
Assigned To: 
Comments:

Thanks for you patch, it is now in the CVS. In future make sure you also include any 
patches in the bug report (even if its a note added at a later date)

Previous Comments:
---

[2001-01-29 09:04:44] [EMAIL PROTECTED]
I have a solution for this now, also for microtime
and usleep. How can I get the code to appropriate
place ??

---

[2001-01-26 08:13:53] [EMAIL PROTECTED]
As implemented now, win32 gettimeofday does not give a consistent time because seconds 
and microseconds are collected with two different function calls.
A better solution, in my opinion, would be to use
win32 GetSystemTime function (together with mktime). This reduces accuracy to 
milliseconds, but time differences would be more reliable (no more extra 1 second 
errors in small times)

---



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


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




[PHP-DEV] PHP 4.0 Bug #9041 Updated: Extra #! at top of web output.

2001-02-05 Thread jmoore

ID: 9041
Updated by: jmoore
Reported By: [EMAIL PROTECTED]
Status: Analyzed
Bug Type: *Configuration Issues
Assigned To: 
Comments:

This is caused by the fact that the #! is not inside ?php tags and thus isnt parsed 
by PHP, perhaps we can introduce a command line arg that ignores #! on the first line 
of a file perhaps

php -c

I dont think there is a special case yet atleast this certainly points to the fact 
there isnt.

James

Previous Comments:
---

[2001-02-05 16:12:22] [EMAIL PROTECTED]
This is caused by the fact that the #! is not inside ?php tags and thus isnt parsed 
by PHP, perhaps we can introduce a command line arg that ignores #! on the first line 
of a file perhaps

php -c

I dont think there is a special case yet atleast this certainly points to the fact 
there isnt.

James

---

[2001-02-05 16:08:14] [EMAIL PROTECTED]
The retarded thing about this is that the EXACT SAME binary works fine when Apache 
calls it as a CGI. A simple /bin/sh CGI on both machines works correctly.

I'm out of clues.

---

[2001-01-31 17:52:09] [EMAIL PROTECTED]
Hello.

I'm running PHP4 as a CGI under Netscape Enterprise.

It's compiled with:
'./configure' '--prefix=/opt/php' '--with-config-file-path=/opt/php/etc' 
'--disable-pear' '--enable-discard-path' '--with-mysql=no' '--enable-trans-sid' 
'--with-oci8=/opt/oracle/8.1.7'

Whenever I call a .cgi that has the #!/path/to/php syntax at the top, the output 
always has a '#!/path/to/php' line at the top.

--- snip 
#!/opt/php/bin/php
!DOCTYPE html PUBLIC "-//W3C//DTD HTML 3.2//EN"
html
headSTYLE TYPE="text/css"!--
A { text-decoration: none; }
--- clip 

My php.ini is pretty default. There's no doc_root specified when this happens.

I would think that PHP wouldn't want to include this extra line.

---



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


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




[PHP-DEV] PHP 4.0 Bug #9041 Updated: Extra #! at top of web output.

2001-02-05 Thread jmoore

ID: 9041
Updated by: jmoore
Reported By: [EMAIL PROTECTED]
Old-Status: Analyzed
Status: Open
Bug Type: *Configuration Issues
Assigned To: 
Comments:

it is in there.. My bad must be somthing else..

James

Previous Comments:
---

[2001-02-05 16:12:23] [EMAIL PROTECTED]
This is caused by the fact that the #! is not inside ?php tags and thus isnt parsed 
by PHP, perhaps we can introduce a command line arg that ignores #! on the first line 
of a file perhaps

php -c

I dont think there is a special case yet atleast this certainly points to the fact 
there isnt.

James

---

[2001-02-05 16:12:22] [EMAIL PROTECTED]
This is caused by the fact that the #! is not inside ?php tags and thus isnt parsed 
by PHP, perhaps we can introduce a command line arg that ignores #! on the first line 
of a file perhaps

php -c

I dont think there is a special case yet atleast this certainly points to the fact 
there isnt.

James

---

[2001-02-05 16:08:14] [EMAIL PROTECTED]
The retarded thing about this is that the EXACT SAME binary works fine when Apache 
calls it as a CGI. A simple /bin/sh CGI on both machines works correctly.

I'm out of clues.

---

[2001-01-31 17:52:09] [EMAIL PROTECTED]
Hello.

I'm running PHP4 as a CGI under Netscape Enterprise.

It's compiled with:
'./configure' '--prefix=/opt/php' '--with-config-file-path=/opt/php/etc' 
'--disable-pear' '--enable-discard-path' '--with-mysql=no' '--enable-trans-sid' 
'--with-oci8=/opt/oracle/8.1.7'

Whenever I call a .cgi that has the #!/path/to/php syntax at the top, the output 
always has a '#!/path/to/php' line at the top.

--- snip 
#!/opt/php/bin/php
!DOCTYPE html PUBLIC "-//W3C//DTD HTML 3.2//EN"
html
headSTYLE TYPE="text/css"!--
A { text-decoration: none; }
--- clip 

My php.ini is pretty default. There's no doc_root specified when this happens.

I would think that PHP wouldn't want to include this extra line.

---



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


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




[PHP-DEV] PHP 4.0 Bug #9164 Updated: wrong variable is initialized

2001-02-07 Thread jmoore

ID: 9164
Updated by: jmoore
Reported By: [EMAIL PROTECTED]
Old-Status: Open
Status: Closed
Bug Type: Scripting Engine problem
Assigned To: 
Comments:

Your code is incorrect, try this:

function Bjbase($antal){  
$this-lekar=$antal;
$this-dragna=array();
$this-ess=58;
echo $this-dragna;
  }


Previous Comments:
---

[2001-02-07 16:21:44] [EMAIL PROTECTED]
function Bjbase($antal){  
$this-$lekar=$antal;
$this-$dragna=array();
$this-$ess=58;
echo $this-$dragna;
  }

this is a constructor

the echo statement prints 58 even though that it is $ess that is initialized to 58.
The variable $dragna is not treated as an array anywhere but when the $ess line is 
gone it works fine.
tried at another server too.
is this a problem you know of?

---



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


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




[PHP-DEV] PHP 4.0 Bug #9204 Updated: Crash when I opent a particular page

2001-02-10 Thread jmoore

ID: 9204
Updated by: jmoore
Reported By: [EMAIL PROTECTED]
Old-Status: Open
Status: Feedback
Bug Type: Reproduceable crash
Assigned To: 
Comments:

Please send a cut down version of the page. you need to remove bits of the page until 
you can get it to crash with the minimal amount of code. DO NOT send full page as we 
are too lazy to do it ourselves.

In cases like these you should always create a test case, it would also be helpful to 
create a back trace see http://bugs.php.net for instructions on that.

James

Previous Comments:
---

[2001-02-10 09:16:16] [EMAIL PROTECTED]
When I open a particular page, my browser says zero sized
reply. error_log says that one of the apache clients
crashed. There does not seem to be any way around this - it
crashes every time I load it. The page is complex, but it
does not use any exotic functions.
I can't seem to get a core file from apache. I run it with
-X, but when it segfaults, no corefile is dumped, even with
ulimit -c unlimied.
I can send the page that causes the problem if required.

Apache version:
Server version: Apache/1.3.14 (Unix)
Server built:   Feb  9 2001 22:46:23

Configure command:
'./configure' '--with-pgsql=/opt/postgres'
'--with-mysql=/opt/mysql' '--with-dom' '--enable-ftp'
'--with-apache=../apache_1.3.14' '--with-gdbm'

Thanks for you help,
Charlie Dyson


---



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


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




[PHP-DEV] PHP 4.0 Bug #253 Updated: Feep request: Per-server logging directives.

2001-02-10 Thread jmoore

ID: 253
Updated by: jmoore
Reported By: [EMAIL PROTECTED]
Old-Status: Open
Status: Closed
Bug Type: Feature/Change Request
Assigned To: 
Comments:

Closed!


Previous Comments:
---

[2001-02-10 12:59:16] [EMAIL PROTECTED]
really moved.

---

[2001-02-10 12:21:39] [EMAIL PROTECTED]
just changing version to 4.0 in case zeev still wants to do this. :)

---

[1998-04-07 13:05:47] [EMAIL PROTECTED]
It would be nice (perhaps in 3.1?) if the logging levels
and other related information were setable per-server
rather than only globally -- I.e. On my main server, I
want errors not to be displayed, and logged to the error
log, but on my development site, I'd like errors to be
displayed but not logged, so that I don't constantly have
to be looking at the error log during debugging.

(I'm dropping this in the bug database so that we'll at
least have some record of it so, just perhaps, we can
poke at it in the future.)


---



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


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




[PHP-DEV] PHP 4.0 Bug #2183 Updated: OPENSSL.org

2001-02-10 Thread jmoore

ID: 2183
Updated by: jmoore
Reported By: [EMAIL PROTECTED]
Old-Status: Open
Status: Closed
Bug Type: Feature/Change Request
Assigned To: 
Comments:

there is already an Openssl extension isnt there.

James

Previous Comments:
---

[2001-02-10 13:42:41] [EMAIL PROTECTED]
i guess an mhash/mcrypt-like openssl extensions is being requested. refiled against 
4.0.

---

[1999-08-28 20:07:30] [EMAIL PROTECTED]
Is anyone working on openssl integration with PHP.
Openssl is ground solid, tested and well integrated with apache through modssl.org
php/mod_ssl/apache is really a enterprise state ecommerce platform.
Only it would be far better if the integration of those three great tools doesn't take 
me a day to integrate when one of them has a new version.
Additionally openssl has lots more funtions than mhash/mcrypt combination. In fact the 
latter don't have Publik Key Crypto support

---



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


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




[PHP-DEV] PHP 4.0 Bug #9214 Updated: Apache dumps core on startup

2001-02-11 Thread jmoore

ID: 9214
Updated by: jmoore
Reported By: [EMAIL PROTECTED]
Old-Status: Open
Status: Feedback
Bug Type: Dynamic loading
Assigned To: 
Comments:

Does apache start when PHP is not enabled? Also try shuffling the order things are 
loaded in.. it is important in some cases although I do not know if this is the case 
here. To me it looks like it is crashing before it even looks at PHP.

James

Previous Comments:
---

[2001-02-11 11:52:58] [EMAIL PROTECTED]
Apache 1.3.17 dumps core on startup if I try to load the php module dynamically.

These are my dynamic loading settings:

LoadModule agent_log_module   libexec/mod_log_agent.so
LoadModule referer_log_module libexec/mod_log_referer.so
LoadModule info_modulelibexec/mod_info.so
LoadModule rewrite_module libexec/mod_rewrite.so
LoadModule expires_module libexec/mod_expires.so
LoadModule php4_modulelibexec/libphp4.so

What is really strange is that if I disable mod_log_agent and mod_log_referer, it 
works fine!


I configured PHP with:

./configure --with-apxs=/usr/local/apache/bin/apxs --enable-ftp --without-mysql 
--with-oci8=/home/oracle/u01/app/oracle/product/8.1.7 --with-pgsql=/usr/lib

and then with --enable-debug to get the following backtrace:



#0  0x4000af21 in _dl_debug_state () at dl-debug.c:56
#1  0x40183156 in _dl_close (map=0x80d52e0) at dl-close.c:195
#2  0x400a1430 in dlclose_doit (handle=0x80d52e0) at dlclose.c:26
#3  0x4000ac3b in _dl_catch_error (errstring=0x400a3080,
operate=0x400a1418 dlclose_doit, args=0x80d52e0) at dl-error.c:141
#4  0x400a18b9 in _dlerror_run (operate=0x400a1418 dlclose_doit,
args=0x80d52e0) at dlerror.c:125
#5  0x400a13fe in dlclose (handle=0x80d52e0) at dlclose.c:32
#6  0x8088390 in ap_os_dso_unload ()
#7  0x8066af0 in unload_module ()
#8  0x806914e in run_cleanups ()
#9  0x806797d in ap_clear_pool ()
#10 0x8077d63 in standalone_main ()
#11 0x8078613 in main ()
#12 0x400bc9cb in __libc_start_main (main=0x80782cc main, argc=4,
argv=0xbb04, init=0x804ed8c _init, fini=0x80acbcc _fini,
rtld_fini=0x4000ae60 _dl_fini, stack_end=0xbafc)
at ../sysdeps/generic/libc-start.c:92

---



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


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




[PHP-DEV] PHP 4.0 Bug #9215 Updated: session variables

2001-02-11 Thread jmoore

ID: 9215
Updated by: jmoore
Reported By: [EMAIL PROTECTED]
Old-Status: Open
Status: Bogus
Bug Type: IIS related
Assigned To: 
Comments:

This is not the place to ask for support please see http://www.php.net/support.php 
this is most likley not a bug.

James

Previous Comments:
---

[2001-02-11 12:20:06] [EMAIL PROTECTED]
it was right i did not read the manual, and the link you send me does not help me al 
all, the problem was that in PHP.ini the variable auto_start_session was OFF.

now i have another problem i have read the manual, and i can create cookies and 
session variables... but i can't have value in session variables...
i had open the session file, and, the var is there but not the value...

now... what is missing in the configuration FILE.

tkx

---



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


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




[PHP-DEV] PHP 4.0 Bug #9247 Updated: unable to load extension php_ldap.dll

2001-02-13 Thread jmoore

ID: 9247
Updated by: jmoore
Reported By: [EMAIL PROTECTED]
Old-Status: Open
Status: Bogus
Bug Type: IIS related
Assigned To: 
Comments:

THis is not a bug but a support issue please see http://www.php.net/support.php and 
read the bugs dos and donts before posting again.

James

Previous Comments:
---

[2001-02-13 17:53:24] [EMAIL PROTECTED]
PHP is installed on a NT-workstationn 4.0 with the IIS 4.0. PHP itself works well.

As I need LDAP support, I have un-commented the extension php_ldap.dll and I have set 
the extension-dir correctly in the php.ini file. But at loading the DLL there appears 
an error 'Unable to load C:php4extensionsphp_ldap.dll - Procedure not found...'

In my opinion I have checked all settings more than once and I have tried all 
possibilities which I could imagine to help me solve the problem.

Any suggestions available?

Regards, Johann

---



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


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




[PHP-DEV] PHP 4.0 Bug #9041 Updated: Extra #! at top of web output.

2001-02-24 Thread jmoore

ID: 9041
Updated by: jmoore
Reported By: [EMAIL PROTECTED]
Old-Status: Open
Status: Suspended
Bug Type: *Configuration Issues
Assigned To: 
Comments:

Suspending this until a decision about what should be the correct behaviour from PHP 
should be.

Previous Comments:
---

[2001-02-05 16:34:55] [EMAIL PROTECTED]
Here are the CGI's I'm using:


#!/opt/php/bin/php
? phpinfo(); ?



#!/bin/sh
echo Content-type: text/html\n\n;
echo "foo!"


Now this might not help any, but I truss'd the web server process (Netscape, 
remember.) and here a few snippits output.

sh CGI.
read(23, " C o n t e n t - t y p e".., 8192)= 31
send(17, " H T T P / 1 . 1   2 0 0".., 118, 0)  = 118
send(17, "n f o o !n", 6, 0)  = 6

PHP CGI.
read(22, " X - P o w e r e d - B y".., 8192)= 5120
send(17, " H T T P / 1 . 1   2 0 0".., 146, 0)  = 146
send(17, " # ! / o p t / p h p / b".., 5065, 0) = 5065

Graphic for PHP CGI page.
send(19, " H T T P / 1 . 1   2 0 0".., 146, 0)  = 146
send(19, " G I F 8 9 a82

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




[PHP-DEV] PHP 4.0 Bug #9267 Updated: vars are set to instead of NULL

2001-02-24 Thread jmoore

ID: 9267
Updated by: jmoore
Reported By: [EMAIL PROTECTED]
Old-Status: Open
Status: Closed
Old-Bug Type: *Database Functions
Bug Type: MySQL related
Assigned To: 
Comments:

This seems due to PHP assuming MySQL's return values are strings, which point it is 
converted into an empty sting. Probably your best bet is to test for a "". I think 
this behaviour is documented somewhere.

James

Previous Comments:
---

[2001-02-22 13:30:58] [EMAIL PROTECTED]
?php
$db = mssql_connect("localhost", "xxx", "yyy");
mssql_select_db("zzz", $db);

$result = mssql_query("select NULL as test", $db);

mssql_fetch_row($result);
$blah = mssql_result($result, 0, "test");

$huh = NULL;


echo is_null($blah);// false
var_dump($blah);// bool(false)

echo is_null($huh); // true
var_dump($huh); // NULL
?



---

[2001-02-22 05:26:38] [EMAIL PROTECTED]
Could you provide a short example of a code that reproduces
this?

---

[2001-02-14 17:06:49] [EMAIL PROTECTED]
don't know if this is only related to the mssql extension, but when i retrieve a NULL 
- field from the database the var will be set to "" or 0 or whatever in php.

is_null() returns false.

harald.

---



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


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




[PHP-DEV] PHP 4.0 Bug #8698 Updated: freediskspace returns zero when used on a windows 2000 'spanned' dynamic drive.

2001-02-24 Thread jmoore

ID: 8698
Updated by: jmoore
Reported By: [EMAIL PROTECTED]
Old-Status: Open
Status: Closed
Bug Type: *Directory/Filesystem functions
Assigned To: 
Comments:

This is a known bug in Win2k.. I cant find the msdn article right now though.. expect 
a fix from MSFT when ever..

Previous Comments:
---

[2001-01-14 07:50:50] [EMAIL PROTECTED]
Running MySQL + PHP on IIS 5

the command seems to work perfectly on a standard dynamic drive and on standard 
partitions..

just incase you dont know this...

a spanned drive is where one disk partition (in this case d:) is spanned across 2 or 
more physical disks.. (2 in this case)

dynamic must be some sort of new drive format. i dont know very much about it, only 
that for me to span disks i must upgrade my drives to dynamic disks.

i hope you will be able to reproduce this problem easily.. feel free to mail me for 
more information.  congratulations on php and good luck to you for the future. :)

---



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


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




[PHP-DEV] PHP 4.0 Bug #9145 Updated: File Uploads 9MB are broken. Upload stops with: Can't find server.

2001-02-24 Thread jmoore

ID: 9145
Updated by: jmoore
Reported By: [EMAIL PROTECTED]
Old-Status: Open
Status: Bogus
Bug Type: *Directory/Filesystem functions
Assigned To: 
Comments:

you need to alter you php.ini to allow uploads and also you need to up the max mem 
usage in php.ini too.

James

Previous Comments:
---

[2001-02-07 07:34:22] [EMAIL PROTECTED]

System:
SunOS star21 5.6 Generic_105181-21 sun4u sparc SUNW,UltraSPARC-IIi-cEngine

Webserver:
apache 1.3.9

Compile Options:
'./configure' '--prefix=/users/www/local/apache/php4' 
'--with-apxs=/users/www/local/apache-1.3.9/bin/apxs' '--with-gd=/usr/local' 
'--with-gdbm=/usr/local' '--with-config-file-path=/users/www/etc' 
'--with-msql=/users/local/msql' '--with-mysql=/users/local/mysql-static' '--enable-ftp'

---



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


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




[PHP-DEV] PHP 4.0 Bug #7220 Updated: Error Report on Function Arguments

2001-02-24 Thread jmoore

ID: 7220
Updated by: jmoore
Reported By: [EMAIL PROTECTED]
Status: Open
Old-Bug Type: *Function Specific
Bug Type: Feature/Change Request
Assigned To: 
Comments:

Not really a bug.. its the expected behaviour. Changing to feature request.

James

Previous Comments:
---

[2000-10-15 11:38:02] [EMAIL PROTECTED]
function bob($arg1, $arg2) {
   ;
}

bob(4);
bob(5,2);

i.e., PHP will falselpy report the error with bob(4) in funcion Bob (i.e., line 1)
instead of bob(4) i.e., line 5.

This is quite annoying when tracking down function calls that have an
incorrect number of arguments



---



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


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




[PHP-DEV] PHP 4.0 Bug #8202 Updated: exec(java -cp classpath classname inputArgument); has no effect

2001-02-24 Thread jmoore

ID: 8202
Updated by: jmoore
Reported By: [EMAIL PROTECTED]
Old-Status: Open
Status: Feedback
Bug Type: *Function Specific
Assigned To: 
Comments:

are you not getting any errors?? Can you try exec with other programs and see if it 
happens with them?

Not getting a unable to fork eror are you? what SAPI are you using ISAPI or CGI?

Previous Comments:
---

[2000-12-11 22:57:15] [EMAIL PROTECTED]
The command prompt line
java -cp 
.;C:Javabin;C:Javalib;C:Javalibtools.jar;E:Health_InfoHealthWebDirectoryMessages 
HTML_HL7translator 
E:Health_InfoHealthWebDirectoryMessagesDischargeDis-2000-11-28-1.htm

runs the java class  HTML_HL7translator with input file Dis-2000-11-28-1.htm
jdk1.3 is installed and works

None of the commands in the following cause HTML_HL7translator to run:

?php
$javaHL7 = exec("java -cp 
.;C:Javabin;C:Javalib;C:Javalibtools.jar;E:Health_InfoHealthWebDirectoryMessages 
HTML_HL7translator 
E:Health_InfoHealthWebDirectoryMessagesDischargeDis-2000-11-28-1.htm");
echo "did execn";
passthru("java -cp 
.;C:Javabin;C:Javalib;C:Javalibtools.jar;E:Health_InfoHealthWebDirectoryMessages 
HTML_HL7translator 
E:Health_InfoHealthWebDirectoryMessagesDischargeDis-2000-11-26-2.htm");
echo "did passthrun";
$javaHL7s = system("java -cp 
.;C:Javabin;C:Javalib;C:Javalibtools.jar;E:Health_InfoHealthWebDirectoryMessages 
HTML_HL7translator 
E:Health_InfoHealthWebDirectoryMessagesDischargeDis-2000-11-26-4.htm");
echo "did system()";
?

[PHP] extracts

; Language Options ;

engine  =   On  ; Enable the PHP scripting language engine 
under Apache
short_open_tag  =   On  ; allow the ? tag.  otherwise, only ?php and 
script tags are recognized.
asp_tags=   Off ; allow ASP-style % % tags
precision   =   14  ; number of significant digits displayed in 
floating point numbers
y2k_compliance  =   Off ; whether to be year 2000 compliant (will cause 
problems with non y2k compliant browsers)
output_buffering= Off   ; Output buffering allows you to send header lines 
(including cookies)
implicit_flush  = Off   ; Implicit flush tells PHP to tell the output layer to 
flush itself
allow_call_time_pass_reference  = On; whether to enable the ability to force 
arguments to be 

safe_mode   =   Off
safe_mode_exec_dir  =
safe_mode_allowed_env_vars = PHP_   ; Setting certain environment 
variables
safe_mode_protected_env_vars = LD_LIBRARY_PATH  ; This directive contains a 
comma-
disable_functions   =   
; Colors for Syntax Highlighting mode.  Anything that's acceptable in font color=??? 
would work.
highlight.string=   #DD
highlight.comment   =   #FF8000
highlight.keyword   =   #007700
highlight.bg=   #FF
highlight.default   =   #BB
highlight.html  =   #00

; Misc
expose_php  =   On  
;;;
; Resource Limits ;
;;;

max_execution_time = 30 ; Maximum execution time of each script, in seconds
memory_limit = 8M   ; Maximum amount of memory a script may 
consume (8MB)
;;
; Error handling and logging ;
;;
; error_reporting is a bit-field.  Or each number up to get desired error reporting 
level
E_ALL   - All errors and warnings

error_reporting =E_ALL; display all errors, warnings and notices
display_errors  =   Off ; Print out errors (as a part of the output)

display_startup_errors = Off; Even when display_errors is on, errors that 
occur during
log_errors  =   On  
track_errors=   Off ; Store the last error/warning message in 
$php_errormsg (boolean)
error_log   = E:Health_InfoHealthWebDirectoryphp_error.txt ; log errors to 
specified file
warn_plus_overloading   =   Off ; warn if the + operator is used with 
strings
;
; Data Handling ;
;
; Note - track_vars is ALWAYS enabled as of PHP 4.0.3
variables_order =   "EGPCS" ; This directive describes the order in which 
PHP registers
register_argc_argv  =   On  ; This directive tells PHP whether to 
declare the argvargc 
post_max_size   =   8M  ; Maximum size of POST data that PHP 
will accept.
gpc_order   =   "GPC"   ; Thi
magic_quotes_gpc=   On  ; magic quotes for incoming 
GET/POST/Cookie data
magic_quotes_runtime=   Off ; magic quotes for runtime-gener
magic_quotes_sybase =   Of

[PHP-DEV] PHP 4.0 Bug #8270 Updated: problem when including phpinfo() command with session

2001-02-24 Thread jmoore

ID: 8270
Updated by: jmoore
Reported By: [EMAIL PROTECTED]
Old-Status: Feedback
Status: Closed
Bug Type: *Function Specific
Assigned To: 
Comments:

closed through lack of user feedback.

Previous Comments:
---

[2000-12-15 02:32:25] [EMAIL PROTECTED]
doesn't happen with Linux/Apache

i guess the two additional count steps came
from the sub-requests for the two logos shown
by phpinfo

could you please try to use your script with image
loading disabled in your browser and see if this
changes the effect?

---

[2000-12-15 01:08:58] [EMAIL PROTECTED]
The following simple script should increment the counter by 1 on each reload.  Instead 
it increments by 3 on the first reload, then increments by 1 on subsequent reloads.  
Removing the phpinfo() command allows the counter to operate correctly.

Placing the phpinfo() command before the session start does not work either.

Please let me know if I have done something wrong, or if this is a real problem.

I am not running the isapi module.

Thanks
Steven


htmlheadtitlePHP Test/title/head
body


?
// initialize a session
session_start();

// register a session variable
session_register ("counter");

// increment value of counter
$counter++;

// Display a cute message with counter
echo("You have reloaded this page $counter times.P");

// Display whole bunch of information
phpinfo(); 


?
/body/html

---



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


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




[PHP-DEV] PHP 4.0 Bug #9107 Updated: Function with mysql_close($conn) closes top level scripts $conn

2001-02-24 Thread jmoore

ID: 9107
Updated by: jmoore
Reported By: [EMAIL PROTECTED]
Old-Status: Open
Status: Analyzed
Bug Type: *Function Specific
Assigned To: 
Comments:

This is due to the fact in this case PHP doesnt make two connections to MySQL but 
reuses the first one which you then close. Not sure if this should be fixed or is an 
acceptable side affect to an otherwise useful piece of behaviour (stops people opening 
silly amounts of connections to the same database if one is reuseable.)

James

Previous Comments:
---

[2001-02-05 04:08:49] [EMAIL PROTECTED]
Sorry the PL4 was meant to be PHP4.04Pl1 :) 

---

[2001-02-05 04:06:36] [EMAIL PROTECTED]
Please Also Refer to Bug Report 9049 :
I believe I am having the same problem. I think I have worked out why tho.

I have two files.
One has a function in it.
Both files require a connection to mysql database.
Both connections use the $conn as their pointer.
If you mysql_close($conn) within the function in the second file
then it closes the $conn in the script calling the function.
So you have to remove the mysql_close from your function
and even the $conn=mysql_connect from it and just pass the
$conn as a variable to the function :
eg
function foo($conn){
$result=mysql_db_query("test","select ...",$conn);
}
called from say test.html
$conn=mysql_connect("localhost","rootme","noway");
foo($conn);

was like this :

function foo()
{
$conn=mysql_connect("localhost","rootme","noway");
## query work etc..
mysql_close($conn);
return;
}

main script :
$conn=mysql_connect("localhost","rootme","noway");
#anything in here
#call function
$wotever=foo();
$result=mysql_db_query("database","query",$conn);

the last line brings up the error about the mysql link resource being wrong as the 
$conn was closed in the function but somehow closed it globally too. Which is a bit of 
a pain as this was ok before upgrading to Pl4

I didnt see anything in the change file about this :L So I can only assume
this is a bug.

If you need more info from me please let me know.. Thanks for all the good work guys 
:) 

---



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


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




[PHP-DEV] PHP 4.0 Bug #9107 Updated: Function with mysql_close($conn) closes top level scripts $conn

2001-02-24 Thread jmoore

ID: 9107
Updated by: jmoore
Reported By: [EMAIL PROTECTED]
Status: Analyzed
Old-Bug Type: *Function Specific
Bug Type: MySQL related
Assigned To: 
Comments:

This one is MySQL Related =)

Previous Comments:
---

[2001-02-24 12:56:28] [EMAIL PROTECTED]
This is due to the fact in this case PHP doesnt make two connections to MySQL but 
reuses the first one which you then close. Not sure if this should be fixed or is an 
acceptable side affect to an otherwise useful piece of behaviour (stops people opening 
silly amounts of connections to the same database if one is reuseable.)

James

---

[2001-02-05 04:08:49] [EMAIL PROTECTED]
Sorry the PL4 was meant to be PHP4.04Pl1 :) 

---

[2001-02-05 04:06:36] [EMAIL PROTECTED]
Please Also Refer to Bug Report 9049 :
I believe I am having the same problem. I think I have worked out why tho.

I have two files.
One has a function in it.
Both files require a connection to mysql database.
Both connections use the $conn as their pointer.
If you mysql_close($conn) within the function in the second file
then it closes the $conn in the script calling the function.
So you have to remove the mysql_close from your function
and even the $conn=mysql_connect from it and just pass the
$conn as a variable to the function :
eg
function foo($conn){
$result=mysql_db_query("test","select ...",$conn);
}
called from say test.html
$conn=mysql_connect("localhost","rootme","noway");
foo($conn);

was like this :

function foo()
{
$conn=mysql_connect("localhost","rootme","noway");
## query work etc..
mysql_close($conn);
return;
}

main script :
$conn=mysql_connect("localhost","rootme","noway");
#anything in here
#call function
$wotever=foo();
$result=mysql_db_query("database","query",$conn);

the last line brings up the error about the mysql link resource being wrong as the 
$conn was closed in the function but somehow closed it globally too. Which is a bit of 
a pain as this was ok before upgrading to Pl4

I didnt see anything in the change file about this :L So I can only assume
this is a bug.

If you need more info from me please let me know.. Thanks for all the good work guys 
:) 

---



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


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




[PHP-DEV] PHP 4.0 Bug #9378 Updated: Exit() in a Funtion never break the process, PHP module still running

2001-02-24 Thread jmoore

ID: 9378
Updated by: jmoore
Reported By: [EMAIL PROTECTED]
Old-Status: Open
Status: Feedback
Bug Type: *Function Specific
Assigned To: 
Comments:

the following test script works fine for me:
?php
function test() {
echo "ji";
exit();
}
test();
?

can you report on this test or include the minimium about of code needed for you to 
reproduce it yourself.

James

Previous Comments:
---

[2001-02-21 13:23:59] [EMAIL PROTECTED]
Exit() in a Funtion never break the process, PHP module still running, and i have the 
Hourglass waiting cursoron my web page.

I'm using Win2000, Apache 1.3.17, PHP4.0.4pl1 as module
and Zend_optimizer



---



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


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




[PHP-DEV] PHP 4.0 Bug #9246 Updated: Installer Problem

2001-02-24 Thread jmoore

ID: 9246
Updated by: jmoore
Reported By: [EMAIL PROTECTED]
Old-Status: Open
Status: Closed
Bug Type: *Install and Config
Assigned To: 
Comments:

This is a known problem with the installer you need to install the microsoft common 
controls and make sure the ocx is registed with windows. Otherwise use manual 
installtion method.

James

Previous Comments:
---

[2001-02-13 15:50:29] [EMAIL PROTECTED]
In the end of the installation this alert pops up:
component "mscomctl.ocx or one of its dependencies not correctly registered: a file is 
missing or invalid.

I have a clean install of win2k server.

---



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


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




[PHP-DEV] PHP 4.0 Bug #9419 Updated: isapi filter doesn't see php.ini

2001-02-24 Thread jmoore

ID: 9419
Updated by: jmoore
Reported By: [EMAIL PROTECTED]
Old-Status: Open
Status: Closed
Bug Type: *Install and Config
Assigned To: 
Comments:

Works fine for me under same set up. Make sure you are restarting IIS every time you 
alter php.ini otherwise it wont pick up on the change(you need to do this from the 
command line with net stop iisadmin then net start w3svc). Please reopen report if 
this is not the problem.

James

Previous Comments:
---

[2001-02-23 05:15:05] [EMAIL PROTECTED]
i've been trying to configure java to work under php using an isapi filter with iis 
5.0 . what i found is that i could get java to work when i used the cgi module but not 
the isapi, after some research i discovered that when you run php using the isapi it 
doesn't see the php.ini. using phpinfo() i saw that all the options i changed where 
set to default, and for example all the java local variables where set to null whereas 
they were properly when i used the cgi.
hope you get this fixed soon!!! 

---



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


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




[PHP-DEV] PHP 4.0 Bug #9150 Updated: PHP4 not reading php.ini

2001-02-24 Thread jmoore

ID: 9150
Updated by: jmoore
Reported By: [EMAIL PROTECTED]
Old-Status: Open
Status: Closed
Bug Type: *Install and Config
Assigned To: 
Comments:

unless you restart apache after changing the contents of PHP.ini if not PHP wont pick 
up on the changes. Your phpinfo() now seems to match your php.ini. Please reopen if 
this is not the case...

James

Previous Comments:
---

[2001-02-07 10:26:27] [EMAIL PROTECTED]
Hi, 

I've successfully compiled PHP 4.0.5dev with Apache
1.3.14 on my Redhat 6.1 after many tries. 

If you go to http://www.antiquegunroom.com/test.php
you will see my PHP info. However the info could never
be changed even after I've copied php.ini to
/usr/local/lib 

The info you see at the url is not synchronised with
the settings in the file.  For instance, the
upload_tmp_dir variable has a value of /etc/httpd/tmp
but the PHP info shown on the url gives me "No Value"

Why could this happen? I've rebooted the server many
times but the info still wouldn't be updated. 

Configure command:

./configure --with-apxs=/usr/sbin/apxs --with-pgsql=/usr/include/pgsql 
--with-mysql=/usr --with-gd=/usr --with-ftp --enable-track-vars --enable-versioning 
--with-gdbm=/usr/include --with-pdflib=/usr/local/lib 
--with-mck=/usr/local/mck-3.3.1-i586-pc-linux-gnulibc2.1 --with-jpeg-dir=/usr/local 
--with-tiff-dir=/usr/lib --with-png-dir=/usr/lib --enable-calendar --with-zlib==/usr 
--with-zlib-dir --with-mod-dav --with-snmp --enable-sockets --enable-yp --with-dom 
--enable-sablot-errors-descriptive --with-sablot --enable-wddx --with-readline=/usr 
--with-snmp=/usr --with-ttf

I've done a strace on httpd by issuing the following command:
strace -o /tmp/file /usr/sbin/httpd -X
after that i do a grep on php.ini:
grep php.ini /tmp/file

The resulting output is 
open("./php.ini", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/php.ini", O_RDONLY)  = -1 ENOENT (No such file or directory)
open("/usr/local/lib/php.ini", O_RDONLY) = 4
lstat("/usr/local/lib/php.ini", {st_mode=S_IFREG|0755, st_size=24287, ...}) = 0
open("./php.ini", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/php.ini", O_RDONLY)  = -1 ENOENT (No such file or directory)
open("/usr/local/lib/php.ini", O_RDONLY) = 4
lstat("/usr/local/lib/php.ini", {st_mode=S_IFREG|0755, st_size=24287, ...}) = 0

My PHP.INI content is 

[PHP]

;;;
; About this file ;
;;;
;
; This is the 'optimized', PHP 4-style version of the php.ini-dist file.
; For general information about the php.ini file, please consult the php.ini-dist
; file, included in your PHP distribution.
;
; This file is different from the php.ini-dist file in the fact that it features
; different values for several directives, in order to improve performance, while
; possibly breaking compatibility with the standard out-of-the-box behavior of
; PHP 3.  Please make sure you read what's different, and modify your scripts
; accordingly, if you decide to use this file instead.
;
; - allow_call_time_pass_reference = Off
; It's not possible to decide to force a variable to be passed by reference
; when calling a function.  The PHP 4 style to do this is by making the
; function require the relevant argument by reference.
; - register_globals = Off
; Global variables are no longer registered for input data (POST, GET, cookies,
; environment and other server variables).  Instead of using $foo, you must use
; $HTTP_POST_VARS["foo"], $HTTP_GET_VARS["foo"], $HTTP_COOKIE_VARS["foo"], 
; $HTTP_ENV_VARS["foo"] or $HTTP_SERVER_VARS["foo"], depending on which kind
; of input source you're expecting 'foo' to come from.
; - register_argc_argv = Off
; Disables registration of the somewhat redundant $argv and $argc global
; variables.
; - magic_quotes_gpc = Off
; Input data is no longer escaped with slashes so that it can be sent into
; SQL databases without further manipulation.  Instead, you should use the
; function addslashes() on each input element you wish to send to a database.
; - variables_order = "GPCS"
; The environment variables are not hashed into the $HTTP_ENV_VARS[].  To access
; environment variables, you can use getenv() instead.



; Language Options ;


engine  =   On  ; Enable the PHP scripting language engine 
under Apache
short_open_tag  =   On  ; allow the ? tag.  otherwise, only ?php and 
script tags are recognized.
asp_tags=   Off ; allow ASP-style % % tags
precision   =   14  ; number of significant digits displayed in 
floating point

[PHP-DEV] PHP 4.0 Bug #9233 Updated: Unable to load extensions

2001-02-24 Thread jmoore

ID: 9233
Updated by: jmoore
Reported By: [EMAIL PROTECTED]
Old-Status: Open
Status: Feedback
Bug Type: *Install and Config
Assigned To: 
Comments:

does php_oci8.dll exists?

James

Previous Comments:
---

[2001-02-12 19:38:30] [EMAIL PROTECTED]
I am using IE5 + IIS5 + PHP4.exe (php4isap.dll have tried too).

Some dlls that actually exist are reported as 
"PHP Warning: Unable to load dynamic library 'C:KettadPHPextensionsphp_oci8.dll' - The 
specified module could not be found. "
But the half of dlls in the same directory "C:KettadPHPextensions" are loaded OK. 
FileMon shows that dlls are found and readable by php.exe.

In addition I retieve such a stuff to the end of my page 

Cannot find module (IP-MIB): At line 0 in (none)
Cannot find module (IF-MIB): At line 0 in (none)
Cannot find module (TCP-MIB): At line 0 in (none)
Cannot find module (UDP-MIB): At line 0 in (none)
Cannot find module (SNMPv2-MIB): At line 0 in (none)
Cannot find module (SNMPv2-SMI): At line 0 in (none)

My be that's because parser cannt load such libraries?

---



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


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




[PHP-DEV] PHP 4.0 Bug #5311 Updated: Checkdnsrr

2001-02-24 Thread jmoore

ID: 5311
Updated by: jmoore
Reported By: [EMAIL PROTECTED]
Status: Analyzed
Old-Bug Type: *Network Functions
Bug Type: Feature/Change Request
Assigned To: 
Comments:

Both of these are #Defined out in the source code.. someone needs too look for a win32 
implmentation of these at some point (dns.c:170 #if HAVE_BINDLIB  
!(defined(__BEOS__)||defined(PHP_WIN32))).

Changing to Feature Change Request.

Previous Comments:
---

[2000-11-18 22:21:30] [EMAIL PROTECTED]
reclassified

---

[2000-08-12 13:50:49] [EMAIL PROTECTED]
user comment:
Neither checkdnsrr nor getmxrr appear work under Windows NT
4/SP6a with IIS
4.

I'm running with the downloaded Windows binary 4.0.1pl2 and
the provided
.ini file. OS is NT 4.0/sp6a, IIS 4.

Under Windows, checkdnsrr always returns "true" (no matter
whether the
provided domain name could even possibly be valid) and
getmxrr returns 0
hosts.

(append ?domain=domaintotest.com to the URL when calling
this script)

?
echo("pcheckdnsrr:
".(checkdnsrr($domain,"MX")?"true":"false"));
getmxrr($domain,$mxhosts);
echo("pgetmxrr: [".count($mxhosts)."] ");
for ( $i = 0; $i  count ( $mxhosts ); $i++ ) {
echo($mxhosts[$i]." ");
}
?


---

[2000-07-27 20:10:15] [EMAIL PROTECTED]
After correcting that typos in the script I found that it is still not working on W2k 
while Linux works fine...

checkdnsrr() seems not even trying to connect elsewhere...

---

[2000-07-01 16:36:45] [EMAIL PROTECTED]
OS : Windows 2000 Pro
Server : Apache 1.3.12 Win32
PHP4 : PHP 4.01 Win32
Script : -
list($user,$domain)=split("@",$email,2);
echo "P$user @ $domain
if (checkdnsrr($domain,"MX")){
echo "PValid Domain/P"
}
else{
echo "PUnValid Domain/P"
}
---
Test is already Unvalid Domain, But split is OK.
I supposed that it's checkdnsrr not working.


---



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


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




[PHP-DEV] PHP 4.0 Bug #9319 Updated: join function joins in reverse order in one specific instance.

2001-02-24 Thread jmoore

ID: 9319
Updated by: jmoore
Reported By: [EMAIL PROTECTED]
Old-Status: Open
Status: Analyzed
Bug Type: Arrays related
Assigned To: 
Comments:

Verified under win2k 4.0.5-dev

This might be the expected behaviour but it is also undesirable. I cant think of a 
nice way of implmenting a fix due to the fact adding a sort to sort the keys will 
break lots of peoples scripts. Perhaps just tell the end user to ksort first although 
I feel arrays with numeric keys should probably join them in order?

James


Previous Comments:
---

[2001-02-17 12:02:51] [EMAIL PROTECTED]
$arr1 = array("dog","cat","bird","fish");
echo join(" = ",$arr1);

echo "br";

$arr2[0] = "dog";
$arr2[1] = "cat";
$arr2[2] = "bird";
$arr2[3] = "fish";
echo join(" = ",$arr2);

echo "br";

list($arr3[0],$arr3[1],$arr3[2],$arr3[3]) = array("dog","cat","bird","fish");
echo join(" = ",$arr3);

// This last join will join in the reverse order.

---



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


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




[PHP-DEV] PHP 4.0 Bug #8935 Updated: A reference to 'this' can not be used in the constructor method for a class.

2001-02-24 Thread jmoore

ID: 8935
Updated by: jmoore
Reported By: [EMAIL PROTECTED]
Status: Open
Bug Type: Class/Object related
Assigned To: 
Comments:

Please see the 4.0.4 release change log a lot of things along this line were fixed.

James

Previous Comments:
---

[2001-01-26 09:37:16] [EMAIL PROTECTED]
The following script demonstrates the problem.

?php
/*
thistest.php
jp, 2001-01-25
Demonstration of bug in passing '$this' as a reference in the constructor.
The problem is that it will not be a reference to the newly created object that is 
passed but rather a new copy. This is demonstrated below.

The Container class is just a driver class

The bug is demostrated in the A1 class. The A class uses an Init() method to pass the 
'$this' reference which is a workaround for this particular bug.

Analysis of problem:
It seems that the '$this' pointer is not safe to use in the constructor since it 
probably doesn't get properly initialized for the object until after the constructor 
has been run.

*/



class ContainerA {
var $a;
function ContainerA() {
$this-a=new A();
$this-a-Init();
echo "A val before calling change: ".$this-a-val."br";
$this-a-bobj-ChangeA();
echo "A val after calling change (should be 3): ".$this-a-val."br";
}
}

class A {
var $val=1;
var $bobj=null;

function A() {
   $this-bobj = new B();
}
function Init() {
   // Workaround it is safe to use a refernce to this outside the constuctor
   $this-bobj-Init($this);
}
function SetVal($v) {
$this-val=$v;
}
};

class B {
  var $aobj=null;
  function B() {
  }
  function Init($obj) {
 $this-aobj=$obj;
  }
  function ChangeA() {
 $this-aobj-SetVal(3);
  }
};

class ContainerA1 {
var $a;
function ContainerA1() {
$this-a=new A1();
echo "A val before calling change: ".$this-a-val."br";
$this-a-bobj-ChangeA();
echo "A val after calling change (should be 3): ".$this-a-val."br";
}
}

// BUG
class A1 {
var $val=1;
var $bobj=null;

function A1() {
$this-bobj = new B();

// BUG. A reference of 'this' is NOT passed here as it seems but a copy!
// Hence the bobj will contain another copy of A1 and not the one we
// are just creating.
$this-bobj-Init($this);
}
function SetVal($v) {
$this-val=$v;
}
};

echo "Demonstration of 'this' bug.p";
echo "Using class A (workaround)br";
$c1=new ContainerA();

echo "pUsing class A1 (BUG)br";
$c1=new ContainerA1();

?

---



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


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




[PHP-DEV] PHP 4.0 Bug #9340 Updated: usleep function doesn't work properly under winNT 4.0

2001-02-24 Thread jmoore

ID: 9340
Updated by: jmoore
Reported By: [EMAIL PROTECTED]
Old-Status: Feedback
Status: Closed
Bug Type: Date/time related
Assigned To: 
Comments:

Fixed in CVS

Previous Comments:
---

[2001-02-22 19:26:17] [EMAIL PROTECTED]
Please try the latest dev build from http://www.php4win.de/ 
(under downloads) as this should be fixed already in CVS. IIRC

--Jani


---

[2001-02-19 13:16:08] [EMAIL PROTECTED]
here is the wrong code (current) + my correction:

  Wrong (current) 

PHP_FUNCTION(usleep)
{
#if HAVE_USLEEP
pval **num;

if (ZEND_NUM_ARGS() != 1 || zend_get_parameters_ex(1, num) == FAILURE) {
WRONG_PARAM_COUNT;
}
convert_to_long_ex(num);
usleep((*num)-value.lval);
#endif
}

  Correction 

PHP_FUNCTION(usleep)
{
pval **num;

if (ZEND_NUM_ARGS() != 1 || zend_get_parameters_ex(1, num) == FAILURE) {
WRONG_PARAM_COUNT;
}
convert_to_long_ex(num);
#if HAVE_USLEEP
usleep((*num)-value.lval);
#elif PHP_WIN32
   Sleep( ((*num)-value.lval+999)/1000);
#endif
}

Dror.

---



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


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




[PHP-DEV] PHP 4.0 Bug #9319 Updated: join function joins in reverse order in one specific instance.

2001-02-25 Thread jmoore

ID: 9319
Updated by: jmoore
Reported By: [EMAIL PROTECTED]
Old-Status: Analyzed
Status: Closed
Bug Type: Arrays related
Assigned To: 
Comments:

This is the expected behaviour and wont be changed anytime soon due to breaking too 
many scripts if we do. Please use ksort() if you really need to do this.

James

Previous Comments:
---

[2001-02-24 14:08:15] [EMAIL PROTECTED]
Verified under win2k 4.0.5-dev

This might be the expected behaviour but it is also undesirable. I cant think of a 
nice way of implmenting a fix due to the fact adding a sort to sort the keys will 
break lots of peoples scripts. Perhaps just tell the end user to ksort first although 
I feel arrays with numeric keys should probably join them in order?

James


---

[2001-02-17 12:02:51] [EMAIL PROTECTED]
$arr1 = array("dog","cat","bird","fish");
echo join(" = ",$arr1);

echo "br";

$arr2[0] = "dog";
$arr2[1] = "cat";
$arr2[2] = "bird";
$arr2[3] = "fish";
echo join(" = ",$arr2);

echo "br";

list($arr3[0],$arr3[1],$arr3[2],$arr3[3]) = array("dog","cat","bird","fish");
echo join(" = ",$arr3);

// This last join will join in the reverse order.

---



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


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




[PHP-DEV] PHP 4.0 Bug #9449 Updated: wordwrap runs into infinite loop

2001-02-26 Thread jmoore

ID: 9449
Updated by: jmoore
Reported By: [EMAIL PROTECTED]
Status: Open
Bug Type: Reproduceable crash
Assigned To: 
Comments:

This seems to happen when $break is over 2 chars, Ill look at it later.

James

Previous Comments:
---

[2001-02-25 20:55:09] [EMAIL PROTECTED]
May be related to bug id #9339.

If a word in $string reaches (really! - see below) or exceeds the $width length, $cut 
is unset *and* a break string like "br" is given, wordwrap() runs into a infinite 
loop... :-(

Example:

echo wordwrap("1234567890", 10, "br");

I'm running php4.0.5-dev-win32-20010220.exe from www.php4win.de witch Apache on W2K AS.

---



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


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




[PHP-DEV] PHP 4.0 Bug #9339 Updated: infinite loop in wordwrap

2001-02-26 Thread jmoore

ID: 9339
Updated by: jmoore
Reported By: [EMAIL PROTECTED]
Status: Closed
Bug Type: Strings related
Assigned To: 
Comments:

This was a bug but is fixed in CVS now.

James

Previous Comments:
---

[2001-02-19 22:39:48] [EMAIL PROTECTED]
WFM win32 + linux,
please check out latest CVS and reopen if necessary

---

[2001-02-19 12:41:21] [EMAIL PROTECTED]
The following line seems to loop forever:

echo wordwrap("abcdefghijklmnopqr", 10, "rn");


---



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


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




[PHP-DEV] PHP 4.0 Bug #9449 Updated: wordwrap runs into infinite loop

2001-02-26 Thread jmoore

ID: 9449
Updated by: jmoore
Reported By: [EMAIL PROTECTED]
Old-Status: Open
Status: Closed
Bug Type: Reproduceable crash
Assigned To: 
Comments:

Fixed in CVS.

-- James

Previous Comments:
---

[2001-02-26 07:11:47] [EMAIL PROTECTED]
This seems to happen when $break is over 2 chars, Ill look at it later.

James

---

[2001-02-25 20:55:09] [EMAIL PROTECTED]
May be related to bug id #9339.

If a word in $string reaches (really! - see below) or exceeds the $width length, $cut 
is unset *and* a break string like "br" is given, wordwrap() runs into a infinite 
loop... :-(

Example:

echo wordwrap("1234567890", 10, "br");

I'm running php4.0.5-dev-win32-20010220.exe from www.php4win.de witch Apache on W2K AS.

---



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


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




[PHP-DEV] PHP 4.0 Bug #9960 Updated: IIS Crashes

2001-03-23 Thread jmoore

ID: 9960
Updated by: jmoore
Reported By: [EMAIL PROTECTED]
Status: Open
Bug Type: IIS related
Assigned To: 
Comments:

Not enough information.. please provide more information and reopen the bug report. We 
have no idea of your setup really.. any modules your using when it crashes or what 
causes it to crash. From your bug report I could list a couple of hundred things that 
could cause it to crash..

Thanks

James

Previous Comments:
---

[2001-03-23 15:30:29] [EMAIL PROTECTED]
Php is installed as isapi in IIS after some time of using php pages the web server 
hangs and stops responding
Stopping and restarting the web server fix the situation

No Modifications done to php.ini and standard setup used...


---



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


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




[PHP-DEV] PHP 4.0 Bug #9960 Updated: IIS Crashes

2001-03-23 Thread jmoore

ID: 9960
Updated by: jmoore
Reported By: [EMAIL PROTECTED]
Old-Status: Open
Status: Closed
Bug Type: IIS related
Assigned To: 
Comments:

closing

Previous Comments:
---

[2001-03-23 15:43:33] [EMAIL PROTECTED]
Not enough information.. please provide more information and reopen the bug report. We 
have no idea of your setup really.. any modules your using when it crashes or what 
causes it to crash. From your bug report I could list a couple of hundred things that 
could cause it to crash..

Thanks

James

---

[2001-03-23 15:30:29] [EMAIL PROTECTED]
Php is installed as isapi in IIS after some time of using php pages the web server 
hangs and stops responding
Stopping and restarting the web server fix the situation

No Modifications done to php.ini and standard setup used...


---



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


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




[PHP-DEV] PHP 4.0 Bug #10051 Updated: php still does not start

2001-03-29 Thread jmoore

ID: 10051
Updated by: jmoore
Reported By: [EMAIL PROTECTED]
Old-Status: Open
Status: Bogus
Bug Type: *Install and Config
Assigned To: 
Comments:

Once again this is not a bug in PHP but a misconfig on your system. If the dll is not 
on your system then PHP cant find it. 

This is not the place to ask questions like this. 

Please see http://www.php.net/support.php. It is also not possible for PHP to 
distribute this libary due to the possible license problems if we were to do so. (It 
would be illegal for us to do so.)

- James

Previous Comments:
---

[2001-03-29 07:16:05] [EMAIL PROTECTED]
Look first at ID .
I had that problem with php.exe. ERROR: cant find odbc32.dll

I have downloaded mdac 2.6 SDK (13 MB) and installed it
(COMPLETE installation), BUT: php.exe still does not find
odbc32.dll, and I am not surprised, because I cant find it
manually on my harddisk.

Why is that f.. library NOT contained in the php4-zip?
Where can I get it? Please help...

---



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


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




[PHP-DEV] PHP 4.0 Bug #10062 Updated: CGI version displays '#!/usr/local/bin/php' line

2001-03-29 Thread jmoore

ID: 10062
Updated by: jmoore
Reported By: [EMAIL PROTECTED]
Old-Status: Open
Status: Bogus
Bug Type: Unknown/Other Function
Assigned To: 
Comments:

There is no need for #!/usr/local/bin/php if you have your webserver set up to parse 
PHP files already (IE if you have set up apache as shown in install docs.) if your 
webserver is executing the files (actually set up as real cgi then please reopen this 
bug report but this shouldnt happen as the webserver should strip the 
#!/usr/local/bin/php line out.)

James

Previous Comments:
---

[2001-03-29 12:25:01] [EMAIL PROTECTED]
Standard configure/make on REdHat 7 (options are: 
--without-apache --with-mysql --with-gd)

Then CGI execution as normal - it reads php.ini fine and 
renders PHP fine - the only problem is the display of the 
first line of the file ('#!/usr/local/bin/php')

I've seen posts elsewhere about someone having a similar 
problem on FreeBSD with an older version that went away 
with a newer version (of PHP that is) so I'm assuming its 
a resurfacing issue.  Apologies if it's just me being lame 
;)

Regards

Shane


---



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


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




[PHP-DEV] PHP 4.0 Bug #10062 Updated: CGI version displays '#!/usr/local/bin/php' line

2001-03-29 Thread jmoore

ID: 10062
Updated by: jmoore
Reported By: [EMAIL PROTECTED]
Old-Status: Bogus
Status: Open
Bug Type: Unknown/Other Function
Assigned To: 
Comments:

Hmm I might be wrong there.. What webserver is your ISP running?

James

Previous Comments:
---

[2001-03-29 12:51:59] [EMAIL PROTECTED]
I'm afraid it really is as a CGI - the reason being that 
my ISP won't install PHP modules and I need gd/t1lib 
support.  This problem is with testing the setup on the 
local server (I want the same setup both ends to avoid any 
extra complications).

I wasn't aware that it was the web server's responsibility 
to strip the #1/usr/local/bin/php line out - I am running 
apache 1.3.14 and I have a feeling there could be an issue 
with that - (although I haven't noticed it in the past 
with C++ CGIs)




---

[2001-03-29 12:38:03] [EMAIL PROTECTED]
There is no need for #!/usr/local/bin/php if you have your webserver set up to parse 
PHP files already (IE if you have set up apache as shown in install docs.) if your 
webserver is executing the files (actually set up as real cgi then please reopen this 
bug report but this shouldnt happen as the webserver should strip the 
#!/usr/local/bin/php line out.)

James

---

[2001-03-29 12:25:01] [EMAIL PROTECTED]
Standard configure/make on REdHat 7 (options are: 
--without-apache --with-mysql --with-gd)

Then CGI execution as normal - it reads php.ini fine and 
renders PHP fine - the only problem is the display of the 
first line of the file ('#!/usr/local/bin/php')

I've seen posts elsewhere about someone having a similar 
problem on FreeBSD with an older version that went away 
with a newer version (of PHP that is) so I'm assuming its 
a resurfacing issue.  Apologies if it's just me being lame 
;)

Regards

Shane


---



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


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




[PHP-DEV] PHP 4.0 Bug #10062 Updated: CGI version displays '#!/usr/local/bin/php' line

2001-03-29 Thread jmoore

ID: 10062
Updated by: jmoore
Reported By: [EMAIL PROTECTED]
Status: Open
Bug Type: Unknown/Other Function
Assigned To: 
Comments:

This isnt an Issue with apache. What are you calling your php file?? .cgi yes? there 
are some hacks around this but it seems more likley a config problem rather than a bug 
in PHP.. anu ideas people??

Previous Comments:
---

[2001-03-29 13:41:54] [EMAIL PROTECTED]
They're running 1.3.12 - but that doesn't matter yet as I 
can't even get PHP to compile there (its Debian with 
glibc2.1, PHP 4.0.4pl1, same configure options as I said 
previously, configure runs fine, but make dies half way 
through - can't work out why though - but thats for 
another day...)

Ah.  but if it is an issue with Apache then I'm screwed 
anyway :((




---

[2001-03-29 13:05:26] [EMAIL PROTECTED]
Hmm I might be wrong there.. What webserver is your ISP running?

James

---

[2001-03-29 12:51:59] [EMAIL PROTECTED]
I'm afraid it really is as a CGI - the reason being that 
my ISP won't install PHP modules and I need gd/t1lib 
support.  This problem is with testing the setup on the 
local server (I want the same setup both ends to avoid any 
extra complications).

I wasn't aware that it was the web server's responsibility 
to strip the #1/usr/local/bin/php line out - I am running 
apache 1.3.14 and I have a feeling there could be an issue 
with that - (although I haven't noticed it in the past 
with C++ CGIs)




---

[2001-03-29 12:38:03] [EMAIL PROTECTED]
There is no need for #!/usr/local/bin/php if you have your webserver set up to parse 
PHP files already (IE if you have set up apache as shown in install docs.) if your 
webserver is executing the files (actually set up as real cgi then please reopen this 
bug report but this shouldnt happen as the webserver should strip the 
#!/usr/local/bin/php line out.)

James

---

[2001-03-29 12:25:01] [EMAIL PROTECTED]
Standard configure/make on REdHat 7 (options are: 
--without-apache --with-mysql --with-gd)

Then CGI execution as normal - it reads php.ini fine and 
renders PHP fine - the only problem is the display of the 
first line of the file ('#!/usr/local/bin/php')

I've seen posts elsewhere about someone having a similar 
problem on FreeBSD with an older version that went away 
with a newer version (of PHP that is) so I'm assuming its 
a resurfacing issue.  Apologies if it's just me being lame 
;)

Regards

Shane


---

The remainder of the comments for this report are too long.  To view the rest of the 
comments, please view the bug report online.


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


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




[PHP-DEV] PHP 4.0 Bug #10066 Updated: Paser fails to report missing }

2001-03-29 Thread jmoore

ID: 10066
Updated by: jmoore
Reported By: [EMAIL PROTECTED]
Old-Status: Open
Status: Bogus
Bug Type: Scripting Engine problem
Assigned To: 
Comments:

bogusify

Previous Comments:
---

[2001-03-29 19:24:09] [EMAIL PROTECTED]
Sorry again, I should have mention about error log.
PHP is logging parse error where it should be. It just does not show parse error on 
browser.

Form PHP4.0.4pl1/Apache DSO/RedHat Linux 7.0.1/ja

[30-Mar-2001 07:02:26] PHP Parse error:  parse error in 
/home/httpd/dev/ygb-web/include/classlib/Form.inc on line 1309


---

[2001-03-29 19:09:55] [EMAIL PROTECTED]
do you get any error messages in apaches error_log
if you turn log_errors on?

by the way: the reason i asked for error_reporting
settings was that a lot of people re-use their
settings from php3 , usually 7 or 15 , and
miss some of the new error classes, esp. zend
parse errors by that



---

[2001-03-29 18:53:57] [EMAIL PROTECTED]
Oops, the latter one is php.ini for Linux/Apache/PHP4.0.4pl1

---

[2001-03-29 18:51:30] [EMAIL PROTECTED]
I should have written this. Sorry.
Error reporting is E_ALL for both W2K and Linux.

(I edited to get rid of comments, I might be messed up a little. If you need whole 
php.ini, please let me know)
=== php.ini (PHP4.0.5RC1 Windows Partial ini) ===
engine  =   On  
short_open_tag  =   Off
asp_tags=   Off 
precision   =   14
y2k_compliance  =   Off
output_buffering= Off   
output_handler  =   
zlib.output_compression = Off   
implicit_flush  = Off
allow_call_time_pass_reference  = Off   

error_reporting =   E_ALL   
display_errors  =   On  
display_startup_errors = On
log_errors  =   Off
track_errors=   On
warn_plus_overloading   =   Off

variables_order =   "GPCS"  
register_globals=   Off
register_argc_argv  =   Off
post_max_size   =   8M

magic_quotes_gpc=   Off
magic_quotes_runtime=   Off 
magic_quotes_sybase =   Off
auto_prepend_file   =
auto_append_file=

default_mimetype = "text/html"
default_charset = "EUC-JP"

=== php.ini (PHP4.0.4pl1 Windows Partial ini) ===
engine=On
short_open_tag=Off   
asp_tags  =Off
precision =14
y2k_compliance=Off   
output_buffering  =Off   
output_handler=
implicit_flush= Off
allow_call_time_pass_reference= Off

error_reporting   =E_ALL 
display_errors=On
isplay_startup_errors = Off
log_errors=On
error_log =/var/log/php/php-error.log
track_errors  =On
warn_plus_overloading=Off

variables_order  =  "EGPCS"
register_globals =  Off
register_argc_argv   =Off
post_max_size=8M
magic_quotes_gpc =Off
magic_quotes_runtime =Off
magic_quotes_sybase  =Off
auto_prepend_file=
auto_append_file =

default_mimetype = "text/html"
default_charset  = "EUC-JP"



---

[2001-03-29 18:16:05] [EMAIL PROTECTED]
what does your php.ini, especialy error_reporting look like?

---

The remainder of the comments for this report are too long.  To view the rest of the 
comments, please view the bug report online.


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


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




[PHP-DEV] PHP 4.0 Bug #10087 Updated:

2001-03-31 Thread jmoore

ID: 10087
Updated by: jmoore
Reported By: [EMAIL PROTECTED]
Old-Status: Open
Status: Bogus
Bug Type: Compile Failure
Assigned To: 
Comments:

Not enough information provided please provide more. bogusifying, reopen if you 
provide more information

James

Previous Comments:
---

[2001-03-31 04:56:25] [EMAIL PROTECTED]
A device attached to the system is not functioning. 

---



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


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




[PHP-DEV] PHP 4.0 Bug #10087 Updated:

2001-03-31 Thread jmoore

ID: 10087
Updated by: jmoore
Reported By: [EMAIL PROTECTED]
Old-Status: Bogus
Status: Duplicate
Bug Type: Compile Failure
Assigned To: 
Comments:

Duplicate

Previous Comments:
---

[2001-03-31 05:04:26] [EMAIL PROTECTED]
Not enough information provided please provide more. bogusifying, reopen if you 
provide more information

James

---

[2001-03-31 04:56:25] [EMAIL PROTECTED]
A device attached to the system is not functioning. 

---



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


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




[PHP-DEV] PHP 4.0 Bug #10086 Updated:

2001-03-31 Thread jmoore

ID: 10086
Updated by: jmoore
Reported By: [EMAIL PROTECTED]
Old-Status: Open
Status: Bogus
Bug Type: Compile Failure
Assigned To: 
Comments:

Not enough information provided please provide more. bogusifying, reopen if you 
provide
more information

James

Previous Comments:
---

[2001-03-31 04:55:59] [EMAIL PROTECTED]
A device attached to the system is not functioning. 

---



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


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




[PHP-DEV] PHP 4.0 Bug #10091 Updated: -

2001-03-31 Thread jmoore

ID: 10091
Updated by: jmoore
Reported By: [EMAIL PROTECTED]
Status: Bogus
Bug Type: *General Issues
Assigned To: 
Comments:

Just a note to say this must have been somthing posted a long time ago (at least I 
didnt see it yesterday) and is not a bug or vunrability in PHP as cynic pointed out as 
there are various members of the PHP Team who watch bugtraq and react to anything 
related to PHP.

James

Previous Comments:
---

[2001-03-31 09:42:25] [EMAIL PROTECTED]
1) you don't need mysql for this. any error message contains full path to the script.
2) this will only happen with display_errors on, which is _not_ recommended for 
production sites.
3) I don't think the zillions of PHP coder out there would be grateful if this 
authoring/debugging convenience disappeared.
4) you can always write your own error handler that won't give out the path.

= bogus

---

[2001-03-31 09:35:34] [EMAIL PROTECTED]
at the bugtraq yesterday:
I've found a bug in php/MySQL that can show u the webroot path.

If u ask a non-existent file:
http://xxx.xxx.xxx.xxx/comments.php?file=.3425

server's answer is:

Warning: 0 is not a MySQL result index in 
/www/lc/linstart/www/other_languages/german/comments.php on line 74

I don't know if it's xploitable, I dont'know MySQL.
Let's xploit it!!

Darko


--
But this:
This will only happen if you have NOT turned off the error reporting in the
php.ini file. If you turn it off, and log the errors to a file you will not
get this.


---



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


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




[PHP-DEV] PHP 4.0 Bug #10109 Updated: SMIME Encrypted email

2001-04-02 Thread jmoore

ID: 10109
Updated by: jmoore
Reported By: [EMAIL PROTECTED]
Old-Status: Open
Status: Bogus
Bug Type: *Mail Related
Assigned To: 
Comments:

This is not the place to ask support questions under any circumstances whatso ever. 
Please read bugs dos and donts before posting another bug report.

You might like to try passing arguments to another command line programm or openssl 
might support this (currently undocumented but can be found in php4/ext/openssl

James

Previous Comments:
---

[2001-04-02 07:21:20] [EMAIL PROTECTED]
Sorry but this isn't really a bug, but I'm running out of people to ask.  I've tried 
all the documentation FAQ's i can find and posted to lots of php users groups but 
haven't had a single reply.

I would just like to ask if anyone knows how to send SMIME encrypted email (preferably 
using 168 bit 3DES) using a php script.  I've got a thawte certificate on my web 
server and I have a personal certificate on my machine here.  I've sent a signed email 
to root@mywebserver so it's got my public key for encryption.

I'm a 3rd year university student on placement doing web programming.  I can normally 
find out what I need to know from the manual or my fellow students as there is no 
programmer at this company besides me so I get no help or training.  I would really 
appreciate it if someone has the time to help me with this as I'm really stuck now.

Thanx :-)
Mitchell

---



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


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




[PHP-DEV] PHP 4.0 Bug #10105 Updated: manual_en.chm causes an error in hh.exe when trying to open

2001-04-02 Thread jmoore

ID: 10105
Updated by: jmoore
Reported By: [EMAIL PROTECTED]
Old-Status: Open
Status: Closed
Bug Type: Documentation problem
Assigned To: 
Comments:

They will be rebuilt and readded to the cvs asap. Seems they got corrupted when 
imported into our phpweb cvs.

 - James


Previous Comments:
---

[2001-04-01 20:13:35] [EMAIL PROTECTED]
When I try to open manual_en.chm, I get:

HH caused an invalid page fault in module ITSS.DLL at 0167:5d48d301

I have removed and replaced hh on my system, and it works fine with many other chm 
files (including a copy of mysql.chm and the latest french version of the php manual 
in .chm format).

I have downloaded the manual_en.chm several times, from the main site, and from two 
mirrors.


---



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


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




[PHP-DEV] PHP 4.0 Bug #10125 Updated: installation fails - php doesn't run

2001-04-02 Thread jmoore

ID: 10125
Updated by: jmoore
Reported By: [EMAIL PROTECTED]
Old-Status: Open
Status: Closed
Bug Type: IIS related
Assigned To: 
Comments:

Please contact phill driscoll, [EMAIL PROTECTED], directly. THis error is normally 
caused by mscomctl.ocx not being registered properly. Your second error is somthing 
unrelated to PHP but looks like some problem with northwind examples or somthing like 
that..

James

Previous Comments:
---

[2001-04-02 17:33:10] [EMAIL PROTECTED]
i have a strange bug here, don't now where to search.
when i install php with setup.exe on my win 2000 server, there is a error message:

- component mscomctl.ocx or one of its dependencies not correctly registered, a file 
is missing or invalid

after clicking on OK, php setup says OK, successfull installation. 
i check the isapi extension in IIS 5.0 -- nothing
so, i did manual configuration
every php-script is terminating with a
http error 500 - internal server error
in the system-event-protocol i have an error 10004:
EventID 10004 Source DCOM DCOM got error "Logon failure: unknown user name or bad 
password. " and was unable to logon redmondcomstud in order to run the server: 
{5e9ddec7-5767-11cf-beab-00aa006c3606} 

or similar

same happens with an installation of IHTML or other script-server dll

who can help?



---



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


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




[PHP-DEV] PHP 4.0 Bug #10227 Updated: Comment in MSSQL Page

2001-04-07 Thread jmoore

ID: 10227
Updated by: jmoore
Reported By: [EMAIL PROTECTED]
Old-Status: Open
Status: Closed
Bug Type: Documentation problem
Assigned To: 
Comments:

Thanks.. Ill correct it.

James

Previous Comments:
---

[2001-04-07 18:32:23] [EMAIL PROTECTED]
The Comment Made By:
[EMAIL PROTECTED]
17-Jul-2000 02:07

has an error as follows:

Line 49 Current : print "trtd" . $row.number . "/td" ;
Correction  : print "trtd" . $row_number . "/td" ;


---



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


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




[PHP-DEV] PHP 4.0 Bug #10232 Updated: effects of safemode not described

2001-04-08 Thread jmoore

ID: 10232
Updated by: jmoore
Reported By: [EMAIL PROTECTED]
Old-Status: Open
Status: Closed
Bug Type: Documentation problem
Assigned To: 
Comments:

This is undocumented and unsupported feature and gives a false sense of security which 
it should not really give. 

It might well have a total rewrite or be removed totally in a future version so its 
probably best left undocumented as in its current incarnation its very limited in what 
it does (security should not be at the PHP Level really but at the webserver level 
done with appropriate permissions)..

- James

Previous Comments:
---

[2001-04-08 06:47:04] [EMAIL PROTECTED]
I can't find a description of the effects of turning on the safe mode configuration 
option anywhere in the docs or on the site (even using a search).

There is a user contributed note on the security page that refers you to the php 2 
manual that is no longer present on the server.


---



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


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




[PHP-DEV] PHP 4.0 Bug #10245 Updated: Error when compiling with Oracle support

2001-04-09 Thread jmoore

ID: 10245
Updated by: jmoore
Reported By: [EMAIL PROTECTED]
Old-Status: Open
Status: Closed
Bug Type: Compile Failure
Assigned To: 
Comments:

Jani fixed this in CVS.

- James

Previous Comments:
---

[2001-04-09 11:47:25] [EMAIL PROTECTED]
When compiling the latest version with Oracle support I get the following:

oracle.c: In function `php_minit_oracle':
oracle.c:294: warning: passing arg 1 of `zend_register_list_destructors_ex' from 
incompatible pointer type
oracle.c:295: warning: passing arg 2 of `zend_register_list_destructors_ex' from 
incompatible pointer type
oracle.c: In function `php_info_oracle':
oracle.c:1534: `PHP_ORACLE_DIR' undeclared (first use in this function)
oracle.c:1534: (Each undeclared identifier is reported only once
oracle.c:1534: for each function it appears in.)
oracle.c:1535: `PHP_ORACLE_SHARED_LIBADD' undeclared (first use in this function)
make[3]: *** [oracle.lo] Error 1
make[3]: Leaving directory `/usr/src/INSTALLED_SOFTWARE/php4/ext/oracle'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/usr/src/INSTALLED_SOFTWARE/php4/ext/oracle'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/src/INSTALLED_SOFTWARE/php4/ext'
make: *** [all-recursive] Error 1

I have configured with the following:

"./configure" 
"--with-config-file-path=/mnt/raid/RAID00_5/opt/common/linux/php/config" 
"--with-mysql=/opt/db/mysql/product/3.23.29a-gamma/" 
"--with-oracle=/opt/db/oracle/product/current/" 
"--with-mcrypt=/usr/local/lib/" 
"--prefix=/web/webny/adm/php" 
"--with-oci8=/opt/db/oracle/product/current/" 
"--with-curl=/usr/local/lib/" 
"--disable-posix   " 
"$@"

I downloaded and installed the latest CVS tree on April 6th without this warning.

Thanks.

---



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


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




[PHP-DEV] Bug #10285 Updated: When using php,the cpu is in 100% status!

2001-04-11 Thread jmoore

ID: 10285
Updated by: jmoore
Reported By: [EMAIL PROTECTED]
Old-Status: Open
Status: Feedback
Bug Type: Performance problem
PHP Version: 4.0.4pl1
Assigned To: 
Comments:

Please provide more information, IE does this only happen whith certain scripts? does 
it happen with ISAPI or CGI what webserver are you running? does it happen when you 
connect to SQL Server? Does it happen with earlier versions of php? We are not psycic 
you know!

- James

Previous Comments:
---

[2001-04-11 07:09:45] [EMAIL PROTECTED]
the Database in SQL Server 2000 and,when using php4.04pl1,
the cpu usage is always in 100% status!


---



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


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




[PHP-DEV] Bug #10274 Updated: I get an errormessage every time i use the ftp_support

2001-04-11 Thread jmoore

ID: 10274
Updated by: jmoore
Reported By: [EMAIL PROTECTED]
Old-Status: Open
Status: Bogus
Bug Type: FTP related
PHP Version: 4.0.3pl1
Assigned To: 
Comments:

We are not here to debug your scripts for you. Please slim this entire script down to 
the minimium that it requires to get the same error. This does not look like a bug, 
its also impossible to tell which lines are causing the error as the line numbers in 
the error given are different to the ones on the script.

[EMAIL PROTECTED] is the correct location for asking help with your scripts 
not the bug system, please read bugs do's and donts before posting another bug, if 
this really is a bug reopen the report with a slimed down example script and the exact 
output when you run that script.

-James

Previous Comments:
---

[2001-04-11 06:59:36] [EMAIL PROTECTED]
Ok, this is my skript but i have forgotten to ad an ; at the end of the 4th line.

Now the complete skript:

$ftp_user = "anonymous";
$ftp_pass = "anonymous";
$ftp_server = "redplayer.dynodns.net";
$ftp_port = 21;

$conn_id = ftp_connect($ftp_server, $ftp_port);
$login_result = ftp_login($conn_id, $ftp_user, $ftp_pass);

if ((!$conn_id) || (!$login_result))
{
echo "Ftp connection has failed!brn";
echo "Attempted to connect to $ftp_server for user $ftp_user";
die;
}
else
{
echo "Connected to $ftp_server, for user $ftp_user";

$dir=ftp_pwd($connid);
$list=Array();
$list=ftp_nlist($connid, "$dir");
$i=0;

do
{
echo $list[$i], "";

$i++;
}
while($list[$i]);

ftp_quit($conn_id);
}

// END




---

[2001-04-10 20:47:08] [EMAIL PROTECTED]
Could you please add a complete script into this bug report?
This one seems to be buggy and missing some parts?

Eg. after $ftp_port = 21 --missing ;

--Jani


---

[2001-04-10 17:46:11] [EMAIL PROTECTED]
This is my skript:

$ftp_user = "anonymous";
$ftp_pass = "anonymous";
$ftp_server = "redplayer.dynodns.net";
$ftp_port = 21

$conn_id = ftp_connect($ftp_server, $ftp_port);
$login_result = ftp_login($conn_id, $ftp_user, $ftp_pass);

if ((!$conn_id) || (!$login_result))
{
echo "Ftp connection has failed!brn";
echo "Attempted to connect to $ftp_server for user $ftp_user";
die;
}
else
{
echo "Connected to $ftp_server, for user $ftp_user";

$dir=ftp_pwd($connid);
$list=Array();
$list=ftp_nlist($connid, "$dir");
$i=0;

do
{
echo $list[$i], "";

$i++;
}
while($list[$i]);
}

// END


Every time I want to start this skript i get an errormessage!

Here is the hole output:

Connected to redplayer.dynodns.net, for user anonymous
Warning: Unable to find ftpbuf 0 in /Data/www/ftpconn.php on line 36

Warning: Unable to find ftpbuf 0 in /Data/www/ftpconn.php on line 38

So, please mail me and say what I did wrong if it is not a bug!
Thanks



---



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


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




[PHP-DEV] Bug #10298 Updated: Not receiving emails from PHP-DEV

2001-04-11 Thread jmoore

ID: 10298
Updated by: jmoore
Reported By: [EMAIL PROTECTED]
Status: Bogus
Bug Type: *General Issues
PHP Version: 4.0 Latest CVS (11/04/2001)
Assigned To: 
Comments:

Resubscribe then its working fine for me.

- James

Previous Comments:
---

[2001-04-11 17:36:09] [EMAIL PROTECTED]
Just curious what's going on with PHP-DEV, haven't received an email in 24 hours.

-Chris

---



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


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




[PHP-DEV] Bug #10322 Updated: Logical error in fopen-wrappers.c

2001-04-14 Thread jmoore

ID: 10322
Updated by: jmoore
Reported By: [EMAIL PROTECTED]
Status: Open
Bug Type: PHP options/info functions
PHP Version: 4.0.4pl1
Assigned To: 
Comments:

This will not make it into 4.0.5 as this was branched a while back but it might well 
make it into 4.0.6. Ill get a developer to look at this patch.

- James

Previous Comments:
---

[2001-04-13 20:57:35] [EMAIL PROTECTED]
I thought, while I'm here, I'd submit a patch to fix this.

The patch also includes support for an additional special case in php.ini's 
open_basedir.
The current "." allows scripts to access files in the same directory as the script.
"DOCUMENT_ROOT" allows a script to access any other file in the virtualhost's 
directory tree.  DOCUMENT_ROOT is calculated by PATH_TRANSLATED and removing 
SCRIPT_URI from the end - This conveniently works for both full Apache Virtalhosts and 
mod_aliased Mass virtual hosting (I don't know if this is true for the newer mod_vhost 
- just check what PATH_TRANSLATED and SCRIPT_URI is set to in phpinfo() - if removing 
the latter from the former is the sites docroot then you are away).

Anyway, the patch: code shamelessly copied from the "." segment :)

*** main/fopen-wrappers.c.orig  Fri Apr 13 17:50:02 2001
--- main/fopen-wrappers.c   Sat Apr 14 01:46:28 2001
***
*** 141,151 
char resolved_name[MAXPATHLEN];
char resolved_basedir[MAXPATHLEN];
char local_open_basedir[MAXPATHLEN];
int local_open_basedir_pos;
SLS_FETCH();

/* Special case basedir==".": Use script-directory */
!   if ((strcmp(PG(open_basedir), ".") == 0) 
SG(request_info).path_translated 
*SG(request_info).path_translated
) {
--- 141,167 
char resolved_name[MAXPATHLEN];
char resolved_basedir[MAXPATHLEN];
char local_open_basedir[MAXPATHLEN];
+   char *local_open_request_uri;
int local_open_basedir_pos;
SLS_FETCH();

+   /* Special case basedir="DOCUMENT_ROOT": Restrict to directory of the
+* virtualhost itself as calculated by PATH_TRANSLATED - SCRIPT_URI
+* [EMAIL PROTECTED]
+*/
+   if ((strcmp(basedir, "DOCUMENT_ROOT") == 0) 
+   SG(request_info).path_translated 
+   *SG(request_info).path_translated ) {
+   /* Copy path_translated to local_open_basedir, the look in
+  this string for where request_uri starts and zero that byte
+  thus leaving local_open_basedir set to the virtualhost's
+  DOCUMENT_ROOT */
+   strlcpy(local_open_basedir, SG(request_info).path_translated, si
zeof(local_open_basedir));
+   local_open_request_uri=strstr(local_open_basedir,SG(request_info
).request_uri);
+   if (local_open_request_uri) *local_open_request_uri = '

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




[PHP-DEV] Bug #10218 Updated: preg_replace() with mod e, refs $10 - $19 don't work

2001-04-16 Thread jmoore

ID: 10218
Updated by: jmoore
Reported By: [EMAIL PROTECTED]
Old-Status: Assigned
Status: Closed
Bug Type: *Regular Expressions
PHP Version: 4.0.4pl1
Assigned To: 
Comments:

Fixed in CVS. Andrei forgot to close it.

- James

Previous Comments:
---

[2001-04-06 20:39:07] [EMAIL PROTECTED]
When using preg_replace() with the modifier "e", references 
of the form \3 or $3 don't work correctly for the numbers 
10-19, while they do for 0-9  20-29. A reference to $15 is 
interpreted as a reference to $1 concatenated with the 
number 5. 

Example:

$numbers = "(one) (two) (3) (4) (5) (6) (7) (8) (9) (10) 
(11) (12) (13) (14) (15#5) (16) (17) (18) (19) (20) (21) 
(22) (23)";

$pat_without_mod = "/$numbers/";

$pat_with_e_mod = "/$numbers/e";

$text = "one two 3 4 5 6 7 8 9 10 11 12 13 14 15#5 16 17 18 
19 20 21 22 23";

echo preg_replace($pat_without_mod, "'\1 \15 \21'", 
$text);
// 'one 15#5 21'

echo preg_replace($pat_with_e_mod, "'\1 \15 \21'", 
$text);
// one one5 21

echo preg_replace($pat_without_mod, "'$1 $15 $21'", $text);
// 'one 15#5 21'

echo preg_replace($pat_with_e_mod, "'$1 $15 $21'", $text);
// one one5 21


Configure line (via phpinfo() - I'm not the admin):
'./configure' '--with-apache=../apache_1.3.17' 
'--with-mysql=/usr/local' '--with-jpeg-dir=../jpeg-6b' 
'--with-png' '--with-gd=/usr/local' '--with-ndbm' 
'--without-ttf' '--enable-safe-mode' '--enable-dbase' 
'--enable-filepro' '--enable-ftp' '--disable-debug'

---



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


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




[PHP-DEV] Bug #8186 Updated: PHP4 module causes Apache 1.3.14 to core dump with SIGBUS fault

2001-04-16 Thread jmoore

ID: 8186
Updated by: jmoore
Reported By: [EMAIL PROTECTED]
Old-Status: Feedback
Status: Closed
Bug Type: Reproduceable crash
PHP Version: 4.0.3, 4.0.4
Assigned To: 
Comments:

No feedback please reopen if the problem persists with the soon the be released 4.0.5

- James

Previous Comments:
---

[2001-03-16 00:03:02] [EMAIL PROTECTED]
Can you try the latest CVS snapshot from http://snaps.php.net/ to see if this is fixed 
now?

--Jani


---

[2001-01-07 21:55:00] [EMAIL PROTECTED]
# ldd /opt/apache/bin/httpd
libsocket.so.1 =/usr/lib/libsocket.so.1
libnsl.so.1 =   /usr/lib/libnsl.so.1
libdl.so.1 =/usr/lib/libdl.so.1
libc.so.1 = /usr/lib/libc.so.1
libmp.so.2 =/usr/lib/libmp.so.2
# ldd /opt/apache/libexec/libphp4.so
libpam.so.1 =   /usr/lib/libpam.so.1
libdl.so.1 =/usr/lib/libdl.so.1
libintl.so.1 =  /usr/lib/libintl.so.1
libresolv.so.2 =/usr/lib/libresolv.so.2
libm.so.1 = /usr/lib/libm.so.1
libcrypt_i.so.1 =   /usr/lib/libcrypt_i.so.1
libnsl.so.1 =   /usr/lib/libnsl.so.1
libsocket.so.1 =/usr/lib/libsocket.so.1
libc.so.1 = /usr/lib/libc.so.1
libgen.so.1 =   /usr/lib/libgen.so.1
libmp.so.2 =/usr/lib/libmp.so.2


---

[2001-01-07 19:05:10] [EMAIL PROTECTED]
What are the outputs for these commands:

# ldd /opt/apache/bin/httpd
# ldd /opt/apache/libexec/libphp4.so

--Janie 

---

[2000-12-11 18:09:50] [EMAIL PROTECTED]
New backtrace from dev200012111345 with PHP debugging enabled:
Raw corefile available in ftp://ftp.proft.org/pub/php4-200012111345.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-solaris2.7"...
Core was generated by `bin/httpd -X'.
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/libnsl.so.1...done.
Loaded symbols for /usr/lib/libnsl.so.1
Reading symbols from /usr/lib/libdl.so.1...done.
Loaded symbols for /usr/lib/libdl.so.1
Reading symbols from /usr/lib/libc.so.1...done.
Loaded symbols for /usr/lib/libc.so.1
Reading symbols from /usr/lib/libmp.so.2...done.
Loaded symbols for /usr/lib/libmp.so.2
Reading symbols from /usr/lib/nss_files.so.1...done.
Loaded symbols for /usr/lib/nss_files.so.1
Reading symbols from /usr/lib/nss_dns.so.1...done.
Loaded symbols for /usr/lib/nss_dns.so.1
Reading symbols from /opt/apache/libexec/mod_log_agent.so...done.
Loaded symbols for /opt/apache/libexec/mod_log_agent.so
Reading symbols from /opt/apache/libexec/mod_log_referer.so...done.
Loaded symbols for /opt/apache/libexec/mod_log_referer.so
Reading symbols from /opt/apache/libexec/mod_mime_magic.so...done.
Loaded symbols for /opt/apache/libexec/mod_mime_magic.so
Reading symbols from /opt/apache/libexec/mod_info.so...done.
Loaded symbols for /opt/apache/libexec/mod_info.so
Reading symbols from /opt/apache/libexec/mod_speling.so...done.
Loaded symbols for /opt/apache/libexec/mod_speling.so
Reading symbols from /opt/apache/libexec/mod_rewrite.so...done.
Loaded symbols for /opt/apache/libexec/mod_rewrite.so
Reading symbols from /opt/apache/libexec/mod_auth_anon.so...done.
Loaded symbols for /opt/apache/libexec/mod_auth_anon.so
Reading symbols from /opt/apache/libexec/mod_cern_meta.so...done.
Loaded symbols for /opt/apache/libexec/mod_cern_meta.so
Reading symbols from /opt/apache/libexec/mod_expires.so...done.
Loaded symbols for /opt/apache/libexec/mod_expires.so
Reading symbols from /opt/apache/libexec/libphp4.so...done.
Loaded symbols for /opt/apache/libexec/libphp4.so
Reading symbols from /usr/lib/libpam.so.1...done.
Loaded symbols for /usr/lib/libpam.so.1
Reading symbols from /usr/lib/libintl.so.1...
warning: Lowest section in /usr/lib/libintl.so.1 is .hash at 0074
done.
Loaded symbols for /usr/lib/libintl.so.1
Reading symbols from /usr/lib/libresolv.so.2...done.
Loaded symbols for /usr/lib/libresolv.so.2
Reading symbols from /usr/lib/libm.so.1...done.
Loaded symbols for /usr/lib/libm.so.1
Reading symbols from /usr/lib/libcrypt_i.so.1...done.
Loaded symbols for /usr/lib/libcrypt_i.so.1
Reading symbols from /usr/lib/libgen.so.1...done.
Loaded symbols for /usr/lib/libgen.so.1
#0  0xdf85

[PHP-DEV] Bug #8542 Updated: Loading Module libphp4.so

2001-04-16 Thread jmoore

ID: 8542
Updated by: jmoore
Reported By: [EMAIL PROTECTED]
Old-Status: Feedback
Status: Closed
Bug Type: Apache related
PHP Version: 4.0.3pl1
Assigned To: 
Comments:

Please try this with 4.0.5 when it is released and repoen report if the problem still 
persists

- James

Previous Comments:
---

[2001-03-16 21:00:28] [EMAIL PROTECTED]
Please try the latest CVS snapshot from http://snaps.php.net/

--Jani


---

[2001-01-03 15:22:42] [EMAIL PROTECTED]
When I type
# apachectl restart
it returns the following error:
Syntax error on line 274 of /etc/httpd/httpd.conf:
Cannot load /usr/lib/apache/libphp4.so into server: /usr/lib/apache/libphp4.so: 
undefined symbol: ds_set_boolean
/usr/sbin/apachectl start: httpd could not be started

Trying to load libphp4.so from php4.0.4, I obtain the same, but the symbol undefined 
is "__dn_expand"

Thanks.

Salvatore di Maggio


---



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


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




[PHP-DEV] Bug #9194 Updated: Objects not properly stored as session variables

2001-04-16 Thread jmoore

ID: 9194
Updated by: jmoore
Reported By: [EMAIL PROTECTED]
Old-Status: Feedback
Status: Closed
Bug Type: Class/Object related
PHP Version: 4.0.4pl1
Assigned To: andre
Comments:

Please provide code and reopen bug report. This bug report is getting old and has been 
waiting for your reduced code fragment for over a month.

- James

Previous Comments:
---

[2001-02-20 00:44:04] [EMAIL PROTECTED]
Please provide a reduced code fragment (15 lines) producing
this behaviour.
Put no database queries etc. in it and rely on no external
files/functions to ensure that we can reproduce it easily
unless the problem is not directly related to some db (or
similar) function.

---

[2001-02-09 11:00:20] [EMAIL PROTECTED]
Look at
http://mail2.anduin.net/index.phps for sourcecode of failing page.
http://mail2.anduin.net/index.php to test, use test/test as username/password.

Bug is as follows:
I define the class "user", call session_start(), create an instance of the object 
called $currentuser, register this variable using session_register() (i tried doing 
this both before and after the instancination). Upon creating, the object sets some 
internal variables in its constructor, like "fullname".
When loading the page again, having the session-id in PHPSESSID, the object shows up 
as existing, but trying to call a method or view a property fails with the message:
Fatal error: The script tried to execute a method or access a property of an 
incomplete object. Please ensure that the class definition user of the object you are 
trying to operate on was loaded _before_ the session was started in 
/home/ltning/webmail2/index.php on line 34

I see this bug has been reported before and considered fixed, but it doesn't seem to 
be. Running latest (4.04pl1) PHP.

best regards,
Eirik Overby

---



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


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




[PHP-DEV] Bug #9521 Updated: segfault oci8 with oracle 8.1.7

2001-04-16 Thread jmoore

ID: 9521
Updated by: jmoore
Reported By: [EMAIL PROTECTED]
Old-Status: Feedback
Status: Closed
Bug Type: OCI8 related
PHP Version: 4.0.4pl1
Assigned To: 
Comments:

Please try this with 4.0.5 when it is released and repoen report if the problem still 
persists

- James

Previous Comments:
---

[2001-03-02 09:34:34] [EMAIL PROTECTED]
1. Have you set the Oracle specific environment vars mentioned 
at http://www.php.net/oci8 before starting apache?
2. Is your apache linked with phtread library?

If answer is yes to both of the questions, please generate
a gdb backtrace of the crash. Remember to first configure 
PHP with --enable-debug (and recompile it)

--Jani


---

[2001-03-02 04:42:19] [EMAIL PROTECTED]
after successfully compiling of PHP4.0.4 and Oracle 8.1.7
it's not possible to start the apache 1.3.12 server because of a segfault failure 

---



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


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




[PHP-DEV] Bug #9775 Updated: libmcrypt-2.4.9 causes random segmentation faults

2001-04-16 Thread jmoore

ID: 9775
Updated by: jmoore
Reported By: [EMAIL PROTECTED]
Old-Status: Feedback
Status: Assigned
Bug Type: Reproduceable crash
PHP Version: 4.0.4pl1
Assigned To: derick
Comments:

Derick Ill assign this one to you so you remember it.. you said you had a fix.

- James

Previous Comments:
---

[2001-03-16 09:36:27] [EMAIL PROTECTED]
These memleaks where indeed caused by not freeing the key. Fix is pending until I have 
access to CVS again.

---

[2001-03-16 09:26:03] [EMAIL PROTECTED]
Those memleaks can in no way crash php too. It seems to
me that the key is not freed. I'll check this part out.

---

[2001-03-15 23:09:58] [EMAIL PROTECTED]
I had those same segfaults but after I updated my GDB to
version 5.0 they didn't happen again. So please try
updating your GDB and try generating the backtrace for
the crashes again. FYI: The author of libmcrypt has 
said that some of these crashes are actually bugs in
the libmcrypt itself..

--Jani


---

[2001-03-15 22:16:23] [EMAIL PROTECTED]
./configure --with-apxs --with-mcrypt --with-mhash --with-mysql=../../mysql --with-gd 
--enable-versioning --with-ttf --with-jpeg-dir=../jpeg-6b 

Apache 1.3.19, mod_ssl 2.8.1-1.3.19, mm 1.1.3, libmcrypt 2.4.9, mhash 0.8.9, mysql 
3.23.34, gd 1.8.4, libpng 1.0.9, freetype 2.0, zlib 1.1.3, jpeg-6b

Some scripts seemed to crash inexplicably (eg. during code that wasn't even calling 
any functions), and apache's error_log contains lines similar to:
[Fri Mar 16 13:58:06 2001] [notice] child pid 15396 exit signal Segmentation fault 
(11)

The same code sometimes segfaulted and sometimes didn't, and trying to pinpoint the 
exact crash line by inserting die() commands, would sometimes give different death 
locations.

I tracked down the problem location, firstly by recompiling PHP with --enable-debug, 
and then by using gdb's backtrace function. I will now give both of these results.

When --enable-debug is added to the above configure line, no segmentation faults 
occur, but the apache error log contains lines such as:
mcrypt.c(1240) :  Freeing 0x081957D4 (8 bytes), script=/var/www/activate/calculate.php
Last leak repeated 1 times.
mcrypt.c(1240) :  Freeing 0x081D1A34 (24 bytes), script=/var/www/paygate/confirm.php

The scripts in question contain a line:
$target = mcrypt_cbc(MCRYPT_DES, $product, $serial, MCRYPT_DECRYPT);
The first mcrypt error message above was for MCRYPT_DES, and the second was for 
MCRYPT_TripleDES.

So my guess would be that this memory leak is causing all of my crashes mentioned 
above.

[Note: Adding an initialization vector as a fifth parameter, or instead using 
mcrypt_encrypt() as describe in the manual, does not correct the problem in any 
respect.]

After finding this, I recompiled PHP without --enable-debug, and used GDB backtrace 
function. The first trace below occurs at the MCRYPT_DES line above, and the second 
trace occurs in a function a fair way after the MCRYPT_TripleDES line mentioned above 
(presumably it left memory corrupted or something).

[root@ptl3 bin]# gdb httpd   
GNU gdb 4.17.0.11 with Linux support
Copyright 1998 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "i386-redhat-linux"...
(gdb) run -X
Starting program: /usr/local/apache/bin/httpd -X
Cannot access memory at address 0x7972.
(gdb) bt
#0  _dl_debug_state () at dl-debug.c:56
#1  0x4000a12b in _dl_catch_error (errstring=0xbfffc5cc, operate=0x402607a0 
dl_open_worker, 
args=0xbfffc5d0) at dl-error.c:141
#2  0x402609fd in _dl_open (file=0x8183f70 "/usr/local/lib/libmcrypt/des.so", 
mode=257)
at dl-open.c:176
#3  0x40186058 in dlopen_doit (a=0xbfffc6d8) at dlopen.c:39
#4  0x4000a12b in _dl_catch_error (errstring=0x40187d00, operate=0x40186030 
dlopen_doit, 
args=0xbfffc6d8) at dl-error.c:141
#5  0x40186608 in _dlerror_run (operate=0x40186030 dlopen_doit, args=0xbfffc6d8)
at dlerror.c:122
#6  0x4018601d in __dlopen_check (file=0x8183f70 "/usr/local/lib/libmcrypt/des.so", 
mode=257)
at dlopen.c:50
#7  0x40508c91 in sys_dl_open (handle=0x8183ec0, 
filename=0x8183f70 "/usr/local/lib/libmcrypt/des.so") at ltdl.c:266
#8  0x405091ad in tryall_dlopen (handle=0xbfffc814, 
filename=0x8183f70 "/usr/local/lib/libmcrypt/des.so") at ltdl.c:943
#9  0x405092be in find_module (handle=0xbfffc814, dir=0x8183e80 
"/

[PHP-DEV] Bug #9803 Updated: php.ini not being parsed at start up

2001-04-16 Thread jmoore

ID: 9803
Updated by: jmoore
Reported By: [EMAIL PROTECTED]
Old-Status: Feedback
Status: Closed
Bug Type: *Configuration Issues
PHP Version: 4.0.4pl1
Assigned To: 
Comments:

Please try this with 4.0.5 when it is released and repoen report if the problem still 
persists. Also check php.ini is in the right location. you can see this location from 
the output of phpinfo().

- James

Previous Comments:
---

[2001-03-17 13:08:19] [EMAIL PROTECTED]
By default, PHP looks for php.ini in /usr/local/lib
Is that the directory you have php.ini in?

--Jani


---

[2001-03-16 23:21:42] [EMAIL PROTECTED]
A change I've made to  php.ini has no effect.  Iv'e tried restarting apache and 
re-booting linux with no results. I tried renaming the php.ini file to see if apache 
or php4 would complain but , neither did. So I suspect that the php.ini file is not 
being parsed at startup of apache. I am using the dynamic model of apache and php4, 
4.0.4pl1 with apache 1.3.3. 

How can I solve this problem?

configure --with-apxs --with-mysql=/path /to/mysql

I tried to change: magic_quotes_gpc, from 'On' to 'Off'.



---



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


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




[PHP-DEV] Bug #9804 Updated: Incorrect File type check

2001-04-16 Thread jmoore

ID: 9804
Updated by: jmoore
Reported By: [EMAIL PROTECTED]
Old-Status: Feedback
Status: Closed
Bug Type: GD related
PHP Version: 4.0.4pl1
Assigned To: 
Comments:

This is caused by  gd not returhning an imagepointer and from the sounds of it is a 
bug in GD and not PHP, the error message is slightly misleading although this is the 
most likley cause. If the same script is working with php created jpegs etc then your 
images are either being corrupted or its a bug in GD. It does not look like a bug in 
PHP.

- James

Previous Comments:
---

[2001-03-17 13:17:38] [EMAIL PROTECTED]
Please add a shortest possible script into this bug report
which can be used to reproduce this problem.


--Jani

---

[2001-03-17 05:28:56] [EMAIL PROTECTED]
in my original post, I made refernce to WBMP files.  that should have been GIF files, 
not WBMP. So the problem im having is with GIF, and JPEG files.

---

[2001-03-17 04:22:24] [EMAIL PROTECTED]
I'm attempting to create a script that accepts  bmp and jpg files uploaded by a user 
and converts them into jpg or bmp files as requested by the user, using the 
ImageCreateFromWBMP, and ImageJPEG functions. But, each time I upload a BMP or JPEG 
image, I get the message:

"Warning: imagecreatefromwbmp: 'image.bmp' is not a valid WBMP file in 
/script/location/here.php on line#"

These BMP and jpeg images are created in photoshop 5.5, and windows paint program on 
win 2000, and 98 platforms and according to thos programs, the file-types are valid.

But, if I use the imagecreate function to generate a  jpeg image (from a string of 
text), save, and upload that jpeg file to my server, then run the same script on it to 
convert it to another file format, no error/warning messages are generated So 
apparantly, php can work on images generated by a php script, but no others.

What makes it even more odd, is that upon uploading an image (one made in photoshop or 
paint) using my script, I have it setup such that a confirmation screen is generated 
where the users are provided with the size and format/type of the uploaded file, and 
theyre always reported as being:
image/jpg
or image/bmp
yet they are flagged as invalid when another php script attempts to manipulate them.

is the problem on my end, am I doing something wrong? Is it that php can't handle 
images created by photoshop  and paint?  or is that the criteria used to validate the 
image format in php is flawed?

Thanx.

---



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


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




[PHP-DEV] Bug #10328 Updated: install.txt is OUTDATED.

2001-04-16 Thread jmoore

ID: 10328
Updated by: jmoore
Reported By: [EMAIL PROTECTED]
Old-Status: Feedback
Status: Closed
Bug Type: Documentation problem
PHP Version: 4.0.4pl1
Assigned To: 
Comments:

The install instructions are fine I have updated the order slightly but they are 
perfectly correct.

-James

Previous Comments:
---

[2001-04-14 17:57:20] [EMAIL PROTECTED]
It looks ok to me - what's wrong with it?

---

[2001-04-14 17:01:41] [EMAIL PROTECTED]
Try and follow the info in install.txt for
setting up PHP4 with Apache on a windows machine.
You can't.

---



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


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




[PHP-DEV] Bug #3674 Updated: Backreferences need 2 backslashes to work in preg_* functions

2001-04-16 Thread jmoore

ID: 3674
Updated by: jmoore
Reported By: [EMAIL PROTECTED]
Old-Status: Open
Status: Closed
Bug Type: Documentation problem
PHP Version: 4.0
Assigned To: 
Comments:

This has been corrected in documentation.

-James

Previous Comments:
---

[2001-02-10 14:39:17] [EMAIL PROTECTED]
refiled against 4.0. the sections of pcre.xml lifted from the pcre docs probably needs 
a caveat added about how backslashes need to be handled.

---

[2000-02-29 20:56:21] [EMAIL PROTECTED]
In the documentation it says that the backreferences should be used with one 
backslash.  Well, it doesn't work.  But, in the preg_replace documentation examples 
that you should use 2 backslashes (and it works in all functions the second way)

---



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


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




[PHP-DEV] Bug #3859 Updated: Null values in ODBC Databases

2001-04-16 Thread jmoore

ID: 3859
Updated by: jmoore
Reported By: [EMAIL PROTECTED]
Status: Open
Old-Bug Type: ODBC related
Bug Type: Feature/Change Request
PHP Version: 4.0
Assigned To: 
Comments:

This might be possible with === in php4 but changing to feature change request.

Previous Comments:
---

[2001-02-10 14:14:41] [EMAIL PROTECTED]
refiling against 4.0.

---

[2000-03-17 11:00:18] [EMAIL PROTECTED]
I think you should add the support of null values to the ODBC database functions. It 
should be possible to write null values with insert an update - statements and to 
recognize null return values. Perhaps the returned variables should then be undefined 
variables.



---



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


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




[PHP-DEV] Bug #4965 Updated: psp4isapi.dll crashes inetinfo.exe on service start

2001-04-16 Thread jmoore

ID: 4965
Updated by: jmoore
Reported By: [EMAIL PROTECTED]
Old-Status: Open
Status: Closed
Bug Type: Reproduceable crash
PHP Version: 4.0.4-dev-win32-2000-11-07
Assigned To: 
Comments:

CLosing been about for 4 months waiting for feedback. ISAPI is unstable under NT4 for 
reasons best known to MSFT and its hidden API but works fine under Win 2k. There isnt 
enough information here to really work with debugging and fixing wise.

Previous Comments:
---

[2000-12-23 21:14:50] [EMAIL PROTECTED]
As you are using NT 4 can you please contact phill driscoll([EMAIL PROTECTED]) if 
you are willing to do some testing. The isapi filter is VERY unstable under NT4 but 
seems fine under win2k so there is question over wether this will bve fixed/can be. 
Most of the QA team other than phill use IIS 5 and it works OK under that. if you 
would be interested in helping us test then please see contact info on 
http://qa.php.net/

James

---

[2000-11-15 06:47:30] [EMAIL PROTECTED]
  I have just tried the latest dev version, again upon starting the w3svc I recieve an 
Application error OleMainThreadWndName: inetinfo.exe, and the service never starts.  
As soon as I remove the filter from the ISAPI filters list, the w3svc will start 
properly.  The service error report is System Error 1067, the service terminated 
unexpectedly.  Hope this helps,
  Mike Auty

---

[2000-11-01 12:35:17] [EMAIL PROTECTED]
Could you try some php4.0.4-dev version from
http://php4win.de/ ??

--Jani

---

[2000-09-05 19:08:02] [EMAIL PROTECTED]
Jani,
  I've just tried the latest version 4.0.2, and unfortunately yes, IIS 4 still crashes 
on starting the w3svc with an error in inetinfo.exe when the php4isapi.dll is set 
under the ISAPI filters tab on the master web properties.  Again if you need any more 
information to resolve this bug, just ask.
  Mike Auty

---

[2000-09-04 22:15:51] [EMAIL PROTECTED]
Is this still happening with php4.0.2 ?

--Jani

---

The remainder of the comments for this report are too long.  To view the rest of the 
comments, please view the bug report online.


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


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




[PHP-DEV] Bug #7512 Updated: System restart required

2001-04-16 Thread jmoore

ID: 7512
Updated by: jmoore
Reported By: [EMAIL PROTECTED]
Old-Status: Open
Status: Closed
Bug Type: PWS related
PHP Version: 4.0.3pl1
Assigned To: 
Comments:

You have to restart PWS which is done by rebooting your system. Perhaps somthing for 
the 4.0.5 installer to do.

-James

Previous Comments:
---

[2000-10-28 04:35:54] [EMAIL PROTECTED]
I installed version 4 of PHP in conjunction with PWS. The setup programs configures 
the system automatically.

However, a restart of the Windows system is required before anything actually starts 
to work.

The setup program nor the documenation says you have to restart your system.

The setup program should really prompt you to restart it.

Hope this help,

-Lars

---



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


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




[PHP-DEV] Bug #7737 Updated: Access Violation at 03F74CE6

2001-04-16 Thread jmoore

ID: 7737
Updated by: jmoore
Reported By: [EMAIL PROTECTED]
Old-Status: Open
Status: Closed
Bug Type: IIS related
PHP Version: 4.0.3pl1
Assigned To: 
Comments:

Not really enough information to work on. Ill install IIS 4 on NT when I get a chance 
and have a play with a debugger but its very difficult to get any useful information 
from services.

-James

Previous Comments:
---

[2000-11-10 03:36:51] [EMAIL PROTECTED]
Sorry! The error is NOT reproducable (but it happens from time to time at no specific 
cause)

Sincerely
Lars Westermann

---

[2000-11-10 03:30:11] [EMAIL PROTECTED]
I have installed the binary Win32 distribution on both Win98 and WinNT. Occasionally 
both produce this access violation, but reproducable. Both run with the ISAPI module 
on IIS/4.0.

From the NT-box I have this information from the System Log (Event Detail):

The HTTP server encountered an unhandled exception while processing the ISAPI 
Application php4ts!hashpjw + 0x13

Hope that helps you in the investigation.

Sincerely
Lars Westermann

---



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


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




[PHP-DEV] Bug #7971 Updated: Unable to open web sites using fope()n command

2001-04-16 Thread jmoore

ID: 7971
Updated by: jmoore
Reported By: [EMAIL PROTECTED]
Old-Status: Open
Status: Analyzed
Bug Type: Sockets related
PHP Version: 4.0.3pl1
Assigned To: 
Comments:

the fopen wrappers do not currently handle redirects (unless this has been correct) 
use http://www.php.net/ and it will work.

- James

Previous Comments:
---

[2000-11-25 15:46:41] [EMAIL PROTECTED]
**This is the code **
?
// Headlines Grabber by Neil Moomey, www.neilmoomey.com.
// You are free to use this code as you wish.
// Make sure you get permission from any web sites you grab code from.
// You may want to write the headlines to a file on your server to speed things up.
 
// Grab source code from a file or web site
if(!($myFile=fopen("http://www.php.net","r")))
{
echo "The news interface is down for maintenance.";
exit;
}
while(!feof($myFile))
{
// Read each line and add to $myLine
$myLine.=fgets($myFile,255);
}
fclose($myFile);
// Extract everything between start and end.  You need to include these lines
//in the headlines or pick some unique  substring in the html to mark the start 
//and end of the news.
$start="!---START OF HEADLINES---";
$end="!---END OF HEADLINES---";
$start_position=strpos($myLine, $start);
$end_position=strpos($myLine, $end)+strlen($end);
$length=$end_position-$start_position;
$myLine=substr($myLine, $start_position, $length);
// Display HTML
echo $myLine;

?
**end of code**

**error message**
Warning: fopen("http://www.php.net","r") - Undefined error: 0 in 
/var/apache/htdocs/news/parse_site4.php on line 8
The news interface is down for maintenance.
**end of error message**


---



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


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




[PHP-DEV] Bug #7989 Updated: Access Violation persistent connection

2001-04-16 Thread jmoore

ID: 7989
Updated by: jmoore
Reported By: [EMAIL PROTECTED]
Old-Status: Open
Status: Duplicate
Bug Type: IIS related
PHP Version: 4.0.3pl1
Assigned To: 
Comments:

ANd another access violation on IIS

Previous Comments:
---

[2000-11-27 03:40:00] [EMAIL PROTECTED]
After that error is IIS unstopable, the only way to stop it is command prompt 'kill 
-f' (or os restart).

---

[2000-11-27 03:25:55] [EMAIL PROTECTED]
os: win2000 advanced server
web server: IIS 5 + ISAPI PHP 4.0.3pl1
db server: MS SQL 7 (same machine)
used script:
?php
  $conn = mssql_pconnect("sername","test","test") or die("error when connecting");
  $db = mssql_select_db ("Northwind", $conn) or die("error when selectin db");
?

error msg: 
PHP has encountered an Access Violation at 73342F43

When I press Refresh in IE, in 50% results it's ok and in 50% I get that error 
message. If I change 'pconnect' to 'connect', no error apperars.

When I try Apache (module or cgi) instead of IIS, everything is ok.

---



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


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




[PHP-DEV] Bug #8077 Updated: Exec, passthru, system bugs for php ISAPI CGI

2001-04-16 Thread jmoore

ID: 8077
Updated by: jmoore
Reported By: [EMAIL PROTECTED]
Old-Status: Open
Status: Duplicate
Bug Type: Program Execution
PHP Version: 4.0.1pl2
Assigned To: 
Comments:

Duplicate of 4761

Previous Comments:
---

[2000-12-02 09:23:30] [EMAIL PROTECTED]
I have been playing with php for quite long, and have many chances answering people 
question in www.experts-exchange.com

But, this is a question that noone can answer yet :

When you install PHP4 in Win98 (I install both in Apache for Win and PWS, and some has 
similar problem in IIS) :

file : try.php
?
system("dir/w  c:\dir.txt");
print join("",file("c:\dir.txt");
?

The execution of system() runs ok, but the 2'nd statement is never executed (the 
browser simply hang).
But if I do :
C:php try.php

it runs ok !!

When I do exec() or system() or variant of it, PHP always open a new window (DOS) to 
perform the task, but then it failed to kill that process (or failed to return the 
handler to web server itself)...

If this is a really bug, then Zend must consider this is a serious bug since many 
people have asked "how to delete a file in Win/PWS - NT/IIS" simply because they can't 
do unlink() and using exec() always fail ...

Oh ya, you may also notice if() statement :

if ($x=1  $myname="alex" || $x=2) print "$x $myname";

it will print "1 1" ?? whereas in Perl (and other prog language) should print "1 alex" 
... 

it may cause bug if someone write :

function f1()
{if (???) return 1; else return "a";}

function f2()
{if (???) return 2; else return "b";}

function f3()
{if (???) return 3; else return "c";}

if ($x=f1() || $x=f2() || $x=f3())
   print "function(s) debug value : $x";

It will do wrongly ...

rgds,

Alexander Yanuar Koentjara
System Developer
www.globalsources.com

---



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


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




[PHP-DEV] Bug #8295 Updated: absolute path in extension= directive in php.ini not recognized

2001-04-16 Thread jmoore

ID: 8295
Updated by: jmoore
Reported By: [EMAIL PROTECTED]
Status: Open
Old-Bug Type: *Configuration Issues
Bug Type: Feature/Change Request
PHP Version: 4.0 Latest CVS (16/12/2000)
Assigned To: 
Comments:

This is the correct behaviour. WIll change to feature/change request.

-James

Previous Comments:
---

[2001-01-03 10:28:07] [EMAIL PROTECTED]
Works with extension_dir now, but the extension directive should care about an 
absolute path.

---

[2001-01-03 10:17:25] [EMAIL PROTECTED]
Did you try using extension_dir directive?

---

[2000-12-24 12:22:20] [EMAIL PROTECTED]
Has it been fixed already now in CVS? (Can't test it at the moment)

---

[2000-12-16 12:18:42] [EMAIL PROTECTED]
Hi,

we had our extension fastsearch.so in /etc/httpd and in /usr/local/lib/php.ini
the following directive:

extension=/etc/httpd/fastsearch.so

PHP failed in loading this extension because it searched in:

/usr/local/lib/php/extensions/no-debug-zts-BUILDDATE//etc/httpd/fastsearch.so

As a workaround, I made a symlink, but I wonder why PHP doesn't accept extensions 
having in another path than /usr/local/lib/php/extension/... ?

TIA, Björn.

---



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


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




[PHP-DEV] Bug #8389 Updated: Easy access to non-php files using php.exe

2001-04-16 Thread jmoore

ID: 8389
Updated by: jmoore
Reported By: [EMAIL PROTECTED]
Old-Status: Open
Status: Closed
Bug Type: Apache related
PHP Version: 4.0.4
Assigned To: 
Comments:

you should use --force-cgi-redirect IIRC its called somthing like that this issue is 
well documented and you get warnings once you have configured about this too.

-James

Previous Comments:
---

[2000-12-23 14:29:24] [EMAIL PROTECTED]
On my web server (Apache 1.3.12)  I installed php using cgi.  On my computer the path 
to php.exe d:/theserver/cgi-bin/php and on my intranet site it is 
http://intranet/cgi-bin/php  I use php and perl on my server, but I figured out a way 
to get the source of perl script by using php.exe.  If I had a file called 
printable.cgi.  I could get the source by typing 
http://intranet/cgi-bin/php/php/printable.cgi  

---



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


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




[PHP-DEV] Bug #8434 Updated: PHP has encountered an Access Violation at 01292466

2001-04-16 Thread jmoore

ID: 8434
Updated by: jmoore
Reported By: [EMAIL PROTECTED]
Old-Status: Open
Status: Duplicate
Bug Type: IIS related
PHP Version: 4.0.4
Assigned To: 
Comments:

ANother Access violation in IIS bug.

-James

Previous Comments:
---

[2001-01-08 10:05:52] [EMAIL PROTECTED]
Well, that _is_ a good question: I have absolutely no idea which instruction causes 
the problem !

As said in my report, the error can appear on any of my 30+ scripts on the site. The 
error does not have a preference for any of the scripts either. It just appears 
_randomly_ on any of the scripts at a random time and at random frequency. I sometimes 
have the error 2 to 5 times a day, and sometimes it will not appear for 2 days at all. 
I know that doesn't help you much, but that's about as precise as I can be.

That's why I gave you all the information necessary to rebuild an exact copy of 1 of 
my scripts and see _if_ you get the error at all. It will be necessary though that you 
test it on the same platform as I run it: Win 2K Server with IIS 5.0 and PHP-4.0.4 as 
ISAPI (php4isapi.dll). The database runs on a separate server (Win NT4 Server SP6).

Hope you find a clue where to start looking (as a novice, I'd say in the .DLL). If you 
need any further information, do not hesitate !


Greetings,

Steven

---

[2001-01-08 08:59:28] [EMAIL PROTECTED]
can you please cut down the code to the min. needed to reproduce it?

---

[2000-12-27 07:27:56] [EMAIL PROTECTED]
Still having same bug in PHP-4.0.4 Win ISAPI module...
Randomly showing error "PHP has encountered an Access Violation at 01292466" (the 
number changes every time the error occurs) upon call to PHP ISAPI engin. The error 
can occur on any of my 30+ scripts on this site.

This problem persists since at least 3.0.3pl1. When will this nightmare be over ?? I 
have to switch back to a CGI environment, which slows down PHP execution far too 
much...

Restarting IISAdmin does get the engine running properly again... until the next 
"Access Violation"...

Almost all of the bug reports concerning this error have not even been assigned to 
anyone. Does this mean you're not going to try to get rid of this problem ?

If you have any questions regarding the script below, do not hesitate to contact me!

All in all: thanks for bringing us PHP and keep up the good work !

Steven VAN POECK

One piece of code on which the error occurs:

include( "common.php" );

// Call session (if any)
session_save_path("tmp");
session_start();
// Empty basket
$sql = "DELETE FROM panier WHERE client_id='$user'";
mysql_pconnect( $db_host, $db_user, $db_pass );
$result = mysql_db_query( $db_dag, $sql );
check_error( $result );

// Set user state to "D" (deconnected)
$sql = "UPDATE client SET state='D' WHERE id='$user'";
mysql_pconnect( $db_host, $db_user, $db_pass );
$result = mysql_db_query( $db_dag, $sql );
check_error( $result );

// destroy session (if any)
session_destroy();

// Get highest client ID
$sql = "SELECT MAX(id) AS max_id FROM client";
mysql_pconnect( $db_host, $db_user, $db_pass );
$result = mysql_db_query( $db_dag, $sql );
check_error( $result );
$data = mysql_fetch_object( $result );
$last_client = $data-max_id;
// Define new client ID
if( substr($last_client, 1)  5000 ){
$numero_client = P5101; /* For very first client */
}else{
$numero_client = "P".(substr($last_client, 1) + 1);
}
// Get password of the day
$today = date("Y-m-d", time());
$mdp = create_pass();
// Define timestamp for expiration time
$exp_time = time()+1800;

$sql = "INSERT INTO client VALUES( '$numero_client', PASSWORD('$mdp'), '$today', 
'$today', '0', 'DP', '$exp_time', 'C')";
mysql_pconnect( $db_host, $db_user, $db_pass );
$result = mysql_db_query( $db_dag, $sql );
check_error( $result );

// Initialise session
session_save_path( "tmp" );
session_register("user");
$user = $numero_client;
session_register("key");
$key = $mdp;
session_register("type");
$type = "p_";
session_register( "cadeau_1" );
$cadeau_1 = 0;
// Send user to the site
header( "Location:/pcgi/display_rubr.php?".SID."rubr=".urlencode(${$type."rubr_def"}) 
);
---
The function "create_pass()":
---
function create_pass(){
global $db_host, $db_user, $db_pass, $db_adm;
$alpha = array('a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k',
'l', 'm', 'n', 'o', 'p', 'q', 'r', 's

[PHP-DEV] Bug #8691 Updated: Periodically recieve Unable to create Java Virtual Machine when running test

2001-04-16 Thread jmoore

ID: 8691
Updated by: jmoore
Reported By: [EMAIL PROTECTED]
Old-Status: Open
Status: Feedback
Bug Type: Java related
PHP Version: 4.0.3pl1
Assigned To: 
Comments:

Does this happen after 3 JVM's have been created?

-James

Previous Comments:
---

[2001-01-13 17:00:11] [EMAIL PROTECTED]
Environment:

Linux 6.1, Kernel 2.1.12, Apache 1.3.14 (build locally from SRPM), java2 JDK1.2.2 
(build locally from source), php 4.0.3pl1 (build locally from modified SRPM).

php.ini java config:

java.class.path = 
/usr/lib/php4/php_java.jar:/usr/lib/java/jdk-1.2.2-devel/build/linux/lib/ext/iiimp.jar:/usr/lib/java/jdk-1.2.2-devel/build/linux/lib/i18n.jar

java.library = /usr/lib/java/jdk-1.2.2-devel/build/linux/lib/i386/libjava.so
java.library.path = 
/usr/lib/php4:/usr/lib/java/jdk-1.2.2-devel/build/linux/lib:/usr/lib/java/jdk-1.2.2-devel/build/linux/lib/i386/classic:/usr/lib/java/jdk-1.2.2-devel/build/linux/lib/i386/native_threads


Test Script:

?
$system = new Java("java.lang.System");
//$system = new Java("com.jinsight.jetchart.Graph");
print("Verison = ".$system-getProperty("java.version"));
?

Results:
Immediately after restarting apache, I can run the script 4-5 times and get the 
correct result:

Verison = 1.2.2

After that, I will get:

Fatal error: Unable to create Java Virtual Machine in /u/httpd/html/java_test.php on 
line 3

I get the error 3-6 times, then I get the correct result once, then the error 3-6 
times, etc.
There does not seem to be any specific periodicity to it other than the initial 4-5 
successes.  Nothing looks odd on the system (no hung processes, no stuck open ports, 
etc.) and all the apache logs are clean.

I've noticed that several other folks have asked similar questions on phpbuilder's 
forums and never got answers.  I also know from contact with one of them that 
something similar has happened on a windows machine, so I don't think this is specific 
to my platform.  Also, I've heard rumor (no hard proof) of 
difficulties/incompatibility between php4's java extension and jdk 1.2.x and 1.3 (I 
did get this to run with jdk 1.1.7, but my boss says he needs Java2).

Any help is appreciated.

---



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


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




[PHP-DEV] Bug #8722 Updated: non blocking sockets reading doesn't work on WIN32

2001-04-16 Thread jmoore

ID: 8722
Updated by: jmoore
Reported By: [EMAIL PROTECTED]
Old-Status: Open
Status: Assigned
Bug Type: Sockets related
PHP Version: 4.0.4pl1
Assigned To: jmoore
Comments:

Ill test the patch and commit if it works well. It looks right to me.

-James

Previous Comments:
---

[2001-01-15 14:50:07] [EMAIL PROTECTED]
i have the following script:

  $g_ssock=fsockopen($server,$port,$errno,$errstr,30);
  socket_set_blocking($g_ssock,0);
  while(!feof($g_ssock))
echo fgets($g_ssock,4096);

if you uncomment the socket_set_blocking line it will work fine on win32, but with non 
blocking sockets,  feof will always return true. by digging through the code, it 
appears that fsock.c uses the errno() function for determining any socket error as 
seen in function php_sockread_internal:

} else if(nr_bytes == 0 || (nr_bytes  0  errno != EWOULDBLOCK)) {
sock-eof = 1;
}

the problem is that win32 doesn't report socket errors with _errno() but with 
WSAGetLastError() so here is my fix:

in fsock.c, line 46, replace:

#ifdef PHP_WIN32
#include winsock.h
#else

with:

#ifdef PHP_WIN32
#include winsock.h
#undef errno
#define errno (WSAGetLastError())
#else



---



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


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




[PHP-DEV] Bug #8827 Updated: PHP_AUTH_PW stores password when using External Authentication

2001-04-16 Thread jmoore

ID: 8827
Updated by: jmoore
Reported By: [EMAIL PROTECTED]
Old-Status: Open
Status: Closed
Bug Type: Apache related
PHP Version: 4.0.4pl1
Assigned To: 
Comments:

This is now the expected behaviour due to various problems with being able to verify 
if there are other mecanisms. If you really dont want this to happen run in safe mode 
or manually patch your mod_php4.c and uncommect the line

 auth_type(r)

this is a very buggy fix for various reasons when other mod_auth_* systems decline 
authentication it will onyl work when they accept.

- James

Previous Comments:
---

[2001-01-21 01:41:08] [EMAIL PROTECTED]
Under Apache-1.3.14 w/ php4.0.4pl1 and using auth_ldap for external authentication to 
an ldap server, PHP_AUTH_PW stores the password of the user that authenticates 
successfully.

This did not occur in earlier versions of php3 and php4 and creates a problem for 
websites that require external authentication before accessing and the services that 
are provided within the websites are run by different parties as this will result in 
other parties getting hold of the user's password.

php.ini used is similar to that which came with the php-4.0.4pl1 distribution and no 
settings that are changed is related to authentication.

php is compiled using the following parameters :-

./configure
--with-apache=/usr/src/apache_1.3.14
--with-mysql=/usr
--with-dbase=yes
--enable-sysvshm=yes
--enable-sysvsem=yes
--with-config-file-path=/usr/lib
--with-system-regex=no
--enable-safe-mode=yes
--with-exec-dir=/usr/bin
--enable-track-vars=yes
--enable-magic-quotes=yes
--enable-memory-limit=yes
--with-ldap=/usr
--with-imap=/usr
--enable-ftp 
--with-t1lib
--with-ndbm
--with-db


---



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


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




[PHP-DEV] Bug #9071 Updated: Wide Charater problems

2001-04-16 Thread jmoore

ID: 9071
Updated by: jmoore
Reported By: [EMAIL PROTECTED]
Status: Open
Old-Bug Type: Performance problem
Bug Type: MSSQL related
PHP Version: 4.0.4
Assigned To: 
Comments:

Reclassify

Previous Comments:
---

[2001-02-02 07:27:33] [EMAIL PROTECTED]
when use php read data from sql7.0,only 200 chinese characters be readed.But sql7.0 
have more then 200 chinese characters.i use asp no this problem.why?how to do?

---



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


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




[PHP-DEV] Bug #9537 Updated: ISAPI hangs

2001-04-16 Thread jmoore

ID: 9537
Updated by: jmoore
Reported By: [EMAIL PROTECTED]
Old-Status: Open
Status: Duplicate
Bug Type: IIS related
PHP Version: 4.0.4pl1
Assigned To: 
Comments:

YA IIS access violation Dup of 9122

Previous Comments:
---

[2001-03-03 11:04:34] [EMAIL PROTECTED]
On the server we have this problem:

The HTTP server encountered an unhandled exception while processing the ISAPI 
Application
php4ts!hashpjw + 0x13
 + 0xA05E69B8

The server configuration I include (php_interbase.dll used):



PHP Version 4.0.4pl1 

System Windows NT 5.0 build 2195 
Build Date Jan 12 2001 
Server API ISAPI 
Virtual Directory Support enabled 
Configuration File (php.ini) Path php.ini 
ZEND_DEBUG disabled 
Thread Safety enabled 

 This program makes use of the Zend scripting language engine:
Zend Engine v1.0.4, Copyright (c) 1998-2000 Zend Technologies

 




PHP 4.0 Credits



Configuration
PHP Core 
Directive Local Value Master Value 
allow_call_time_pass_reference
 On On 
allow_url_fopen
 1 1 
arg_separator
   
asp_tags
 Off Off 
auto_append_file
 no value no value 
auto_prepend_file
 no value no value 
browscap
 no value no value 
default_charset
 no value no value 
default_mimetype
 text/html text/html 
define_syslog_variables
 Off Off 
disable_functions
 no value no value 
display_errors
 On On 
display_startup_errors
 Off Off 
doc_root
 no value no value 
enable_dl
 On On 
error_append_string
 Off Off 
error_log
 no value no value 
error_prepend_string
 Off Off 
error_reporting
 no value no value 
expose_php
 On On 
extension_dir
 no value no value 
file_uploads
 1 1 
gpc_order
 GPC GPC 
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_errors
 On On 
ignore_user_abort
 Off Off 
implicit_flush
 Off Off 
include_path
 no value no value 
log_errors
 Off Off 
magic_quotes_gpc
 On On 
magic_quotes_runtime
 Off Off 
magic_quotes_sybase
 Off Off 
max_execution_time
 30 30 
open_basedir
 no value no value 
output_buffering
 Off Off 
output_handler
 no value no value 
post_max_size
 8M 8M 
precision
 14 14 
register_argc_argv
 On On 
register_globals
 On On 
safe_mode
 Off Off 
safe_mode_exec_dir
 1 1 
sendmail_from
 [EMAIL PROTECTED] [EMAIL PROTECTED] 
sendmail_path
 no value no value 
short_open_tag
 On On 
SMTP
 smtp.iol.cz smtp.iol.cz 
sql.safe_mode
 Off Off 
track_errors
 Off Off 
upload_max_filesize
 2M 2M 
upload_tmp_dir
 no value no value 
user_dir
 no value no value 
variables_order
 no value no value 
y2k_compliance
 Off Off 


interbase
Interbase Support enabled 
Revision $Revision: 1.48 $ 
Dynamic Module yes 
Allow Persistent Links Yes 
Persistent Links 1/unlimited 
Total Links 1/unlimited 
Timestamp Format %m/%d/%Y %H:%M:%S 
Date Format %m/%d/%Y 
Time Format %H:%M:%S 


standard
Regex Library Bundled library enabled 
Dynamic Library Support enabled 
Internal Sendmail Support for Windows 4 enabled 

Directive Local Value Master Value 
assert.active
 1 1 
assert.bail
 0 0 
assert.callback
 no value no value 
assert.quiet_eval
 0 0 
assert.warning
 1 1 
safe_mode_allowed_env_vars
 PHP_ PHP_ 
safe_mode_protected_env_vars
 LD_LIBRARY_PATH LD_LIBRARY_PATH 
session.use_trans_sid
 1 1 
url_rewriter.tags
 a=href,area=href,frame=src,form=fakeentry a=href,area=href,frame=src,form=fakeentry 


bcmath
BCMath support enabled 


Calendar
Calendar support enabled 


com
Directive Local Value Master Value 
allow_dcom
 Off Off 
typelib_file
 no value no value 


ftp
FTP support enabled 


mysql
MySQL Support enabled 
Active Persistent Links 0 
Active Links 0 
Client API version 3.23.22-beta 

Directive Local Value Master Value 
mysql.allow_persistent
 On On 
mysql.default_host
 no value no value 
mysql.default_password
 no value no value 
mysql.default_port
 no value no value 
mysql.default_socket
 no value no value 
mysql.default_user
 no value no value 
mysql.max_links
 Unlimited Unlimited 
mysql.max_persistent
 Unlimited Unlimited 


odbc
ODBC Support enabled 
Active Persistent Links 0 
Active Links 0 
ODBC library Win32 

Directive Local Value Master Value 
odbc.allow_persistent
 On On 
odbc.check_persistent
 On On 
odbc.default_db
 no value no value 
odbc.default_pw
   
odbc.default_user
 no value no value 
odbc.defaultbinmode
 return as is return as is 
odbc.defaultlrl
 return up to 4096 bytes return up to 4096 bytes 
odbc.max_links
 Unlimited Unlimited

[PHP-DEV] Bug #9663 Updated: Cannot finr or read php.ini

2001-04-16 Thread jmoore

ID: 9663
Updated by: jmoore
Reported By: [EMAIL PROTECTED]
Old-Status: Open
Status: Closed
Bug Type: *Install and Config
PHP Version: 4.0.4pl1
Assigned To: 
Comments:

try putting php.ini in c:\php\ the output from phpinfo() tells you where the php.ini 
is looked for.

-James

Previous Comments:
---

[2001-03-09 15:59:12] [EMAIL PROTECTED]
Cannot find or read php.ini file.

PWS4.0 + Winnt SP5 + PHP4.0.5dev
PHP Location : c:php
php.ini location : c:winnt
checked for duplicate php.ini files, does not exists.

---



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


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




[PHP-DEV] Bug #9889 Updated: isapi filter php4isapi.dll fails to load when added to IIS console filter tab.

2001-04-16 Thread jmoore

ID: 9889
Updated by: jmoore
Reported By: [EMAIL PROTECTED]
Old-Status: Open
Status: Closed
Bug Type: Performance problem
PHP Version: 4.0.4pl1
Assigned To: 
Comments:

you need to restart from command line.

net stop iisadmin

net start w3svc

this reloads it.

-James

Previous Comments:
---

[2001-03-21 01:40:14] [EMAIL PROTECTED]
The pdf installation instructions say:
Under ISAPI Filters,
add a new ISAPI filter. Use PHP as the filter name, and supply a path to the 
php4isapi.dll.

php4isapi.dll fails to load when IIS is restarted.

Note that it does load for php 4.01 but fails when switching to php 4.04.


---



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


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




[PHP-DEV] Bug #9897 Updated: scripts fail with error Fatal error: Unable to create Java Virtual Machine

2001-04-16 Thread jmoore

ID: 9897
Updated by: jmoore
Reported By: [EMAIL PROTECTED]
Old-Status: Open
Status: Feedback
Bug Type: Java related
PHP Version: 4.0.4pl1
Assigned To: 
Comments:

Does this happen after the creation of the third JVM??

-James

Previous Comments:
---

[2001-03-21 06:09:45] [EMAIL PROTECTED]
The following:

  $system = new Java("java.lang.System");
  print("Java version: " .  $system-getProperty("java.version") .  "BRn");
  $formatter = new Java("java.text.SimpleDateFormat", ",  dd,  'at' 
h:mm:ss a ");
  print($formatter-format(new Java("java.util.Date")) . "BRn");

produces the error "Unable to create Java Virtual Machine in xyz.php on line XX" under 
PHP 4.0.5RC1 as well as the latest 4.0.4 off the php.net site.

my php.ini section is:

extension=php_java.dll
java.library.path = 
"C:Inetpubphpextensions;C:Inetpubjdk-1.3jrebin;C:Inetpubjdk-1.3jrelib;C:Inetpubjdk-1.3lib"

java.library = C:Inetpubjdk-1.3jrebinclassicjvm.dll
java.class.path = "C:Inetpubphpextensionsphp_java.jar"
java.home = 
"C:Inetpubjdk-1.3bin;C:Inetpubjdk-1.3jrebin;C:Inetpubjdk-1.3jrelib;C:Inetpubjdk-1.3lib"


Im using J2SDK 1.3

The script actually works the first few times (the ammount of times varies) but then 
continuously fails. I've seen numerous reports of people with the same problem on 
http://www.phpbuilder.net

Installing an another machine with the same config, reproduces the same error.

It also appears to be somewhat related to bug # 6617 
(http://www.php.net/bugs.php?id=6617) and # 6925 (http://www.php.net/bugs.php?id=6925)

Are there any plans to tackle these issues?

Robin

---



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


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




[PHP-DEV] Bug #9959 Updated: can't open manual - receive invalid header error

2001-04-16 Thread jmoore

ID: 9959
Updated by: jmoore
Reported By: [EMAIL PROTECTED]
Old-Status: Open
Status: Closed
Bug Type: Documentation problem
PHP Version: 4.0.4pl1
Assigned To: 
Comments:

This has been fixed there were problems with manuals in CVS being treated as ascii 
when they were binary.

-James

Previous Comments:
---

[2001-03-23 15:28:58] [EMAIL PROTECTED]
I am trying to oen the english version of the manual in text for html form, and 
receive the following error:

compilation error:unrecognized header string.

I am unable to open the manual 
help?

---



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


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




[PHP-DEV] Bug #10015 Updated: inetinfo.exe crashes!

2001-04-16 Thread jmoore

ID: 10015
Updated by: jmoore
Reported By: [EMAIL PROTECTED]
Old-Status: Open
Status: Duplicate
Bug Type: IIS related
PHP Version: 4.0.4pl1
Assigned To: 
Comments:

Yet another IIS crash, dup of 9122

Previous Comments:
---

[2001-04-04 03:09:54] [EMAIL PROTECTED]
That happens when I use isapi..but it have crashes ore or two times when I have used 
cgi.

And one other thing why cant I just load the extencion for ldap...? I just want to 
connect a ldap server!
when I did not have mssql on my omputer it wouldn't start ( couldn't find ) the 
php_mssql.dll but after I installed the mssql it worked... But in case of ldap...I 
dont want to install any ldap on my computer.. I only eant to connect to an ldap 
server.. but it won't load the php_ldap.dll.
Is r
that a bugg or have I done something wrong??

---

[2001-04-03 17:17:03] [EMAIL PROTECTED]
are sou using isapi or the cgi?

---

[2001-03-27 08:19:57] [EMAIL PROTECTED]
I have:

win 2000 ( service pack 1 )
mssql 2000
iis 5.0

when I ask the mssql a query, inetinfo to crash.
I tryed to install all of it again but did not help.

Can someone help me??


---



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


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




[PHP-DEV] Bug #8506 Updated: CGI PHP doesn't erase the #!/path/to/php

2001-04-16 Thread jmoore

ID: 8506
Updated by: jmoore
Reported By: [EMAIL PROTECTED]
Old-Status: Open
Status: Duplicate
Bug Type: *Web Server problem
PHP Version: 4.0.4
Assigned To: 
Comments:

dup of 8898

Previous Comments:
---

[2001-03-12 11:41:01] [EMAIL PROTECTED]
[EMAIL PROTECTED] has a similar problem on a different platform:
--- Start Quote ---
This problem exists also for NT4 with server signature:
 Server: Apache/1.3.14 (Win32) PHP/4.0.4pl1

If I do not put:
   #!/php/php
at the top of the file then I get an apache server error and this
message in error.log:

[Mon Mar 12 14:08:39 2001] [error] [client ] c:/apache/cgi-bin/hello.php4 is not 
executable; ensure interpreted scripts have "#!" first line
[Mon Mar 12 14:08:39 2001] [error] [client ] couldn't spawn child process: 
c:/apache/cgi-bin/hello.php4

As soon as I put it back it works.
An example script:

#!/php/php
?php
echo "brhello cgibr";
?

but the html-source generated by this is (from browser's "view source"):
#!/php/php
brhello cgibr

Of course, you can hide it with a trick like:
body bgcolor="black"font color="white"...
but that's ugly too...
--- End Quote ---

---

[2001-03-08 09:12:26] [EMAIL PROTECTED]
The only lines concerning PHP in httpd.conf are:

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

And, since I use .php as file extension, this lines are irrelevant.


---

[2001-03-06 08:01:40] [EMAIL PROTECTED]
What is your apache configuration for PHP scripts?

---

[2001-01-02 15:41:55] [EMAIL PROTECTED]
   And if you still have any doubts, thinking that Apache has reconized the file 
extension and is not using the cgi version, try 

http://book.ecompare-corp.com/cgi-bin/vxml/engines/kbb/phpinfo.vxml

   The output is the same. And if you read the php output on both pages you'll see 
that PHP is run as CGI (Server API CGI).


---

[2001-01-02 15:29:53] [EMAIL PROTECTED]
   "PHP does not require the first line that you are including unlike perl due to the 
way its set up in apache."

   You're wrong. PHP is not set up at all in Apache. Look what happens if I delete the 
first line:

!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN"
HTMLHEAD
TITLE500 Internal Server Error/TITLE
/HEADBODY
H1Internal Server Error/H1
The server encountered an internal error or
misconfiguration and was unable to complete
your request.P
Please contact the server administrator,
 [EMAIL PROTECTED] and inform them of the time the error occurred,
and anything you might have done that may have
caused the error.P
More information about this error may be available
in the server error log.P
HR
ADDRESSApache/1.3.12 Server at book.ecompare-corp.com Port 80/ADDRESS
/BODY/HTML

Server error log:
[Mon Jan  1 16:00:34 2001] [error] [client 212.54.118.28] Premature end of script 
headers:
 /home/httpd/cgi-bin/vxml/engines/kbb/phpinfo2.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.


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


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




[PHP-DEV] Bug #10165 Updated: install.txt doesn't mention copying DLLs to WINNT

2001-04-16 Thread jmoore

ID: 10165
Updated by: jmoore
Reported By: [EMAIL PROTECTED]
Old-Status: Open
Status: Closed
Bug Type: Documentation problem
PHP Version: 4.0.4pl1
Assigned To: 
Comments:

they should be in the extension dir specified in php.ini which is clearly documented 
through out the configuration docs.

-James

Previous Comments:
---

[2001-04-04 14:38:20] [EMAIL PROTECTED]
When I was having the problem, I could load certain extensions just fine (e.g., 
php_gd.dll and php_db.dll). However, the database extensions would not load.

My interpretation is that the database DLLs depend on one or more of the DLLs that are 
provided in the dll directory of the distribution. Perhaps there's another way to get 
Windows to find those DLLs without putting them in the WINNT directory (setting the 
path, maybe?).

---

[2001-04-04 13:49:48] [EMAIL PROTECTED]
It would be good to get to the bottom of this. If anyone out there understands what 
Windows does in these circumstances, can they shed some light on proceedings.

I don't have any of the databases that need extensions, so the only extension I 
routinely use is GD, however it is my experience on NT4 that I never have to stick any 
dll (php or otherwise) in winnt or winnt/system32 unless it is going to be shared by 
some other application. I can always just put them in the same directory as the 
program that calls them and all is well.

Is W2K different, or are the database extension dlls different.

We need to know, not only for the installation notes, but also for the installer 
software which sticks things in c:/php by default.

---

[2001-04-04 13:27:35] [EMAIL PROTECTED]
I have PHP running as CGI on IIS5.0 (Windows 2000 Advanced Server). I followed exactly 
the instructions in the install.txt document.

When I tried to load certain extensions (any database extensions, specifically), 
php.exe would hang, with the complaint that "Warning : Unable to load dynamic library 
'./php_mssql70.dll' - The specified module could not be found."

In searching the bug reports here, I found the suggestion to copy the contents of the 
php/dll directory to winntsystem32. That fixed the problem.

The "install.txt" document should mention this.

---



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


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




[PHP-DEV] Bug #10183 Updated: W2K, IIS Access violation (ISAPI)

2001-04-16 Thread jmoore

ID: 10183
Updated by: jmoore
Reported By: [EMAIL PROTECTED]
Old-Status: Open
Status: Duplicate
Bug Type: IIS related
PHP Version: 4.0.4pl1
Assigned To: 
Comments:

YA IIS crash see #9122

Previous Comments:
---

[2001-04-05 09:50:32] [EMAIL PROTECTED]
The CGI version is OK but the isapi gives me the folowing error

PHP has encountered an Access Violation at 0B292466

With any kind of code with or without db connection. (eg phpinfo() i a page)

Thanks in advance for your help

---



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


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




[PHP-DEV] Bug #10270 Updated: PHP 4.05+ Won't Compile on Win32 Coz of Zend Errors

2001-04-16 Thread jmoore

ID: 10270
Updated by: jmoore
Reported By: [EMAIL PROTECTED]
Old-Status: Open
Status: Closed
Bug Type: Compile Failure
PHP Version: 4.0 Latest CVS (10/04/2001)
Assigned To: 
Comments:

Works fine for me make sure you have Zend and TSRM directories in right place and are 
defining PHP_WIN32 and ZEND_WIN32.

-James

Previous Comments:
---

[2001-04-10 15:46:49] [EMAIL PROTECTED]
PHP 4.05 RC6  Latest CVS of 10/04/2001 
Won't Compile on Win32 (W98ENA_SE) by M$ VC6 (SP5) 
Because of Zend  ZendTS - Missing Files / Configuration !!  

I've got Compilation Logs , so Just ask if Needed ...

---



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


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




[PHP-DEV] Bug #8691 Updated: Periodically recieve Unable to create Java Virtual Machine when running test

2001-04-16 Thread jmoore

ID: 8691
Updated by: jmoore
Reported By: [EMAIL PROTECTED]
Old-Status: Feedback
Status: Open
Bug Type: Java related
PHP Version: 4.0.3pl1
Assigned To: 
Comments:

User feedback:

   Yes, that sounds correct.  We decided we needed to creat the JVMs 
more slowly, although that sounds bogus to me.  I think we've 
temporarily abandon this, but we will come back to it, so it'd be a good 
thing to get it working correctly.
   Let me know if there's anything else you need.
   Don

Previous Comments:
---

[2001-04-16 06:36:40] [EMAIL PROTECTED]
Does this happen after 3 JVM's have been created?

-James

---

[2001-01-13 17:00:11] [EMAIL PROTECTED]
Environment:

Linux 6.1, Kernel 2.1.12, Apache 1.3.14 (build locally from SRPM), java2 JDK1.2.2 
(build locally from source), php 4.0.3pl1 (build locally from modified SRPM).

php.ini java config:

java.class.path = 
/usr/lib/php4/php_java.jar:/usr/lib/java/jdk-1.2.2-devel/build/linux/lib/ext/iiimp.jar:/usr/lib/java/jdk-1.2.2-devel/build/linux/lib/i18n.jar

java.library = /usr/lib/java/jdk-1.2.2-devel/build/linux/lib/i386/libjava.so
java.library.path = 
/usr/lib/php4:/usr/lib/java/jdk-1.2.2-devel/build/linux/lib:/usr/lib/java/jdk-1.2.2-devel/build/linux/lib/i386/classic:/usr/lib/java/jdk-1.2.2-devel/build/linux/lib/i386/native_threads


Test Script:

?
$system = new Java("java.lang.System");
//$system = new Java("com.jinsight.jetchart.Graph");
print("Verison = ".$system-getProperty("java.version"));
?

Results:
Immediately after restarting apache, I can run the script 4-5 times and get the 
correct result:

Verison = 1.2.2

After that, I will get:

Fatal error: Unable to create Java Virtual Machine in /u/httpd/html/java_test.php on 
line 3

I get the error 3-6 times, then I get the correct result once, then the error 3-6 
times, etc.
There does not seem to be any specific periodicity to it other than the initial 4-5 
successes.  Nothing looks odd on the system (no hung processes, no stuck open ports, 
etc.) and all the apache logs are clean.

I've noticed that several other folks have asked similar questions on phpbuilder's 
forums and never got answers.  I also know from contact with one of them that 
something similar has happened on a windows machine, so I don't think this is specific 
to my platform.  Also, I've heard rumor (no hard proof) of 
difficulties/incompatibility between php4's java extension and jdk 1.2.x and 1.3 (I 
did get this to run with jdk 1.1.7, but my boss says he needs Java2).

Any help is appreciated.

---



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


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




[PHP-DEV] Bug #10447 Updated: ccvs_*() functions segfault when given invalid session ID

2001-04-22 Thread jmoore

ID: 10447
Updated by: jmoore
Reported By: [EMAIL PROTECTED]
Old-Status: Analyzed
Status: Closed
Bug Type: CCVS related
PHP Version: 4.0 Latest CVS (22/04/2001)
Assigned To: 
Comments:

Sterling fixed this in CVS.

- James

Previous Comments:
---

[2001-04-22 20:17:11] [EMAIL PROTECTED]
I have duplicated this issue on my end and I am looking into it.

Fix imminent.

---

[2001-04-22 19:37:22] [EMAIL PROTECTED]
The ccvs functions segfault when given an invalid session ID.

This works fine:
?php
$session = ccvs_init('ccvs');
echo "Adding an invoice to the session:n";
if (!ccvs_new($session, 'foo') === 'OK') {
echo "Could not create invoice; reason: " . ccvs_textvalue($session) . "n";
}
?

This segfaults:
?php
$session = ccvs_init('ccvs');
echo "Adding an invoice to the session:n";
if (!ccvs_new($sess, 'foo') === 'OK') {
echo "Could not create invoice; reason: " . ccvs_textvalue($session) . "n";
}
?

Backtrace:
/home/www/php
shanna% gdb php
GNU gdb 19991116
Copyright 1998 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "i586-mandrake-linux"...
(gdb) run ./ccvstest
Starting program: /usr/local/bin/php ./ccvstest
X-Powered-By: PHP/4.0.6-dev
Content-type: text/html

Trying a presumably invalid configuration: 
Returned: ''; Return type: string

Trying a presumably valid configuration:
Adding an invoice to the session:
Looking up the new invoice:
PHP Warning:  Undefined variable:  sssion in ./ccvstest on line 17
br
bWarning/b:  Undefined variable:  sssion in b./ccvstest/b on line 
b17/bbr
./ccvstest(17) : Warning - Undefined variable:  sssion

Program received signal SIGSEGV, Segmentation fault.
0x4024b791 in strlen () from /lib/libc.so.6
(gdb) bt
#0  0x4024b791 in strlen () from /lib/libc.so.6
#1  0x8071a0d in php_if_ccvs_lookup (ht=3, return_value=0x831164c, this_ptr=0x0, 
return_value_used=1) at ccvs.c:486
#2  0x8171cba in execute (op_array=0x82f5a3c) at ./zend_execute.c:1494
#3  0x8138084 in zend_execute_scripts (type=8, file_count=3) at zend.c:743
#4  0x806a27f in php_execute_script (primary_file=0xb924) at main.c:1196
#5  0x806825c in main (argc=2, argv=0xb9b4) at cgi_main.c:735
(gdb) 


---



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


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




[PHP-DEV] Bug #10466 Updated: hidden '.' files don't work with file_exists()

2001-04-24 Thread jmoore

ID: 10466
Updated by: jmoore
Reported By: [EMAIL PROTECTED]
Old-Status: Closed
Status: Bogus
Bug Type: Filesystem function related
PHP Version: 4.0.4pl1
Assigned To: 
Comments:



Previous Comments:
---

[2001-04-23 17:13:21] [EMAIL PROTECTED]
Usually we like to have more information than 'doesn't work'. :)
But for the moment, what happens if you quote your strings?

i.e.:

if (file_exists('/file/names/must/be/.quoted.txt')) {
   . . .
}



---

[2001-04-23 17:02:22] [EMAIL PROTECTED]
file_exists () seems to get confused with 'hidden' files, starting with '.' (dot).

this works fine:
--
if(file_exists(test/normal-file)) {
die (error message);
}


this does not work:
--
if(file_exists(test/.hidden-file)) {
die (error message);
}

---



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


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




  1   2   3   4   >