Re: [PHP-DEV] Bug #10589 Updated: buildconf not compatible with GnuLibtool 1.4

2001-06-30 Thread Sascha Schumann

> Because this is something that needs to be fixed before
> we release this. Do you need some other reasoning?

Jani, this is a forum where people tend to be polite to each
other.  As a member of this forum, I'd expect you to follow
the established rules to facilitate constructive
communication among us.

The cited bug report is unrelated to the issue you are
referring to.  It is about enabling PHP to use libtool 1.4
which it is capable of now.  Therefore, the bug report can be
closed.

> I would like to revert back to libtool 1.3.5.
> It wasn't really a good idea (I know, I was asking for this..)
> to update to 1.4 so soon.

This is not a critical bug as it does not affect any
significant portion of our user group.  It is only
problematic, if you have conflicting versions of a software
installed in multiple places, one of which must be /usr/lib.
The same effect could happen under other circumstances as
well where you install various tools with a common prefix,
even if the special handling of /usr/lib would be added to
libtool 1.4.

We need to look into that issue, but we should not overstate
its importance.

- Sascha Experience IRCG
  http://schumann.cx/http://schumann.cx/ircg




-- 
PHP Development Mailing List 
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 #11062 Updated: Sharing Violation Error Message

2001-06-30 Thread sniper

ID: 11062
Updated by: sniper
Reported By: [EMAIL PROTECTED]
Old-Status: Open
Status: Feedback
Bug Type: Directory function related
Operating system: 
PHP Version: 4.0.6
Assigned To: 
Comments:



Previous Comments:
---

[2001-06-28 07:58:57] [EMAIL PROTECTED]
Yes it does.  :(   Does the folder need to have special permissions?  Right now I've 
got SYSTEM and CREATOR_OWNER with full controll, and a bunch of groups.

---

[2001-06-23 20:58:38] [EMAIL PROTECTED]
Does this happen with PHP 4.0.6 ?


---

[2001-06-04 01:27:47] [EMAIL PROTECTED]
In order to regain control over the directories, it is necessary to restart the entire 
"IIS Admin Service".  Restarting the "World Wide Web Publishing Service" alone does 
not fix the problem.

---

[2001-05-23 14:34:47] [EMAIL PROTECTED]
Hello, I've written a simple script which can recurse into subdirectories when needed, 
and print out an HTML table with with details about the files it finds.  The problem 
is that after I run this script, if I try and rename one of the folders it has 
recursed into, I get an error message which reads:

"Cannot rename [folder name]:  There has been a sharing violation.  The source or 
destination file may be in use."

Note that I can still rename files, just not folders.  If I stop and start IIS, I am 
able to rename folders until I run the script again.  I believe I'm using the 
closedir() function correctly, and have even echoed out when the directories are 
opened and closed to make sure I'm not messing up.  One last thing to note is that 
this script is being run on an NTFS partition.  A copy of the script follows:


http://www.foo.com"; . str_replace("/inetpub/www_root", "", $hddir);
$handle = opendir($hddir);
chdir($hddir);


// if there are files in the directory, print out the table header and set the 
flag
// once we find a file, don't run the test (and print out the table header) 
again
while (($file = readdir($handle)) && ($file_count < 1)) {
if ($file == '.' || $file== '..') 
continue;
else if (is_file($file)) {
echo "";
echo "Filename";
echo "Size";
echo "Modified";
$file_count += 1;
}
}


rewinddir ($handle);// start reading again 
from the beginning of the directory
while ($file = readdir($handle)) {  // while we can read an entry 
from the directory (files and dirs)
if ($file == '.' || $file== '..') 
continue;

else if (($mode == "recurse") && (is_dir($file)) && (substr("$file", 
0, 1) != "_")) {   // don't recurse directories which begin with an underscore
$dir_count += 1;
$places_to_go[$dir_count] = "$file";
}

else if (is_file($file)) {
$extension = ''; 
$parts = split('.', $file); 
if (count($parts) > 1) $extension = end($parts); 
if (!$extension && count($parts) > 2) $extension = 
prev($parts);

if (($extension == "doc") || ($extension == "DOC") || 
($extension == "rtf"))
echo "";
else
echo "";

echo "" . $file . ""; 

$j = 0; 
$ext = array(" Bytes", " KB", " MB", " GB", " TB"); 
$file_size = filesize($file); 
while ($file_size >= pow(1024,$j)) ++$j; 
$file_size = round($file_size / pow(1024,$j-1) * 100) 
/ 100 . $ext[$j-1];
echo "" . $file_size .  "";

$filemod = filemtime($file); 
$file_modtime = date("F j Y h:i:s A", $filemod); 
echo "" . $file_modtime .  "";
}

}   // end while we're reading files from the directory


// if we printed out a table, header (and contents) we should cap it off
if ($file_count >= 1)
echo "";


// if there are other directories to recurse into that were stored in our 
array, 
// print out the name of the directory, and call this function with the new 
directory name.
  

[PHP-DEV] Bug #11804: curl_error results strange strings

2001-06-30 Thread alberty

From: [EMAIL PROTECTED]
Operating system: i686-pc-linux-gnu
PHP version:  4.0 Latest CVS (2001-06-29)
PHP Bug Type: cURL related
Bug description:  curl_error results strange strings

Hi,

- cURL 7.8, PHP CVS, Apache 1.3.20, linux-i686

curl_errno doesnt work with follow code:

--

http://www.foo.com";;
$ch = curl_init ($url);
$header_file = fopen ("header_curl.dat", "w");
$content_file = fopen ("content_curl.dat", "w");

curl_setopt ($ch, CURLOPT_FILE, $content_file);

curl_setopt ($ch, CURLOPT_WRITEHEADER, $header_file);
curl_setopt ($ch, CURLOPT_REFERER, $url);
curl_setopt ($ch, CURLOPT_FOLLOWLOCATION, true);
curl_setopt ($ch,   CURLOPT_NOPROGRESS, true);
curl_setopt ($ch,   CURLOPT_TIMEOUT, 30);

$result=curl_exec ($ch);
$returncode=curl_getinfo($ch, CURLINFO_HTTP_CODE);
$totaltime=curl_getinfo($ch,CURLINFO_TOTAL_TIME);
$realurl=curl_getinfo($ch,CURLINFO_EFFECTIVE_URL);
$contentsize=curl_getinfo($ch,CURLINFO_SIZE_DOWNLOAD);

if (curl_errno($ch)>0){
$error=curl_error($ch);
echo $error;
}
fclose($header_file);
fclose($content_file);
?>

--

curl_errno($ch) results a wrong error number and also curl_error($ch)
contains broken strings.

-- 
Steve


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



-- 
PHP Development Mailing List 
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 #11805: missing 3600 seconds between 10/13/2001 and 10/15/2001

2001-06-30 Thread php

From: [EMAIL PROTECTED]
Operating system: debian gnu/linux
PHP version:  4.0.5
PHP Bug Type: Date/time related
Bug description:  missing 3600 seconds between 10/13/2001 and 10/15/2001

Hello,

I am trying to write the days between 10/13/2001 and 10/15/20001:

$i = mktime(0,0,0,10,13,2001);// --> 1002942000 
$j = mktime(0,0,0,10,15,2001);// --> 1003111200

while ( $i <= $j ) {
  echo date("m-d-Y",$i);
  $i +=86400; 
}

but it stops on 10/14/2001, because 

1002942000 ( $i )
  + 86400
  + 86400  

=  1003114800 
  - 1003111200 ( $j ) 
--
= 3600  ( should be zero ! )

I 've made a work-around using date(m,d+1,Y),
but somebdoy please explain me where are the
3600 seconds that are missing ?

Thanks,
gabriel




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



-- 
PHP Development Mailing List 
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 #11785: mysql_unbuffered_query and mysql_query failure.

2001-06-30 Thread trozdzyn

From: [EMAIL PROTECTED]
Operating system: Linux redhat 7.0
PHP version:  4.0.6
PHP Bug Type: MySQL related
Bug description:  mysql_unbuffered_query and mysql_query failure.

I have mysql table with over 6 records inside.

code:
$sql = "SELECT * FROM database.table ORDER BY field";
$result = mysql_unbuffered_query($sql) or die("Error!");
does not work at all but displays "Error!"

code:
$sql = "SELECT * FROM database.table ORDER BY field limit  1,1000";
$result = mysql_unbuffered_query($sql) or die("Error!");
works fine.

code:
$sql = "SELECT * FROM database.table";
$result = mysql_unbuffered_query($sql) or die("Error!");
works fine.


Moreover , there is exactly the same problem with mysql_query() function...


My system is:
PHP: 4.0.6
MySQL: 3.23.22
Linux Kernel: 2.2.17-14


Help!!!



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



-- 
PHP Development Mailing List 
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 #11786: Problems with variables from forms posting.

2001-06-30 Thread M . Izydorski

From: [EMAIL PROTECTED]
Operating system: Windows 2000
PHP version:  4.0.6
PHP Bug Type: Scripting Engine problem
Bug description:  Problems with variables from forms posting.

I used standard binary for Windows 2000(msi) - Apache 1.3.20 and PHP 4.0.6 (standard, 
module not cgi)

When i put enctype="text/plain" in form's attributes list, there are no variables in 
environment neither in global tables $HTTP_ENV_VARS, etc...


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



-- 
PHP Development Mailing List 
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 #11801 Updated: crypt function not 'supported' ???

2001-06-30 Thread sniper

ID: 11801
Updated by: sniper
Reported By: [EMAIL PROTECTED]
Old-Status: Open
Status: Closed
Bug Type: *Install and Config
Operating system: 
PHP Version: 4.0.6
Assigned To: 
Comments:

This is fixed in CVS. You can enable crypt in 4.0.6
by editing in main/php_config.h after configure by 
adding this line to it:

#define HAVE_CRYPT 1

--Jani


Previous Comments:
---

[2001-06-29 10:00:00] [EMAIL PROTECTED]
With versions 3.0.8 and 4.0.4pl1 is all OK. When upgraded to 4.0.6 in every script 
using crypt we have:
"Warning: crypt() is not supported in this PHP build in ..."
Nothing else changed in my system. We are using enhanced security.

This error was also reported by PHPNuke users in their discussions (see 
http://phpnuke.org/article.php?sid=1798)

---



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


-- 
PHP Development Mailing List 
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 #11776 Updated: filestat.c:`php_if_diskfreespace': storage size of `buf' isn't known

2001-06-30 Thread sniper

ID: 11776
Updated by: sniper
Reported By: [EMAIL PROTECTED]
Old-Status: Open
Status: Feedback
Bug Type: Compile Failure
Operating system: 
PHP Version: 4.0.6
Assigned To: 
Comments:

I wonder where you got those sources since in my version
of PHP 4.0.6 (which is the correct one) there is nothing
like that on line 159 of filestat.c. And is your install
of linux really working one? 

Do you have following header files:

/usr/include/sys/statvfs.h
/usr/include/sys/statfs.h
/usr/include/sys/mount.h


--Jani


Previous Comments:
---

[2001-06-28 08:44:04] [EMAIL PROTECTED]
When trying to compile PHP 4.0.6 I get the following error:

gcc  -I. -I/mnt/src/apache-install/php-4.0.6/ext/standard 
-I/mnt/src/apache-install/php-4.0.6/main -I/mnt/src/apache-install/php-4.0.6 
-I/mnt/src/apache-install/apache_1.3.20/src/include 
-I/mnt/src/apache-install/apache_1.3.20/src/os/unix 
-I/mnt/src/apache-install/php-4.0.6/Zend -I/usr/local/include/freetype 
-I/mnt/src/apache-install/gd-1.8.4 -I/usr/local/mysql/include/mysql 
-I/mnt/src/apache-install/php-4.0.6/ext/xml/expat/xmltok 
-I/mnt/src/apache-install/php-4.0.6/ext/xml/expat/xmlparse 
-I/mnt/src/apache-install/php-4.0.6/TSRM  -DSUPPORT_UTF8 -DXML_BYTE_ORDER=12 -g -O2  
-c filestat.c && touch filestat.lo
filestat.c: In function `php_if_diskfreespace':
filestat.c:159: storage size of `buf' isn't known
make[3]: *** [filestat.lo] Error 1
make[3]: Leaving directory `/mnt/src/apache-install/php-4.0.6/ext/standard'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/mnt/src/apache-install/php-4.0.6/ext/standard'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/mnt/src/apache-install/php-4.0.6/ext'
make: *** [all-recursive] Error 1

My configureline: 

./configure --prefix=/usr/local/apache 
--activate-module=src/modules/auth_mysql/libauth_mysql.a 
--add-module=../mod_auth_cookie-1.9/mod_auth_cookie.c 
--activate-module=src/modules/php4/libphp4.a --enable-module=ssl

---



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


-- 
PHP Development Mailing List 
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 #11806: Using $string = md5($string); crashed HTTP child processes

2001-06-30 Thread joe

From: [EMAIL PROTECTED]
Operating system: Linux 2.2.16
PHP version:  4.0.6
PHP Bug Type: Reproducible crash
Bug description:  Using $string = md5($string); crashed HTTP child processes

PHP Options:
'./configure' '--with-mysql' '--with-gd' '--enable-track-vars' 
'--with-jpeg-dir=/usr/local/lib' '--enable-bcmath' '--with-apache=../apache_1.3.20' 
'--enable-ftp' '--enable-sockets' '--with-mcrypt'

The problem I am having is:

When using the code:

$cipher = md5($cipher); httpd crashes the current child process with:

[Fri Jun 29 10:54:49 2001] [notice] child pid 9766 exit signal Segmentation fault (11)
[Fri Jun 29 10:54:50 2001] [notice] child pid 9920 exit signal Segmentation fault (11)

The page then fails to load, returning nothing to the browser.

Also, I have another function called CleanSring($string);  which looks like:

function CleanString($string)
{
$string = strip_tags($string);
$string = 
preg_replace("/<\/?(html|head|meta|title|body|font|img|.jpg|.gif|.vbs|script|tr|table|text).*>/","",$string);
$string = 
preg_replace("/<\/?(HTML|HEAD|META|TITLE|BODY|FONT|IMG|.JPG|.GIF|.VBS|SCRIPT|TR|TABLE|TEXT).*>/","",$string);
$string = preg_replace("/<[^>]*>/","",$string);
return $string;
}

Calling this function like:

$string = CleanString($string); causes the same problem.

Whats weird is I call md5() again below the problem code:

$now = date("r");
$thisID = md5(substr(makeID(), 0, 16));
$onetimepass = substr(md5($thisID), 0, 8);

And neither of these causes the same problem, even when being used in the same 
document.




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



-- 
PHP Development Mailing List 
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 #11786 Updated: Problems with variables from forms posting.

2001-06-30 Thread M . Izydorski

ID: 11786
User Update by: [EMAIL PROTECTED]
Status: Open
Bug Type: Scripting Engine problem
Operating system: Windows 2000
PHP Version: 4.0.6
Description: Problems with variables from forms posting.

I used standard binary for Windows 2000(msi) - Apache 1.3.20 and PHP 4.0.6 (standard,
module not cgi)

When i put enctype="text/plain" in form's attributes list, there are no
variables in environment neither in global tables $HTTP_ENV_VARS, etc... after form 
submit.


Previous Comments:
---

[2001-06-28 13:41:58] [EMAIL PROTECTED]
I used standard binary for Windows 2000(msi) - Apache 1.3.20 and PHP 4.0.6 (standard, 
module not cgi)

When i put enctype="text/plain" in form's attributes list, there are no variables in 
environment neither in global tables $HTTP_ENV_VARS, etc...

---


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


-- 
PHP Development Mailing List 
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 #11803 Updated: call to undefined function not caught by set_error_handler

2001-06-30 Thread sniper

ID: 11803
Updated by: sniper
Reported By: [EMAIL PROTECTED]
Old-Status: Open
Status: Analyzed
Old-Bug Type: *General Issues
Bug Type: Documentation problem
Operating system: 
PHP Version: 4.0.6
Assigned To: 
Comments:

FATAL levels of errors are not passed to the user 
defined error handler. This is documentation problem.

Also, the example script on the set_error_handler() manual
page is a bit buggy.

--Jani


Previous Comments:
---

[2001-06-29 13:01:35] [EMAIL PROTECTED]
$ok=1;
function sionna($errno, $errmsg) {
global $ok;
$ok=0;
}
set_error_handler('sionna');
xslt_errno();

If xslt_errno is configured into php, $ok will be 1.
If xslt_errno is not configured into php, the script will die noisily,
or quietly if error_reporting(0).

Same deal with eval() -- it also doesn't let you probe for
undefined functions.

---



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


-- 
PHP Development Mailing List 
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] What does this error mean?

2001-06-30 Thread derick

Hello,

this is not a php user mailinglist, please ask this only on the
[EMAIL PROTECTED] mailinglist. The other lists you wrote to
(php-qa and php-lang) are mostly for development purposes OF php.

regards,
Derick

On Thu, 28 Jun 2001, Jimi Malcolm wrote:

> I'm trying to from a file in a directory called 'logs'.  I've never seen
> this error before.  What does it mean?
>
> <<>>
> Warning: fopen("logs/993700800.log","w+") - Permission denied in
> /home/sites/site20/users/guide/web/counter.php on line 28
>
> Warning: Supplied argument is not a valid File-Handle resource in
> /home/sites/site20/users/guide/web/counter.php on line 29
>
> Warning: Supplied argument is not a valid File-Handle resource in
> /home/sites/site20/users/guide/web/counter.php on line 30
> 1
> <<>>
>
> The last two errors are becuase the first fails to return a file handle.
> Here's the actual offending code.  It's just a simple counter.
>
> <<>>
>  $iDate = mktime(0, 0, 0, date("m"), date("d"), date("Y"));
> $iCount = 1;
> $sFile = "logs/".$iDate.".log";
>
> if (file_exists($sFile)) {
>  $iCount = incCount($sFile);
> } else {
>  createCountLog($sFile);
> }
>
> echo "$iCount";
>
> function incCount($sFile) {
>  // Open and read existing count
>  $hCounter = fopen($sFile, "r");
>  $iCount = fgets($hCounter, 1024);
>  fclose($hCounter);
>  // Write over it with the new count
>  $hCounter = fopen($sFile, "w");
>  fputs($hCounter, ++$iCount);
>  fclose($hCounter);
>  return $iCount;
> }
>
>
> function createCountLog($sFile) {
>  $hCounter = fopen($sFile, "w+");
>  fputs($hCounter, 1);
>  fclose($hCounter);
> }
>
> ?>
> <<>>
>
> Usually I've been able to fix every PHP error I've gotten in the past -
> they've been pretty straightforward - but I've been playing around with this
> error for a few days now to no avail.
>
> I'm new to this mailing list and have never used it before so I'm not sure
> which one/s to join or post this specific message to.  I apologize if this
> is the wrong forum for this type of question.  Thank you for your time.
>
> --
> Jimi Malcolm
> Web Content Manager
> inburst Internet Media
> inburst.com
> jimi.malcolm@inburst
>
>
>
> --
> PHP Development Mailing List 
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
>

Derick Rethans

-
PHP: Scripting the Web - www.php.net - [EMAIL PROTECTED]
 SRM: Site Resource Manager - www.vl-srm.net
-


-- 
PHP Development Mailing List 
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 #10589 Updated: buildconf not compatible with Gnu Libtool 1.4

2001-06-30 Thread sniper

ID: 10589
Updated by: sniper
Reported By: [EMAIL PROTECTED]
Old-Status: Critical
Status: Closed
Bug Type: *Install and Config
Operating system: 
PHP Version: 4.0 Latest CVS (01/05/2001)
Assigned To: 
Comments:

There is already another bug report about the other problems. The issue reported in 
this one is fixed. 



Previous Comments:
---

[2001-06-28 15:14:55] [EMAIL PROTECTED]
No, the libtool 1.4 is seriously bugged..


---

[2001-06-28 05:37:55] [EMAIL PROTECTED]
This has been fixed has it not?? Libtool 1.4 works fine for me with latest CVS. CLosing

---

[2001-05-09 11:18:33] [EMAIL PROTECTED]
Reopened. There are some problems with libtool 1.4 still
so we propably won't support for it in 4.0.6. 

Marked to be fixed before 4.0.7.

--Jani



---

[2001-05-02 23:44:39] [EMAIL PROTECTED]
Fixed in CVS. Thanks for catching this!

--Jani


---

[2001-05-02 07:47:27] [EMAIL PROTECTED]
Any reason why this was closed?

---

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=10589&edit=2


-- 
PHP Development Mailing List 
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 #11790 Updated: Error compiling PHP

2001-06-30 Thread rmang

ID: 11790
User Update by: [EMAIL PROTECTED]
Old-Status: Feedback
Status: Open
Bug Type: Compile Failure
Operating system: Redhat Linux 5.x
PHP Version: 4.0.6
Description: Error compiling PHP

I have /usr/include/sys/mount.h
but not statfs.h, and not stavfs.h

I tried just adding the header files to the dir. (I know it's not the preferred way) 
but that did not good. I am running gcc version 2.7.2.1 and libc5.3.12 on RH 5.x.

I have successfully compiled php-4.0.4pl1 on this machine. Thanks for any help.

Previous Comments:
---

[2001-06-29 09:41:44] [EMAIL PROTECTED]
Do you have following header files: 
/usr/include/sys/statvfs.h
/usr/include/sys/statfs.h
/usr/include/sys/mount.h 


--Jani


---

[2001-06-28 23:44:59] [EMAIL PROTECTED]
Compiling php4.0.6 on RH libc5.3 server as CGI module, received the following compile 
error:
--
gcc  -I. -I/home2/rlm/php-4.0.6/ext/standard -I/home2/rlm/php-4.0.6/main 
-I/home2/rlm/php-4.0.6 -I/home2/rlm/php-4.0.6/Zend -I/home/rlm/gd1.3/ 
-I/usr/local/Hughes/include -I/usr/local/mysql3/include 
-I/home2/rlm/php-4.0.6/ext/xml/expat/xmltok 
-I/home2/rlm/php-4.0.6/ext/xml/expat/xmlparse -I/home2/rlm/php-4.0.6/TSRM  
-DSUPPORT_UTF8 -DXML_BYTE_ORDER=12 -g -O2  -c filestat.c && touch filestat.lo
filestat.c: In function `php_if_diskfreespace':
filestat.c:157: storage size of `buf' isn't known
make[3]: *** [filestat.lo] Error 1
make[3]: Leaving directory `/home2/rlm/php-4.0.6/ext/standard'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home2/rlm/php-4.0.6/ext/standard'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home2/rlm/php-4.0.6/ext'
make: *** [all-recursive] Error 1
---
configure line:
./configure --enable-force-cgi-redirect --with-mysql=/usr/local/mysql3 --with-msql 
--bindir=/home/rlm/php-4.0.6 --with-gd=/home/rlm/gd1.3 
--with-config-file-path=/home/rlm/php-4.0.6

---


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


-- 
PHP Development Mailing List 
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 #11807:

2001-06-30 Thread sniper

From: [EMAIL PROTECTED]
Operating system: Linux
PHP version:  4.0 Latest CVS (2001-06-29)
PHP Bug Type: *Session related
Bug description:  




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



-- 
PHP Development Mailing List 
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] CVS probs

2001-06-30 Thread Rasmus Lerdorf

> [derick@aarde cpdf]$ cvs commit
> cvs commit: Examining .
> Checking in cpdf.c;
> /repository/php4/ext/cpdf/cpdf.c,v  <--  cpdf.c
> new revision: 1.27; previous revision: 1.26
> done
> Can't exec "/usr/local/bin/cvs": No such file or directory at
> /repository/CVSROOT/loginfo.pl line 122.
> Mailing the commit email to [EMAIL PROTECTED]

This should be fixed.  I don't see any reference to /usr/local/bin/cvs in
the repository now.

-Rasmus


-- 
PHP Development Mailing List 
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] What does this error mean?

2001-06-30 Thread Chris Newbill

It is the wrong place, you want php-general.

But the error is straight forward, you do NOT have permissions to write to
that file.  With that said have your system administrator make sure the user
that the web server runs as has write access to the directory in which you
are attempting to store your files from PHP.

-Chris

-Original Message-
From: Jimi Malcolm [mailto:[EMAIL PROTECTED]]
Sent: Thursday, 28 June, 2001 1:18 PM
To: [EMAIL PROTECTED]
Subject: [PHP-DEV] What does this error mean?


I'm trying to from a file in a directory called 'logs'.  I've never seen
this error before.  What does it mean?

<<>>
Warning: fopen("logs/993700800.log","w+") - Permission denied in
/home/sites/site20/users/guide/web/counter.php on line 28

Warning: Supplied argument is not a valid File-Handle resource in
/home/sites/site20/users/guide/web/counter.php on line 29

Warning: Supplied argument is not a valid File-Handle resource in
/home/sites/site20/users/guide/web/counter.php on line 30
1
<<>>

The last two errors are becuase the first fails to return a file handle.
Here's the actual offending code.  It's just a simple counter.

<<>>
$iCount";

function incCount($sFile) {
 // Open and read existing count
 $hCounter = fopen($sFile, "r");
 $iCount = fgets($hCounter, 1024);
 fclose($hCounter);
 // Write over it with the new count
 $hCounter = fopen($sFile, "w");
 fputs($hCounter, ++$iCount);
 fclose($hCounter);
 return $iCount;
}


function createCountLog($sFile) {
 $hCounter = fopen($sFile, "w+");
 fputs($hCounter, 1);
 fclose($hCounter);
}

?>
<<>>

Usually I've been able to fix every PHP error I've gotten in the past -
they've been pretty straightforward - but I've been playing around with this
error for a few days now to no avail.

I'm new to this mailing list and have never used it before so I'm not sure
which one/s to join or post this specific message to.  I apologize if this
is the wrong forum for this type of question.  Thank you for your time.

--
Jimi Malcolm
Web Content Manager
inburst Internet Media
inburst.com
jimi.malcolm@inburst



--
PHP Development Mailing List 
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 
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 #11805 Updated: missing 3600 seconds between 10/13/2001 and 10/15/2001

2001-06-30 Thread sniper

ID: 11805
Updated by: sniper
Reported By: [EMAIL PROTECTED]
Old-Status: Open
Status: Feedback
Bug Type: Date/time related
Operating system: 
PHP Version: 4.0.5
Assigned To: 
Comments:

Does this happen with PHP 4.0.6? (I can't reproduce this with it)


Previous Comments:
---

[2001-06-29 13:49:51] [EMAIL PROTECTED]
Hello,

I am trying to write the days between 10/13/2001 and 10/15/20001:

$i = mktime(0,0,0,10,13,2001);// --> 1002942000 
$j = mktime(0,0,0,10,15,2001);// --> 1003111200

while ( $i <= $j ) {
  echo date("m-d-Y",$i);
  $i +=86400; 
}

but it stops on 10/14/2001, because 

1002942000 ( $i )
  + 86400
  + 86400  

=  1003114800 
  - 1003111200 ( $j ) 
--
= 3600  ( should be zero ! )

I 've made a work-around using date(m,d+1,Y),
but somebdoy please explain me where are the
3600 seconds that are missing ?

Thanks,
gabriel



---



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


-- 
PHP Development Mailing List 
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] Email change request

2001-06-30 Thread Sascha Schumann

On Thu, 28 Jun 2001, Markus Fischer wrote:

> Can somebody with enough karma please change my forward
> [EMAIL PROTECTED] from [EMAIL PROTECTED] to
> [EMAIL PROTECTED] ?

Done.  Please note that the change might take some hours to
become effective.

- Sascha Experience IRCG
  http://schumann.cx/http://schumann.cx/ircg


-- 
PHP Development Mailing List 
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 #11787: Cannot change Icon Font in display properties while PHP is loaded

2001-06-30 Thread bassz

From: [EMAIL PROTECTED]
Operating system: Win98 (also SE)
PHP version:  4.0.5
PHP Bug Type: *General Issues
Bug description:  Cannot change Icon Font in display properties while PHP is loaded

Under Windows 98, or Win98SE, while PHP is loaded (apache module or just run PHP.EXE 
without parameters) it's impossible to change the icon font in the display properties: 
Windows shows an hourglass and keeps on waiting forever.
Try this: start php. Right-click windows desktop and select Properties. Go to the 
third tab and select another scheme. Now press OK. Hourglass + wait forever (Press 
Ctrl+Alt+Del and close Display Properties)

This is with the standard configuration php.ini: "$Id: php.ini-dist,v 1.73.2.2 
2001/04/22 11:58:49 phanto Exp $"

I have this problem under (clean) Windows 98 (4.0.1998) and (clean) Windows 98 Second 
Edition (4.10. A). Both Dutch translations.

No gdb backtrace included since PHP itself doesn't crash (btw, it's rulezzz!) but only 
the Display Properties dialog box.

BaSs-Z


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



-- 
PHP Development Mailing List 
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 #11762 Updated: bad example

2001-06-30 Thread Xuefer

ID: 11762
User Update by: [EMAIL PROTECTED]
Status: Bogus
Bug Type: Documentation problem
Operating system: win2k
PHP Version: 4.0.5
Description: bad example

thx for replying, thx 
btw, in http://www.php.net/docs.php
doucument list
file size? may not need if file is small enough
file size for compare and decide whether to download ?
why not show an document last update date?
or document version will be better :P
just suggestion, may not post as a reply here

Previous Comments:
---

[2001-06-28 11:29:28] [EMAIL PROTECTED]
Not necessarily. Latest should always be the online manual.
And the VERY latest is in CVS. :)



---

[2001-06-28 08:23:10] [EMAIL PROTECTED]
I think i've downloaded the lastest version of chm file.
I do also download it again.
isn't the CHM version of document the newest document ?

---

[2001-06-27 23:03:36] [EMAIL PROTECTED]
You must be looking into old manual or something since
the example I see on the getdate() manual page has perfect,
working example in it.


---

[2001-06-27 22:34:30] [EMAIL PROTECTED]
PHP manual
getdate
(PHP 3, PHP 4 )

getdate -- Get date/time information
Description

array getdate ([int timestamp])


Example 1. getdate() example 

$today = getdate(); 
$month = $today[month]; 
$mday = $today[mday]; 
$year = $today[year]; 
echo "$month $mday, $year";
  
 
---
-> $mday = $today[mday]; 
warnning: Use of undefined constant mday - assumed 'mday'
although a undefined constant will be assumed as a string, it's still a bad usage of 
this auto conversion.

php manual writers shouldn't make a bad guide for php learners

thx

---


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


-- 
PHP Development Mailing List 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP-DEV] no subject (file transmission)

2001-06-30 Thread chrism

I encountered a problem where the result of a preg_replace was FALSE.
This was fed into a switch statement - and I believe PHP executed the
the wrong case section.

I've tracked this down to preg_replace not really returning FALSE
combined with SWITCH executing the first case statement always on either
a numeric 0 or BOOLEAN TRUE.

As a consequence of auto type conversion, you can't mix
STRING/NUMERIC/BOOLEAN within a switch.  And with the preg_replace issue,
you can't assume all input into your switch will be of one TYPE (BOOLEAN).

Aside from changing functions to return real booleans

1. Should type conversion be turned off inside switch() ?
2. If 0 == FALSE then why 0 == "ANYTHING" ?

Chris



-- 
PHP Development Mailing List 
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] Assert callback handlers

2001-06-30 Thread Thies C. Arntzen

On Thu, Jun 28, 2001 at 05:42:35PM -0400, Jon Parise wrote:
> On Thu, Jun 28, 2001 at 05:23:41AM -0600, Zak Greant wrote:
> 
> > Can anyone see any problems with adding array (&$object, 'method') syntax to
> > the assert handler functionality?
>  
> I think that would be fiarly useful, actually.  In the past, I've
> just written whole functions that sort of mimic assert(), but
> this would be much better.

will implement this shortly!
tc

-- 
PHP Development Mailing List 
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] CVS Account Request

2001-06-30 Thread Dave Jones

CVS Account Request wrote:
>> Purpose: I would like cvs access so that I can check a bug fix
>> to the sybase_ct module. I need this bug fix to be
>> in the next release of PHP.
>
>  Just send a diff of your patch to [EMAIL PROTECTED]

In order to get a clean build of PHP on VMS, I have to modify 29 of the
original source files.  In about 1/3 of the files, the only changes
are to add a couple casts needed because the compiler feels obliged to 
warn you that 'char *' and 'unsigned char *' are different data types.

The separate diff files are available from:

http://www.er6.eng.ohio-state.edu/~jonesd/php/

It would save me some work if at least some of these patches could be
rolled into distribution tree.

A summary of the changes in these diff files follows:

   ext/standard/base64.c
Added casts to certain function calls to eliminate warnings where
original code uses types 'char *' and 'unsigned char *' interchangeably.

   ext/standard/basic_functions.c
Add '#ifdef's to conditionally compile several declarations that
refer to syslog (HAVE_SYSLOG_H) and sendmail (HAVE_SENDMAIL).

   ext/standard/credits.c
Give Dave Jones credit for the OpenVMS port.

   ext/standard/credits_sapi.h
Give Dave Jones credit for the OSU sapi.

   ext/standard/dl.c
Modify code to load shareable images via LIB$FIND_IMAGE_SYMBOL on VMS.

   ext/standard/exec.c
Fail, with error message, the passthru function on VMS (pipe 
incompatibilty).

Make main read loop in shell_exec() test for success of buffer
alloc/realloc rather than unconditionally attempting to use the
returned pointer.

Make the main read loop use fgets rather than fread for reading
from the pipe (bug in DECCRTL, fread won't detect end-of-data).
Since this increases the number of times through the read loop (once
for each line of output), change buffer allocation to only grow
the receiving buffer when less that PIPE_BUF bytes (the read size)
are left.

   ext/standard/file.c
Modify stat function to return dev and rdev as strings rather than
numbers and ino as three separate numbers (ino0, ino1, ino2).

   ext/standard/filestat.c
Make chgrp and chown follow the Windows behaviour, changing the
relevant "#ifndef WINDOWS" to "#if !defined(WINDOWS) && !defined(VMS)"

Skip groups check in php_stat function.

Modify php_stat function to return dev and rdev as strings rather than
numbers and ino as three separate numbers (ino0, ino1, ino2).

   ext/standard/flock_compat.c
Emulate flock() function on VMS.  Still under development, may work 
under VMS 7.3 if you enable default shared opens in the C runtime.

   main/fopen_wrappers.c
Modify fopen to include "rop=rah" (read-ahead record processing option)
DECC extension on VMS.

Modify fopen to use mode "r" instead of "rb" on VMS, allowing
standard VMS text files (VAR record format) to be correctly
read by the C runtime.  When "rb" is used, DECCRTL does not insert
the implied newline at the end of each record into the data stream,
making VAR format files appear to only have 1 line.

Modify getcwd call to use DECC extension that forces returned
directory string to use Unix syntax (/dev/dir).

   ext/standard/fsock.c
Modify test used for domain socket support.  Testing for existence
of AF_UNIX is inadequate since VMS header files define this but
don't define sockaddr_un structure.

   ext/standard/html.c
Added cast to php_escape_html call to eliminate warnings where
original code uses types 'char *' and 'unsigned char *' interchangeably.

   ext/standard/image.c
Added casts to certain function calls to eliminate warnings where
original code uses types 'char *' and 'unsigned char *' interchangeably.

   main/internal_functions_w32.c
Remove calendar and ftp modules as builtin internal functions.

   ext/standard/iptc.c
Added casts to certain function calls to eliminate warnings where
original code uses types 'char *' and 'unsigned char *' interchangeably.

   main/main.c
Added casts to certain function calls to eliminate warnings where
original code uses types 'char *' and 'unsigned char *' interchangeably.

   ext/standard/md5.c
Added casts to certain function calls to eliminate warnings where
original code uses types 'char *' and 'unsigned char *' interchangeably.

   ext/standard/microtime.c
Define a timezone struct on VMS since not defined by the header files.

   main/network.c
Modify the header file references needed for TCP/IP function calls.

   ext/standard/output.c
Added casts to certain function call to eliminate warning where
original code uses types 'int *' and 'unsigned int *' interchangeably

Re: [PHP-DEV] Bug #11789: Apache can't start

2001-06-30 Thread Brian Foddy

I see this a lot when the LD_LIBRARY_PATH is not set
correctly to load the Sybase libraries.  Double check
that type of stuff.

[EMAIL PROTECTED] wrote:
> 
> From: [EMAIL PROTECTED]
> Operating system: Linux 2.4.5
> PHP version:  4.0.6
> PHP Bug Type: Sybase-ct (ctlib) related
> Bug description:  Apache can't start
> 
> When I launch apache with sybase_ct, I've got following messages :
> 
> DRK01:/soft/apache/bin# ./apachectl start
> ./apachectl: line 184: 15557 Segmentation fault  $HTTPD
> ./apachectl start: httpd could not be started
> 
> Sybase Version : 11.9.2
> $SYBASE environment variable is correctly set
> 
> There's nothing in apache's logs
> There's nothing in dmesg's output
> 
> Do you have any idea ?
> 
> Thanks for your answer
> 
> @++
> JC
> 
> --
> Edit Bug report at: http://bugs.php.net/?id=11789&edit=1
> 
> --
> PHP Development Mailing List 
> 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 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP-DEV] CVS Account Request

2001-06-30 Thread CVS Account Request

Full name: Simone Cortesi
Email: [EMAIL PROTECTED]
ID: cortesi
Purpose: Hi, i will be helping Luca Perugini ([EMAIL PROTECTED]) in the italian 
translation of the PHP manual, I\'ve already translated some xml files in italian. I 
have knowledge of how CVS work and would like to have commit right to the italian part 
of the doc tree.
thanks,
Simone.

-- 
PHP Development Mailing List 
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] Bug #11805 Updated: missing 3600 seconds between 10/13/2001 and 10/15/2001

2001-06-30 Thread Steve Meyers

The following script shows an extra 3600 seconds on the 29th of October for
me:

$last_ts = mktime(0,0,0,10,0,2001);

for ($i = 1; $i < 32; $i++) {
$ts = mktime(0, 0, 0, 10, $i, 2001);
printf("%2s: %s (%s)\n", $i, $ts, $ts - $last_ts);
$last_ts = $ts;
}

However, I think that's just Daylight Savings Time...  I'm guessing that
this bug report somehow relates to daylight savings, and thus it isn't
really a bug at all.

--

Steve Meyers

<[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> ID: 11805
> Updated by: sniper
> Reported By: [EMAIL PROTECTED]
> Old-Status: Open
> Status: Feedback
> Bug Type: Date/time related
> Operating system:
> PHP Version: 4.0.5
> Assigned To:
> Comments:
>
> Does this happen with PHP 4.0.6? (I can't reproduce this with it)
>
>
> Previous Comments:
> --
-
>
> [2001-06-29 13:49:51] [EMAIL PROTECTED]
> Hello,
>
> I am trying to write the days between 10/13/2001 and 10/15/20001:
>
> $i = mktime(0,0,0,10,13,2001);// --> 1002942000
> $j = mktime(0,0,0,10,15,2001);// --> 1003111200
>
> while ( $i <= $j ) {
>   echo date("m-d-Y",$i);
>   $i +=86400;
> }
>
> but it stops on 10/14/2001, because
>
> 1002942000 ( $i )
>   + 86400
>   + 86400
> 
> =  1003114800
>   - 1003111200 ( $j )
> --
> = 3600  ( should be zero ! )
>
> I 've made a work-around using date(m,d+1,Y),
> but somebdoy please explain me where are the
> 3600 seconds that are missing ?
>
> Thanks,
> gabriel
>
>
>
> --
-
>
>
>
> ATTENTION! Do NOT reply to this email!
> To reply, use the web interface found at
http://bugs.php.net/?id=11805&edit=2
>
>
> --
> PHP Development Mailing List 
> 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 
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 #11781 Updated: Seg Fault apache and 0 bytes request.. apache died

2001-06-30 Thread sniper

ID: 11781
Updated by: sniper
Reported By: [EMAIL PROTECTED]
Old-Status: Open
Status: Feedback
Old-Bug Type: Apache related
Bug Type: Reproducible crash
Operating system: 
PHP Version: 4.0.6
Assigned To: 
Comments:

Please include a GDB backtrace of the crash into this report. Instructions how to do 
this are found here:

http://www.php.net/bugs-generating-backtrace.php

--jani


Previous Comments:
---

[2001-06-28 10:25:40] [EMAIL PROTECTED]
The crash happens after a random (half) hours at with my busy visited website +/- 2 
mil. pageviews a month.
Lots of these messages in my apache error_log
[Thu Jun 28 15:51:13 2001] [notice] child pid 21954 exit signal Segmentation fault 
(11)
apachectl restart won't help!! only apachectl stop and start makes it work again.

all the configure and compile went good!
I already tried it with apc enabled and disabled in php.ini with no results.
this is my configure string:

 './configure' '--with-config-file-path=/www' '--with-apache=../apache_1.3.20' 
'--with-mcrypt=../libmcrypt-2.4.11' '--with-mysql=/usr/local/mysql' 
'--with-openssl=/usr/local/openssl' '--with-zlib-dir=/usr/local' 
'--with-zlib=/usr/local' '--with-gd=/usr/local' '--with-jpeg-dir=/usr/local' 
'--with-png-dir=/usr/local' '--with-freetype-dir=/usr/local' '--with-ttf' 
'--enable-gd-native-ttf' '--with-xml' '--disable-debug' '--enable-memory-limit' 
'--enable-shared' '--enable-track-vars' '--enable-trans-sid' '--enable-versioning' 
'--enable-magic-quotes' '--enable-bcmath' '--enable-apc'

php405 worked great but then I was unable to configure gd and freetype.

---



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


-- 
PHP Development Mailing List 
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 #11797: CC and BCC don't work in mail() function

2001-06-30 Thread diankov_ss

From: [EMAIL PROTECTED]
Operating system: Windows 2000
PHP version:  4.0.4
PHP Bug Type: Mail related
Bug description:  CC and BCC don't work in mail() function

I'm using php 4.0.4 on Windows 2000 with IIS.
The mail() function is working perfect, except the CC and BCC options.

I tried the following:
\nBCC:
\r\nBCC:
\nBcc:
\r\nBcc:

and the same with CC.

No result.


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



-- 
PHP Development Mailing List 
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 #11799: OCIFetchInto/OCI_NUM starts the array at 0 not at 1 as stated in the doc

2001-06-30 Thread karoshi

From: [EMAIL PROTECTED]
Operating system: Win2000
PHP version:  4.0.4pl1
PHP Bug Type: OCI8 related
Bug description:  OCIFetchInto/OCI_NUM starts the array at 0 not at 1 as stated in the 
doc

$cur=OCIParse($conn, $query);
OCIExecute($cur);
OCIFetchInto($cur, $result,OCI_NUM);

--> $result starts at [0] and not at [1] as written in the documentation


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



-- 
PHP Development Mailing List 
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] 'Global' variable scope.

2001-06-30 Thread Cynic

because it's not global. global variables are those not defined
within any function, method, or object. and please, ask further
questions like this in php-general@

At 13:01 6/29/2001, John Parker wrote the following:
-- 
>Hi, all.
>
>I'm just wondering why a variable defined within a function is not available
>as a global to functions called from the same scope. There's probably a
>really good reason for this, but I'm not sure I know what it is. 
>
>Feel free to educate me.
>
>Ta muchly,
>JP.
>
>--- Code example follows ---
>
>  $G_test = "Hello, World.";  globalTest();   }   
>Function globalTest()   {   global $G_test; if 
>(isset($G_test)) {   echo ("Global variable 
>'test' - value:
>'".$G_test."'.\n");   }   else echo ("Global 
>variable 'test' is not set.\n");  }?>
>
>--
>John Parker   email: [EMAIL PROTECTED]
>Internet Project Manager/Software Engineer   web:www.itchannel.net
>itCHANNEL International Ltd.  tel: +44 (0) 1202 291939
>
>
>-- 
>PHP Development Mailing List 
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]
>To contact the list administrators, e-mail: [EMAIL PROTECTED]
--end of quote-- 


[EMAIL PROTECTED]
-
And the eyes of them both were opened and they saw that their files
were world readable and writable, so they chmoded 600 their files.
- Book of Installation chapt 3 sec 7 


-- 
PHP Development Mailing List 
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 #11761 Updated: LC_CTYPE undeclared

2001-06-30 Thread unix-guy

ID: 11761
User Update by: [EMAIL PROTECTED]
Old-Status: Feedback
Status: Open
Bug Type: Compile Failure
Operating system: HP-UX 11.00
PHP Version: 4.0.6
Description: LC_CTYPE undeclared

I do have /usr/include/locale.h. In the php_config.h file, the only line matching 
'HAVE_LOCALE_H' is:

/* #undef HAVE_LOCALE_H */

Is configure not finding my header file?




Previous Comments:
---

[2001-06-28 11:33:59] [EMAIL PROTECTED]

Do you have /usr/include/locale.h ?
Can you find this line in php4/main/php_config.h:

#define HAVE_LOCALE_H 1



---

[2001-06-27 20:44:14] [EMAIL PROTECTED]

Compile with either that static or DSO method fails on HP-UX 11.00.

Config command (from static):

./configure --prefix=/opt/php4 --with-apache=../apache_1.3.19 --disable-debug 
--enable-inline-optimization --with-exec-dir=/opt/php4/bin --with-d
bm --enable-debugger --enable-magic-quotes --enable-safe-mode --enable-sockets 
--enable-track-vars --enable-yp --enable-ftp --without-mysql --without-oracle 
--without-oci8

End of make output:

gcc  -I. -I/tmp/php-4.0.6/ext/pcre -I/tmp/php-4.0.6/main -I/tmp/php-4.0.6 
-I/tmp/apache_1.3.19/src/include -I/tmp/apache_1.3.19/src/os/unix 
-I/tmp/php-4.0.6/Zend -I/tmp/php-4.0.6/ext/xml/expat/xmltok 
-I/tmp/php-4.0.6/ext/xml/expat/xmlparse -I/tmp/php-4.0.6/TSRM  -DSUPPORT_UTF8 
-DXML_BYTE_ORDER=21 -g -O2  -c php_pcre.c && touch php_pcre.lo
In file included from /tmp/php-4.0.6/Zend/../main/php_config.h:1931,
 from /tmp/php-4.0.6/Zend/zend_config.h:1,
 from /tmp/php-4.0.6/Zend/zend.h:44,
 from /tmp/php-4.0.6/main/php.h:34,
 from php_pcre.c:25:
/opt/gcc/lib/gcc-lib/hppa2.0n-hp-hpux11.00/2.95.3/include/string.h:26: warning: 
`__va__list' redefined
/opt/gcc/lib/gcc-lib/hppa2.0n-hp-hpux11.00/2.95.3/include/stdio.h:30: warning: this is 
the location of the previous definition
php_pcre.c: In function `pcre_get_compiled_regex':
php_pcre.c:158: `LC_CTYPE' undeclared (first use in this function)
php_pcre.c:158: (Each undeclared identifier is reported only once
php_pcre.c:158: for each function it appears in.)
php_pcre.c:158: warning: initialization makes pointer from integer without a cast
*** Error exit code 1

Stop.
*** Error exit code 1

Stop.
*** Error exit code 1

Stop.
*** Error exit code 1

Stop.

Tried with LANG=C and LANG undefined - no difference...

---


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


-- 
PHP Development Mailing List 
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 request

2001-06-30 Thread Joey Smith

*sg* Yes, I was in my anonymous tree. Sorry for the noise.

On Fri, 29 Jun 2001, Rasmus Lerdorf wrote the following to Joey Smith :

> > Can I get karma in ext/sybase and ext/sybase_ct again?
> 
> You do
> 


-- 
PHP Development Mailing List 
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 #11761 Updated: LC_CTYPE undeclared

2001-06-30 Thread unix-guy

ID: 11761
User Update by: [EMAIL PROTECTED]
Status: Open
Bug Type: Compile Failure
Operating system: HP-UX 11.00
PHP Version: 4.0.6
Description: LC_CTYPE undeclared

I was able to work around the problem by adding:

#define HAVE_LOCALE_H 1

in main/php_config.h

However, I am still concerned at why that particular header file was not found.

Previous Comments:
---

[2001-06-29 17:12:30] [EMAIL PROTECTED]

I do have /usr/include/locale.h. In the php_config.h file, the only line matching 
'HAVE_LOCALE_H' is:

/* #undef HAVE_LOCALE_H */

Is configure not finding my header file?




---

[2001-06-28 11:33:59] [EMAIL PROTECTED]

Do you have /usr/include/locale.h ?
Can you find this line in php4/main/php_config.h:

#define HAVE_LOCALE_H 1



---

[2001-06-27 20:44:14] [EMAIL PROTECTED]

Compile with either that static or DSO method fails on HP-UX 11.00.

Config command (from static):

./configure --prefix=/opt/php4 --with-apache=../apache_1.3.19 --disable-debug 
--enable-inline-optimization --with-exec-dir=/opt/php4/bin --with-d
bm --enable-debugger --enable-magic-quotes --enable-safe-mode --enable-sockets 
--enable-track-vars --enable-yp --enable-ftp --without-mysql --without-oracle 
--without-oci8

End of make output:

gcc  -I. -I/tmp/php-4.0.6/ext/pcre -I/tmp/php-4.0.6/main -I/tmp/php-4.0.6 
-I/tmp/apache_1.3.19/src/include -I/tmp/apache_1.3.19/src/os/unix 
-I/tmp/php-4.0.6/Zend -I/tmp/php-4.0.6/ext/xml/expat/xmltok 
-I/tmp/php-4.0.6/ext/xml/expat/xmlparse -I/tmp/php-4.0.6/TSRM  -DSUPPORT_UTF8 
-DXML_BYTE_ORDER=21 -g -O2  -c php_pcre.c && touch php_pcre.lo
In file included from /tmp/php-4.0.6/Zend/../main/php_config.h:1931,
 from /tmp/php-4.0.6/Zend/zend_config.h:1,
 from /tmp/php-4.0.6/Zend/zend.h:44,
 from /tmp/php-4.0.6/main/php.h:34,
 from php_pcre.c:25:
/opt/gcc/lib/gcc-lib/hppa2.0n-hp-hpux11.00/2.95.3/include/string.h:26: warning: 
`__va__list' redefined
/opt/gcc/lib/gcc-lib/hppa2.0n-hp-hpux11.00/2.95.3/include/stdio.h:30: warning: this is 
the location of the previous definition
php_pcre.c: In function `pcre_get_compiled_regex':
php_pcre.c:158: `LC_CTYPE' undeclared (first use in this function)
php_pcre.c:158: (Each undeclared identifier is reported only once
php_pcre.c:158: for each function it appears in.)
php_pcre.c:158: warning: initialization makes pointer from integer without a cast
*** Error exit code 1

Stop.
*** Error exit code 1

Stop.
*** Error exit code 1

Stop.
*** Error exit code 1

Stop.

Tried with LANG=C and LANG undefined - no difference...

---


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


-- 
PHP Development Mailing List 
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 #11806 Updated: Using $string = md5($string); crashed HTTP child processes

2001-06-30 Thread derick

ID: 11806
Updated by: derick
Reported By: [EMAIL PROTECTED]
Old-Status: Open
Status: Feedback
Bug Type: Reproducible crash
Operating system: 
PHP Version: 4.0.6
Assigned To: 
Comments:

Can you please post your script as .txt file on the web, so that I can check how the 
$cipher is generated?
And is it possibly for you to make a backtrace of this crash 
(http://www.php.net/bugs-generating-backtrace.php) as I couldn't reproduce it.

Derick

Previous Comments:
---

[2001-06-29 14:04:25] [EMAIL PROTECTED]

PHP Options:
'./configure' '--with-mysql' '--with-gd' '--enable-track-vars' 
'--with-jpeg-dir=/usr/local/lib' '--enable-bcmath' '--with-apache=../apache_1.3.20' 
'--enable-ftp' '--enable-sockets' '--with-mcrypt'

The problem I am having is:

When using the code:

$cipher = md5($cipher); httpd crashes the current child process with:

[Fri Jun 29 10:54:49 2001] [notice] child pid 9766 exit signal Segmentation fault (11)
[Fri Jun 29 10:54:50 2001] [notice] child pid 9920 exit signal Segmentation fault (11)

The page then fails to load, returning nothing to the browser.

Also, I have another function called CleanSring($string);  which looks like:

function CleanString($string)
{
$string = strip_tags($string);
$string = 
preg_replace("//","",$string);

$string = 
preg_replace("//","",$string);

$string = preg_replace("/<[^>]*>/","",$string);
return $string;
}

Calling this function like:

$string = CleanString($string); causes the same problem.

Whats weird is I call md5() again below the problem code:

$now = date("r");
$thisID = md5(substr(makeID(), 0, 16));
$onetimepass = substr(md5($thisID), 0, 8);

And neither of these causes the same problem, even when being used in the same 
document.



---



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


-- 
PHP Development Mailing List 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP-DEV] array_key and array_value

2001-06-30 Thread Andrew Sitnikov

Hello php-dev,

  $a = array (
 'one'   => '1',
 'two'   => '2',
 'three' => '3',
  );

  $k = array_keys($a);
  $v = array_value($a);

  Whether the condition will be true: $a[$k[$i]] == $v[$i] ?
  for $i from 0 to count($a)-1
  
  P.S. This question has arisen as perl (for example) does not
  guarantee the order elements in hash.

  
Best regards,
 Andrew Sitnikov 
 e-mail : [EMAIL PROTECTED]
 GSM: (+372) 56491109


-- 
PHP Development Mailing List 
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] 'Global' variable scope.

2001-06-30 Thread Zeev Suraski

That's simply not the way things work.  Local variables are local to the 
context of the function that declared them, and are not supposed to be 
accessible from any other context, including that of nested function calls 
(that's how most languages behave).

At 14:01 29/6/2001, John Parker wrote:
>Hi, all.
>
>I'm just wondering why a variable defined within a function is not available
>as a global to functions called from the same scope. There's probably a
>really good reason for this, but I'm not sure I know what it is.
>
>Feel free to educate me.
>
>Ta muchly,
>JP.
>
>--- Code example follows ---
>
>startTests()   {   $G_test = "Hello, 
>World.";  globalTest();   }   Function 
>globalTest()   {   global $G_test; if 
>(isset($G_test)) {   echo ("Global 
>variable 'test' - value:
>'".$G_test."'.\n");   }   else echo 
>("Global variable 'test' is not set.\n");  }?>
>
>--
>John Parker   email: [EMAIL PROTECTED]
>Internet Project Manager/Software Engineer   web:www.itchannel.net
>itCHANNEL International Ltd.  tel: +44 (0) 1202 291939
>
>
>--
>PHP Development Mailing List 
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]
>To contact the list administrators, e-mail: [EMAIL PROTECTED]

--
Zeev Suraski <[EMAIL PROTECTED]>
CTO &  co-founder, Zend Technologies Ltd. http://www.zend.com/


-- 
PHP Development Mailing List 
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 #11807 Updated:

2001-06-30 Thread derick

ID: 11807
Updated by: derick
Reported By: [EMAIL PROTECTED]
Old-Status: Open
Status: Bogus
Bug Type: *Session related
Operating system: 
PHP Version: 4.0 Latest CVS (2001-06-29)
Assigned To: 
Comments:



Previous Comments:
---

[2001-06-29 14:42:19] [EMAIL PROTECTED]



---



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


-- 
PHP Development Mailing List 
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 #11785 Updated: mysql_unbuffered_query and mysql_query failure.

2001-06-30 Thread derick

ID: 11785
Updated by: derick
Reported By: [EMAIL PROTECTED]
Old-Status: Open
Status: Closed
Bug Type: MySQL related
Operating system: 
PHP Version: 4.0.6
Assigned To: 
Comments:

Try putting this line after the mysql_unbuffered_query line.
You'll probably see the error that MySQL returns. This is most likely a bug in PHP.

Derick

Previous Comments:
---

[2001-06-28 13:40:17] [EMAIL PROTECTED]

I have mysql table with over 6 records inside.

code:
$sql = "SELECT * FROM database.table ORDER BY field";
$result = mysql_unbuffered_query($sql) or die("Error!");
does not work at all but displays "Error!"

code:
$sql = "SELECT * FROM database.table ORDER BY field limit  1,1000";
$result = mysql_unbuffered_query($sql) or die("Error!");
works fine.

code:
$sql = "SELECT * FROM database.table";
$result = mysql_unbuffered_query($sql) or die("Error!");
works fine.


Moreover , there is exactly the same problem with mysql_query() function...


My system is:
PHP: 4.0.6
MySQL: 3.23.22
Linux Kernel: 2.2.17-14


Help!!!


---



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


-- 
PHP Development Mailing List 
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 #11790 Updated: Error compiling PHP

2001-06-30 Thread derick

ID: 11790
Updated by: derick
Reported By: [EMAIL PROTECTED]
Old-Status: Open
Status: Duplicate
Bug Type: Compile Failure
Operating system: 
PHP Version: 4.0.6
Assigned To: 
Comments:

Dup of: 11776

Previous Comments:
---

[2001-06-29 14:32:35] [EMAIL PROTECTED]

I have /usr/include/sys/mount.h
but not statfs.h, and not stavfs.h

I tried just adding the header files to the dir. (I know it's not the preferred way) 
but that did not good. I am running gcc version 2.7.2.1 and libc5.3.12 on RH 5.x.

I have successfully compiled php-4.0.4pl1 on this machine. Thanks for any help.

---

[2001-06-29 09:41:44] [EMAIL PROTECTED]

Do you have following header files: 
/usr/include/sys/statvfs.h
/usr/include/sys/statfs.h
/usr/include/sys/mount.h 


--Jani


---

[2001-06-28 23:44:59] [EMAIL PROTECTED]

Compiling php4.0.6 on RH libc5.3 server as CGI module, received the following compile 
error:
--
gcc  -I. -I/home2/rlm/php-4.0.6/ext/standard -I/home2/rlm/php-4.0.6/main 
-I/home2/rlm/php-4.0.6 -I/home2/rlm/php-4.0.6/Zend -I/home/rlm/gd1.3/ 
-I/usr/local/Hughes/include -I/usr/local/mysql3/include 
-I/home2/rlm/php-4.0.6/ext/xml/expat/xmltok 
-I/home2/rlm/php-4.0.6/ext/xml/expat/xmlparse -I/home2/rlm/php-4.0.6/TSRM  
-DSUPPORT_UTF8 -DXML_BYTE_ORDER=12 -g -O2  -c filestat.c && touch filestat.lo
filestat.c: In function `php_if_diskfreespace':
filestat.c:157: storage size of `buf' isn't known
make[3]: *** [filestat.lo] Error 1
make[3]: Leaving directory `/home2/rlm/php-4.0.6/ext/standard'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home2/rlm/php-4.0.6/ext/standard'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home2/rlm/php-4.0.6/ext'
make: *** [all-recursive] Error 1
---
configure line:
./configure --enable-force-cgi-redirect --with-mysql=/usr/local/mysql3 --with-msql 
--bindir=/home/rlm/php-4.0.6 --with-gd=/home/rlm/gd1.3 
--with-config-file-path=/home/rlm/php-4.0.6

---



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


-- 
PHP Development Mailing List 
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: Bug #11749 Updated: Unserialize dies with Apache Module but is FINE with CGI

2001-06-30 Thread Thies C. Arntzen

On Fri, Jun 29, 2001 at 03:31:25AM -0700, Brian Tanner wrote:
> You may consider it fixed if you like.
> 
> However... the data file failed to load in Module, and did load in CGI.
> 
> Shouldn't they be identical?

yes they should. but there should be _no_ difference in the
fopen() PHP function between the module and the cgi. if there
is a difference than the environment bewteen the two must be
different!

there's not a lot we can do from here -plus- it's obvious
that you _must_ use binary mode for files that contain
serialized data with CR in them!

tc

-- 
PHP Development Mailing List 
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 #11786 Updated: Problems with variables from forms posting.

2001-06-30 Thread derick

ID: 11786
Updated by: derick
Reported By: [EMAIL PROTECTED]
Old-Status: Open
Status: Closed
Bug Type: Scripting Engine problem
Operating system: 
PHP Version: 4.0.6
Assigned To: 
Comments:

This data should be in $HTTP_RAW_POST_DATA. If PHP does not see the default enctype, 
it stores the post data in this variable.

Derick

Previous Comments:
---

[2001-06-28 13:44:21] [EMAIL PROTECTED]

I used standard binary for Windows 2000(msi) - Apache 1.3.20 and PHP 4.0.6 (standard,
module not cgi)

When i put enctype="text/plain" in form's attributes list, there are no
variables in environment neither in global tables $HTTP_ENV_VARS, etc... after form 
submit.


---

[2001-06-28 13:41:58] [EMAIL PROTECTED]

I used standard binary for Windows 2000(msi) - Apache 1.3.20 and PHP 4.0.6 (standard, 
module not cgi)

When i put enctype="text/plain" in form's attributes list, there are no variables in 
environment neither in global tables $HTTP_ENV_VARS, etc...

---



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


-- 
PHP Development Mailing List 
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 #11797 Updated: CC and BCC don't work in mail() function

2001-06-30 Thread derick

ID: 11797
Updated by: derick
Reported By: [EMAIL PROTECTED]
Old-Status: Open
Status: Feedback
Bug Type: Mail related
Operating system: 
PHP Version: 4.0.4
Assigned To: 
Comments:

The following should work fine. Can you check it?

mail ("[EMAIL PROTECTED]", "Subject", "Body", "Cc:[EMAIL PROTECTED]");

Previous Comments:
---

[2001-06-29 04:31:24] [EMAIL PROTECTED]

I'm using php 4.0.4 on Windows 2000 with IIS.
The mail() function is working perfect, except the CC and BCC options.

I tried the following:
nBCC:
rnBCC:
nBcc:
rnBcc:

and the same with CC.

No result.

---



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


-- 
PHP Development Mailing List 
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 #11761 Updated: LC_CTYPE undeclared

2001-06-30 Thread unix-guy

ID: 11761
User Update by: [EMAIL PROTECTED]
Status: Open
Bug Type: Compile Failure
Operating system: HP-UX 11.00
PHP Version: 4.0.6
Description: LC_CTYPE undeclared

I was able to work around the problem by adding:

#define HAVE_LOCALE_H 1

in main/php_config.h

However, I am still concerned at why that particular header file was not found.

Previous Comments:
---

[2001-06-29 17:14:05] [EMAIL PROTECTED]

I was able to work around the problem by adding:

#define HAVE_LOCALE_H 1

in main/php_config.h

However, I am still concerned at why that particular header file was not found.

---

[2001-06-29 17:12:30] [EMAIL PROTECTED]

I do have /usr/include/locale.h. In the php_config.h file, the only line matching 
'HAVE_LOCALE_H' is:

/* #undef HAVE_LOCALE_H */

Is configure not finding my header file?




---

[2001-06-28 11:33:59] [EMAIL PROTECTED]

Do you have /usr/include/locale.h ?
Can you find this line in php4/main/php_config.h:

#define HAVE_LOCALE_H 1



---

[2001-06-27 20:44:14] [EMAIL PROTECTED]

Compile with either that static or DSO method fails on HP-UX 11.00.

Config command (from static):

./configure --prefix=/opt/php4 --with-apache=../apache_1.3.19 --disable-debug 
--enable-inline-optimization --with-exec-dir=/opt/php4/bin --with-d
bm --enable-debugger --enable-magic-quotes --enable-safe-mode --enable-sockets 
--enable-track-vars --enable-yp --enable-ftp --without-mysql --without-oracle 
--without-oci8

End of make output:

gcc  -I. -I/tmp/php-4.0.6/ext/pcre -I/tmp/php-4.0.6/main -I/tmp/php-4.0.6 
-I/tmp/apache_1.3.19/src/include -I/tmp/apache_1.3.19/src/os/unix 
-I/tmp/php-4.0.6/Zend -I/tmp/php-4.0.6/ext/xml/expat/xmltok 
-I/tmp/php-4.0.6/ext/xml/expat/xmlparse -I/tmp/php-4.0.6/TSRM  -DSUPPORT_UTF8 
-DXML_BYTE_ORDER=21 -g -O2  -c php_pcre.c && touch php_pcre.lo
In file included from /tmp/php-4.0.6/Zend/../main/php_config.h:1931,
 from /tmp/php-4.0.6/Zend/zend_config.h:1,
 from /tmp/php-4.0.6/Zend/zend.h:44,
 from /tmp/php-4.0.6/main/php.h:34,
 from php_pcre.c:25:
/opt/gcc/lib/gcc-lib/hppa2.0n-hp-hpux11.00/2.95.3/include/string.h:26: warning: 
`__va__list' redefined
/opt/gcc/lib/gcc-lib/hppa2.0n-hp-hpux11.00/2.95.3/include/stdio.h:30: warning: this is 
the location of the previous definition
php_pcre.c: In function `pcre_get_compiled_regex':
php_pcre.c:158: `LC_CTYPE' undeclared (first use in this function)
php_pcre.c:158: (Each undeclared identifier is reported only once
php_pcre.c:158: for each function it appears in.)
php_pcre.c:158: warning: initialization makes pointer from integer without a cast
*** Error exit code 1

Stop.
*** Error exit code 1

Stop.
*** Error exit code 1

Stop.
*** Error exit code 1

Stop.

Tried with LANG=C and LANG undefined - no difference...

---


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


-- 
PHP Development Mailing List 
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 #11703 Updated: Failed opening prepend.php3

2001-06-30 Thread gmills

ID: 11703
User Update by: [EMAIL PROTECTED]
Old-Status: Feedback
Status: Open
Bug Type: Scripting Engine problem
Operating system: Solaris 8
PHP Version: 4.0.6
Description: Failed opening prepend.php3

Here is the prepend.php3 file. It comes from the phplib distributed with HORDE



Previous Comments:
---

[2001-06-29 23:51:51] [EMAIL PROTECTED]

I don't see it here. You have to attach it to this bug report..


---

[2001-06-29 18:41:42] [EMAIL PROTECTED]

Sniper - I sent my prepend.php3 file. Did you get it?

---

[2001-06-27 09:00:19] [EMAIL PROTECTED]

What is in the file prepend.php3 ??


---

[2001-06-26 14:54:23] [EMAIL PROTECTED]

The comment should read "I commented out the auto-prepend-file directive in php.ini 
and got a 'test.php' file to run phpinfo."

---

[2001-06-26 14:52:25] [EMAIL PROTECTED]

I commented out the auto-prepend-file directive and a 'test.php' file to run phpinfo.

---

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


-- 
PHP Development Mailing List 
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 #11762 Updated: bad example

2001-06-30 Thread Xuefer

ID: 11762
User Update by: [EMAIL PROTECTED]
Status: Bogus
Bug Type: Documentation problem
Operating system: win2k
PHP Version: 4.0.5
Description: bad example

thank u all :))

Previous Comments:
---

[2001-06-29 13:27:31] [EMAIL PROTECTED]

OK, as you suggested dates are printed now. You can see, that nearly all files are 
autogenerated daily (dispite what I said before) except the CHM version (and the temp 
unavailable PDF). We will update the CHM versions soon.

Anyway, this way the full table listing is **UGLY**. Is there anybody with a better 
layout tip?

Ps. I used the RFC date type date('r", $changed) to be world wide compatible (though 
it is very long...).

---

[2001-06-29 12:36:12] [EMAIL PROTECTED]

There will be some date info also on that page. I'll do it ASAP. It was on my todo 
list for a week now. Well, dates are much important, but sizes are also usable, when 
you need to choose from .zip or .tar.gz, while your zip program handles both of them.

It is true, that PDFs, CHMs and Palm docs are behind, but just because we have no 
**automated** process to do it. Everything else is automated (text and HTML). This is 
also on our __long time__ todo list to implement some automated CHM generation on Unix 
(it is not easy to do :).

---

[2001-06-28 17:59:26] [EMAIL PROTECTED]

I'm planning to update the CHM versions soon now, as lots of things have been changed.
I hope I can do it this weekend.

Derick

---

[2001-06-28 17:22:12] [EMAIL PROTECTED]

My apologies.. I responded before I realized that the mailing lists are 12-14 hrs 
behind.  I didn't think to read the bug report on the page to make sure no one 
responded to it already.

---

[2001-06-28 17:21:03] [EMAIL PROTECTED]

I believe that the PDF and CHM version of the module always lag behind due to the 
amount of work it takes to package them up.  If you are ever in doubt, please check 
the online html manual first.  You can visit it directly at: http://php.net/manual/


---

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


-- 
PHP Development Mailing List 
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 #11782 Updated: Select from Array

2001-06-30 Thread hholzgra

ID: 11782
Updated by: hholzgra
Reported By: [EMAIL PROTECTED]
Old-Status: Open
Status: Bogus
Bug Type: ODBC related
Operating system: 
PHP Version: 4.0.6
Assigned To: 
Comments:

this looks like an ODBC driver incompatibility
between the NT version and the Openlink driver,
it is most likely not related to PHP at all,
as PHP does only pass it on from ODBC to its
error log

you should report this error to the OpenLink 
maintainers instead IMHO

Previous Comments:
---

[2001-06-28 11:34:06] [EMAIL PROTECTED]

When I run an odbc_exec from PHP-4.0.2 which connects to a Progress 83C database in 
order
to retreive an array field as follows:

select name,narrative@1 from customer

I get an SQL syntax error as follows:

Warning SQL Error [OpenLink][ODBC] Syntax error or access, SQL State 37000 in
SQLExecDIRECT

It works on NT.


It would seem that PHP don't like the @ sign, How can I get it to like it.

TIA

Aubrey


---



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


-- 
PHP Development Mailing List 
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 #11805 Updated: missing 3600 seconds between 10/13/2001 and 10/15/2001

2001-06-30 Thread hholzgra

ID: 11805
Updated by: hholzgra
Reported By: [EMAIL PROTECTED]
Old-Status: Feedback
Status: Closed
Bug Type: Date/time related
Operating system: 
PHP Version: 4.0.5
Assigned To: 
Comments:

daylight saving time !

look for the optional seventh parameter to mktime
on http://php.net/mktime

Previous Comments:
---

[2001-06-29 14:52:12] [EMAIL PROTECTED]

Does this happen with PHP 4.0.6? (I can't reproduce this with it)


---

[2001-06-29 13:49:51] [EMAIL PROTECTED]

Hello,

I am trying to write the days between 10/13/2001 and 10/15/20001:

$i = mktime(0,0,0,10,13,2001);// --> 1002942000 
$j = mktime(0,0,0,10,15,2001);// --> 1003111200

while ( $i <= $j ) {
  echo date("m-d-Y",$i);
  $i +=86400; 
}

but it stops on 10/14/2001, because 

1002942000 ( $i )
  + 86400
  + 86400  

=  1003114800 
  - 1003111200 ( $j ) 
--
= 3600  ( should be zero ! )

I 've made a work-around using date(m,d+1,Y),
but somebdoy please explain me where are the
3600 seconds that are missing ?

Thanks,
gabriel



---



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


-- 
PHP Development Mailing List 
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 #11685 Updated: Bad Auto-Cast

2001-06-30 Thread Hot Soon

ID: 11685
User Update by: Hot Soon<[EMAIL PROTECTED]>
Status: Closed
Bug Type: Scripting Engine problem
Operating system: Windows 98 SE
PHP Version: 4.0.6
Description: Bad Auto-Cast



Previous Comments:
---

[2001-06-26 07:55:20] [EMAIL PROTECTED]

Indeed, +, -, and * 'autocasting' doesn't work in negative direction, only positive.

---

[2001-06-26 01:30:13] Hot Soon<[EMAIL PROTECTED]>

Just run this program:


It will print out "int(0)".
but I believe it should print out"int(-2147483648)" or "float(-2147483648)" like this 
program:



---


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


-- 
PHP Development Mailing List 
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 #11797 Updated: CC and BCC don't work in mail() function

2001-06-30 Thread hholzgra

ID: 11797
Updated by: hholzgra
Reported By: [EMAIL PROTECTED]
Old-Status: Feedback
Status: Assigned
Bug Type: Mail related
Operating system: 
PHP Version: 4.0.4
Assigned To: 
Comments:

mail code on windows badly needs a rewrite

right now it will only find a single Cc: line,
is case sensitive on comparing againgst Cc:
(so CC: wont work) and ignores Bcc: all together

Previous Comments:
---

[2001-06-30 04:33:40] [EMAIL PROTECTED]

The following should work fine. Can you check it?

mail ("[EMAIL PROTECTED]", "Subject", "Body", "Cc:[EMAIL PROTECTED]");

---

[2001-06-29 04:31:24] [EMAIL PROTECTED]

I'm using php 4.0.4 on Windows 2000 with IIS.
The mail() function is working perfect, except the CC and BCC options.

I tried the following:
nBCC:
rnBCC:
nBcc:
rnBcc:

and the same with CC.

No result.

---



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


-- 
PHP Development Mailing List 
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 #11761 Updated: LC_CTYPE undeclared

2001-06-30 Thread sniper

ID: 11761
Updated by: sniper
Reported By: [EMAIL PROTECTED]
Status: Open
Bug Type: Compile Failure
Operating system: 
PHP Version: 4.0.6
Assigned To: 
Comments:

User feedback (next time, use the WEB interface to answer):
---
I do have /usr/include/locale.h. In the php_config.h file, the only line
matching 'HAVE_LOCALE_H' is:

/* #undef HAVE_LOCALE_H */

Is configure not finding my header file?
---



Previous Comments:
---

[2001-06-29 17:48:56] [EMAIL PROTECTED]

I was able to work around the problem by adding:

#define HAVE_LOCALE_H 1

in main/php_config.h

However, I am still concerned at why that particular header file was not found.

---

[2001-06-29 17:14:05] [EMAIL PROTECTED]

I was able to work around the problem by adding:

#define HAVE_LOCALE_H 1

in main/php_config.h

However, I am still concerned at why that particular header file was not found.

---

[2001-06-29 17:12:30] [EMAIL PROTECTED]

I do have /usr/include/locale.h. In the php_config.h file, the only line matching 
'HAVE_LOCALE_H' is:

/* #undef HAVE_LOCALE_H */

Is configure not finding my header file?




---

[2001-06-28 11:33:59] [EMAIL PROTECTED]

Do you have /usr/include/locale.h ?
Can you find this line in php4/main/php_config.h:

#define HAVE_LOCALE_H 1



---

[2001-06-27 20:44:14] [EMAIL PROTECTED]

Compile with either that static or DSO method fails on HP-UX 11.00.

Config command (from static):

./configure --prefix=/opt/php4 --with-apache=../apache_1.3.19 --disable-debug 
--enable-inline-optimization --with-exec-dir=/opt/php4/bin --with-d
bm --enable-debugger --enable-magic-quotes --enable-safe-mode --enable-sockets 
--enable-track-vars --enable-yp --enable-ftp --without-mysql --without-oracle 
--without-oci8

End of make output:

gcc  -I. -I/tmp/php-4.0.6/ext/pcre -I/tmp/php-4.0.6/main -I/tmp/php-4.0.6 
-I/tmp/apache_1.3.19/src/include -I/tmp/apache_1.3.19/src/os/unix 
-I/tmp/php-4.0.6/Zend -I/tmp/php-4.0.6/ext/xml/expat/xmltok 
-I/tmp/php-4.0.6/ext/xml/expat/xmlparse -I/tmp/php-4.0.6/TSRM  -DSUPPORT_UTF8 
-DXML_BYTE_ORDER=21 -g -O2  -c php_pcre.c && touch php_pcre.lo
In file included from /tmp/php-4.0.6/Zend/../main/php_config.h:1931,
 from /tmp/php-4.0.6/Zend/zend_config.h:1,
 from /tmp/php-4.0.6/Zend/zend.h:44,
 from /tmp/php-4.0.6/main/php.h:34,
 from php_pcre.c:25:
/opt/gcc/lib/gcc-lib/hppa2.0n-hp-hpux11.00/2.95.3/include/string.h:26: warning: 
`__va__list' redefined
/opt/gcc/lib/gcc-lib/hppa2.0n-hp-hpux11.00/2.95.3/include/stdio.h:30: warning: this is 
the location of the previous definition
php_pcre.c: In function `pcre_get_compiled_regex':
php_pcre.c:158: `LC_CTYPE' undeclared (first use in this function)
php_pcre.c:158: (Each undeclared identifier is reported only once
php_pcre.c:158: for each function it appears in.)
php_pcre.c:158: warning: initialization makes pointer from integer without a cast
*** Error exit code 1

Stop.
*** Error exit code 1

Stop.
*** Error exit code 1

Stop.
*** Error exit code 1

Stop.

Tried with LANG=C and LANG undefined - no difference...

---

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=11761&edit=2


-- 
PHP Development Mailing List 
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 #11762 Updated: bad example

2001-06-30 Thread cynic

ID: 11762
Updated by: cynic
Reported By: [EMAIL PROTECTED]
Status: Bogus
Bug Type: Documentation problem
Operating system: 
PHP Version: 4.0.5
Assigned To: 
Comments:

Hi goba,

how about:

+---+-+---+---++
| Language  | Format  | Filename  | Size  | Date   |
+---+-+---+---++
|   | Single HTML | html.gz   | 123kB | a date |
|   +-+---+---++
|   | Plaintext   | txt.gz| 456kB | a date |
|   +-+---+---++
|   | Many HTML files | tar.gz| 789kB | a date |
| English   | | .zip  | 1.2MB | a date |
|   +-+---+---++
|   | PDF | txt.gz| 456kB | a date |
|   +-+---+---++
|   | PalmPilot DOC   | doc.pdb   | 456kB | a date |
|   +-+---+---++
|   | PalmPilot iSilo | isilo.pdb | 456kB | a date |
|   +-+---+---++
|   | Windows HTMLHlp | chm   | 456kB | a date |
+---+-+---+---++


you get the idea.

Previous Comments:
---

[2001-06-29 23:11:01] [EMAIL PROTECTED]

thank u all :))

---

[2001-06-29 13:27:31] [EMAIL PROTECTED]

OK, as you suggested dates are printed now. You can see, that nearly all files are 
autogenerated daily (dispite what I said before) except the CHM version (and the temp 
unavailable PDF). We will update the CHM versions soon.

Anyway, this way the full table listing is **UGLY**. Is there anybody with a better 
layout tip?

Ps. I used the RFC date type date('r", $changed) to be world wide compatible (though 
it is very long...).

---

[2001-06-29 12:36:12] [EMAIL PROTECTED]

There will be some date info also on that page. I'll do it ASAP. It was on my todo 
list for a week now. Well, dates are much important, but sizes are also usable, when 
you need to choose from .zip or .tar.gz, while your zip program handles both of them.

It is true, that PDFs, CHMs and Palm docs are behind, but just because we have no 
**automated** process to do it. Everything else is automated (text and HTML). This is 
also on our __long time__ todo list to implement some automated CHM generation on Unix 
(it is not easy to do :).

---

[2001-06-28 17:59:26] [EMAIL PROTECTED]

I'm planning to update the CHM versions soon now, as lots of things have been changed.
I hope I can do it this weekend.

Derick

---

[2001-06-28 17:22:12] [EMAIL PROTECTED]

My apologies.. I responded before I realized that the mailing lists are 12-14 hrs 
behind.  I didn't think to read the bug report on the page to make sure no one 
responded to it already.

---

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=11762&edit=2


-- 
PHP Development Mailing List 
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 #11808: any php program cant be exe. a masseg cannot execute html file .....

2001-06-30 Thread drlos999

From: [EMAIL PROTECTED]
Operating system: win98
PHP version:  4.0.4
PHP Bug Type: PWS related
Bug description:  any php program cant be exe. a masseg cannot execute html file .




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



-- 
PHP Development Mailing List 
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 #11809: Make install fails: apxs: error: unknown option: S

2001-06-30 Thread webmaster

From: [EMAIL PROTECTED]
Operating system: Redhat 6.2
PHP version:  4.0.6
PHP Bug Type: Compile Failure
Bug description:  Make install fails: apxs: error: unknown option: S

I use Apache 1.3.2 on a Cobalt RaQ2
I used:
./configure --with-mysql --with-apxs --with-enable-track-vars

make also didn't give any problems.
make install gives an error:
make[1]: Entering directory `/home/tmp/php4/php-4.0.6'
/home/tmp/php4/php-4.0.6/build/shtool mkdir -p "/usr/lib/apache" && /usr/sbin/ap
xs -S LIBEXECDIR="/usr/lib/apache" -i -a -n php4 libs/libphp4.so
apxs:Error: Unknown option: S
Usage: apxs -g -n 
   apxs -q  ...
   apxs -c [-o ] [-D [=]] [-I ]
   [-L ] [-l ]  ...
   apxs -i [-a] [-n ]  ...
make[1]: *** [install-sapi] Error 1
make[1]: Leaving directory `/home/tmp/php4/php-4.0.6'
make: *** [install-recursive] Error 1   



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



-- 
PHP Development Mailing List 
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 #11656 Updated: Server cannot startup since PHP 4.0.5

2001-06-30 Thread sniper

ID: 11656
Updated by: sniper
Reported By: [EMAIL PROTECTED]
Old-Status: Open
Status: Closed
Bug Type: iPlanet related
Operating system: 
PHP Version: 4.0.6
Assigned To: 
Comments:

closed then.


Previous Comments:
---

[2001-06-29 07:22:46] [EMAIL PROTECTED]

The suggestion by avsm did help! Thanks you very much!

---

[2001-06-27 13:29:53] [EMAIL PROTECTED]

status -> feedback..


---

[2001-06-27 13:29:42] [EMAIL PROTECTED]

Does the suggestion on this bug report (by avsm) help?

http://www.php.net/bugs.php?id=9612&edit=1

--Jani


---

[2001-06-25 07:16:27] [EMAIL PROTECTED]

I compiled and installed PHP 4.0.4pl1 successfully for use 
with iPlanet Web Server 4.1.

As I wanted to install the new version (4.0.5 and 4.0.6), 
the iPlanet webserver didn't restart anymore. I used the 
same configure directive for all installations!

configure directive:

./configure --with-mysql=/usr/local/mysql 
--with-nsapi=/export/home/server4/ --enable-track-vars

iplanet error response:

start failed. (2: unknown early startup error)
server terminated (signal 6): watchdog is restarting it 
failure: server initialization failed

---



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


-- 
PHP Development Mailing List 
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 #11703 Updated: Failed opening prepend.php3

2001-06-30 Thread gmills

ID: 11703
User Update by: [EMAIL PROTECTED]
Old-Status: Feedback
Status: Open
Bug Type: Scripting Engine problem
Operating system: Solaris 8
PHP Version: 4.0.6
Description: Failed opening prepend.php3

Sniper - I sent my prepend.php3 file. Did you get it?

Previous Comments:
---

[2001-06-27 09:00:19] [EMAIL PROTECTED]

What is in the file prepend.php3 ??


---

[2001-06-26 14:54:23] [EMAIL PROTECTED]

The comment should read "I commented out the auto-prepend-file directive in php.ini 
and got a 'test.php' file to run phpinfo."

---

[2001-06-26 14:52:25] [EMAIL PROTECTED]

I commented out the auto-prepend-file directive and a 'test.php' file to run phpinfo.

---

[2001-06-26 13:06:13] [EMAIL PROTECTED]

PHP compiled with imap support. I get this:

Warning: Failed opening ''/opt/apache/php/prepend.php3'' for inclusion 
(include_path=''.:/opt/apache/php'') in Unknown on line 0

opening any '.php' file with the browser. prepend.php3 has correct permissions and so 
do the containing directories. It won't open anywhere I put it. I have also tried just 
putting the file name in php.ini. I have also tried permuting the include path.

PHP is compiled into Apache 1.3.20 as a static module, and httpd.conf has an AddType 
directive for php.

What am I doing wrong?

---


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


-- 
PHP Development Mailing List 
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 #11737 Updated: File upload generates warning

2001-06-30 Thread sniper

ID: 11737
Updated by: sniper
Reported By: [EMAIL PROTECTED]
Old-Status: Open
Status: Closed
Bug Type: HTTP related
Operating system: 
PHP Version: 4.0.5
Assigned To: 
Comments:

I'm unable to reproduce this with the perl script.
Reopen this if this happens with PHP 4.0.6

--Jani


Previous Comments:
---

[2001-06-28 11:50:56] [EMAIL PROTECTED]

Unfortunately I do not have time to test PHP 4.0.6. I'm on holiday for the next two 
weeks so I won't be testing it before august. However let me try to explain the letter 
a little better.

A multipart MIME has a "closing boundary". The term "closing boundary" is defined in 
RFC 1521. Data after the closing boundary should be ignored. PHP does not test for 
this closing boundary. This means that it does not detect the end of the multipart 
MIME but considers the bytes following the closing boundary as a new part of the MIME 
document. This causes the warning.

I used a perl script to generate the problem. The perl script implements the example 
in the manual page of HTTP::Request::Common where they explain how to upload files. It 
is based on the perl libwww module.

I hope that this clarifies the problem

Regards

Paul

---

[2001-06-28 11:27:17] [EMAIL PROTECTED]

Unfortunately I do not have time to test PHP 4.0.6. I'm on holiday for the next two 
weeks so I won't be testing it before august. However let me try to explain the letter 
a little better.

A multipart MIME has a "closing boundary". The term "closing boundary" is defined in 
RFC 1521. Data after the closing boundary should be ignored. PHP does not test for 
this closing boundary. This means that it does not detect the end of the multipart 
MIME but considers the bytes following the closing boundary as a new part of the MIME 
document. This causes the warning.

I used a perl script to generate the problem. The perl script implements the example 
in the manual page of HTTP::Request::Common where they explain how to upload files. It 
is based on the perl libwww module.

I hope that this clarifies the problem

Regards

Paul

---

[2001-06-27 13:38:36] [EMAIL PROTECTED]

Please try PHP 4.0.6 first.There were couple of fixes
in it which might have fixed this too. 

And with which browser can this be reproduced?

--Jani


---

[2001-06-27 10:09:08] [EMAIL PROTECTED]

When uploading a file using post, data after a closing boundary (see rfcs 1876 and 
1521). This is a boundary with two dashes added to it. If this is the case the 
remainder of the content can be ignored.
If there are more then two bytes after the last boundary in the file PHP will issue 
a(n unappropriate) warning saying that its MIME headers are garbled.
I modified "./main/rfc1876.c" as follows: (diff -p output)

*** rfc1867.c.good  Wed Jun 27 15:50:32 2001
--- rfc1867.c   Wed Jun 27 15:50:12 2001
*** static void php_mime_split(char *buf, in
*** 142,147 
--- 142,152 
eolsize = 1;
  }
  
+ if(*(loc+len)=='-' && *(loc+len+1)=='-' ) {
+   Done=1;
+   break;
+ }
+ 
  rem -= (loc - ptr) + len + eolsize;
  ptr = loc + len + eolsize;
} else {

Good luck to you

Paul

---



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


-- 
PHP Development Mailing List 
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 #11763 Updated: odbc_exec() throws ISE 500 error

2001-06-30 Thread lustig

ID: 11763
User Update by: [EMAIL PROTECTED]
Status: Open
Bug Type: ODBC related
Operating system: Windows 98 SE
PHP Version: 4.0.6
Description: odbc_exec() throws ISE 500 error

Another thing -- I've been playing around with some other code, and am getting the 
same type of thing. I think that the problem is witth fields of the type "text". When 
I take out the field "content" from the query in the first snippet, it works fine. 
Otherwise, 500 error. With another piece of code very similar to that one, it SELECTs 
a field "summary" from the table "fanfic". "summary" is a text field, and it throws 
the 500 error. So I'm pretty sure that it's SELECTing text datatype fields that is 
giving the 500 error.

--Jason

Previous Comments:
---

[2001-06-27 22:47:52] [EMAIL PROTECTED]

Another note on the above code snippet -- the dbtext() function just puts quotes 
around whatever is the params... ie, dbtext(1) would return "1" (the quotes being part 
of the returned string).

--Jason

---

[2001-06-27 22:45:52] [EMAIL PROTECTED]

I have a bug... I have a function (of which the following code is from) which pulls 
data from a remote MS SQL database through ODBC. The line with odbc_exec() is throwing 
an iSE 500 error on apache 1.3.14 (which I knwo to be the exact line because it's fine 
when it's commented out). I am using the PHP 4.06 windows binaries (from the PHP site) 
with the extra options installed... and to note, $global_conn is a global persistent 
connection that is being made global for the function of which the following code is a 
snippet:

global $page, $action, $ID, $user_data;
global $global_conn, $bgcolor;
$SQL = 'SELECT bunnyID, name, email, content, signed, IP, dateAdded FROM 
plotbunnies';
if ($action == 'view')
{
$SQL.= ' WHERE bunnyID = '.dbtext($ID);
}
$SQL.= ' ORDER BY dateAdded DESC ;';
$bunnies= odbc_exec($global_conn, $SQL);

When the $bunnes = odbc_exec($global_conn, $SQL); line is commented, it is fine; 
otherwise it gives me an HTTP ISE 500 error.

--Jason

---


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


-- 
PHP Development Mailing List 
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 #11703 Updated: Failed opening prepend.php3

2001-06-30 Thread sniper

ID: 11703
Updated by: sniper
Reported By: [EMAIL PROTECTED]
Old-Status: Open
Status: Feedback
Bug Type: Scripting Engine problem
Operating system: 
PHP Version: 4.0.6
Assigned To: 
Comments:

I don't see it here. You have to attach it to this bug report..


Previous Comments:
---

[2001-06-29 18:41:42] [EMAIL PROTECTED]

Sniper - I sent my prepend.php3 file. Did you get it?

---

[2001-06-27 09:00:19] [EMAIL PROTECTED]

What is in the file prepend.php3 ??


---

[2001-06-26 14:54:23] [EMAIL PROTECTED]

The comment should read "I commented out the auto-prepend-file directive in php.ini 
and got a 'test.php' file to run phpinfo."

---

[2001-06-26 14:52:25] [EMAIL PROTECTED]

I commented out the auto-prepend-file directive and a 'test.php' file to run phpinfo.

---

[2001-06-26 13:06:13] [EMAIL PROTECTED]

PHP compiled with imap support. I get this:

Warning: Failed opening ''/opt/apache/php/prepend.php3'' for inclusion 
(include_path=''.:/opt/apache/php'') in Unknown on line 0

opening any '.php' file with the browser. prepend.php3 has correct permissions and so 
do the containing directories. It won't open anywhere I put it. I have also tried just 
putting the file name in php.ini. I have also tried permuting the include path.

PHP is compiled into Apache 1.3.20 as a static module, and httpd.conf has an AddType 
directive for php.

What am I doing wrong?

---

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


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


-- 
PHP Development Mailing List 
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 #11793 Updated: file_exists() and friends

2001-06-30 Thread sniper

ID: 11793
Updated by: sniper
Reported By: [EMAIL PROTECTED]
Old-Status: Closed
Status: Bogus
Bug Type: Scripting Engine problem
Operating system: 
PHP Version: 4.0.6
Assigned To: 
Comments:



Previous Comments:
---

[2001-06-29 03:09:36] [EMAIL PROTECTED]

I'm having problem with file_exists(), is_file(), 
file_size() since the upgrade to 4.0.6. It does not work 
if I supply a variable as a filename. E.g.

file_exists( $var ); will return false even if the 
variable contains a correct path.

file_exists( "path/to/file.txt" ); works. 

Same for the is_file() and file_size();


---



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


-- 
PHP Development Mailing List 
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 #11632 Updated: Bad Request on most Sites

2001-06-30 Thread cynic

ID: 11632
Updated by: cynic
Reported By: [EMAIL PROTECTED]
Old-Status: Open
Status: Bogus
Bug Type: HTTP related
Operating system: 
PHP Version: 4.0.6
Assigned To: 
Comments:

Maybe you should read related documentation (the Apache manual would do if the HTTP 
RFC is too hard to congest for you). 

> If I requested "http://intranet"; I
> would get a 400 error and in the Apache log, it would say
> "Invalid URI 'GET  HTTP/1.0'" instead of a valid request
> "GET / HTTP/1.0"I don't see

And where in "http://intranet"; do you request "/"? Nowhere.

This is bogus.

Previous Comments:
---

[2001-06-28 10:55:03] [EMAIL PROTECTED]

Yes, (my intranet site address, which I use the script on,
is http://intranet)  If I requested "http://intranet"; I
would get a 400 error and in the Apache log, it would say
"Invalid URI 'GET  HTTP/1.0'" instead of a valid request
"GET / HTTP/1.0"  BUT, if I request "http://intranet/"; (WITH
THE END SLASH), everything works fine!

---

[2001-06-27 13:43:43] [EMAIL PROTECTED]

No, this works for me just fine.
Do you get any error messages? In apache logs?

--Jani


---

[2001-06-25 09:34:18] [EMAIL PROTECTED]

ok...do you see what I mean?

---

[2001-06-23 16:49:38] [EMAIL PROTECTED]

reclassified.


---

[2001-06-23 15:28:40] [EMAIL PROTECTED]

Whoa!  I figured something out.  If I request http://finance.yahoo.com (without the 
last slash) I get 400 errors, but with the slash (http://finance.yahoo.com/) it works 
fine.  As does any other page on the site (http://finance.yahoo.com/index.html)  I 
think PHP is sending "GET  HTTP/1.0" because I used the script on MY site and in my 
error log file, it says "Invalid URI 'GET  HTTP/1.0'"

---

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=11632&edit=2


-- 
PHP Development Mailing List 
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 #11632 Updated: Bad Request on most Sites

2001-06-30 Thread cynic

ID: 11632
Updated by: cynic
Reported By: [EMAIL PROTECTED]
Old-Status: Bogus
Status: Open
Bug Type: HTTP related
Operating system: 
PHP Version: 4.0.6
Assigned To: 
Comments:

Ah, sorry, I should've read the whole PR.

Previous Comments:
---

[2001-06-29 19:21:52] [EMAIL PROTECTED]

Maybe you should read related documentation (the Apache manual would do if the HTTP 
RFC is too hard to congest for you). 

> If I requested "http://intranet"; I
> would get a 400 error and in the Apache log, it would say
> "Invalid URI 'GET  HTTP/1.0'" instead of a valid request
> "GET / HTTP/1.0"I don't see

And where in "http://intranet"; do you request "/"? Nowhere.

This is bogus.

---

[2001-06-28 10:55:03] [EMAIL PROTECTED]

Yes, (my intranet site address, which I use the script on,
is http://intranet)  If I requested "http://intranet"; I
would get a 400 error and in the Apache log, it would say
"Invalid URI 'GET  HTTP/1.0'" instead of a valid request
"GET / HTTP/1.0"  BUT, if I request "http://intranet/"; (WITH
THE END SLASH), everything works fine!

---

[2001-06-27 13:43:43] [EMAIL PROTECTED]

No, this works for me just fine.
Do you get any error messages? In apache logs?

--Jani


---

[2001-06-25 09:34:18] [EMAIL PROTECTED]

ok...do you see what I mean?

---

[2001-06-23 16:49:38] [EMAIL PROTECTED]

reclassified.


---

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=11632&edit=2


-- 
PHP Development Mailing List 
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 #11796 Updated: get_meta_tags doesn't work when the title tag consists of single quote

2001-06-30 Thread elixer

ID: 11796
Updated by: elixer
Reported By: [EMAIL PROTECTED]
Old-Status: Analyzed
Status: Assigned
Bug Type: Unknown/Other Function
Operating system: 
PHP Version: 4.0.5
Assigned To: elixer
Comments:

I'll take this one.

Previous Comments:
---

[2001-06-29 13:27:52] [EMAIL PROTECTED]

Reproduced with latest CVS.


---

[2001-06-29 03:18:17] [EMAIL PROTECTED]

get_meta_tags will get nothing when this statics file is used.(please see the code 
down there)
Only when the single quote inside the title tag removed, then the meta will be 
retrieved. I have tried to use this code inside PHP Version 4.0.4, and it works. 
Does anyone has any clue about it?




Sanmina acquires Alcatel's manufacturing operations in Texas






Thanks.


---



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


-- 
PHP Development Mailing List 
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 #11790 Updated: Error compiling PHP

2001-06-30 Thread rmang

ID: 11790
User Update by: [EMAIL PROTECTED]
Status: Duplicate
Bug Type: Compile Failure
Operating system: Redhat Linux 5.x
PHP Version: 4.0.6
Description: Error compiling PHP

It is similar to bug report 11776, however, my Redhat Linux install is verified to be 
a true and correct install. I am wondering now if PHP-4.0.6 has now become not usable 
on older RH5.x LIBC5 platforms. Thanks.

Previous Comments:
---

[2001-06-30 04:28:24] [EMAIL PROTECTED]

Dup of: 11776

---

[2001-06-29 14:32:35] [EMAIL PROTECTED]

I have /usr/include/sys/mount.h
but not statfs.h, and not stavfs.h

I tried just adding the header files to the dir. (I know it's not the preferred way) 
but that did not good. I am running gcc version 2.7.2.1 and libc5.3.12 on RH 5.x.

I have successfully compiled php-4.0.4pl1 on this machine. Thanks for any help.

---

[2001-06-29 09:41:44] [EMAIL PROTECTED]

Do you have following header files: 
/usr/include/sys/statvfs.h
/usr/include/sys/statfs.h
/usr/include/sys/mount.h 


--Jani


---

[2001-06-28 23:44:59] [EMAIL PROTECTED]

Compiling php4.0.6 on RH libc5.3 server as CGI module, received the following compile 
error:
--
gcc  -I. -I/home2/rlm/php-4.0.6/ext/standard -I/home2/rlm/php-4.0.6/main 
-I/home2/rlm/php-4.0.6 -I/home2/rlm/php-4.0.6/Zend -I/home/rlm/gd1.3/ 
-I/usr/local/Hughes/include -I/usr/local/mysql3/include 
-I/home2/rlm/php-4.0.6/ext/xml/expat/xmltok 
-I/home2/rlm/php-4.0.6/ext/xml/expat/xmlparse -I/home2/rlm/php-4.0.6/TSRM  
-DSUPPORT_UTF8 -DXML_BYTE_ORDER=12 -g -O2  -c filestat.c && touch filestat.lo
filestat.c: In function `php_if_diskfreespace':
filestat.c:157: storage size of `buf' isn't known
make[3]: *** [filestat.lo] Error 1
make[3]: Leaving directory `/home2/rlm/php-4.0.6/ext/standard'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home2/rlm/php-4.0.6/ext/standard'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home2/rlm/php-4.0.6/ext'
make: *** [all-recursive] Error 1
---
configure line:
./configure --enable-force-cgi-redirect --with-mysql=/usr/local/mysql3 --with-msql 
--bindir=/home/rlm/php-4.0.6 --with-gd=/home/rlm/gd1.3 
--with-config-file-path=/home/rlm/php-4.0.6

---


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


-- 
PHP Development Mailing List 
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 3.0 Bug Summary Report

2001-06-30 Thread php-dev

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

 Num Status Summary (542 total including feature requests)
===[*General Issues]==
4180 Open   is_link returns false when target doesnt exist (should return true)
9610 Bogus  Dead link
9820 Open   File upload with any input tag
10101 Bogus  apache + mysqld + php3   == libphp3.so incorrect symbol...
10457 Bogus  ALKHOBAR
===[*Install and Config]==
7386 Feedback   referenced symbol not found when starting Apache
===[Compile Failure]==
1145 Open   Ypu cannot compile with --with-ldap using the Solaris7 bundled 
ldap-libs/header
1298 Open   need to use -taso with Netscape LDAP libs
1461 Open   won't compile with Stronghold 2.2 or 2.3
1933 Open   Unable to compile PHP3 with Oracle8 support
1997 Open   Compilation Problems
2225 Open   Compile error in ldap.c
2282 Open   Compile failure with Stronghold 2.4.1
2490 Open   Perl regular expression functions not available in windows binary
2585 Open   Error linking Oracle 7.3.2 libraries on SCO OpenServer 5.0.4
2658 Open   error while compiling PHP as apache module
2729 Open   Fatal error: Unable to open ???  in - on line 0
2751 Open   Storage size of "buf isn't known
2823 Open   undefined symbol: SQLParamData
2824 Open   Inconsistent parameter list declaration for...
2903 Open   fails to compile ifx.ec, report a syntax-error
3033 Open   Fatal compile error on functions/ldap.c
3185 Open   Undefined symbol
3217 Open   ld error when compiling as Apache DSO and --with-mysql
3218 Open   Can't compile php_ftp.dll
3426 Open   make with iodbc failed and I've found the problem
3501 Open   Compiling errors with Oracle-Funktions
3528 Open   Can't compile php 3.0.14 with Oracle support
3677 Open   files not found
3766 Open   configure doesn't allow for the Oracle N32 client SDK to be used
3776 Open   functions/db.c:107: parse error before '*'
4028 Open   wrong directories included for oracle 8.1.6
4217 Open   IBM DB2 will not compile.
4233 Open   The Interbase module won't compile.
4266 Open   Undeclared variables in function/imap.c starting ar line 435
4392 Open   Compile failure with GD 1.7, possibly others
4412 Open   xml failure
4417 Open   Informix specific parse error in functions/ifx.ec
4544 Open   Incompatiblility with latest (3.0) version of PDFlib
4899 Open   PHP Core Dumps With Apache 1.3.12
7734 Open   missing php3_ifx.h
===[Compile Warning]==
3151 Open   php.exe compile warnings because of arpa/inet.h
6942 Open   php sockets unusable with irix-OS
===[dBase related]
3091 Open   dbase_replace_record miscounts number of fields
3429 Open   Warning: Unable to open database...
4802 Open   php.exe crashes while trying to execute the get_record function
===[DBM/DBA related]==
2890 Open   DBM extension on win32 does not valid database identifier error
3371 Open   dbmfetch reurns an empty string
3423 Open   dbmopen() not thread-safe
3809 Duplicate  DBM extension for Win32 PHP3 is malfunctioning and/or has a flaw
3862 Open   dbmReplace & dbmDelete return inverse value
6720 Open   persistent "Warning: driver initialization failed" on db_open db2 2.7.7
===[Documentation problem]
11155 Open   
===[Dynamic loading related]==
1188 Open   Configuration not work
1586 Open   In the compiled Win32 package, the php3_ldap doesn't load.
1993 Open   Startup failure of liphp3.so
2027 Open   Can't dynamicly load any extension dll file
2250 Open   nt-service problem
2414 Open   php3_vmailmgr.so refuses to load
2862 Open   LDAP in Win32 Bin dist is linked to MSVCRTD.DLL
3168 Open   cannot start apache 1.3.9 if mysql is compiled in, but can RESTART 
successfully
3292 Open   MySQL module causes DSO to fail.
3321 Open   Apache Complaining about undefined symbol: dlst_first
3659 Open   mod_php + apache w/mod_so hangs in sched_yield
3680 Open   Apache won't start after install php3
3752 Open   Apache configtest dumps core with DSO & versioning
3781 Open   Cannot load /libexec/libphp3.so
3861 Open   php as a dyn. mod. & configured with IBM db2 support prevents svr 
startup
9565 Open   php3_ldap.dll is compiled as DEBUG
===[IMAP related]=
2816 Open   Imap_open error when user_id length=3 char
2847 Open   imap_search - dates don't work
3040 Duplicate  imap_open
3236 Open   Email messag

[PHP-DEV] CVS Account Request

2001-06-30 Thread CVS Account Request

Full name: Johannes Froemter
Email: [EMAIL PROTECTED]
ID: j-f
Purpose: I want to assist bugfixing, translating and maintaining the (german) PHP 
manual.

Proponent: Martin Jansen

Request #: 2

-- 
PHP Development Mailing List 
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 #11808 Updated: any php program cant be exe. a masseg cannot execute html file .....

2001-06-30 Thread derick

ID: 11808
Updated by: derick
Reported By: [EMAIL PROTECTED]
Old-Status: Open
Status: Bogus
Bug Type: PWS related
Operating system: 
PHP Version: 4.0.4
Assigned To: 
Comments:

I was unable to parse your sentence.

Previous Comments:
---

[2001-06-30 03:33:20] [EMAIL PROTECTED]



---



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


-- 
PHP Development Mailing List 
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 #11809 Updated: Make install fails: apxs: error: unknown option: S

2001-06-30 Thread derick

ID: 11809
Updated by: derick
Reported By: [EMAIL PROTECTED]
Old-Status: Open
Status: Closed
Bug Type: Compile Failure
Operating system: 
PHP Version: 4.0.6
Assigned To: 
Comments:

Apache 1.3.2 is really old, please update it to a newer version, i.e. 1.3.20.

Previous Comments:
---

[2001-06-30 05:29:45] [EMAIL PROTECTED]

I use Apache 1.3.2 on a Cobalt RaQ2
I used:
./configure --with-mysql --with-apxs --with-enable-track-vars

make also didn't give any problems.
make install gives an error:
make[1]: Entering directory `/home/tmp/php4/php-4.0.6'
/home/tmp/php4/php-4.0.6/build/shtool mkdir -p "/usr/lib/apache" && /usr/sbin/ap
xs -S LIBEXECDIR="/usr/lib/apache" -i -a -n php4 libs/libphp4.so
apxs:Error: Unknown option: S
Usage: apxs -g -n 
   apxs -q  ...
   apxs -c [-o ] [-D [=]] [-I ]
   [-L ] [-l ]  ...
   apxs -i [-a] [-n ]  ...
make[1]: *** [install-sapi] Error 1
make[1]: Leaving directory `/home/tmp/php4/php-4.0.6'
make: *** [install-recursive] Error 1   


---



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


-- 
PHP Development Mailing List 
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 #11766 Updated: Unable to save result set in

2001-06-30 Thread sniper

ID: 11766
Updated by: sniper
Reported By: [EMAIL PROTECTED]
Old-Status: Duplicate
Status: Bogus
Bug Type: MySQL related
Operating system: 
PHP Version: 4.0.6
Assigned To: 
Comments:



Previous Comments:
---

[2001-06-28 21:27:32] [EMAIL PROTECTED]

I use mysql_query() / mysql_select_db() instead of mysql_db_query().

Both mysql_errno() and mysql_error() return NOTHING.

The query was successful exectued by mysql.(I can find the query reselt in mysql 
database)

But why php generated an error?

This error occur on ALL OF my scripts after I had upgraded my php from 4.0.3 to 4.0.6


---

[2001-06-28 00:16:56] [EMAIL PROTECTED]

I'm getting the following error message when I execute a query (such as insert or 
delete or update but not select) that doesn't produce any results:

The script(error.php) is :

  


The result in browser is:


  Warning: MySQL: Unable to save result set in /home/0/admin/error.php on line 7


MySQL said NOTHING and the query was successful executed.

I have set "display_errors = Off" in my php.ini, so no warnings should be shown , but 
php script can not go on at the line where the Warnning should display.

But I just found that NO error in command line :

  root@localhost # php ./error.php
  X-Powered-By: PHP/4.0.6
  Content-type: text/html

  root@localhost #



I configured php with the following command:

  ./configure
  --with-mysql=/usr/local/mysql 
  --enable-track-vars 
  --with-gd=../../gd/gd1.3 
  --with-ftp 
  --with-imap=../../mail/imap/imap-4.7c 
  --enable-memory-limit 
  --with-pgsql=/usr/local/pgsql

MySQL is version 3.23.38 and PostgreSQL is version 7.1.2

and compiled with th following command:

  ./configure
  --prefix=/usr/local/mysql 
  --with-mysqld-user=mysql 
  --with-charset=gb2312 
  --with-extra-charsets=all

  ./configure
  --enable-multibyte 
  --enable-unicode-conversion 
  --with-perl 
  --with-openssl=/usr/local/ssl 
  --enable-odbc 
  --with-CXX


BTW : The script is perfect on mysql-php-4.0.3pl1 and postgreSQL-php-4.0.6 .




---



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


-- 
PHP Development Mailing List 
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] Bug #11809 Updated: Make install fails: apxs: error: unknown option: S

2001-06-30 Thread Wez Furlong

On 30/06/01, [EMAIL PROTECTED] wrote:
> I use Apache 1.3.2 on a Cobalt RaQ2
> Apache 1.3.2 is really old, please update it to a newer version, i.e. 1.3.20.

Upgrading Apache on cobalt boxes invalidates the warranty; Cobalt do some wierdo stuff 
to apache so that their integrated web-based management system will work 
(-DBIG_SECURITY_HOLE + some other stuff with authentication etc.).

While it is possible to rebuild with the security so Apache will run as root, I have 
no idea how their auth stuff works (it seems proprietary, since trying to use your own 
htusers for access control doesn't work).

I manage a RaQ3 box for our web hosting customers and don't want to risk breaking the 
"Cobalt OS" or running into conflicts when Cobalt release an OS update.

So, can we have configure detect this compatibility problem in apxs?
Ideally, configure should be able to spot a cobalt system and omit the -S option.

For the time-being I manually copy mod_php4.so into the apache libs dir...

--Wez.



--
PHP Development Mailing List 
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 #11790 Updated: Error compiling PHP

2001-06-30 Thread sniper

ID: 11790
Updated by: sniper
Reported By: [EMAIL PROTECTED]
Old-Status: Duplicate
Status: Open
Bug Type: Compile Failure
Operating system: 
PHP Version: 4.0.6
Assigned To: 
Comments:

let's keep this one open and make the other one duplicate.


Previous Comments:
---

[2001-06-30 11:50:47] [EMAIL PROTECTED]

It is similar to bug report 11776, however, my Redhat Linux install is verified to be 
a true and correct install. I am wondering now if PHP-4.0.6 has now become not usable 
on older RH5.x LIBC5 platforms. Thanks.

---

[2001-06-30 04:28:24] [EMAIL PROTECTED]

Dup of: 11776

---

[2001-06-29 14:32:35] [EMAIL PROTECTED]

I have /usr/include/sys/mount.h
but not statfs.h, and not stavfs.h

I tried just adding the header files to the dir. (I know it's not the preferred way) 
but that did not good. I am running gcc version 2.7.2.1 and libc5.3.12 on RH 5.x.

I have successfully compiled php-4.0.4pl1 on this machine. Thanks for any help.

---

[2001-06-29 09:41:44] [EMAIL PROTECTED]

Do you have following header files: 
/usr/include/sys/statvfs.h
/usr/include/sys/statfs.h
/usr/include/sys/mount.h 


--Jani


---

[2001-06-28 23:44:59] [EMAIL PROTECTED]

Compiling php4.0.6 on RH libc5.3 server as CGI module, received the following compile 
error:
--
gcc  -I. -I/home2/rlm/php-4.0.6/ext/standard -I/home2/rlm/php-4.0.6/main 
-I/home2/rlm/php-4.0.6 -I/home2/rlm/php-4.0.6/Zend -I/home/rlm/gd1.3/ 
-I/usr/local/Hughes/include -I/usr/local/mysql3/include 
-I/home2/rlm/php-4.0.6/ext/xml/expat/xmltok 
-I/home2/rlm/php-4.0.6/ext/xml/expat/xmlparse -I/home2/rlm/php-4.0.6/TSRM  
-DSUPPORT_UTF8 -DXML_BYTE_ORDER=12 -g -O2  -c filestat.c && touch filestat.lo
filestat.c: In function `php_if_diskfreespace':
filestat.c:157: storage size of `buf' isn't known
make[3]: *** [filestat.lo] Error 1
make[3]: Leaving directory `/home2/rlm/php-4.0.6/ext/standard'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home2/rlm/php-4.0.6/ext/standard'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home2/rlm/php-4.0.6/ext'
make: *** [all-recursive] Error 1
---
configure line:
./configure --enable-force-cgi-redirect --with-mysql=/usr/local/mysql3 --with-msql 
--bindir=/home/rlm/php-4.0.6 --with-gd=/home/rlm/gd1.3 
--with-config-file-path=/home/rlm/php-4.0.6

---

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=11790&edit=2


-- 
PHP Development Mailing List 
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 #11776 Updated: filestat.c:`php_if_diskfreespace': storage size of `buf' isn't known

2001-06-30 Thread sniper

ID: 11776
Updated by: sniper
Reported By: [EMAIL PROTECTED]
Old-Status: Feedback
Status: Duplicate
Bug Type: Compile Failure
Operating system: 
PHP Version: 4.0.6
Assigned To: 
Comments:

duplicate of #11790


Previous Comments:
---

[2001-06-28 21:54:00] [EMAIL PROTECTED]

I wonder where you got those sources since in my version
of PHP 4.0.6 (which is the correct one) there is nothing
like that on line 159 of filestat.c. And is your install
of linux really working one? 

Do you have following header files:

/usr/include/sys/statvfs.h
/usr/include/sys/statfs.h
/usr/include/sys/mount.h


--Jani


---

[2001-06-28 08:44:04] [EMAIL PROTECTED]

When trying to compile PHP 4.0.6 I get the following error:

gcc  -I. -I/mnt/src/apache-install/php-4.0.6/ext/standard 
-I/mnt/src/apache-install/php-4.0.6/main -I/mnt/src/apache-install/php-4.0.6 
-I/mnt/src/apache-install/apache_1.3.20/src/include 
-I/mnt/src/apache-install/apache_1.3.20/src/os/unix 
-I/mnt/src/apache-install/php-4.0.6/Zend -I/usr/local/include/freetype 
-I/mnt/src/apache-install/gd-1.8.4 -I/usr/local/mysql/include/mysql 
-I/mnt/src/apache-install/php-4.0.6/ext/xml/expat/xmltok 
-I/mnt/src/apache-install/php-4.0.6/ext/xml/expat/xmlparse 
-I/mnt/src/apache-install/php-4.0.6/TSRM  -DSUPPORT_UTF8 -DXML_BYTE_ORDER=12 -g -O2  
-c filestat.c && touch filestat.lo
filestat.c: In function `php_if_diskfreespace':
filestat.c:159: storage size of `buf' isn't known
make[3]: *** [filestat.lo] Error 1
make[3]: Leaving directory `/mnt/src/apache-install/php-4.0.6/ext/standard'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/mnt/src/apache-install/php-4.0.6/ext/standard'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/mnt/src/apache-install/php-4.0.6/ext'
make: *** [all-recursive] Error 1

My configureline: 

./configure --prefix=/usr/local/apache 
--activate-module=src/modules/auth_mysql/libauth_mysql.a 
--add-module=../mod_auth_cookie-1.9/mod_auth_cookie.c 
--activate-module=src/modules/php4/libphp4.a --enable-module=ssl

---



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


-- 
PHP Development Mailing List 
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 #10824 Updated: does not return more than 256 chars from a varchar

2001-06-30 Thread fmk

ID: 10824
Updated by: fmk
Reported By: [EMAIL PROTECTED]
Old-Status: Open
Status: Closed
Bug Type: MSSQL related
Operating system: 
PHP Version: 4.0.4pl1
Assigned To: 
Comments:

This is not a bug in the php extension. The library used to connect to SQL Server soes 
not allow warchar columns to be more that 255 char.

Previous Comments:
---

[2001-05-11 23:40:22] [EMAIL PROTECTED]

Problem:
Queries and stored procedures returning varchar data do not return more than 256 
chars. The rest is truncated.

Affected functions: 
  MSSQL_FETCH_OBJECT
  MSSQL_FETCH_ARRAY
  MSSQL_FETCH_ROW (didn't get opportunity to test, but seems likely)

I know there was an earlier report similar to this in regards to NCHAR, however, 
varchar has nothing to do with unicode. Are we looking at the same problem here 
anyways? Any idea on how long 'til a solution, or some sort of work-around? Using 
datatype TEXT is NOT an option -- it puts too much overhead on transactions.

Since this was classified as a Microsoft problem, I guess upgrading to 4.0.5 would not 
help, huh?

Thanks.

---



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


-- 
PHP Development Mailing List 
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 #7780 Updated: Return of "Text" field returns only 4kB, but only in ISAPI-Mode

2001-06-30 Thread fmk

ID: 7780
Updated by: fmk
Reported By: [EMAIL PROTECTED]
Old-Status: Open
Status: Closed
Bug Type: MSSQL related
Operating system: 
PHP Version: 4.0.3pl1
Assigned To: 
Comments:

This has been fixed. When running the ISAPI module, the php.ini file was not read 
correctly. Upgrade to latest version

Previous Comments:
---

[2000-11-13 06:22:01] [EMAIL PROTECTED]

Working with IIS 4 and ISAPI, and having added the following lines to php.ini

*snip*
mssql.textsize  = 8192 ;
mssql.textlimit = 8192 ;
*snip*

a request of a field with Data-Type Text  > 4kB gives back only the first 4kB of the 
text (in general).

The interesting phenomenon is:

After restarting IIS completely (net stop iisadmin), the WHOLE text  out of the DB 
(appr. 6kB) will be returned, but only ONCE (meaning a reload in the browser, taking 
another browser, etc. gives again only the "cutted" text-field). 

Working in CGI-mode, the whole text will be returned every time.

A exemplary code-snippet, if it helps:

**shortened snip**
  $check = "SELECT * FROM $table WHERE $QUERY_STRING";
  $result = mssql_query($check) or die("Konnte die Datenbankabfrage nicht 
durchführen.");
  $row=mssql_fetch_row($result); 
  $head  = makehtmlchar($row[2]);
  $body  = makehtmlchar($row[3]);

  $mytext .= "

$head($row[1])
$body  n";
**snip**

---



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


-- 
PHP Development Mailing List 
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 #8810 Updated: Access violation with mssql.allow_persistent = on

2001-06-30 Thread fmk

ID: 8810
Updated by: fmk
Reported By: [EMAIL PROTECTED]
Old-Status: Open
Status: Closed
Bug Type: MSSQL related
Operating system: 
PHP Version: 4.0.4pl1
Assigned To: 
Comments:

The function mssql_pconnect() has been fixed in php4.0.6. Please update and try again.

Previous Comments:
---

[2001-01-19 14:45:00] [EMAIL PROTECTED]

PHP 4.0.4pl1 gives an access violation when persistent connections are enabled using 
mssql.allow_persistent = on. It doesn't matter if they are used or not. The code seems 
to work but each request produces an access violation dialog. Setting 
mssql.allow_persistent to "off" resolves the problem (for a price I'm not willing to 
pay). I tried both MS SQL Server 7 and 2000 both on Windows 2000 Professional. PHP 
4.0.4 had the same problems. 

---



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


-- 
PHP Development Mailing List 
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 #8777 Updated: Error in mssql_query

2001-06-30 Thread fmk

ID: 8777
Updated by: fmk
Reported By: [EMAIL PROTECTED]
Old-Status: Open
Status: Closed
Bug Type: MSSQL related
Operating system: 
PHP Version: 4.0.4pl1
Assigned To: 
Comments:

Update to latest version. The return value for mssql_query has been fixed.

Previous Comments:
---

[2001-01-18 04:25:23] [EMAIL PROTECTED]

for INSERT,UPDATE,DELETE

$Sql="INSERT INTO $phpAds_tbl_session 
(Cod_Sessions,moses_SessionID,moses_SessionData,moses_LastUpdate)VALUES 
($Max,'$SessionID', '".AddSlashes(serialize($Session)) . "', ".date("YmdHis").")" ;
if ($conn->Execute($Sql)===false){
Connection_die("Kc_End insertando");
$conn->close();
}  

$con->execute all code return false forever



---



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


-- 
PHP Development Mailing List 
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 #11730 Updated: Cannot use uniqueidentifier

2001-06-30 Thread fmk

ID: 11730
Updated by: fmk
Reported By: [EMAIL PROTECTED]
Old-Status: Open
Status: Closed
Bug Type: MSSQL related
Operating system: 
PHP Version: 4.0.6
Assigned To: 
Comments:

UNIQUEIDENTIFYER is an alias for a 16 byte binary and as the support for binary data 
was changed between 4.0.5 and 4.0.6, the data returned is no longer converted to a 
readable string.

A new function will be introduced mssql_guid_string() in 4.0.7. This function can 
convert the binary value to a readable string.

If you dont want the extra call in your code, use this work arround:

select cast(id as varchar(36)) from my table

Previous Comments:
---

[2001-06-27 05:15:20] [EMAIL PROTECTED]

(Apache 1.3.20, PHP4.0.6&4.0.4,MSSQL70)

Cannot work with the MSSQL-uniqueidentifier.
e.g. I need to use following select in php:

 select newid() as id;

normally I would get something like this
id="{874E725E-03A0-44C7-BB0B-E52C7EC74B9F}"

but the vars only get cryptical codes like
äŒgøü‡O­²w€Õ® ?


---



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


-- 
PHP Development Mailing List 
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 #10413 Updated: Error retrieving image field from MSSQL database

2001-06-30 Thread fmk

ID: 10413
Updated by: fmk
Reported By: [EMAIL PROTECTED]
Old-Status: Open
Status: Closed
Bug Type: MSSQL related
Operating system: 
PHP Version: 4.0.4pl1
Assigned To: 
Comments:

Handling of binary data was changed in php4.0.6. Please update and try again.

Previous Comments:
---

[2001-04-19 22:01:41] [EMAIL PROTECTED]

Looks like there's a problem in the Windows version of the mssql extension. I'm having 
the same problem as Leonid Freidin with queries that have a image in the result.
I'm using php4.04pl1.
This is the code.




---



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


-- 
PHP Development Mailing List 
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 #9379 Updated: mssql_query can't get result

2001-06-30 Thread fmk

ID: 9379
Updated by: fmk
Reported By: [EMAIL PROTECTED]
Old-Status: Open
Status: Closed
Bug Type: MSSQL related
Operating system: 
PHP Version: 4.0.3pl1
Assigned To: 
Comments:

This is not a bug in the extension. You are sending queries to the server that causes 
the server to report errors.

Previous Comments:
---

[2001-02-21 13:45:45] [EMAIL PROTECTED]

mssql_query() can't fetch result from server if I use
sql server variables in query. 
For example this script:


If I turned error severity to 0 I saw following 
error:MS SQL error: 
Attempt to initiate a new SQL Server operation with results pending. (severity 7) in 
c:htdocssqltest.php on line 4

...but the first query has no result to fetch...

---



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


-- 
PHP Development Mailing List 
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 #11810: unable to load dynamic library

2001-06-30 Thread delolwai1121

From: [EMAIL PROTECTED]
Operating system: win2000 advanced server with SP2
PHP version:  4.0.4pl1
PHP Bug Type: *Install and Config
Bug description:  unable to load dynamic library

when i test whether the PHP work or not with the test.php with code  , it 
will show the error message box. i.e 
"unable to load dynamic library "PATH/FILE NAME" . the module can not be found."
I'm sure that the path of all .dll files are right.

PATH = C:\PHP\extionsions\
FILE NAME = php_ifx.dll
php_mssql65.dll
php_oci8.dll
php_oracle.dll
php_sybase_ct.dll

The test.php is certainly in the wwwroot folder.
Actually I have tried all the version but all can't work.


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



-- 
PHP Development Mailing List 
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 #8086 Updated: query link identifiers are not usable

2001-06-30 Thread fmk

ID: 8086
Updated by: fmk
Reported By: [EMAIL PROTECTED]
Old-Status: Open
Status: Closed
Bug Type: MSSQL related
Operating system: 
PHP Version: 4.0.3pl1
Assigned To: 
Comments:

Update to latest version. All link identifiers has been changed from integers to 
resources.

Previous Comments:
---

[2000-12-03 10:13:26] [EMAIL PROTECTED]

This report uses php 4.04 and the php_mssql70.dll extension on windows nt 4.
There seem to be a problem with the functions that accept a mssql_query() link 
identifier as parameter.

I have the followin basic script :

$hdb = mssql_connect( "testserver", "test", "testpwd" );
print( "hdb = $hdb" );
print( "mssql_select_db : ".mssql_select_db( "test_db", $hdb )."" );
$hcur = mssql_query( "select * from t_test", $hdb );
print( "hcur = $hcur" );
print( "mssql_num_fields : ".mssql_num_fields( $hcur )."" );
print( "mssql_num_rows : ".mssql_num_rows( $hcur )."" );


which produces the following output :

hdb = Resource id #1
mssql_select_db : 1
hcur = 1
Warning: Supplied argument is not a valid MS SQL-result resource in c:phpdefault.php4 
on line 17
mssql_num_fields : 
Warning: Supplied argument is not a valid MS SQL-result resource in c:phpdefault.php4 
on line 18
mssql_num_rows : 


---



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


-- 
PHP Development Mailing List 
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 #11045 Updated: Odd MSSQL errors about 25% of the time

2001-06-30 Thread fmk

ID: 11045
Updated by: fmk
Reported By: [EMAIL PROTECTED]
Old-Status: Open
Status: Closed
Bug Type: MSSQL related
Operating system: 
PHP Version: 4.0.5
Assigned To: 
Comments:

An error in mssql_pconnect() was fixed in php 4.0.6. Please update and try again.

Previous Comments:
---

[2001-05-23 09:26:24] [EMAIL PROTECTED]

Yes, I can piece some together.  Most of the stuff is seperated into different files 
and classes so i'll just put examples of the database accesses in the order they 
happen.

I am using ISAPI with Apache 1.3.19 and MS SQL Server 2k on Win2k Server SP1.

Hope this helps.

/* db.inc.php */
global $db_conn;
$db_conn = mssql_pconnect ('localhost', '***', '***') or printf ('Cannot 
connect to SQL Server.');
mssql_select_db ('demoXpress') or printf ('Cannot select demoXpress DB.');

/* class_menu.php */
if (!empty($this->Name))
{
$sql = "SELECT * FROM Menus WHERE Name='{$this->Name}'";
$rs = mssql_query ($sql);
$this->Menu = mssql_fetch_object($rs);
mssql_free_result($rs);
}

/* class_newsmachine.php */
$sql  = 'SELECT NewsID, News.SectionID, News.Poster, CONVERT(varchar(50), 
News.PostDate, 120) AS PostDate, ';
$sql .= 'Title, Teaser, DATALENGTH(Content) AS ContentLength, News.ViewCount, ';
$sql .= 'Sections.Name, Sections.Icon, ISNULL(MessageCount, -1) AS CommentCount ';
$sql .= 'FROM News, Sections, mb_Topics ';
$sql .= 'WHERE (News.CommentID*=mb_Topics.TopicID) AND 
(News.SectionID=Sections.SectionID) AND (News.FrontPage=1) ';
$sql .= 'ORDER BY News.PostDate DESC';

if (!($this->NewsRS = mssql_query ($sql, $db_conn))) echo mssql_get_last_message();

---

[2001-05-23 07:32:42] [EMAIL PROTECTED]

Could you provide some sample code ? And are you using CGI or ISAPI ?

---

[2001-05-23 04:27:43] [EMAIL PROTECTED]

Below is an example of the series of errors I get when loading a page on my website.  
What is odd about it is that the errors do not always occur.  About 75% of the time, 
the page works perfectly.  Then I'll refresh the page without even making any changes 
to the source and the errors will occur.  Refresh again and they disappear and the 
page works.

Another interesting occurance.  Sometimes, the first queries that are run will run and 
complete successfully, but then a query that comes later in the source on the same 
page will cause these errors.

Warning: MS SQL error: Invalid parameter in DB-LIBRARY function reference. (severity 
11) in c:wwwdemoxpress.comhtmldb.inc.php on line 4

Warning: MS SQL: Unable to select database: demoXpress in 
c:wwwdemoxpress.comhtmldb.inc.php on line 4
Cannot select demoXpress DB. 
 

Warning: MS SQL error: Invalid parameter in DB-LIBRARY function reference. (severity 
11) in c:wwwdemoxpress.comhtmlclass_menu.php on line 30

Warning: MS SQL: Unable to set query in c:wwwdemoxpress.comhtmlclass_menu.php on line 
30

Warning: Supplied argument is not a valid MS SQL-result resource in 
c:wwwdemoxpress.comhtmlclass_menu.php on line 31

Warning: Supplied argument is not a valid MS SQL-result resource in 
c:wwwdemoxpress.comhtmlclass_menu.php on line 32
 


Warning: MS SQL error: Invalid parameter in DB-LIBRARY function reference. (severity 
11) in c:wwwdemoxpress.comhtmlclass_menu.php on line 30

Warning: MS SQL: Unable to set query in c:wwwdemoxpress.comhtmlclass_menu.php on line 
30

Warning: Supplied argument is not a valid MS SQL-result resource in 
c:wwwdemoxpress.comhtmlclass_menu.php on line 31

Warning: Supplied argument is not a valid MS SQL-result resource in 
c:wwwdemoxpress.comhtmlclass_menu.php on line 32
 

Warning: MS SQL: Unable to set query in c:wwwdemoxpress.comhtmlclass_newsmachine.php 
on line 52

Warning: Supplied argument is not a valid MS SQL-result resource in 
c:wwwdemoxpress.comhtmlclass_newsmachine.php on line 58
 
Warning: MS SQL error: Invalid parameter in DB-LIBRARY function reference. (severity 
11) in c:wwwdemoxpress.comhtmlclass_pollbox.php on line 22

Warning: MS SQL: Unable to set query in c:wwwdemoxpress.comhtmlclass_pollbox.php on 
line 22


---



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


-- 
PHP Development Mailing List 
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 #7881 Updated: sybase-ct does not report server errors

2001-06-30 Thread fmk

ID: 7881
Updated by: fmk
Reported By: [EMAIL PROTECTED]
Status: Open
Old-Bug Type: MSSQL related
Bug Type: Sybase-ct (ctlib) related
Operating system: 
PHP Version: 4.0.3pl1
Assigned To: 
Comments:

This is not related to the mssql extension. You are using the sybase extension.

Previous Comments:
---

[2000-11-21 16:44:45] [EMAIL PROTECTED]

Reclassify: MSSQL related (was Sybase CT Related)

---

[2000-11-19 21:39:13] [EMAIL PROTECTED]

ok, this is my php configure line:
./configure --with-apxs=/www/bin/apxs --with-sybase-ct=/opt/sybase-11.9.2 
--enable-track-vars

I've got these 3 packages installed on /opt/sybase-11.9.2
sybase-ase-11.9.2-3.i386.rpm
sybase-common-11.9.2-3.i386.rpm
sybase-openclient-11.1.1-3.i386.rpm

I can query a MSSQL 7.0 server + SP2 applied with no problems, but if I ever misstype 
a query php won't report the sql server error and hangs the script forever.

I strace'd apache and here are part of the results:
(the cmd used was: strace -s 128 /www/bin/httpd -X)
connect(6, {sin_family=AF_INET, sin_port=htons(1433), 
sin_addr=inet_addr("200.32.xxx.xxx")}}, 16) = 0
ioctl(6, FIONBIO, [1])  = 0
ioctl(6, FIOASYNC, [0]) = 0
setsockopt(6, SOL_SOCKET, SO_KEEPALIVE, [1], 4) = 0
setsockopt(6, IPPROTO_TCP1, [1], 4) = 0
... some more not meaningfull sys calls.
send(6, "11

-- 
PHP Development Mailing List 
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 #11188 Updated: translate national characters in freeeTDS-driver

2001-06-30 Thread fmk

ID: 11188
Updated by: fmk
Reported By: [EMAIL PROTECTED]
Status: Open
Old-Bug Type: MSSQL related
Bug Type: Sybase (dblib) related
Operating system: 
PHP Version: 4.0.5
Assigned To: 
Comments:

This is not related to the mssql extension. You are using the sybase extension.

Previous Comments:
---

[2001-05-30 04:33:07] [EMAIL PROTECTED]

I have: FreeBSD-FreeTDS-MSSQL 7.0
This line
mssql_query("SELECT * FROM table WHERE field='national characters'")
dont normal work

function ascci2unicode() in FreeTDS-driver is not good!!!



---



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


-- 
PHP Development Mailing List 
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 #8349 Updated: Accessing a text field

2001-06-30 Thread fmk

ID: 8349
Updated by: fmk
Reported By: [EMAIL PROTECTED]
Status: Open
Old-Bug Type: MSSQL related
Bug Type: Sybase (dblib) related
Operating system: 
PHP Version: 4.0.3pl1
Assigned To: 
Comments:

This is not related to the mssql extension. You are using the sybase extension.

Previous Comments:
---

[2000-12-21 08:07:54] [EMAIL PROTECTED]

I notice a bug in MSSQL functions. The bug is when you try to fetch a text field type 
from a table in MSSQL Server. It won't return any values, and even a single query it 
won't perform. But with other types of fields it didn't seems to has any kind of 
problem.

If anyone that may have an idea of solving this problem, please let me know!

Thank You!

Felipe Almeida

---



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


-- 
PHP Development Mailing List 
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 #9171 Updated: Query Timeout

2001-06-30 Thread fmk

ID: 9171
Updated by: fmk
Reported By: [EMAIL PROTECTED]
Status: Open
Old-Bug Type: MSSQL related
Bug Type: Sybase (dblib) related
Operating system: 
PHP Version: 4.0.0
Assigned To: 
Comments:

This is not related to the mssql extension. You are using the sybase extension.

Previous Comments:
---

[2001-02-08 06:10:41] [EMAIL PROTECTED]

I have install freetds-0.51 on PHP to connect to MSSQL Server. But it shows message 
like "Can't show page" in chinese.
My doubt is that is it because my query result to big(300 rows) or something wrong 
with my configuration.
Can somebody help me out??

---



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


-- 
PHP Development Mailing List 
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 #9244 Updated: sybase-ct does not report MSSQL-server errors

2001-06-30 Thread fmk

ID: 9244
Updated by: fmk
Reported By: [EMAIL PROTECTED]
Status: Open
Old-Bug Type: MSSQL related
Bug Type: Sybase (dblib) related
Operating system: 
PHP Version: 4.0.4pl1
Assigned To: 
Comments:

This is not related to the mssql extension. You are using the sybase extension.

Previous Comments:
---

[2001-02-13 15:14:02] [EMAIL PROTECTED]

Bug #7881, as posted by [EMAIL PROTECTED] is still present in PHP4.0.4pl1. My 
configuration is: Linux Mandrake 7.1, Apache 1.3.17, PHP4.0.4pl1, 
sybase-common-11.9.2.-3.1386.rpm, sybase-openclient-11.1.1-3.i386.rpm, SQLServer 
7.0SP3 on Win2K.
Sending a valid query, using mssql_query() works fine, sending an invalid query (for a 
table that does not exist for example), hangs the script. PHP does not timeout, the 
browser does eventually.
For more details, see bug #7881.

Thanks,

Arjan

---



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


-- 
PHP Development Mailing List 
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 #9402 Updated: never ending cycle

2001-06-30 Thread fmk

ID: 9402
Updated by: fmk
Reported By: [EMAIL PROTECTED]
Status: Open
Old-Bug Type: MSSQL related
Bug Type: Sybase (dblib) related
Operating system: 
PHP Version: 4.0.4pl1
Assigned To: 
Comments:

This is not related to the mssql extension. You are using the sybase extension.

Previous Comments:
---

[2001-02-22 09:12:18] [EMAIL PROTECTED]

When I call mssql_query and sql server error occured (for example I add a column to 
table, but didn't redefine view), then php script doesn't stop, but instead of that, 
it will wait forever. I have sybase-ct built in php (can compile stand-alone module, 
but can use, don't know why). I don't  think that in earlier versions (4.x) was this 
problem, but I am not sure.

Thanx for help

ojo.


---



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


-- 
PHP Development Mailing List 
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 #10347 Updated: Core Dump when selecting TIMESTAMP with FreeTDS and SQL Server

2001-06-30 Thread fmk

ID: 10347
Updated by: fmk
Reported By: [EMAIL PROTECTED]
Status: Open
Old-Bug Type: MSSQL related
Bug Type: Sybase (dblib) related
Operating system: 
PHP Version: 4.0.4pl1
Assigned To: 
Comments:

This is not related to the mssql extension. You are using the sybase extension.

Previous Comments:
---

[2001-04-16 12:37:21] [EMAIL PROTECTED]

When I try and select a TIMESTAMP column from SQL Server, php core dumps.   I am using 
PHP 4.0.4pl1, with FreeTDS 0.51 and SQL Server 7.0 SP1 on kernel 2.2.16, glibc-2.2

Something as simple as:
SELECT dateJoined FROM members;

will cause a core dump

The bad line in add_string_to_string is :
memcpy(result->value.str.val+op1->value.str.len, op2->value.str.val, 
op2->value.str.len);

GDB values:
(gdb) print result->value.str.val+op1->value.str.len
$1 = 0x81d3be2 ""
(gdb) print op2->value.str.val
$2 = 0x81d08e4 ""
(gdb) print  op2->value.str.len
$3 = -1

(gdb) bt
#0  0x40791ace in memcpy () from /lib/libc.so.6
#1  0x80eda9e in add_string_to_string (result=0xbfffdaa0, op1=0xbfffdaa0, 
op2=0x81c6c2c)
at zend_operators.c:1004
#2  0x8125efe in execute (op_array=0x81c69b4) at ./zend_execute.c:1389
#3  0x812679a in execute (op_array=0x81b7d6c) at ./zend_execute.c:1559
#4  0x80f0ef8 in zend_execute_scripts (type=8, file_count=3) at zend.c:729
#5  0x8061b18 in php_execute_script (primary_file=0xb6b0) at main.c:1221
#6  0x805fcf8 in main (argc=2, argv=0xb764) at cgi_main.c:738
#7  0x40727f31 in __libc_start_main (main=0x805f434 , argc=2, ubp_av=0xb764, 

init=0x805d784 <_init>, fini=0x81309dc <_fini>, rtld_fini=0x4000e274 <_dl_fini>, 
stack_end=0xb75c) at ../sysdeps/generic/libc-start.c:129

---



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


-- 
PHP Development Mailing List 
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 #11105 Updated: Does not compile MSSQL extension

2001-06-30 Thread fmk

ID: 11105
Updated by: fmk
Reported By: [EMAIL PROTECTED]
Old-Status: Open
Status: Closed
Bug Type: MSSQL related
Operating system: 
PHP Version: 4.0.5
Assigned To: 
Comments:

The MSSQL extension is not available on Solaris (Only windows)

You could use the sybase functions together with FreeTDS and configure like this:

./configure --with-sybase=/usr/local/freetds ...

The sybase extension includes functions aliases that allows you to use mssql_connect 
etc. but it is still the sybase functions you are calling.

Previous Comments:
---

[2001-05-25 00:06:34] [EMAIL PROTECTED]

Compiled latest version PHP 4.05 with database extenstion mssql (./configure 
--with-mssql) on Sparc/Solaris 2.6 . COmpilation does not give errors , but under ext 
directory, under mssql subdirectory, no changes are seen at the end of compilation 
i.e. no object files are seen compiled .

When opened up ./configure script, did not see any instance of mssql , whereas all 
other databases are defined.

Is this a bug in ./configure script ? 

EWgate.com
Senyong

---



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


-- 
PHP Development Mailing List 
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 #11171 Updated: Faulty MSSQL-queries locks PHP

2001-06-30 Thread fmk

ID: 11171
Updated by: fmk
Reported By: [EMAIL PROTECTED]
Status: Open
Old-Bug Type: MSSQL related
Bug Type: Sybase (dblib) related
Operating system: 
PHP Version: 4.0.5
Assigned To: 
Comments:

This is not related to the mssql extension. You are using the sybase extension.

Previous Comments:
---

[2001-05-29 11:15:03] [EMAIL PROTECTED]

Bug #7881, as posted by [EMAIL PROTECTED] and bug #9244 is still present in PHP4.0.5.
Setup: FreeBSD 3.4-STABLE, Apache 1.3.20, PHP4.0.5, newest SybaseOpenClient for 
FreeBSD (not sure of version, older doesn't work either), SQLServer 7.0SP3 on WinNT.
Sending a valid query, using mssql_query() works fine, sending an invalid query (for a
table that does not exist for example), hangs the script. PHP does not timeout, the 
browser
does eventually.
For more details, see bug #7881.

This is very important for me to get fixed, would be happy for some information on why 
this happens?

Thanks!
Peter

---



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


-- 
PHP Development Mailing List 
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 #11811: Cannot use ImageCopyResampled(), wrong GD version Reported

2001-06-30 Thread matt

From: [EMAIL PROTECTED]
Operating system: Cobalt Linux 5.0 (Kernel 2.2.14C5)
PHP version:  4.0.6
PHP Bug Type: GD related
Bug description:  Cannot use ImageCopyResampled(), wrong GD version Reported

I previously ran GD 1.8.3 with PHP 4.0.5, then upgraded to GD 2.0.1 and PHP 4.0.6 to 
take advantage of ImageCopyResampled().  

However, configure is not setting #define HAVE_LIBGD20 no matter what I do.  I have 
even removed all reminants of GD 1.8.4, but still to no avail. 

Here's all the relevant information I can provide from phpinfo():

[Configure Command]
'./configure' '--with-xml' '--with-pgsql=/home/pgsql' '--with-jpeg' 
'--with-jpeg-dir=/home/matt/Packages/jpeg-6b' '--with-t1lib' 
'--with-gd=/home/matt/Packages/gd-2.0.1' '--with-imap' '--with-pspell' '--with-swf' 
'--with-zlib' '--enable-ftp' '--with-pdflib=/usr/local/lib' '--with-apxs' 
'--with-gdbm' '--with-mysql' '--enable-filepro' '--enable-dbx' '--enable-bcmath' 
'--enable-trans-sid' '--enable-yp' '--with-mcal=/usr/local/mcal' 

[gd]
GD Support: enabled 
GD Version: 1.6.2 or higher 
T1Lib Support: enabled 
JPG Support: enabled 
WBMP Support: enabled 


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



-- 
PHP Development Mailing List 
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 #10901 Updated: mssql.min_error_severity or mssql.min_message_severity have no effect

2001-06-30 Thread fmk

ID: 10901
Updated by: fmk
Reported By: [EMAIL PROTECTED]
Old-Status: Open
Status: Closed
Bug Type: MSSQL related
Operating system: 
PHP Version: 4.0.5
Assigned To: 
Comments:

Using mssql_get_last_message will allways retune the last server message. Setting 
mssql.min_message_severity and mssql.min_error_severity will only affect the PHP 
Warnings printed in your script.

You should not use mssql_get_last_message to check for errors, but use the return 
value of the function. If a function returns FALSE, you can check 
mssql_get_last_message to get the message.

Previous Comments:
---

[2001-05-16 09:27:14] [EMAIL PROTECTED]

mssql.min_message_severity
mssql.min_error_severity

in the php.ini file have no effect on messages received from MSSQL. 

I am running MSSQL 7.0 SP2.

I still get 

Changed database context to 'dbname'.

warning on queries even after setting the above values to greater than 10. The above 
warning is a level 10 warning.



---



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


-- 
PHP Development Mailing List 
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 #10201 Updated: php_mssql70.dll cannot be loaded

2001-06-30 Thread fmk

ID: 10201
Updated by: fmk
Reported By: [EMAIL PROTECTED]
Old-Status: Open
Status: Closed
Bug Type: MSSQL related
Operating system: 
PHP Version: 4.0.4pl1
Assigned To: 
Comments:

If you don have the client tools for MSSQL Server installed on the server, the php 
extension will not load.

You get the client tools from the SQL Server CD or by copying the file ntwdblib.dll to 
\winnt\system32.

I recoment that you install the tools from the CD. This will allow you to configure 
protocols, server aliases and other parameters.

Previous Comments:
---

[2001-04-06 06:37:01] [EMAIL PROTECTED]

I use php4.0.4 as CGI on Windows 2000 Advanced Server. If I don't include 
php_mssql70.dll in php.ini everything works perfect. When I try to include it I 
receive the error Warning : Unable to load dynamic library 
'C:phpextensionsphp_mssql70.dll' - The specified module could not be found.

However I tried the same on Windows 2000 Server (not Advanced) and it works!?!
Is there any difference or can be the reason in some of the Hot Fixes that are 
installed on the Advanced Server?

---



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


-- 
PHP Development Mailing List 
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 #11811 Updated: Cannot use ImageCopyResampled(), wrong GD version Reported

2001-06-30 Thread rasmus

ID: 11811
Updated by: rasmus
Reported By: [EMAIL PROTECTED]
Status: Open
Bug Type: GD related
Operating system: 
PHP Version: 4.0.6
Assigned To: 
Comments:

Did you remove the config.cache file?

Previous Comments:
---

[2001-06-30 15:12:37] [EMAIL PROTECTED]

I previously ran GD 1.8.3 with PHP 4.0.5, then upgraded to GD 2.0.1 and PHP 4.0.6 to 
take advantage of ImageCopyResampled().  

However, configure is not setting #define HAVE_LIBGD20 no matter what I do.  I have 
even removed all reminants of GD 1.8.4, but still to no avail. 

Here's all the relevant information I can provide from phpinfo():

[Configure Command]
'./configure' '--with-xml' '--with-pgsql=/home/pgsql' '--with-jpeg' 
'--with-jpeg-dir=/home/matt/Packages/jpeg-6b' '--with-t1lib' 
'--with-gd=/home/matt/Packages/gd-2.0.1' '--with-imap' '--with-pspell' '--with-swf' 
'--with-zlib' '--enable-ftp' '--with-pdflib=/usr/local/lib' '--with-apxs' 
'--with-gdbm' '--with-mysql' '--enable-filepro' '--enable-dbx' '--enable-bcmath' 
'--enable-trans-sid' '--enable-yp' '--with-mcal=/usr/local/mcal' 

[gd]
GD Support: enabled 
GD Version: 1.6.2 or higher 
T1Lib Support: enabled 
JPG Support: enabled 
WBMP Support: enabled 

---



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


-- 
PHP Development Mailing List 
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 #10177 Updated: IIS 5.0 can not start with enabled mssql70 extension

2001-06-30 Thread fmk

ID: 10177
Updated by: fmk
Reported By: [EMAIL PROTECTED]
Old-Status: Open
Status: Closed
Bug Type: MSSQL related
Operating system: 
PHP Version: 4.0.4pl1
Assigned To: 
Comments:

Install the client tools for MSSQL Server before using the extension.

The client tools can be installed from the MSSQL Server CD or by copying the file 
ntwdblib.dll to \winnt\system32.

Previous Comments:
---

[2001-04-05 05:29:46] [EMAIL PROTECTED]

Steps I do:
1. PHP is working as an ISAPI without mssql70 extension. In php.ini:
;extension=php_mssql70.dll
2. Set in php.ini mssql70 extension:
extension=php_mssql70.dll
3. When I try to restart World Wide Web Publishing Service it displays an error 
message - Service cannot be started and its status goes 'Starting'
4. If I disable mssql70 extension in php.ini and reboot computer, PHP works again.

---

[2001-04-05 05:02:35] [EMAIL PROTECTED]

Please provide more information, about what error's you get, the output of your 
phpino(); (on a website if that's possible) and your php.ini file (and the location on 
your filesystem of it).

---

[2001-04-05 03:42:20] [EMAIL PROTECTED]



---



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


-- 
PHP Development Mailing List 
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 #11811 Updated: Cannot use ImageCopyResampled(), wrong GD version Reported

2001-06-30 Thread derick

ID: 11811
Updated by: derick
Reported By: [EMAIL PROTECTED]
Old-Status: Open
Status: Feedback
Bug Type: GD related
Operating system: 
PHP Version: 4.0.6
Assigned To: 
Comments:

Can you email me the config.log file? And are you absolutely sure all old gd header 
files are removed?

Derick

Previous Comments:
---

[2001-06-30 15:19:08] [EMAIL PROTECTED]

Did you remove the config.cache file?

---

[2001-06-30 15:12:37] [EMAIL PROTECTED]

I previously ran GD 1.8.3 with PHP 4.0.5, then upgraded to GD 2.0.1 and PHP 4.0.6 to 
take advantage of ImageCopyResampled().  

However, configure is not setting #define HAVE_LIBGD20 no matter what I do.  I have 
even removed all reminants of GD 1.8.4, but still to no avail. 

Here's all the relevant information I can provide from phpinfo():

[Configure Command]
'./configure' '--with-xml' '--with-pgsql=/home/pgsql' '--with-jpeg' 
'--with-jpeg-dir=/home/matt/Packages/jpeg-6b' '--with-t1lib' 
'--with-gd=/home/matt/Packages/gd-2.0.1' '--with-imap' '--with-pspell' '--with-swf' 
'--with-zlib' '--enable-ftp' '--with-pdflib=/usr/local/lib' '--with-apxs' 
'--with-gdbm' '--with-mysql' '--enable-filepro' '--enable-dbx' '--enable-bcmath' 
'--enable-trans-sid' '--enable-yp' '--with-mcal=/usr/local/mcal' 

[gd]
GD Support: enabled 
GD Version: 1.6.2 or higher 
T1Lib Support: enabled 
JPG Support: enabled 
WBMP Support: enabled 

---



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


-- 
PHP Development Mailing List 
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 #9855 Updated: Return column data with correct type

2001-06-30 Thread fmk

ID: 9855
Updated by: fmk
Reported By: [EMAIL PROTECTED]
Old-Status: Open
Status: Closed
Bug Type: MSSQL related
Operating system: 
PHP Version: 4.0.4pl1
Assigned To: 
Comments:

Update to php4.0.6, and you will find what you are asking for.

The setting mssql.compatability_mode in php.ini can be used to specify how data are 
returned.

mssql.compatability_mode = Off Returns data as php types

mssql.compatability_mode = On Returns all data ass strings.

Previous Comments:
---

[2001-03-20 00:04:07] [EMAIL PROTECTED]

Suggestion:

Add new data retrieval functions (or extend mssql_fetch_array and mssql_fetch_row) to 
return each column in a type that matches the underlying database column type instead 
of the always as type string.  Also, return columns that are NULL as PHP's null type 
(instead of boolean/false).

Two questions - is this the proper place to submit suggestions, and if so should this 
also be submitted to the general 'database functions' category (I know PHP's ODBC 
functions exhibit the same behavior)?


---



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


-- 
PHP Development Mailing List 
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 #9854 Updated: Empty strings get returned as single spaces

2001-06-30 Thread fmk

ID: 9854
Updated by: fmk
Reported By: [EMAIL PROTECTED]
Old-Status: Open
Status: Closed
Bug Type: MSSQL related
Operating system: 
PHP Version: 4.0.4pl1
Assigned To: 
Comments:

Handling of NULL columns is fixed in php 4.0.6

Previous Comments:
---

[2001-03-19 23:45:28] [EMAIL PROTECTED]

Add'l info:

Web Server:
   Win2000 Server SP1
   IIS 5.0
   PHP 4.0.4pl1

Database Server:
   WinNT SP6
   MSSQL 7.0

---

[2001-03-19 23:42:49] [EMAIL PROTECTED]

mssql_fetch_array (and mssql_fetch_row) return a single space for columns that contain 
an empty string (as opposed to columns that contain NULL).

---



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


-- 
PHP Development Mailing List 
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 #9438 Updated: Error retrieving image field from MSSQL database

2001-06-30 Thread fmk

ID: 9438
Updated by: fmk
Reported By: [EMAIL PROTECTED]
Old-Status: Open
Status: Closed
Bug Type: MSSQL related
Operating system: 
PHP Version: 4.0.4pl1
Assigned To: 
Comments:

Handling of binary data is changed for php4.0.6. Please update and try again.

Previous Comments:
---

[2001-02-24 20:27:09] [EMAIL PROTECTED]

When I try to retrieve image field from MSSQL7 database I get "PHP has encountered an 
Access Violation at 77FCA9EA" and all PHP engine becomes unstable after this. The 
script is very simple:



msdb.php:


I'm quite new in PHP, but I met some other people report the same problems in 
PHP-related forums. I used only precompiled PHP modules downloaded from php.net.

Best regards,
Leonid Freidin


---



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


-- 
PHP Development Mailing List 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




  1   2   >