[PHP-DEV] PHP 4.0 Bug #9434: Command line argument, that trates as QUERY_STRING, isn't proper.

2001-02-24 Thread sagawa

From: [EMAIL PROTECTED]
Operating system: Linux,Windows 2000
PHP version:  4.0.4pl1
PHP Bug Type: Feature/Change Request
Bug description:  Command line argument, that trates as QUERY_STRING, isn't proper.

I get funny $HTTP_GET_VARS passed by command line argument
query_string,
on PHP 4.0.4(as far as I know :) with cgi-sapi.

This is sample for this problem.
test.php is ?php var_dump($HTTP_GET_VARS); ?
and run from command line.

% php -f test.php 'AAA=xxBB=yy' 'CC=zz'
array(2) {
  ["test_php_AAA"]=
  string(2) "xx"
  ["BB"]=
  string(8) "yy CC=zz"
}

`AAA' is connected with file name,
and inserted space between arguments.
(test.php was changed to test_php because of php variable
name restriction.)

So, I modify sapi/cgi/cgi_main.c.
% diff -u cgi_main.c~ cgi_main.c
--- cgi_main.c~ Sun Dec  3 10:09:13 2000
+++ cgi_main.c  Thu Feb 22 21:20:47 2001
@@ -649,14 +649,10 @@

s = malloc(len + 1);/* leak -
but only for command line version, so ok */
*s = '\0';  /*
we are pretending it came from the environment  */
-   if (script_file) {
-   strcpy(s, script_file);
-   strcat(s, "+");
-   }
for (i = ap_php_optind, len = 0; i 
argc; i++) {
strcat(s, argv[i]);
if (i  (argc - 1)) {
-   strcat(s, "+");
+   strcat(s,
PG(arg_separator));
}
}
SG(request_info).query_string = s;

This works fine, like...
% php -f test.php 'AAA=xxBB=yy' 'CC=zz'
array(3) {
  ["AAA"]=
  string(2) "xx"
  ["BB"]=
  string(2) "yy"
  ["CC"]=
  string(2) "zz"
} 



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



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




[PHP-DEV] PHP 4.0 Bug #9426 Updated: Form variables encoding problem

2001-02-24 Thread d . sbragion

ID: 9426
User Update by: [EMAIL PROTECTED]
Status: Open
Bug Type: Unknown/Other Function
Description: Form variables encoding problem

It turned out to be a problem with a:

META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=ISO-8859-1"

header that caused encoding by the browser prior to sendind data to PHP. Now there's 
another problem. The '’' doesn't get encoded by the htmlentities() function. This 
char, and others, is an illegal char according to the WDG html validator and should be 
encoded. I think an extended version of the htmlentities() function, which encodes 
every char that need encoding, not only the ones in the 
get_html_translation_table(HTML_ENTITIES) table, should be considered. Of course 
encoding should be performed in the '#;' form.

Previous Comments:
---

[2001-02-23 12:51:48] [EMAIL PROTECTED]
Sorry but everything gets screwed because of the mixture of html entities and real 
chars. The char that gives problems is '’', the corresponding html entitie is 
amp;#8217;, the html entitie provided by FrontPage is amp;#146;. Looking directly at 
the html code make it easier to understand what's going on.

---

[2001-02-23 12:45:17] [EMAIL PROTECTED]
When I enter some special chars in a textual form field (either 'INPUT TYPE="text"' or 
'TEXTAREA') they get encoded like an html entitie. For example this '’' gets encoded 
as '#8217;' in the variable of the form handling script (I hope this won't trigger 
the bug, the first char is like a '`' but "reversed", almost like a superscript small 
'/'). No coding happens for a plain typed '#8217;', so there's no way to distinguish 
between the two cases in the form handling script and so there's no way to safely 
reverse the encoding. Browser is IE 5.5 on Windows 98.

This may happen for example doing cut  paste from WordPad, Word or existing web 
pages. I tried the same thing pasting into FrontPage Express. It encodes it as 
'#146;' instead of '#8217;', may be it's just the encoding that's wrong.

P.S. Sorry for my poor English

---


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


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




Re: [PHP-DEV] RE: PHP 4.0 Bug #9351 Updated: LDAP_SEARCH

2001-02-24 Thread Stig Venaas

On Wed, Feb 21, 2001 at 08:49:25AM +0800, nikony wrote:
 I have thought about that but as you know, it's now a fault of LDAP Server. I use 
open ldap and when i use command line:
 ldapsearch -p 999 -h localhost -b ...  "(date =20010116)"
 it works! and even more:
 ldapsearch -p 999 -h localhost -b ...  "((date =20010116)(date=20010120))"
 It's puzzling,right?

Yes. I just did a test and it worked well for me! PHP doesn't do anything
with the string you pass as filter, it's simply passed to the ldap_search
function of the LDAP library. I did a test with OpenLDAP 2.0.x libraries
and server and it worked well. What is important is that the attribute
has defined ORDERING in the schema, for example:

ORDERING caseIgnoreOrderingMatch

If it isn't, it shouldn't work neither with PHP nor ldapsearch. Anyway,
it worked, and I can't see any reason it shouldn't.

I have a server up and running that you could test against if you like.
Here's the PHP code I used:

$ds=ldap_connect("ldap://silkesvarten.uninett.no/");
if ($ds) {
$sr=ldap_search($ds,"dc=my-domain,dc=com", "ttl=14400");
echo "Search result is $sr \n";
echo "Number of entires returned is ", ldap_count_entries($ds,$sr), "\n";
$info = ldap_get_entries($ds, $sr);
echo "Data for ", $info["count"], " items returned:\n";
for ($i=0; $i$info["count"]; $i++) {
  echo "dn is: ", $info[$i]["dn"], "\n";
  echo "dc : ", $info[$i]["dc"][0], "\n";
  echo "ttl: ", $info[$i]["ttl"][0], "\n\n";
}
ldap_close($ds);
} else {
echo "Unable to connect to LDAP server";
}

If this fails I suspect the LDAP library (which one?), if it works it's
your LDAP server (which one?) and the attribute definition is the most
likely cause. But if your ldapsearch worked it can't be the server, so
I'm puzzled. Please try my script anyway. Could I test against your
server?

Stig

-- 
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 #9435: Unreproducable crash of PHP

2001-02-24 Thread tilliw

From: [EMAIL PROTECTED]
Operating system: Windows 2000
PHP version:  4.0.4pl1
PHP Bug Type: IIS related
Bug description:  Unreproducable crash of PHP

After some time of browsing a PHP website (access to an oracle DB not on the same 
machine) PHP crashes:

PHP has encountered an Access Violation at 011A2466

Event-Log entry (sorry, german):

Ereignistyp:Fehler (error, type)
Ereignisquelle: WAM (source)
Ereigniskategorie:  Keine (category "None")
Ereigniskennung:204 (event-id)
Datum:  24.02.2001 (date)
Zeit:   11:03:45 (time)
Benutzer:   Nicht zutreffend (user)
Computer:   AD-OPAS1 (computer)
Beschreibung: (description)
Der HTTP-Server ist bei der Verarbeitung der ISAPI-Anwendung '
php4ts!zend_strndup + 0x2B
 + 0xA05F69B8
' auf eine unerwartete Ausnahme gestoßen. (unexpected exception in isapi-application)


I can continue surfing after the corresponding dllhost.exe is terminated using the 
task manager, or the iis-admin service is restarted.


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



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




[PHP-DEV] Analysis of getdnsrr getmxrr bugs on SuSE linux

2001-02-24 Thread Michael Kunze

Hi all,

I'm running a linux box based on the SuSE distribution. Trying to use
the getmxrr function in recent snap builds of PHP4, i found out that
this function was not supported anymore.

Browsing through the code resulted in the observation that both
mentioned functions were only avialable if HAVE_BINDLIB was set by
configure.

Now, on SuSE, you don't have libbind, instead you have libresolv, which
provides the same functionality as libbind with respect to getmxrr. My
suspicion grew about a bug when i recognized that configure actually
searches for libresolv and puts a HAVE_LIBRESOLV 1 into php_config.h.
The problem is that HAVE_LIBRESOLV isn't referenced anywhere else in the
code, so it is a quite useless information now.

The solution is quite simple: Just add HAVE_LIBRESOLV to the ifdefs
looking for LIBBIND. Everything works fine then. Here are my diffs, i
don't know how to make a patch out of it, but someone surely will find
out:

diff basic_functions.c

250c250
 #if HAVE_BINDLIB  !(defined(__BEOS__)||defined(PHP_WIN32)) ||
HAVE_LIBRESOLV
---
 #if HAVE_BINDLIB  !(defined(__BEOS__)||defined(PHP_WIN32))


diff dns.c
---
170c170
 #if HAVE_BINDLIB  !(defined(__BEOS__)||defined(PHP_WIN32)) ||
HAVE_LIBRESOLV
---
 #if HAVE_BINDLIB  !(defined(__BEOS__)||defined(PHP_WIN32))


Michael


P.S.: IMHO, such a bug really should'nt be spotted by an amateur C
programmer like me..;-..


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




Re: [PHP-DEV] Renaming fopen-wrappers.[ch] to fopen_wrappers.[ch]

2001-02-24 Thread Andi Gutmans

No problem.
By the way, any idea how well PHP runs on OS/390? Does it actually work 
natively?
Does it run as an Apache module?
Andi

At 09:23 PM 2/23/2001 +0100, Sascha Schumann wrote:
 Background: Apparently, OS/390 cannot handle files containing
 dashes.  Because almost all of our files are using
 underscores anyway, this step can also be seen as aligning
 the filenames with our unwritten conventions.

 If noone objects, I'll rename those files in a couple of
 hours using a CVS mv, so their history is preserved.

 - Sascha


--
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 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 Summary Report

2001-02-24 Thread php-dev

 PHP 4.0 Bug Database summary - http://bugs.php.net

 Num Status Summary (1366 total including feature requests)
===[*Configuration Issues]
7666 Feedback   PHP4 doesn't read php.ini with NT4/IIS
7695 Feedback   Error while accessing php script
7774 Open   PHP_AUTH_USER and PHP_AUTH_PW are set when using external 
authentication.
8238 Feedback   crypt() fails
8295 Open   absolute path in extension= directive in php.ini not recognized
8316 Feedback   cannot set short_open_tags to off
8670 Open   Incorect interpretation session.gc_maxlifetime parameter
8762 Open   No warning when entered nonexistent dll.
8815 Open   allow_fopen_url = On  include("URL") don't work
8848 Open   "open_basedir = /dir/incl" validates "/dir/include" and so on
9041 Open   Extra #! at top of web output.
9243 Open   configure emerges with bad LIBS '-l-L/usr/local/lib'
9406 Open   if you don't have PHPRC set, php will try to load /php.ini
===[*Database Functions]==
8706 Open   Database handle corruption?
9267 Open   vars are set to "" instead of NULL
===[*Directory/Filesystem functions]
8564 Open   fread generating false errors
8580 Feedback   Fileupload and Database mysql access
8698 Open   freediskspace returns zero when used on a windows 2000 'spanned' 
dynamic drive.
9043 Open   popen returns a 'Resource id #' (non null) when process cannot be 
created.
9145 Open   File Uploads  9MB are broken. Upload stops with: Can't find server.
9206 Open   unable to load file to the disk
===[*Function Specific]===
6652 Feedback   include() require() add trailing CRLF
6708 Duplicate  Treatment of ' in htmlspecialchars() function
6839 Feedback   get metatags
7220 Open   Error Report on Function Arguments
8202 Open   exec("java -cp classpath classname inputArgument"); has no effect
8270 Feedback   problem when including phpinfo() command with session
8297 Feedback   see test program below
8489 Feedback   Function empty() does not work
8563 Open   hebrevc() problems...
8857 Open   microtime() doesn't work after setlocale(LC_NUMERIC,"pl")
8869 Open   phpinfo() returns incorrect Configuration File Path
9107 Open   Function with mysql_close($conn) closes top level scripts $conn
9366 Feedback   bin2hex() outputs non-hex digits
9378 Open   Exit() in a Funtion never break the process, PHP module still running
===[*General Issues]==
3076 Analyzed   system and popen are ok in safe_mode, not backquotes
4283 Open   include_path error with PHP4 RC1 Roxen module
4761 Assigned   exec, system all give an error on a fork...
6303 Duplicate  make install said libphp4.sl is not a DSO
6426 Duplicate  system() or exec(): unable to fork
6435 Duplicate  can't close session(by session_destroy()) - it write warning
6499 Analyzed   $upload_type[] has wrong size with empty multiple-file uploads
6520 Duplicate  session_destroy() does not work
6542 Duplicate  exec() and system() cannot fork
6617 Open   JVM starts only on 3 requests per httpd
6624 Open   error_log() in registered shutdown function
6644 Duplicate  Test
6685 Analyzed   %20 mis-converted in GET mechanism
6875 Duplicate  upload_tmp_dir in php.ini doesn't work in safe_mode
6982 Open   disable_functions option don't works in Apache config
7134 Duplicate  misbehavior of print and sprintf AGAIN
7136 Duplicate  The binary version of php4.0.2 doesn't support the bindtextdomain 
function.
7243 Duplicate  upload_tmp_dir does not work in safe_mode
7444 Duplicate  General reference problems
7455 Duplicate  Problems with $this in constructor
7525 Duplicate  exec() does not work
7685 Open   File Upload Fails with Headers in Unexpected Order
7865 Duplicate  exec command
8446 Open   PHP/apache process is in infinite loop or appears to suck CPU
8618 Open   httpd process hangs
8671 Open   Random "Warning: Failed opening..."
9036 Bogus  Non installation of libphp.so
9148 Bogus  PHP got space to every of my variables
9381 Bogus  PHP doesn't work.
9395 Bogus  Its's taking file only form one directory. ie home/httpd
9413 Bogus  can't run test programs
9418 Open   Upload image file is broken
===[*Install and Config]==
6614 Duplicate  configure does not recognize sys/socket.h
7280 Open   global iniline not supported in SGI Compiler
7731 Open   compilation with deprecated abi (no -n32)
7933 Open   install sets dangerous user.group's
7959 Open   ld: 0711-317 ERROR: Undefined symbol: .alloca
8158 Feedback   unable to find math.h when doing a make
8327 Feedback   Son of Defect 4155: X-Powered-By and Content-Type bogus headers 
resurfacing
8375 Feedback   Undefined 

[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] Trying to create shared module

2001-02-24 Thread Richard Heyes

I'm doing the following with 4.04pl1 starting in the ext dir:

./ext_skel --extname=heyes
cd heyes

edit config.m4 and uncomment the --enable-... thing

phpize
./configure --enable-heyes=shared
make install

The heyes.so file gets copied into
/usr/local/lib/php/extensions/no-debug.../, but when running php -a in that
folder and doing:

?php
dl('./heyes.so');

produces this error:

Invalid library (maybe not a PHP library) './heyes.so'

Anyone seen this before?

TIA
--
Richard Heyes


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




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

2001-02-24 Thread Sterling Hughes

 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


1) not mysql, mssql

2.  it means that the mssql_result call failed for some reason, because
false was returned, not an empty string.

still, the bug should be closed ;-)

-Sterling


 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 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 =   Off ; Use Sybase-style ma
auto_prepend_file   =
auto_append_file=

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




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

2001-02-24 Thread James Moore


 1) not mysql, mssql
 
 2.  it means that the mssql_result call failed for some reason, because
 false was returned, not an empty string.
 
 still, the bug should be closed ;-)

*Cough* I should really get some glasses ;) *cough*

James

-- 
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] Karma for php-gtk

2001-02-24 Thread Peter \[DiSAStA]\ Petermann

could anyone add me some karma for php-gtk?

thanks a lot :)

Peter Petermann

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




RE: [PHP-DEV] Karma for php-gtk

2001-02-24 Thread Peter \[DiSAStA]\ Petermann

mh.. i forgot to tell my handle :)
sorry

zimt

thanks :)

Peter



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




Re: [PHP-DEV] Karma for php-gtk

2001-02-24 Thread Sebastian Bergmann

"Peter \"[DiSAStA]\" Petermann" wrote:
 could anyone add me some karma for php-gtk?

  voice style="ST:Voyager/HoloDoc"
Please state the reason for your Karma Request.
  /voice

  Okay, just kidding.

  Peter, I think it would help if you say that you want to make php-gtk
compile on Win32 :-)

-- 
 sebastian bergmann e-mail :  [EMAIL PROTECTED]
  homepage :  http://www.sebastian-bergmann.de
   make a gift : http://wishlist.sebastian-bergmann.de
 measure the usability of your web application - http://phpOpenTracker.de

-- 
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 numbers
y2k_compliance  =   Off ; whether to be year 2000 compliant (will cause 
problems with non y2k compliant browsers)
output_buffering 

[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 #9437: Function stripslashes works not correct, as i think

2001-02-24 Thread A . Ivanov

From: [EMAIL PROTECTED]
Operating system: FreeBSD 4.2
PHP version:  4.0.4pl1
PHP Bug Type: Strings related
Bug description:  Function stripslashes works not correct, as i think

magic_quotes_gpc = Off | On

?
$text = "begin\endbr";// 13 backslashes   
echo $text; // will print "begin\\\end" 7 backslashes   

// Ok. We think that backslash is a special symbol
// to change the meaning of the next character,
// so in the reality we have 6 backslashes and one
// sequence "\a" but this mean nothing so we
// print "\a" like a plain text.
// It's alright. I have no question.

// then...
$text2 = stripslashes($text);   
echo $text2;
// will print "begin\\\end"  3 backslashes

// WHY 
// If the backslash is an ordinary symbol
// the function "stripslashes" should remove
// all of it.
// If the backslash is a special symbol, that
// understood by example showed above, then
// this function should remove 6 real slashes
// and echo will print "begin\end".

// So, if i need realy and correct remove all slashes
// from the string i should use following algorithm:

while(preg_match("/\\\/",$str))
$str = stripslashes($str);

// and i find it not so pretty

?


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



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




[PHP-DEV] PHP 4.0 Bug #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]




Re: [PHP-DEV] Karma for php-gtk

2001-02-24 Thread Daniel Beulshausen

At 19:13 24.02.2001 +0100, Sebastian Bergmann wrote:
"Peter \"[DiSAStA]\" Petermann" wrote:
  could anyone add me some karma for php-gtk?

   voice style="ST:Voyager/HoloDoc"
 Please state the reason for your Karma Request.
   /voice

   Okay, just kidding.

   Peter, I think it would help if you say that you want to make php-gtk
compile on Win32 :-)

actually it compiles under win32 with (nearly) no changes, but i did no 
functional checking.

daniel

/*--
daniel beulshausen - [EMAIL PROTECTED]
using php on windows? http://www.php4win.de


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




Re: [PHP-DEV] Karma for php-gtk

2001-02-24 Thread Sebastian Bergmann

Daniel Beulshausen wrote:
 actually it compiles under win32 with (nearly) no changes, but i did no
 functional checking.

  Huch? I was not able to load the MSVC project files.

  So, what's the "nearly" you're talking about, Daniel?

-- 
 sebastian bergmann e-mail :  [EMAIL PROTECTED]
  homepage :  http://www.sebastian-bergmann.de
   make a gift : http://wishlist.sebastian-bergmann.de
 measure the usability of your web application - http://phpOpenTracker.de

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




Re: [PHP-DEV] Karma for php-gtk

2001-02-24 Thread Daniel Beulshausen

At 21:04 24.02.2001 +0100, Sebastian Bergmann wrote:
Daniel Beulshausen wrote:
  actually it compiles under win32 with (nearly) no changes, but i did no
  functional checking.

   Huch? I was not able to load the MSVC project files.

yep, the dsp needs to be updated, but thi isn't hard.

   So, what's the "nearly" you're talking about, Daniel?

it means nearly no changes, one or two. i'll have to look at it again 
before i can tell you which one.

daniel

/*--
daniel beulshausen - [EMAIL PROTECTED]
using php on windows? http://www.php4win.de


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




Re: [PHP-DEV] Karma for php-gtk

2001-02-24 Thread Sebastian Bergmann

Daniel Beulshausen wrote:
 it means nearly no changes, one or two. i'll have to look at it again
 before i can tell you which one.

  Thanks,
Sebastian

-- 
 sebastian bergmann e-mail :  [EMAIL PROTECTED]
  homepage :  http://www.sebastian-bergmann.de
   make a gift : http://wishlist.sebastian-bergmann.de
 measure the usability of your web application - http://phpOpenTracker.de

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




Re: [PHP-DEV] Karma for php-gtk

2001-02-24 Thread Daniel Beulshausen

At 21:44 24.02.2001 +0100, Sebastian Bergmann , php-dev mailinglist 
[EMAIL PROTECTED] wrote:
At 21:16 24.02.2001 +0100, Sebastian Bergmann wrote:
Daniel Beulshausen wrote:
  it means nearly no changes, one or two. i'll have to look at it again
  before i can tell you which one.

okay, here we go, one patch is already done (quite a while ago), it was 
the add_property_unset thing in zend.
the other tiny patch is for zend too, and is attachet.

there are no further patches need in order to get it to compile here.
(if you're not going to start a gtk port, becasue that one from 
http://www.gimp.org/~tml/gimp/win32/ is alread great)

so as far i can see, there are no patches for php-gtk needed.

oh forgot to tell, i had to do a new dsp for it, but that was all. really :)

daniel

/*--
daniel beulshausen - [EMAIL PROTECTED]
using php on windows? http://www.php4win.de


-- 
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 #8658 Updated: Php DSO complains of missing structure member

2001-02-24 Thread sas

ID: 8658
Updated by: sas
Reported By: [EMAIL PROTECTED]
Status: Open
Old-Bug Type: Compile Problem
Bug Type: OCI8 related
Assigned To: 
Comments:

Thanks for your report. The structure member `open' of the sctructs in php_oci8.h 
should be prefixed in order to distinguish it from the system call which gets 
redirected to open64 in an LFS environment.

Previous Comments:
---

[2001-01-18 20:34:16] [EMAIL PROTECTED]
Well, another fun solaris include bugmore macros.  

It seems after consulting a more knowledgable person, that solaris is #defining open 
to open64 in #include fcntl.h.

I think this points to a bigger problem.  The problem being the use of RESERVED words 
in a structure declaration.  The word open is such a word (for some OS's and would 
work quite well on others if the parameter was called "phpopen" for example.  

The best fix would be to re-define these functions to have non-RESERVED word usage, 
but the quick hack is to NOT include fcntl.h and put the appropriate #defines in the 
file as well.  Email me if you'd like the hack to get it working.

---

[2001-01-11 13:17:57] [EMAIL PROTECTED]
Solaris 2.6 + Dec 13th recommended
Apache 1.3.14+mod_perl
mod_jserv DSO
php DSO (trying)


After configuring with the following:

./configure 
--with-apxs=/usr/local/apache/bin/apxs 
--enable-versioning 
--with-oci8=/u01/app/oracle/product/8.1.7 
--enable-track-vars 
--with-mm=/usr/local/mm-1.1.3


I get this after running a make:

make[3]: Entering directory `/camaro/u/newbuild/php-4.0.4/ext/oci8'
/bin/sh /camaro/u/newbuild/php-4.0.4/libtool --silent --mode=compile gcc  -I. 
-I/camaro/u/newbuild/php-4.0.4/ext/oci8 -I/camaro/u/newbuild/php-4.0.4/main 
-I/camaro/u/newbuild/php-4.0.4 -I/usr/local/apache/include 
-I/camaro/u/newbuild/php-4.0.4/Zend -I/camaro/u/newbuild/php-4.0.4/ext/mysql/libmysql 
-I/u01/app/oracle/product/8.1
.7/rdbms/public -I/u01/app/oracle/product/8.1.7/rdbms/demo -I/usr/local/include 
-I/camaro/u/newbuild/php-4.0.4/ext/xml/expat/xmltok -I/camaro/u/newbuild/php-4.0.4/e
xt/xml/expat/xmlparse -I/camaro/u/newbuild/php-4.0.4/TSRM  -D_POSIX_PTHREAD_SEMANTICS 
-DSOLARIS2=260 -DMOD_PERL -DUSE_PERL_SSI -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 
-DUSE_EXPAT -DXML_BYTE_ORDER=21 -g -O2  -c oci8.c
oci8.c: In function `oci_get_conn':
oci8.c:829: structure has no member named `open64'
oci8.c: In function `oci_get_stmt':
oci8.c:845: structure has no member named `open64'
oci8.c: In function `oci_execute':
oci8.c:1203: structure has no member named `open64'
oci8.c:1204: structure has no member named `open64'
oci8.c:1205: structure has no member named `open64'
oci8.c: In function `_oci_open_session':
oci8.c:1855: structure has no member named `open64'
oci8.c:1968: structure has no member named `open64'
oci8.c: In function `_oci_close_session':
oci8.c:2001: structure has no member named `open64'
oci8.c: In function `_oci_open_server':
oci8.c:2093: structure has no member named `open64'
oci8.c:2137: structure has no member named `open64'
oci8.c: In function `_oci_session_cleanup':
oci8.c:2180: structure has no member named `open64'
oci8.c: In function `_oci_close_server':
oci8.c:2195: structure has no member named `open64'
oci8.c:2196: structure has no member named `open64'
oci8.c:2200: structure has no member named `open64'
oci8.c:2206: structure has no member named `open64'
oci8.c: In function `oci_do_connect':
oci8.c:2357: structure has no member named `open64'
make[3]: *** [oci8.lo] Error 1
make[3]: Leaving directory `/camaro/u/newbuild/php-4.0.4/ext/oci8'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/camaro/u/newbuild/php-4.0.4/ext/oci8'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/camaro/u/newbuild/php-4.0.4/ext'
make: *** [all-recursive] Error 1





---



ATTENTION! Do NOT reply to this email!
To reply, use the web interface found at http://bugs.php.net/?id=8658edit=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 #9412 Updated: no support for syslog.h causes errors

2001-02-24 Thread sas

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

Thanks for your excellent report. I've fixed all mentioned issues.

Previous Comments:
---

[2001-02-22 17:03:20] [EMAIL PROTECTED]
If a platform does not have syslog support, get compile errors:

"ext/standard/basic_functions.c", line 494.9: 1506-045 (S) Undeclared identifier 
php_if_openlog.
"ext/standard/basic_functions.c", line 495.9: 1506-045 (S) Undeclared identifier 
php_if_syslog.
"ext/standard/basic_functions.c", line 496.9: 1506-045 (S) Undeclared identifier 
php_if_closelog.
"ext/standard/basic_functions.c", line 497.9: 1506-045 (S) Undeclared identifier 
php_if_define_syslog_variables.

"ext/standard/syslog.c", line 42.9: 1506-045 (S) Undeclared identifier LOG_EMERG.
"ext/standard/syslog.c", line 43.9: 1506-045 (S) Undeclared identifier LOG_ALERT.
"ext/standard/syslog.c", line 44.9: 1506-045 (S) Undeclared identifier LOG_CRIT.
"ext/standard/syslog.c", line 45.9: 1506-045 (S) Undeclared identifier LOG_ERR.
"ext/standard/syslog.c", line 46.9: 1506-045 (S) Undeclared identifier LOG_WARNING.
"ext/standard/syslog.c", line 47.9: 1506-045 (S) Undeclared identifier LOG_NOTICE.
"ext/standard/syslog.c", line 48.9: 1506-045 (S) Undeclared identifier LOG_INFO.
"ext/standard/syslog.c", line 49.9: 1506-045 (S) Undeclared identifier LOG_DEBUG.
"ext/standard/syslog.c", line 51.9: 1506-045 (S) Undeclared identifier LOG_KERN.
"ext/standard/syslog.c", line 52.9: 1506-045 (S) Undeclared identifier LOG_USER.
"ext/standard/syslog.c", line 53.9: 1506-045 (S) Undeclared identifier LOG_MAIL.
"ext/standard/syslog.c", line 54.9: 1506-045 (S) Undeclared identifier LOG_DAEMON.
"ext/standard/syslog.c", line 55.9: 1506-045 (S) Undeclared identifier LOG_AUTH.
"ext/standard/syslog.c", line 56.9: 1506-045 (S) Undeclared identifier LOG_SYSLOG.
"ext/standard/syslog.c", line 57.9: 1506-045 (S) Undeclared identifier LOG_LPR.
"ext/standard/syslog.c", line 75.9: 1506-045 (S) Undeclared identifier LOG_LOCAL0.
"ext/standard/syslog.c", line 76.9: 1506-045 (S) Undeclared identifier LOG_LOCAL1.
"ext/standard/syslog.c", line 77.9: 1506-045 (S) Undeclared identifier LOG_LOCAL2.
"ext/standard/syslog.c", line 78.9: 1506-045 (S) Undeclared identifier LOG_LOCAL3.
"ext/standard/syslog.c", line 79.9: 1506-045 (S) Undeclared identifier LOG_LOCAL4.
"ext/standard/syslog.c", line 80.9: 1506-045 (S) Undeclared identifier LOG_LOCAL5.
"ext/standard/syslog.c", line 81.9: 1506-045 (S) Undeclared identifier LOG_LOCAL6.
"ext/standard/syslog.c", line 82.9: 1506-045 (S) Undeclared identifier LOG_LOCAL7.
"ext/standard/syslog.c", line 85.9: 1506-045 (S) Undeclared identifier LOG_PID.
"ext/standard/syslog.c", line 86.9: 1506-045 (S) Undeclared identifier LOG_CONS.
"ext/standard/syslog.c", line 87.9: 1506-045 (S) Undeclared identifier LOG_ODELAY.
"ext/standard/syslog.c", line 88.9: 1506-045 (S) Undeclared identifier LOG_NDELAY.
"ext/standard/syslog.c", line 89.9: 1506-045 (S) Undeclared identifier LOG_NOWAIT.
"ext/standard/syslog.c", line 129.9: 1506-045 (S) Undeclared identifier LOG_EMERG.
"ext/standard/syslog.c", line 130.9: 1506-045 (S) Undeclared identifier LOG_ALERT.
"ext/standard/syslog.c", line 131.9: 1506-045 (S) Undeclared identifier LOG_CRIT.
"ext/standard/syslog.c", line 132.9: 1506-045 (S) Undeclared identifier LOG_ERR.
"ext/standard/syslog.c", line 133.9: 1506-045 (S) Undeclared identifier LOG_WARNING.
"ext/standard/syslog.c", line 134.9: 1506-045 (S) Undeclared identifier LOG_NOTICE.
"syslog.c", line 135.9: 1506-045 (S) Undeclared identifier LOG_INFO.
"ext/standard/syslog.c", line 136.9: 1506-045 (S) Undeclared identifier LOG_DEBUG.
"ext/standard/syslog.c", line 138.9: 1506-045 (S) Undeclared identifier LOG_KERN.
"ext/standard/syslog.c", line 139.9: 1506-045 (S) Undeclared identifier LOG_USER.
"ext/standard/syslog.c", line 140.9: 1506-045 (S) Undeclared identifier LOG_MAIL.
"ext/standard/syslog.c", line 141.9: 1506-045 (S) Undeclared identifier LOG_DAEMON.
"ext/standard/syslog.c", line 142.9: 1506-045 (S) Undeclared identifier LOG_AUTH.
"ext/standard/syslog.c", line 143.9: 1506-045 (S) Undeclared identifier LOG_SYSLOG.
"ext/standard/syslog.c", line 144.9: 1506-045 (S) Undeclared identifier LOG_LPR.
"ext/standard/syslog.c", line 162.9: 1506-045 (S) Undeclared identifier LOG_LOCAL0.
"ext/standard/syslog.c", line 163.9: 1506-045 (S) Undeclared identifier LOG_LOCAL1.
"ext/standard/syslog.c", line 164.9: 1506-045 (S) Undeclared identifier LOG_LOCAL2.
"ext/standard/syslog.c", line 165.9: 1506-045 (S) Undeclared identifier LOG_LOCAL3.
"ext/standard/syslog.c", line 166.9: 1506-045 (S) Undeclared identifier LOG_LOCAL4.
"ext/standard/syslog.c", line 167.9: 1506-045 (S) Undeclared identifier LOG_LOCAL5.
"ext/standard/syslog.c", line 168.9: 1506-045 (S) Undeclared identifier LOG_LOCAL6.

[PHP-DEV] PHP 4.0 Bug #9382 Updated: inet_aton prototype not used

2001-02-24 Thread sas

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

Thanks, fixed in CVS.

Previous Comments:
---

[2001-02-21 15:19:43] [EMAIL PROTECTED]
OS/400 does not support inet_aton, and thus an error occurs when trying to compile 
main/network.c.  

I did notice that ext/standard/flock_compat.c has an implementation of inet_aton. And 
that main/network.c does include the prototype as follows:

#ifndef PHP_WIN32
#include netinet/in.h
#include netdb.h
#include arpa/inet.h
#else
int  inet_aton(const char *, struct in_addr *);
#endif


All I ask is to change the above to the following:

#ifndef PHP_WIN32
#include netinet/in.h
#include netdb.h
#include arpa/inet.h
#endif

#ifndef HAVE_INET_ATON
int  inet_aton(const char *, struct in_addr *);
#endif

---



ATTENTION! Do NOT reply to this email!
To reply, use the web interface found at http://bugs.php.net/?id=9382edit=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 #9380 Updated: HAVE_TZNAME not being checked

2001-02-24 Thread sas

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

Thanks, fixed in CVS. 

Previous Comments:
---

[2001-02-21 14:22:35] [EMAIL PROTECTED]
OS/400 does not have tzname.  Code in ext/standard/datetime.c does not check to see if 
HAVE_TZNAME is defined before accessing the field.  Here is the code:

#if HAVE_TM_ZONE
size += strlen(ta-tm_zone);
#else
size += strlen(tzname[0]);
#endif

and

#if HAVE_TM_ZONE
strcat(return_value-value.str.val, ta-tm_zone);
#else
strcat(return_value-value.str.val, tzname[0]);
#endif

It may be that for OS/400 we may need to do something different, but in the meantime 
HAVE_TZNAME needs to be checked prior to accessing tzname.

---



ATTENTION! Do NOT reply to this email!
To reply, use the web interface found at http://bugs.php.net/?id=9380edit=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 #9433 Updated: ErrorDocument 404 pointing to PHP file

2001-02-24 Thread justin

ID: 9433
User Update by: [EMAIL PROTECTED]
Status: Open
Bug Type: Apache related
Description: ErrorDocument 404 pointing to PHP file

No, lynx reports a 404 error also.

Previous Comments:
---

[2001-02-23 22:34:31] [EMAIL PROTECTED]
Apache 1.3.12


I wrote a script that redirects a person to a different page based on the REQUEST_URI 
and HTTP_HOST apache variables.  Ever since PHP 4.0.2, Internet Explorer started 
reporting 404 errors instead of going to the appropriate page.  What is even more 
mysterious is that it is the IE 404 error page, not the server wide page nor the 
default 404 error page for the site.  To top it all off, it works for Opera as well as 
Netscape.  I think this must be caused by the way PHP handles headers and the way IE 
interprets them, because I can put PHP version 4.0.1pl2 on and it will work great even 
with IE, then any versions afterwards cause an error.  An example page is at 
http://test.jwdx.com I have also added header("Status: 404 Not Found") as stated in 
other bug reports.  I would not blame this on PHP except for the fact that different 
versions respond differently with all other circumstances remaining the same.

--Justin Bachus

---


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


-- 
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 #9433 Updated: ErrorDocument 404 pointing to PHP file

2001-02-24 Thread justin

ID: 9433
User Update by: [EMAIL PROTECTED]
Status: Open
Bug Type: Apache related
Description: ErrorDocument 404 pointing to PHP file

Adding to this, lynx reports a 404 then continues to load the correct page.  I guess 
lynx reports a 404 if the file is not found then proceeds to the page specified for 
that error.

Previous Comments:
---

[2001-02-24 16:43:48] [EMAIL PROTECTED]
No, lynx reports a 404 error also.

---

[2001-02-23 22:34:31] [EMAIL PROTECTED]
Apache 1.3.12


I wrote a script that redirects a person to a different page based on the REQUEST_URI 
and HTTP_HOST apache variables.  Ever since PHP 4.0.2, Internet Explorer started 
reporting 404 errors instead of going to the appropriate page.  What is even more 
mysterious is that it is the IE 404 error page, not the server wide page nor the 
default 404 error page for the site.  To top it all off, it works for Opera as well as 
Netscape.  I think this must be caused by the way PHP handles headers and the way IE 
interprets them, because I can put PHP version 4.0.1pl2 on and it will work great even 
with IE, then any versions afterwards cause an error.  An example page is at 
http://test.jwdx.com I have also added header("Status: 404 Not Found") as stated in 
other bug reports.  I would not blame this on PHP except for the fact that different 
versions respond differently with all other circumstances remaining the same.

--Justin Bachus

---


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


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




Re: [PHP-DEV] PHP 4.0 Bug #9433 Updated: ErrorDocument 404 pointing to PHP file

2001-02-24 Thread Björn Schotte

* [EMAIL PROTECTED] wrote:
 appropriate page.  What is even more mysterious is that it is the IE 404
 error page, not the server wide page nor the default 404 error page for
 the site.

That's crappy IE style which displays its own 404 error page with
its default configuration. Go to the IE preferences, there's a
section where you can change the behaviour of IE so that it
displays the 404 page which the server sends.

-- 
Bjrn Schotte  [EMAIL PROTECTED]
http://rent-a-phpwizard.de/   [EMAIL PROTECTED]

Software dev advocate: http://www.advogato.org/person/baerli/

-- 
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 #9433 Updated: ErrorDocument 404 pointing to PHP file

2001-02-24 Thread justin

ID: 9433
User Update by: [EMAIL PROTECTED]
Status: Open
Bug Type: Apache related
Description: ErrorDocument 404 pointing to PHP file

If this were the case, then why does it react differently with PHP version 4.0.1pl2 
and 4.0.2?

Previous Comments:
---

[2001-02-24 16:51:21] [EMAIL PROTECTED]
Adding to this, lynx reports a 404 then continues to load the correct page.  I guess 
lynx reports a 404 if the file is not found then proceeds to the page specified for 
that error.

---

[2001-02-24 16:43:48] [EMAIL PROTECTED]
No, lynx reports a 404 error also.

---

[2001-02-23 22:34:31] [EMAIL PROTECTED]
Apache 1.3.12


I wrote a script that redirects a person to a different page based on the REQUEST_URI 
and HTTP_HOST apache variables.  Ever since PHP 4.0.2, Internet Explorer started 
reporting 404 errors instead of going to the appropriate page.  What is even more 
mysterious is that it is the IE 404 error page, not the server wide page nor the 
default 404 error page for the site.  To top it all off, it works for Opera as well as 
Netscape.  I think this must be caused by the way PHP handles headers and the way IE 
interprets them, because I can put PHP version 4.0.1pl2 on and it will work great even 
with IE, then any versions afterwards cause an error.  An example page is at 
http://test.jwdx.com I have also added header("Status: 404 Not Found") as stated in 
other bug reports.  I would not blame this on PHP except for the fact that different 
versions respond differently with all other circumstances remaining the same.

--Justin Bachus

---


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


-- 
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 #8334 Updated: Segmentation faults on page load

2001-02-24 Thread augustz

ID: 8334
User Update by: [EMAIL PROTECTED]
Old-Status: Feedback
Status: Open
Bug Type: Output Control
Description: Segmentation faults on page load

I grabbed the 200102211045 snaps and have been playing with them without much success. 
Everything works fine with 4.0.4pl1 but switching up to this seems to fail in all 
cases. (with ob_gzhandler and without).

[Sat Feb 24 22:14:26 2001] [notice] Apache/1.3.14 (Unix)  (Red-Hat/Linux) 
PHP/4.0.5-dev configured -- resuming normal operations
[Sat Feb 24 22:15:56 2001] [notice] child pid 22211 exit signal Segmentation fault 
(11)
[Sat Feb 24 22:21:26 2001] [notice] child pid 22212 exit signal Segmentation fault 
(11)

Swapping back down to 4.0.4pl1 without ob_gzhandler still works. 

Previous Comments:
---

[2001-02-19 23:41:28] [EMAIL PROTECTED]
could you please try the latest cvs, several patches have
gone in since bug creation and it works for me on
win32+linux now

---

[2000-12-22 20:36:12] [EMAIL PROTECTED]
confirmed, it crashes too on win32 (already known to crash)

---

[2000-12-22 16:33:51] [EMAIL PROTECTED]
Without ob_gzhander things work fine with at least zlib compiled in.


---

[2000-12-21 21:36:32] [EMAIL PROTECTED]
output_buffering= Off   
output_handler  = ob_gzhandler

I'll send along the entire php.ini via email. Havn't had a chance to try without the 
ob_gzhandler line, will try that this weekend sometime. 

---

[2000-12-20 14:25:28] [EMAIL PROTECTED]
Hi,

Could you please supply your php.ini file. There were some problems with the ob so 
that section is of special interest.. I thought these issues were resolved.

James


---

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=8334


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




[PHP-DEV] Re: [ZEND-ENGINE] cvs: Zend / modules.h zend_builtin_functions.c

2001-02-24 Thread Andi Gutmans

Hopefully fixed now.

Andi

At 11:06 PM 2/24/2001 +0100, Sebastian Bergmann wrote:
Andi Gutmans wrote:
  andiSat Feb 24 23:16:58 2001 EDT
 
Modified files:
  /Zend   modules.h zend_builtin_functions.c
Log:
- Add exports from Daniel Beulshausen

cgi_main.c
..\main\php.h(44) : warning C4273: 'first_arg_force_ref' : Inkonsistente
DLL-Bindung. dllexport angenommen.
..\main\php.h(45) : warning C4273: 'first_arg_allow_ref' : Inkonsistente
DLL-Bindung. dllexport angenommen.
..\main\php.h(46) : warning C4273: 'second_arg_force_ref' : Inkonsistente
DLL-Bindung. dllexport angenommen.
..\main\php.h(47) : warning C4273: 'second_arg_allow_ref' : Inkonsistente
DLL-Bindung. dllexport angenommen.
getopt.c
..\main\php.h(44) : warning C4273: 'first_arg_force_ref' : Inkonsistente
DLL-Bindung. dllexport angenommen.
..\main\php.h(45) : warning C4273: 'first_arg_allow_ref' : Inkonsistente
DLL-Bindung. dllexport angenommen.
..\main\php.h(46) : warning C4273: 'second_arg_force_ref' : Inkonsistente
DLL-Bindung. dllexport angenommen.
..\main\php.h(47) : warning C4273: 'second_arg_allow_ref' : Inkonsistente
DLL-Bindung. dllexport angenommen.

--
  sebastian bergmann e-mail :  [EMAIL PROTECTED]
   homepage :  http://www.sebastian-bergmann.de
make a gift : http://wishlist.sebastian-bergmann.de
  measure the usability of your web application - http://phpOpenTracker.de


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




[PHP-DEV] Re: [ZEND-ENGINE] cvs: Zend / modules.hzend_builtin_functions.c

2001-02-24 Thread Sebastian Bergmann

Andi Gutmans wrote:
 Hopefully fixed now.

  Unfortuneately I'm still getting 

cgi_main.c
..\main\php.h(44) : warning C4273: 'first_arg_force_ref' : Inkonsistente 
DLL-Bindung. dllexport angenommen.
..\main\php.h(45) : warning C4273: 'first_arg_allow_ref' : Inkonsistente 
DLL-Bindung. dllexport angenommen.
..\main\php.h(46) : warning C4273: 'second_arg_force_ref' : Inkonsistente 
DLL-Bindung. dllexport angenommen.
..\main\php.h(47) : warning C4273: 'second_arg_allow_ref' : Inkonsistente 
DLL-Bindung. dllexport angenommen.
getopt.c
..\main\php.h(44) : warning C4273: 'first_arg_force_ref' : Inkonsistente 
DLL-Bindung. dllexport angenommen.
..\main\php.h(45) : warning C4273: 'first_arg_allow_ref' : Inkonsistente 
DLL-Bindung. dllexport angenommen.
..\main\php.h(46) : warning C4273: 'second_arg_force_ref' : Inkonsistente 
DLL-Bindung. dllexport angenommen.
..\main\php.h(47) : warning C4273: 'second_arg_allow_ref' : Inkonsistente 
DLL-Bindung. dllexport angenommen.

  While we're at it, is there anything you can do about 

zend_ini_scanner.cpp
zend_ini_scanner.cpp(740) : warning C4102: 'find_rule' : Unreferenzierte 
Marke

zend_language_scanner.cpp
zend_language_scanner.cpp(5435) : warning C4273: 'isatty' : Inkonsistente 
DLL-Bindung. dllexport angenommen.

-- 
 sebastian bergmann e-mail :  [EMAIL PROTECTED]
  homepage :  http://www.sebastian-bergmann.de
   make a gift : http://wishlist.sebastian-bergmann.de
 measure the usability of your web application - http://phpOpenTracker.de

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