Re: [PHP-DEV] removing ereg functions

2001-05-15 Thread Rasmus Lerdorf

> Is it possible to remove the ereg functions?  We have a strict policy to
> only use preg as they are more reliable and faster.  So, I am not to happy
> that PHP is bloated with these ereg functions.
>
> Any thoughts?

Uh, are you out of your mind?

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




[PHP-DEV] Bug #10754 Updated: parsing CDATA with special characters

2001-05-15 Thread sniper

ID: 10754
Updated by: sniper
Reported By: [EMAIL PROTECTED]
Old-Status: Open
Status: Feedback
Bug Type: XML related
Operating system: 
PHP Version: 4.0.4pl1
Assigned To: 
Comments:

Could you please try with the latest release candidate:

http://www.php.net/~andi/php-4.0.6RC1.tar.gz

using it I can parse your example XML file just fine.

--Jani


Previous Comments:
---

[2001-05-09 11:28:09] [EMAIL PROTECTED]
Parsing a XMLdocument that contains CDATA parts produces errors. Also the parser 
should leave the CDATA it still tries to parse it. Here is my XMLdoc :

 

The parser complains about the letter 'ü' in the second line. When I change it to 'ä' 
the document is parsed nicely. Other combinitions like 'äü' are also parsed nicely. 
Must be a bug?

My configure line:
'./configure' '--with-apache=/usr/local/src/apache_1.3.19'
  '--with-mysql=/usr/local/mysql' 
'--with-zlib-dir=/usr/local/lib' '--with-ftp'
  '--with-gd' 
'--with-jpeg-dir=/usr/local/lib' '--with-xml' '-with-dom=/usr/local/lib'
  '--enable-versioning' 
'--enable-track-vars=yes' '--enable-url-includes'
  '--enable-sysvshm=yes' 
'--enable-sysvsem=yes' '--with-config-file-path=/etc'
  '--no-create'

---



ATTENTION! Do NOT reply to this email!
To reply, use the web interface found at http://bugs.php.net/?id=10754&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 #10615 Updated: JPEG size info not properly returned on unmodified JPEG images from digicam

2001-05-15 Thread htmlspinnr

ID: 10615
User Update by: [EMAIL PROTECTED]
Status: Closed
Bug Type: GetImageSize related
Operating system: Linux 2.4.4 (Redhat 7.0)
PHP Version: 4.0.5
Description: JPEG size info not properly returned on unmodified JPEG images from 
digicam

All fixed. Both links now work properly again.

Previous Comments:
---

[2001-05-16 00:53:22] [EMAIL PROTECTED]
Should be fixed in CVS now.

--Jani


---

[2001-05-03 12:46:30] [EMAIL PROTECTED]
Try this instead (updated my original code to use ImageMagick instead - 
slower, but functional).

I created a few files which may help. 

Script 1 calls an image that doesn't work properly. Script 2 calls an image 
from the same camera, however the image was rotated using a lossless method 
before it was uploaded. It was, however, modified none the less.

Script 1:
http://pictures.ourjohnsonfamily.com/2000/april%2002,%202000%20-%
20disneyland%20car%20ding/index2.php

Script 1's source:
http://pictures.ourjohnsonfamily.com/2000/april%2002,%202000%20-%
20disneyland%20car%20ding/index2.phps

Script 2:
http://pictures.ourjohnsonfamily.com/2000/april%2002,%202000%20-%
20disneyland%20car%20ding/index3.php

Script 2's source:
http://pictures.ourjohnsonfamily.com/2000/april%2002,%202000%20-%
20disneyland%20car%20ding/index3.phps

Hope this helps, and sorry for changing out from under you.
-Rick


---

[2001-05-02 19:43:36] [EMAIL PROTECTED]
That example script of your doesn't have any getimagesize()
calls in it. So please add one example script into this bug 
report that doesn't work.

--Jani


---

[2001-05-02 12:58:54] [EMAIL PROTECTED]
Issue noted in 4.0.5 and 4.0.6-dev. Currently running 4.0.6-dev

Location where "issue" can be viewed.

http://pictures.ourjohnsonfamily.com/2001/april%2014,%202001%20-%20easter%20eve%20and%20prego%20pics/


On demo page - thumbnails in left frame should display image dimensions. Since 4.0.5, 
image info is only obtainable if image file has been modified in any way. If images 
have been pulled straight from digicam, information cannot be displayed.

Script source can be viewed here:
http://www.htmlspinnr.org/photodisplay.phps

Find function GetDimension, this is where GetImageSize is called.

Function worked properly in 4.0.4pl1, so I'm not blaming code.

configure string:
./configure '--prefix=/usr' '--with-mysql=/usr' '--with-apxs' '--sysconfdir=/etc' 
'--with-config-file-path=/etc' '--enable-inline-optimization' '--enable-ftp' 
'--enable-ssl' '--enable-imap' '--with-gd' '--with-gd-dir=/usr/lib' '--with-jpeg' 
'--with-png' '--with-jpeg-dir' '--with-png-dir' '--with-freetype-dir=/usr/local/lib' 
'--enable-gd-native-ttf'

other runtime info (incl. compile string, etc.)
http://www.ourjohnsonfamily.com/info.php ( a file containing )


---


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


-- 
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 #10302 Updated: odbc_tables()

2001-05-15 Thread john

ID: 10302
User Update by: [EMAIL PROTECTED]
Status: Open
Bug Type: ODBC related
Operating system: winnt4sp6
PHP Version: 4.0.4pl1
Description: odbc_tables()

I have just updated php to 4.0.5 with the same results.
I also added odbc_error() and odbc_errormsg() after the 
'SORRY . I Cant't Get The Table Details' message, and they return empty stings.

Thanks
John

Previous Comments:
---

[2001-04-23 12:27:53] [EMAIL PROTECTED]
code example:-

";
die();
}

//
// get table list
//

$table_list=array();
$result = odbc_tables($db);
if($result) {
$count=0;

   // debug lines
echo odbc_num_rows($result) . " Tables found ";
odbc_result_all($result);
   // end debug

while(($report = odbc_fetch_row($result))) {
$row[$count] = odbc_result($result,3);
$count++;
}

if($count > 0) {
sort($row);
for(reset($row);$table_list[]=current($row);next($row)) { }
} else {
echo "SORRY. I Can't Get The Table Details";
die();
}
}

//-
// get field names
//-
if(!$tables)
$tables=$table_list[0];

$result = odbc_columns($db,"","","$tables");
if($result) {
$row=array();
$count=0;
while(($report = odbc_fetch_row($result))) {
$row[$count] = odbc_result($result,4);
$count++;
}

if($count > 0) {
sort($row);
for(reset($row);$columns[]=current($row);next($row)) {}
} else {
echo "SORRY. I Can't Get The Field Details";
die();
}
}

odbc_close($db);

odbc_num_rows() returns a count of tables in the database,
odbc_results_all() returns no rows,
odbc_fetch_row() returns false.


---

[2001-04-18 21:37:34] [EMAIL PROTECTED]
can you please provide a sample script on how to reproduce this?

---

[2001-04-12 10:47:08] [EMAIL PROTECTED]
I think this may have been an issue in a previous release but I am still having it in 
this version.

after calling odbc_tables() I can not get the results using odbc_fetch_row() or 
odbc_result_all(), but odbc_num_rows() does return the number of tables in the 
database.

The system is using the precomplied version downloaded from zend with the default 
php.ini file. Oh and in ISAPI mode!

Thanks

---


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


-- 
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 #10739 Updated: Zlib compile fails

2001-05-15 Thread sniper

ID: 10739
Updated by: sniper
Reported By: [EMAIL PROTECTED]
Status: Feedback
Bug Type: Compile Failure
Operating system: 
PHP Version: 4.0.5
Assigned To: 
Comments:

Forgot the url to that RC:

http://www.php.net/~andi/php-4.0.6RC1.tar.gz




Previous Comments:
---

[2001-05-16 02:49:21] [EMAIL PROTECTED]
And how does the PHP 4.0.6RC1 work for you?

--Jani


---

[2001-05-09 09:02:01] [EMAIL PROTECTED]
I get the same thing, and the common link seems to be IMAP - somewhere between 
revision 1.27 and the current version of ext/imap/config.m4, the build was broken such 
that it doesn't add the right include paths - the zlib test compile fails because the 
mm_* callbacks that libc-client expects to find aren't defined in any of the included 
headers.

I'll try and dig up a config.log message later if this doesn't ring a bell for someone.

---

[2001-05-08 18:43:39] [EMAIL PROTECTED]
There is more likely something else that fails.
Check the config.log file for more info.

--Jani


---

[2001-05-08 18:36:05] [EMAIL PROTECTED]
My compile options follow:

./configure 
--prefix=/usr/local/php 
--disable-debug 
--enable-shared 
--enable-inline-optimization 
--with-apxs=/usr/sbin/apxs 
--with-gd 
--with-jpeg-dir=/usr 
--with-png 
--with-zlib 
--with-db2 
--with-db3 
--with-gdbm 
--disable-debug 
--enable-sockets 
--enable-sysvsem 
--enable-sysvshm 
--enable-track-vars 
--enable-yp 
--enable-ftp 
--enable-wddx 
--with-mysql 
--with-xml 
--disable-short-tags 
--enable-trans-sid 
--with-imap 
--with-mcrypt  
--with-mhash 
--enable-bcmath 
--with-ttf 
--with-t1lib  
--with-pgsql 
--with-ldap

---

[2001-05-08 18:32:59] [EMAIL PROTECTED]
Zlib fails to compile even though it is properly installed. 

configure: error: Zlib module requires zlib >= 1.0.9.

[root@websmith php-4.0.5]# rpm -qa |  grep zlib
zlib-1.1.3-22
zlib-devel-1.1.3-22

Bug 8575 says;
[2001-04-10 09:45:37] [EMAIL PROTECTED]

No feedback. If this happens with soon to be released PHP 4.0.5 too, reopen this bug
report.

--Jani

---

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


ATTENTION! Do NOT reply to this email!
To reply, use the web interface found at http://bugs.php.net/?id=10739&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 #10739 Updated: Zlib compile fails

2001-05-15 Thread sniper

ID: 10739
Updated by: sniper
Reported By: [EMAIL PROTECTED]
Status: Feedback
Bug Type: Compile Failure
Operating system: 
PHP Version: 4.0.5
Assigned To: 
Comments:

And how does the PHP 4.0.6RC1 work for you?

--Jani


Previous Comments:
---

[2001-05-09 09:02:01] [EMAIL PROTECTED]
I get the same thing, and the common link seems to be IMAP - somewhere between 
revision 1.27 and the current version of ext/imap/config.m4, the build was broken such 
that it doesn't add the right include paths - the zlib test compile fails because the 
mm_* callbacks that libc-client expects to find aren't defined in any of the included 
headers.

I'll try and dig up a config.log message later if this doesn't ring a bell for someone.

---

[2001-05-08 18:43:39] [EMAIL PROTECTED]
There is more likely something else that fails.
Check the config.log file for more info.

--Jani


---

[2001-05-08 18:36:05] [EMAIL PROTECTED]
My compile options follow:

./configure 
--prefix=/usr/local/php 
--disable-debug 
--enable-shared 
--enable-inline-optimization 
--with-apxs=/usr/sbin/apxs 
--with-gd 
--with-jpeg-dir=/usr 
--with-png 
--with-zlib 
--with-db2 
--with-db3 
--with-gdbm 
--disable-debug 
--enable-sockets 
--enable-sysvsem 
--enable-sysvshm 
--enable-track-vars 
--enable-yp 
--enable-ftp 
--enable-wddx 
--with-mysql 
--with-xml 
--disable-short-tags 
--enable-trans-sid 
--with-imap 
--with-mcrypt  
--with-mhash 
--enable-bcmath 
--with-ttf 
--with-t1lib  
--with-pgsql 
--with-ldap

---

[2001-05-08 18:32:59] [EMAIL PROTECTED]
Zlib fails to compile even though it is properly installed. 

configure: error: Zlib module requires zlib >= 1.0.9.

[root@websmith php-4.0.5]# rpm -qa |  grep zlib
zlib-1.1.3-22
zlib-devel-1.1.3-22

Bug 8575 says;
[2001-04-10 09:45:37] [EMAIL PROTECTED]

No feedback. If this happens with soon to be released PHP 4.0.5 too, reopen this bug
report.

--Jani

---



ATTENTION! Do NOT reply to this email!
To reply, use the web interface found at http://bugs.php.net/?id=10739&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 #8638 Updated: PHP handles permission problems ungracefully rather than letting Apache do it

2001-05-15 Thread sniper

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

RTFM:

http://www.php.net/manual/en/function.set-error-handler.php



Previous Comments:
---

[2001-05-08 09:17:25] [EMAIL PROTECTED]
Still happens with php 4.0.5.


---

[2001-04-02 05:07:42] [EMAIL PROTECTED]
Yes, still happens with php4.04pl1.


---

[2001-03-31 08:08:34] [EMAIL PROTECTED]
Does it still happen? IIRC it was fixed.

---

[2001-01-10 10:31:13] [EMAIL PROTECTED]
I'm using Apache 1.3 with the config line:
AddType application/x-httpd-php php
When the permissions on any .php file are not set correctly for Apache to read them, 
the error:
Warning: Failed opening '/path/to/page.php' for inclusion 
(include_path='/path/to/phplib') in Unknown on line 0
appears.
The same problem still occurs with include_path='.:/path/to/phplib' in php.ini.
This is user-hostile - what ought to happen would be that Apache's normal 403 error 
mechanism should be invoked.


---



ATTENTION! Do NOT reply to this email!
To reply, use the web interface found at http://bugs.php.net/?id=8638&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 #10723 Updated: error max_execution_time, unrelated to value in php.ini

2001-05-15 Thread sniper

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

I can't reproduce this. And your scripts are buggy.
Try looking at the source for the page for action.php 

--Jani


Previous Comments:
---

[2001-05-08 07:15:18] [EMAIL PROTECTED]
These File-handle errros I only become if I don't give the mail-Skript a file-handle. 
By sending a request through action.php I've no such File-handle errors. I've tried it 
several times. Maybe the file-handle isn't given correctly to the Skript ?!

---

[2001-05-08 06:20:11] [EMAIL PROTECTED]
The mail.php script gives this error:

   Warning: fopen("","r") - Inappropriate ioctl for device in
   /usr/local/httpd/htdocs/mail/debug/mail.php on line 2
   Warning: Supplied argument is not a valid File-Handle resource in
   /usr/local/httpd/htdocs/mail/debug/mail.php on line 3
   Warning: Supplied argument is not a valid File-Handle resource in
   /usr/local/httpd/htdocs/mail/debug/mail.php on line 5
   Warning: Supplied argument is not a valid File-Handle resource in
   /usr/local/httpd/htdocs/mail/debug/mail.php on line 3

Please fix that first, as this occured for a 10 bytes file

---

[2001-05-08 06:15:57] [EMAIL PROTECTED]
OK,on both Sktipts I've added phpinfo().

---

[2001-05-08 03:01:28] [EMAIL PROTECTED]
Can you add a call to phpinfo() at the end of the action.php and mail.php scripts?

---

[2001-05-08 00:09:33] [EMAIL PROTECTED]
It's a problem with a big (2MB or greater) file upload. After the file is up, the 
message "Fatal error: Maximum execution time of 2 seconds exceeded" appears, but the 
parameter max_execution_time in php.ini hasn't this value, nor the error is influenced 
by any value for set_time_limit in the php.ini.

The Skripts are:

action.php
--



';
?> 
--

mail.php
--

--


It can be testet at:
http://www.lgl.de/mail/debug/action.php
http://www.lgl.de/mail/debug/mail.php
http://www.lgl.de/mail/debug/phpinfo.php


---

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


ATTENTION! Do NOT reply to this email!
To reply, use the web interface found at http://bugs.php.net/?id=10723&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] Re: Bug #10875 Updated: In COM Function: Return Var is emty

2001-05-15 Thread ws


- Original Message -
From: "Bug Database" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, May 15, 2001 9:14 PM
Subject: Bug #10875 Updated: In COM Function: Return Var is emty


> ID: 10875
> Updated by: phanto
> Reported By: [EMAIL PROTECTED]
> Old-Status: Open
> Status: Closed
> Bug Type: COM related
> Operating system:
> PHP Version: 4.0.5
> Assigned To:
> Comments:
>
> closed.j
>
> Previous Comments:
> --
-
>
> [2001-05-15 15:12:57] [EMAIL PROTECTED]
> > $jServer->GetB("NN", &$Var);
>
> pass by reference is deprecated. you have to pack your value into a
VARIANT object and unpack it afterwards.
>
>
> $vVar = new VARIANT($Var);
> /* VARIANT($Var [, VT_BSTR [,CP_ACP]]) */
> $jServer->GetB("NN", $vVar);
>
> echo $vVar->value;

This works fine in the Version 4.0.5 !
$vVar is an array. Is it possible to convert a Variant array to a PHP
datatype ?

Thanks for help
Wolf

> echo $vVar->type;
> /* one of VT_BSTR, VTUI4, VT_BYREF|VT_*,  */
>
>
> btw, in 4.0.5 the com extension is not working properly, maybe you have to
wait for 4.0.6 (or use the -dev version)
>
> --
-
>
> [2001-05-15 07:04:49] [EMAIL PROTECTED]
> here my problem with COM in PHP.
>
>
>  echo "J-Server in der dynamischen PHP-Web-Site. ";
>
> $jServer = new COM("jexeserver") or DIE ("Connect zum J Server ist nicht
> möglich");
> $jServer->Show(1);
> $jServer->Log(1);
>
> $jServer->Do("0!:0 <(1!:40''),'systemextrasconfigprofile.ijs'");
> $jServer->Do("load'd:\j_tm1dll\j\tm1api.ijs'");
> $jServer->Do("load'd:\j_tm1dll\j\tm1con.ijs'");
> $jServer->Do("load'd:\j_tm1dll\j\tm1prop.ijs'");
> $jServer->Do("load'd:\j_tm1dll\j\tm1view.ijs'");
>
> $jServer->Do("Tm1On''");
> $jServer->Do("Tm1AdmSet'OLAPLINE01'");
> $jServer->Do("SrvCon'zeiterf';'Admin';''");
>
> #$jServer->Do("NN=:'XXX'");
>
> $Var = "xxx";
> $jServer->SetB("NN", $Var);  //  In the COM server: NN = $Var
> $jServer->Do("NN");  //  Display NN in the COM server
> $jServer->Do("NN=:'yyy'"); //  In the COM server: NN = "yyy"
>
> $jServer->GetB("NN", &$Var);//  <===   There is my
problem:  (& is a refernce)
>//  In the COM server &$Var
= NN
> echo $Var;   // echo $Var Output: xxx and not
yyy ?!?
>
> $jServer->Quit();
>
> ?>
>
> Is there a bug in my code or is this a bug in COM ???
>
>
>
> --
-
>
>
>
> ATTENTION! Do NOT reply to this email!
> To reply, use the web interface found at
http://bugs.php.net/?id=10875&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] Re: [PHP-QA] Velocis Support in PHP 4

2001-05-15 Thread Zak Greant

Andi Gutmans wrote:
> At 02:45 PM 5/15/2001 -0600, Zak Greant wrote:
> >...uh... I just managed to build with Velocis support.  I did a full
> >reinstall of PHP and Velocis... sigh...
> >
> >Oh well, it is better to be wrong about a problem, than to have a
problem.
> >:)
>
> Yes it definitely is. So what do you think made the difference?

I am not sure.  I had built 4.0.5, it worked. I installed Velocis,
rebuilt PHP and got massive syntax errors while building in the
Velocis support.  Nasty stuff that made it seem as if the code
has not been tested.

I grabbed the RC, tried to build it with Velocis support and
got the same results.

*After* I wrote the list, I had the brilliant thought that I
should clear everything out and try again.

So I reinstalled Velocis, rebuilt PHP and everything worked...


> Reinstalling velocis?
> Is this a free database?

No. Velocis is a commercial database that has changed hands
many many times (as recently as Feb. 22 to be exact).

I am working on building it for a book project. Now after
going to the work of getting the software, making spurious
bug reports :), and finally getting it to build I don't
think that I can call it outside of the UODBC functions...




--zak


-- 
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] removing ereg functions

2001-05-15 Thread Brian Moon

Is it possible to remove the ereg functions?  We have a strict policy to
only use preg as they are more reliable and faster.  So, I am not to happy
that PHP is bloated with these ereg functions.

Any thoughts?

Brian Moon
--
dealnews.com, Inc.
Makers of dealnews, dealmac
http://dealnews.com/ | http://dealmac.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 #10539 Updated: still - unresolved reference to compress

2001-05-15 Thread sniper

ID: 10539
Updated by: sniper
Reported By: [EMAIL PROTECTED]
Old-Status: Open
Status: Feedback
Bug Type: Compile Failure
Operating system: 
PHP Version: 4.0 Latest CVS (28/04/2001)
Assigned To: 
Comments:

Could you please try the PHP 4.0.6RC1:

http://www.php.net/~andi/php-4.0.6RC1.tar.gz


--Jani


Previous Comments:
---

[2001-05-04 22:11:25] [EMAIL PROTECTED]
Still fails, but error in config.log is quite puzzling. yp would suggest an 
NIS-related problem, but we don't use it ...

[snip]
configure:4786: gcc -o conftest -g -O2  -D_POSIX_PTHREAD_SEMANTICS  conftest.c 
-lsocket  1>&5
Undefined   first referenced
 symbol in file
yp_get_default_domain   /var/tmp/ccpTQEla.o  (symbol belongs to implicit 
dependen
cy /usr/lib/libnsl.so.1)
ld: fatal: Symbol referencing errors. No output written to conftest
collect2: ld returned 1 exit status
configure: failed program was:
#line 4763 "configure"
[snip]

Doesn't look relevant this time, but here's the output of 
/usr/local/mysql-3.23.37/bin/mysql_config --libs:  
/usr/local/mysql-3.23.37/bin/mysql_config: !: not found
 -L'/usr/local/mysql-3.23.37/lib/mysql' -lmysqlclient -lz -lcrypt -lgen -lsocket -lnsl 
-lm 

thanks again. -d

---

[2001-05-01 20:23:55] [EMAIL PROTECTED]
Should be fixed in CVS now.
If not, reopen with the output of this command:

/usr/local/mysql-3.23.37/bin/mysql_config --libs

--Jani


---

[2001-04-30 18:21:23] [EMAIL PROTECTED]
Thanks for your response. Info you requested is below.  I'm afraid I don't know what 
to look for in this case, so let me know if you need anything else. -d

Output of 'ldd /usr/local/mysql-3.23.37/lib/mysql/libmysqlclient.so':

libcrypt_i.so.1 =>   /usr/lib/libcrypt_i.so.1
libgen.so.1 =>   /usr/lib/libgen.so.1
libsocket.so.1 =>/usr/lib/libsocket.so.1
libnsl.so.1 =>   /usr/lib/libnsl.so.1
libm.so.1 => /usr/lib/libm.so.1
libc.so.1 => /usr/lib/libc.so.1
libdl.so.1 =>/usr/lib/libdl.so.1
libmp.so.2 =>/usr/lib/libmp.so.2
/usr/platform/SUNW,Ultra-60/lib/libc_psr.so.1

I verified that all these libraries are present.

config.log info:

Run 1:
 ./configure --with-mysql=/usr/local/mysql-3.23.37 --with -apache=../apache_1.3.
19 --enable-track-vars --with-imap=../imap-2001.BETA.SNAP-0104241750 --enable-sy
svsem --enable-sysvshm

Prodiced this in config.log 
configure:49857: checking whether to include zlib support
No other messages related to zlib.

Run 2:
 ./configure --with-mysql=/usr/local/mysql-3.23.37 --with -apache=../apache_1.3.
19 --enable-track-vars --with-imap=../imap-2001.BETA.SNAP-0104241750 --enable-sy
svsem --enable-sysvshm --with-zlib=/usr/local/zlib-1.1.3

aborts with:
configure: error: Zlib module requires zlib >= 1.0.9.

and this in config.log:

configure:49857: checking whether to include zlib support
configure:50058: checking for gzgets in -lz
configure:50077: gcc -o conftest -g -O2  -D_POSIX_PTHREAD_SEMANTICS -DSUPPORT_UT
F8 -DXML_BYTE_ORDER=21 -L/usr/local/zlib-1.1.3/lib  -R/usr/ucblib -L/usr/ucblib 
-R/usr/local/lib/gcc-lib/sparc-sun-solaris2.8/2.95.2 -L/usr/local/lib/gcc-lib/sp
arc-sun-solaris2.8/2.95.2 -R/usr/local/src/www/imap-2001.BETA.SNAP-0104241750/c-
client -L/usr/local/src/www/imap-2001.BETA.SNAP-0104241750/c-client -R/usr/local
/mysql-3.23.37/lib/mysql -L/usr/local/mysql-3.23.37/lib/mysql conftest.c -lz  -l
mysqlclient -lcrypt -lresolv -lresolv -lm -ldl -lnsl -lsocket  -lsocket -lgcc 1>
&5
Undefined   first referenced
 symbol in file
 uncompress  /usr/local/mysql-3.23.37/lib/mysql/libmysql
c
 lient.so
 compress/usr/local/mysql-3.23.37/lib/mysql/libmysql
c
 lient.so
 ld: fatal: Symbol referencing errors. No output written to conftest
 collect2: ld returned 1 exit status
 configure: failed program was:
 #line 50066 "configure"

Tried editing configure, change line # 14725 to:
 14725  LIBS="$LIBS -lz"
Get same result as Run #2 above.



---

[2001-04-29 22:23:04] [EMAIL PROTECTED]
What does 
'ldd /usr/local/mysql-3.23.37/lib/mysql/libmysqlclient.so'
output?

What is in config.log about zlib??

--Jani


---

[2001-04-28 13:33:01] [EMAIL PROTECTED]
Solaris 8 / gcc.  Unresolved symbol errors during php
configure.  I have seen lots of information about this,
but none of the fixes I've encountered have worked.  I have:

- tried adding -lz to LTLIBRARY_LDFLAGS in Makefile
- tried adding --w

[PHP-DEV] Bug #7821 Updated: Unresolved symbol with GD

2001-05-15 Thread sniper

ID: 7821
Updated by: sniper
Reported By: [EMAIL PROTECTED]
Old-Status: Open
Status: Feedback
Bug Type: *Configuration Issues
Operating system: 
PHP Version: 4.0.5
Assigned To: 
Comments:

What does it say in config.log about this ?
In the end of it.

And could you please try with latest snapshot from
http://snaps.php.net/ as the configure script for
GD has gone through a face lift.

--Jani


Previous Comments:
---

[2001-05-15 15:02:31] [EMAIL PROTECTED]
Hellow,

Here's the feedback : 

When I add --with-xpm-dir=..., the configure program failed : 

...
checking for libjpeg (needed by gd-1.8+)... yes
checking for jpeg_read_header in -ljpeg... yes
checking for libXpm (needed by gd-1.8+)... yes
checking for XpmFreeXpmImage in -lXpm... no
no
checking whether to include GD support... yes (static)
checking for gdImageString16 in -lgd... no
checking for gdImagePaletteCopy in -lgd... no
checking for gdImageColorClosestHWB in -lgd... no
checking for compress in -lz... no
checking for png_info_init in -lpng... no
checking for gdImageColorResolve in -lgd... no
checking for gdImageCreateFromPng in -lgd... no
checking for gdImageCreateFromGif in -lgd... no
checking for gdImageWBMP in -lgd... no
checking for gdImageCreateFromJpeg in -lgd... no
checking for gdImageCreateFromXpm in -lgd... no
checking whether to include FreeType 1.x support... yes
checking for T1lib support... no
checking whether to include GNU gettext support... no
checking for gmp support... no
checking for Hyperwave support... no
checking for ICAP support... no
checking for iconv support... no
checking for Kerberos support in IMAP... no
checking for SSL support in IMAP... no
checking for IMAP support... no
checking for Informix support... no
checking for Ingres II support... no
checking for InterBase support... no
checking for ircg support... no
checking for Java support... no
checking whether to include LDAP support... no
checking for MCAL support... no
checking for mcrypt support... no
checking for mhash support... no
checking whether to include ming support... no
checking for mnoGoSearch support... no
checking for mSQL support... no
checking for Muscat support... no
checking for MySQL support... no
checking for Oracle-OCI8 support... no
checking for Adabas support... no
checking for SAP DB support... no
checking for Solid support... no
checking for IBM DB2 support... no
checking for Empress support... no
checking for Velocis support... no
checking for a custom ODBC support... no
checking for iODBC support... no
checking for Easysoft ODBC-ODBC Bridge support... no
checking for unixODBC support... no
checking for OpenLink ODBC support... no
checking for DBMaker support... no
checking for Oracle-ORACLE support... no
checking for Ovrimos SQL Server support... no
checking whether to include PCRE support... yes
checking for memmove... (cached) yes
checking whether to include PDFlib support... yes
checking for libz needed by pdflib 3.x... already zlib support
checking for jpeg_read_header in -ljpeg... (cached) yes
checking for png_create_info_struct in -lpng... no
no
checking for TIFFOpen in -ltiff... no
no
checking for PDF_show_boxed in -lpdf... no
configure: error: pdflib extension requires pdflib 3.x.

I'll become crazy :p

An idea ?
Thx :)


---

[2001-04-28 15:35:26] [EMAIL PROTECTED]
No feedback. If this problem persists with PHP 4.0.5 which
will be released next week, please reopen this report.

Derick

---

[2001-03-29 11:09:27] [EMAIL PROTECTED]
Try adding --with-xpm-dir=/path/to/libXpm/
into your configure line (without the /lib part!)

--Jani




---

[2001-03-27 11:02:30] [EMAIL PROTECTED]
Hi Jani,

I use GD 1.8.4

If I return to GD 1.8.3, I have this message when I launch apache :

/usr/lib/dld.sl: Unresolved symbol: XpmReadFileToXpmImage (code)  from 
=/PKl01h01/soft/web/lib/libgd.sl


---

[2001-03-26 17:39:34] [EMAIL PROTECTED]
Which version of GD library are you using?
As I can't find such symbols in my gd libs at all.

(well, in GD 2.0.0BETA there are those gdMalloc, gdCalloc, etc. but not in 1.8.3)

--Jani


---

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


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


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

[PHP-DEV] Bug #10531 Updated: ftp_rawlist dont show list in directory that has spaces in it

2001-05-15 Thread sniper

ID: 10531
Updated by: sniper
Reported By: [EMAIL PROTECTED]
Old-Status: Feedback
Status: Closed
Bug Type: FTP related
Operating system: 
PHP Version: 4.0.4pl1
Assigned To: 
Comments:

No feedback, not enough info, can't reproduce -> closing. 



Previous Comments:
---

[2001-04-27 18:37:11] [EMAIL PROTECTED]
Works for me just fine.
Please  add a simple script into this bug report 
which can be used as is to reproduce this.

What is the version of the ftp server your connecting to?

--Jani


---

[2001-04-27 17:33:41] [EMAIL PROTECTED]
i try to get an ftp listing with ftp_rawlist.
everything goes well till i want to list within a directory that has spaces in it 
(like /foo/bar bar/*).
the strange thing is : ftp_nlist does work in this situation but i really need to see 
the file rights and sizes and hidden files so i have to use ftp_rawlist.
please take a look in to this and let me know if i am wrong or not clear enough about 
this bug.
thanks in advance,
gerard de brieder.


---



ATTENTION! Do NOT reply to this email!
To reply, use the web interface found at http://bugs.php.net/?id=10531&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 #8672 Updated: Crash when returning a variable from function as argument

2001-05-15 Thread sniper

ID: 8672
Updated by: sniper
Reported By: [EMAIL PROTECTED]
Status: Feedback
Old-Bug Type: Reproducible Crash
Bug Type: Variables related
Operating system: 
PHP Version: 4.0.4
Assigned To: 
Comments:

Does this happen with PHP 4.0.5 or not?

--Jani


Previous Comments:
---

[2001-04-28 14:45:15] [EMAIL PROTECTED]
Can you try to reprocude this when php 4.0.5 will be released next week? 

---

[2001-01-12 05:30:39] [EMAIL PROTECTED]
I had code like this:
$user = new eZUser( $session->variable("AuthenticatedUser" ) );

And I noticed now that this creates a segfault in php.

The workaround is changing the code to:

$val = $session->variable( "AuthenticatedUser" );
$user = new eZUser( $val );


The code worked with php-4.0.3pl1 and has worked with 
4.0.4, but it's reproduceable and I think it's a PHP bug.

The eZSession::variable() function returns a string value.

I've tested it with 4.0.4pl1 and the bug is still there.

---



ATTENTION! Do NOT reply to this email!
To reply, use the web interface found at http://bugs.php.net/?id=8672&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 #8706 Updated: Database handle corruption?

2001-05-15 Thread sniper

ID: 8706
Updated by: sniper
Reported By: [EMAIL PROTECTED]
Old-Status: Feedback
Status: Closed
Bug Type: *Database Functions
Operating system: 
PHP Version: 4.0.4pl1
Assigned To: 
Comments:

If problem still exists when using PHP 4.0.5, reopen.

--Jani


Previous Comments:
---

[2001-04-29 06:15:45] [EMAIL PROTECTED]
A bit more info including test scripts would be good here, please keep the test 
scripts as simple as possible.

- James

---

[2001-01-15 01:05:11] [EMAIL PROTECTED]

./configure  --with-mysql=/usr --with-imap --with-db2 --with-apache=../apache_1.3.12 
--enable-track-vars --with-pgsql=/usr --with-zlib --with-ldap

Under 4.0.4pl1, I'm getting lots of problems with database links. It keeps popping up 
(sporadically) with 1 is not a valid (mySQL|PostgreSQL) link resource.

Backrevving down to 4.0.2 works perfectly fine. I see other bug reports on this, but I 
don't think I've seen one that points out it as a bug that affects both database 
functions.

If you need me to, I can re-upgrade to provide examples that you can look at.

--Nathan

---



ATTENTION! Do NOT reply to this email!
To reply, use the web interface found at http://bugs.php.net/?id=8706&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 #10372 Updated: php addslashes() the entire page

2001-05-15 Thread sniper

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

no feedback, considered fixed.

--Jani


Previous Comments:
---

[2001-04-18 02:56:37] [EMAIL PROTECTED]
IIRC there was some odd interaction between session_start() and include(). Try 
upgrading to pl1 or higher (RC5 or current snapshot) and see if it persists.

---

[2001-04-18 02:49:02] [EMAIL PROTECTED]
PHP will intermittently produce a page where all quotes 
are backslashed, such as:






This particular page is produced using a template system, 
so it has passed through file(), join, spliti, 
str_replace, and echo.

The original data (in the file) contained no backslashes 
and all magic quotes-related options are off (at least, 
according to phpinfo).  The phpinfo output is not affected 
by this.

This is a vhosting server and one site (not this one) has 
magic_quotes_gpc and magic_quotes_runtime enabled in their 
.htaccess file.


---



ATTENTION! Do NOT reply to this email!
To reply, use the web interface found at http://bugs.php.net/?id=10372&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 #10297 Updated: GetImageSize and image/pjpeg

2001-05-15 Thread sniper

ID: 10297
Updated by: sniper
Reported By: [EMAIL PROTECTED]
Old-Status: Open
Status: Closed
Bug Type: GetImageSize related
Operating system: 
PHP Version: 4.0 Latest CVS (11/04/2001)
Assigned To: 
Comments:

should be fixed in CVS now.

--Jani


Previous Comments:
---

[2001-04-11 17:33:54] [EMAIL PROTECTED]
I'm working with php4.0.5RC1 from php4win.

If I have an image/pjpeg file GetImageSize doesn't return any values. If I do an 
ImageCreateFromJpeg and look the imagesx and imagesy values everything is allright.
An image/jpeg is working well with the same GetImageSize code.
On Linux/PHP4.0.4 there are no problems.

Andreas



---



ATTENTION! Do NOT reply to this email!
To reply, use the web interface found at http://bugs.php.net/?id=10297&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 #10783 Updated: getImagesize return false for some jpeg images

2001-05-15 Thread sniper

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

should be fixed in CVS now.

--Jani


Previous Comments:
---

[2001-05-10 06:10:42] [EMAIL PROTECTED]

I found some bug in 4.0.5 source distribution 
/ext/standard/image.c

In function php_handle_jpeg,
variable marker must be initialized before for loop
like following

  marker = FP_FGETC(socketd,fp,issock);
  for(;;) {
 ...
 marker = php_next_marker(socketd,fp,issock);
  }

I modified souce code and rebuit php modlue.
Then getImagesize work properly for all jpeg images.

  Park Hee-Sob.




---



ATTENTION! Do NOT reply to this email!
To reply, use the web interface found at http://bugs.php.net/?id=10783&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 #10615 Updated: JPEG size info not properly returned on unmodified JPEG images from digicam

2001-05-15 Thread sniper

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

Should be fixed in CVS now.

--Jani


Previous Comments:
---

[2001-05-03 12:46:30] [EMAIL PROTECTED]
Try this instead (updated my original code to use ImageMagick instead - 
slower, but functional).

I created a few files which may help. 

Script 1 calls an image that doesn't work properly. Script 2 calls an image 
from the same camera, however the image was rotated using a lossless method 
before it was uploaded. It was, however, modified none the less.

Script 1:
http://pictures.ourjohnsonfamily.com/2000/april%2002,%202000%20-%
20disneyland%20car%20ding/index2.php

Script 1's source:
http://pictures.ourjohnsonfamily.com/2000/april%2002,%202000%20-%
20disneyland%20car%20ding/index2.phps

Script 2:
http://pictures.ourjohnsonfamily.com/2000/april%2002,%202000%20-%
20disneyland%20car%20ding/index3.php

Script 2's source:
http://pictures.ourjohnsonfamily.com/2000/april%2002,%202000%20-%
20disneyland%20car%20ding/index3.phps

Hope this helps, and sorry for changing out from under you.
-Rick


---

[2001-05-02 19:43:36] [EMAIL PROTECTED]
That example script of your doesn't have any getimagesize()
calls in it. So please add one example script into this bug 
report that doesn't work.

--Jani


---

[2001-05-02 12:58:54] [EMAIL PROTECTED]
Issue noted in 4.0.5 and 4.0.6-dev. Currently running 4.0.6-dev

Location where "issue" can be viewed.

http://pictures.ourjohnsonfamily.com/2001/april%2014,%202001%20-%20easter%20eve%20and%20prego%20pics/


On demo page - thumbnails in left frame should display image dimensions. Since 4.0.5, 
image info is only obtainable if image file has been modified in any way. If images 
have been pulled straight from digicam, information cannot be displayed.

Script source can be viewed here:
http://www.htmlspinnr.org/photodisplay.phps

Find function GetDimension, this is where GetImageSize is called.

Function worked properly in 4.0.4pl1, so I'm not blaming code.

configure string:
./configure '--prefix=/usr' '--with-mysql=/usr' '--with-apxs' '--sysconfdir=/etc' 
'--with-config-file-path=/etc' '--enable-inline-optimization' '--enable-ftp' 
'--enable-ssl' '--enable-imap' '--with-gd' '--with-gd-dir=/usr/lib' '--with-jpeg' 
'--with-png' '--with-jpeg-dir' '--with-png-dir' '--with-freetype-dir=/usr/local/lib' 
'--enable-gd-native-ttf'

other runtime info (incl. compile string, etc.)
http://www.ourjohnsonfamily.com/info.php ( a file containing )


---



ATTENTION! Do NOT reply to this email!
To reply, use the web interface found at http://bugs.php.net/?id=10615&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 #10880 Updated: In some cases GetImageSize(image) does not return image dimensions

2001-05-15 Thread sniper

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

Should be fixed in CVS now.

--Jani


Previous Comments:
---

[2001-05-15 10:57:03] [EMAIL PROTECTED]
This is the configstring of the server running potato r3 and php 4.0.5:

'./configure' '--with-mysql' '--with-apache=../apache_1.3.19' '--enable-track-vars' 
'--enable-trans-sid' '--with-mcrypt=../libmcrypt-2.4.10' '--disable-posix-threads' 
'--with-gd=/usr/local' '--with-jpeg-dir=/usr/local' 
'--with-ttf=/usr/local/include/freetype2' '--enable-shared' '--enable-gd-imgstrttf' 
'--enable-versioning' '--enable-magic-quotes'

As GetImageSize didn't work on a specific JPEG image I tried the same image on another 
server running Debian GNU/Linux Woody and php 4.0.4pl1 with the following 
configstring:

'./configure' '--with-apache=../apache_1.3.19' '--with-unixODBC=/usr/local' 
'--with-mysql=/usr/local/mysql' '--enable-track-vars' '--enable-gd-imgstrttf' 
'--with-gd=/usr/local' '--with-jpeg-dir=/usr/local' '--with-ttf=/usr/include/freetype' 
'--enable-trans-sid' '--with-mcrypt' '--enable-debug'

And on that server the GetImageSize() function just returned the image dimensions as 
you would suspect..

ImageMagick's identify returns the following information on the image:
Image: sicko.jpg
  format: JPEG (Joint Photographic Experts Group JFIF format)
  type: true color
  class: DirectClass
  matte: False
  colors: 117318
  geometry: 1024x768
  depth: 8
  filesize: 98kb
  interlace: None
  background-color: gray74
  border-color: gray74
  matte-color: gray74
  compression: JPEG
  runlength packets: 639759 of 786432
  tainted: False
  signature: 96e8d70ecf6d1784d27f801c39ec7bc5


---



ATTENTION! Do NOT reply to this email!
To reply, use the web interface found at http://bugs.php.net/?id=10880&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 #10874 Updated: getcwd() always return empty string.

2001-05-15 Thread sniper

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

I can't reproduce this either.
Please try latest snapshot from http://snaps.php.net/

--Jani


Previous Comments:
---

[2001-05-15 06:26:29] [EMAIL PROTECTED]
Apache, static module.

see result of this script

";
 echo "getcwd: '".getcwd()."'";
 phpinfo();
?>

on http://www2.osp.ru/~artem/t8.php

---

[2001-05-15 05:55:59] [EMAIL PROTECTED]
I can't reproduce this too.

What SAPI are you using (Which webserver, and CGI or Module)?

Derick

---

[2001-05-15 05:48:48] [EMAIL PROTECTED]
Cannot recreate this on any system with current CVS.

---

[2001-05-15 05:42:36] [EMAIL PROTECTED]



---



ATTENTION! Do NOT reply to this email!
To reply, use the web interface found at http://bugs.php.net/?id=10874&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 #10878 Updated: Compile problem with IMAP support

2001-05-15 Thread sniper

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

Is there really a path 'y' in your system? 
What version of c-client you have?
And where is it located? and the header files?

--Jani



Previous Comments:
---

[2001-05-15 10:14:45] [EMAIL PROTECTED]
configure line is:
./configure --with-mysql=/usr  
--with-imap=y  
--with-apache=../apache_1.3.19 
--enable-track-vars
--enable-register-globals  
--enable-trans-sid  


make[2]: Entering directory `/usr/local/src/php-4.0.5/main'
 
gcc  -I. -I/usr/local/src/php-4.0.5/main -I/usr/local/src/php-4.0.5/main 
-I/usr/local/src/php-4.0.5 -I/usr/local/src/apache_1.3.19/s
rc/include -I/usr/local/src/apache_1.3.19/src/os/unix -I/usr/local/src/php-4.0.5/Zend 
-I/usr/include/mysql -I/usr/local/src/php-4.0.
5/ext/xml/expat/xmltok -I/usr/local/src/php-4.0.5/ext/xml/expat/xmlparse 
-I/usr/local/src/php-4.0.5/TSRM  -D_POSIX_PTHREAD_SEMANTICS
 -DSUPPORT_UTF8 -DXML_BYTE_ORDER=21 -g -O2  -c main.c && touch main.lo 
 
gcc  -I. -I/usr/local/src/php-4.0.5/main -I/usr/local/src/php-4.0.5/main 
-I/usr/local/src/php-4.0.5 -I/usr/local/src/apache_1.3.19/s
rc/include -I/usr/local/src/apache_1.3.19/src/os/unix -I/usr/local/src/php-4.0.5/Zend 
-I/usr/include/mysql -I/usr/local/src/php-4.0.
5/ext/xml/expat/xmltok -I/usr/local/src/php-4.0.5/ext/xml/expat/xmlparse 
-I/usr/local/src/php-4.0.5/TSRM  -D_POSIX_PTHREAD_SEMANTICS
 -DSUPPORT_UTF8 -DXML_BYTE_ORDER=21 -g -O2  -c internal_functions.c && touch 
internal_functions.lo  
In file included from internal_functions.c:32: 
 
/usr/local/src/php-4.0.5/ext/imap/php_imap.h:50: parse error before `MAILSTREAM'   
 
/usr/local/src/php-4.0.5/ext/imap/php_imap.h:50: warning: no semicolon at end of 
struct or union
/usr/local/src/php-4.0.5/ext/imap/php_imap.h:58: parse error before `}'
 
/usr/local/src/php-4.0.5/ext/imap/php_imap.h:58: warning: data definition has no type 
or storage class  
/usr/local/src/php-4.0.5/ext/imap/php_imap.h:61: parse error before `SIZEDTEXT'
 
/usr/local/src/php-4.0.5/ext/imap/php_imap.h:61: warning: no semicolon at end of 
struct or union
/usr/local/src/php-4.0.5/ext/imap/php_imap.h:65: parse error before `}'
 
/usr/local/src/php-4.0.5/ext/imap/php_imap.h:65: warning: data definition has no type 
or storage class  
/usr/local/src/php-4.0.5/ext/imap/php_imap.h:68: parse error before `SIZEDTEXT'
 
/usr/local/src/php-4.0.5/ext/imap/php_imap.h:68: warning: no semicolon at end of 
struct or union
/usr/local/src/php-4.0.5/ext/imap/php_imap.h:70: conflicting types for `next'  
 
/usr/local/src/php-4.0.5/ext/imap/php_imap.h:64: previous declaration of `next'
 
/usr/local/src/php-4.0.5/ext/imap/php_imap.h:71: parse error before `}'
 
/usr/local/src/php-4.0.5/ext/imap/php_imap.h:71: warning: data definition has no type 
or storage class  
/usr/local/src/php-4.0.5/ext/imap/php_imap.h:156: parse error before `STRINGLIST'  
 
/usr/local/src/php-4.0.5/ext/imap/php_imap.h:156: warning: no semicolon at end of 
struct or union   
/usr/local/src/php-4.0.5/ext/imap/php_imap.h:157: warning: data definition has no type 
or storage class 
/usr/local/src/php-4.0.5/ext/imap/php_imap.h:158: parse error before `*'   
 
/usr/local/src/php-4.0.5/ext/imap/php_imap.h:158: warning: data definition has no type 
or storage class 
/usr/local/src/php-4.0.5/ext/imap/php_imap.h:159: parse error before `*'   
 
/usr/local/src/php-4.0.5/ext/imap/php_imap.h:159: warning: data definition has no type 
or storage class 
/usr/local/src/php-4.0.5/ext/imap/php_imap.h:161: parse error before `*'   

[PHP-DEV] Re: [PHP-QA] Velocis Support in PHP 4

2001-05-15 Thread Andi Gutmans

At 02:45 PM 5/15/2001 -0600, Zak Greant wrote:
>...uh... I just managed to build with Velocis support.  I did a full
>reinstall of PHP and Velocis... sigh...
>
>Oh well, it is better to be wrong about a problem, than to have a problem.
>:)

Yes it definitely is. So what do you think made the difference? 
Reinstalling velocis?
Is this a free database?

Andi


-- 
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] LDAP V3 Server Side Sorting

2001-05-15 Thread David Giffin



Sorry about that. I'm new to contributing code. Here is a diff of the
changes. Maybe a URL would save some bandwidth too:

http://www.giffin.org/~david/ldap.diff

Thanks,
David

On Tue, 15 May 2001, Sterling Hughes wrote:

> David Giffin wrote:
> 
> > Hello,
> > 
> > I added in a function to provide server side sorting on searches. This is
> > a LDAP version 3 specific function, and uses the Netscape API so I have
> > ifdef'ed the new function. It adds a "sortstr" attriubte to the 
> > ldap_search() function that already exists in php. There might be a better
> > way to incorporate the code into php, but here is my first attempt.
> > 
> > proto int ldap_sort_search(int link, string base_dn, string filter
> > [, array attrs [, string sortstr [, int attrsonly [, int sizelimit
> > [, int timelimit [, int deref])
> > 
> > Thanks,
> > David Giffin
> > 
> > 
> 
> 
> If you want your function added, the first thing you need to do is send 
> a diff, instead of the entire file itself.
> 
> -Sterling
> 
> 



-- 
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] LDAP V3 Server Side Sorting

2001-05-15 Thread Sterling Hughes

David Giffin wrote:

> Hello,
> 
> I added in a function to provide server side sorting on searches. This is
> a LDAP version 3 specific function, and uses the Netscape API so I have
> ifdef'ed the new function. It adds a "sortstr" attriubte to the 
> ldap_search() function that already exists in php. There might be a better
> way to incorporate the code into php, but here is my first attempt.
> 
> proto int ldap_sort_search(int link, string base_dn, string filter
> [, array attrs [, string sortstr [, int attrsonly [, int sizelimit
> [, int timelimit [, int deref])
> 
> Thanks,
> David Giffin
> 
> 


If you want your function added, the first thing you need to do is send 
a diff, instead of the entire file itself.

-Sterling



-- 
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] LDAP V3 Server Side Sorting

2001-05-15 Thread David Giffin


Hello,

I added in a function to provide server side sorting on searches. This is
a LDAP version 3 specific function, and uses the Netscape API so I have
ifdef'ed the new function. It adds a "sortstr" attriubte to the 
ldap_search() function that already exists in php. There might be a better
way to incorporate the code into php, but here is my first attempt.

proto int ldap_sort_search(int link, string base_dn, string filter
[, array attrs [, string sortstr [, int attrsonly [, int sizelimit
[, int timelimit [, int deref])

Thanks,
David Giffin



/*
   +--+
   | PHP version 4.0  |
   +--+
   | Copyright (c) 1997-2001 The PHP Group|
   +--+
   | This source file is subject to version 2.02 of the PHP license,  |
   | that is bundled with this package in the file LICENSE, and is|
   | available at through the world-wide-web at   |
   | http://www.php.net/license/2_02.txt. |
   | If you did not receive a copy of the PHP license and are unable to   |
   | obtain it through the world-wide-web, please send a note to  |
   | [EMAIL PROTECTED] so we can mail you a copy immediately.   |
   +--+
   | Authors: Amitay Isaacs  <[EMAIL PROTECTED]>   |
   |  Eric Warnke<[EMAIL PROTECTED]>   |
   |  Rasmus Lerdorf <[EMAIL PROTECTED]>   |
   |  Gerrit Thomson <[EMAIL PROTECTED]> |
   |  Jani Taskinen  <[EMAIL PROTECTED]>  |
   |  Stig Venaas<[EMAIL PROTECTED]>  |
   | PHP 4.0 updates:  Zeev Suraski <[EMAIL PROTECTED]>   |
   +--+
 */
 

/* $Id: ldap.c,v 1.82 2001/02/26 06:07:01 andi Exp $ */
#define IS_EXT_MODULE

#define HAVE_NSLDAP 1
#define LDAP_API_VERSION 3000
#include "php.h"
#include "php_ini.h"

#include "ext/standard/dl.h"
#include "php_ldap.h"

#ifdef PHP_WIN32
#include 
#if HAVE_NSLDAP
#include 
#endif
#define strdup _strdup
#undef WINDOWS
#undef strcasecmp
#undef strncasecmp
#define WINSOCK 1
#define __STDC__ 1
#endif

#include "ext/standard/php_string.h"
#include "ext/standard/info.h"

ZEND_DECLARE_MODULE_GLOBALS(ldap)

static unsigned char third_argument_force_ref[] = { 3, BYREF_NONE, BYREF_NONE, 
BYREF_FORCE };
static unsigned char arg3to6of6_force_ref[] = { 6, BYREF_NONE, BYREF_NONE, 
BYREF_FORCE, BYREF_FORCE, BYREF_FORCE, BYREF_FORCE };

static int le_result, le_result_entry, le_ber_entry;
static int le_link;

/*
This is just a small subset of the functionality provided by the LDAP library. 
All the 
operations are synchronous. Referrals are not handled automatically.
*/

function_entry ldap_functions[] = {
PHP_FE(ldap_connect,NULL)
PHP_FALIAS(ldap_close,  ldap_unbind,NULL)
PHP_FE(ldap_bind,  
 NULL)
PHP_FE(ldap_unbind,
 NULL)
PHP_FE(ldap_read,  
 NULL)
PHP_FE(ldap_list,  
 NULL)
PHP_FE(ldap_search,
 NULL)
/* additional function for server side sorting, David Giffin */
PHP_FE(ldap_sort_search,   
 NULL)
/* end dlg mod */
PHP_FE(ldap_free_result,NULL)
PHP_FE(ldap_count_entries,  NULL)
PHP_FE(ldap_first_entry,NULL)
PHP_FE(ldap_next_entry, NULL)
PHP_FE(ldap_get_entries,NULL)
PHP_FE(ldap_first_attribute,third_argument_force_ref)
PHP_FE(ldap_next_attribute, third_argument_force_ref)
PHP_FE(ldap_get_attributes, NULL)
PHP_FE(ldap_get_values, NULL)
PHP_FE(ldap_get_values_len, NULL)
PHP_FE(ldap_get_dn,
 NUL

Re: [PHP-DEV] disktotalspace()

2001-05-15 Thread Jon Parise

On Tue, May 15, 2001 at 08:50:48AM -0400, Sterling Hughes wrote:

> Well, for one thing, no one has agreed on a naming convention yet.
> 
> So its possible that now we'll have two aliases:
> 
> diskfreespace
> disk_free_space
> 
> and then the actual function name:
> 
> disk_freespace()
> or
> disk_space_free()
> 
> Furthermore, it was never agreed that the core functions should follow 
> any naming conventions.  In fact, I think that would be plain stupid. 
> The extensions should follow a naming convention, however, the core 
> functions need not follow any such convention.  This is how it is with 
> almost every other language (Perl and C for example).

Okay.  Well, I'm now wiping my hands of the issue.  I'll leave it
up to the rest of you folks to establish the naming conventions
and make the associated changes in the source and documentation.

Would you like me to change the two functions to the "existing"
naming scheme (no hyphens) until something new is decided?

My changes have only affected the HEAD branch so far, so we don't
need to worry about aliasing anything until that code makes it
into a release.

-- 
Jon Parise ([EMAIL PROTECTED])  .  Rochester Inst. of Technology
http://www.csh.rit.edu/~jon/  :  Computer Science House Member

-- 
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] disktotalspace()

2001-05-15 Thread Sterling Hughes

James Moore wrote:

>How do you feel about renaming the existing diskfreespace()
>function to disk_free_space() (with an alias for backwards
>compatibility)?
>
A warm fuzzy feeling :)  Seriously though, it's been discussed in
great  length, and at least from what I understood, going in that
direction was  the general idea.  Slowly, but surely :)


>>>Actually, at least what I remember from the conversations, this was
>>>being put off till someone actually did some work at renaming a set of
>>>the functions, and there are still a good number of unresolved issues
>>>regarding function naming (str_tok() or strtok() to name one).  At this
>>>point, I think placing it in there as disktotalspace() and leaving
>>>diskfreespace() alone would be the right thing to do.  Then
>>>
>>when all the
>>
>>>naming issues are hashed out/someone has some work to show, change both
>>>of the functions to their proper names.  At this point a
>>>disk_free_space() function seems out of place in the current naming
>>>scheme (I wouldn't object as much to disk_freespace() and
>>>disk_totalspace(), but overall, I think we should wait until
>>>
>>the rest of
>>
>>>the source is namespace complaint and we've decided how to handle the
>>>change to the new naming conventions.)
>>>
>>Ugh.  I wish I had read this a few minutes earlier.  I just made
>>the name change based on what I assumed was consensus.
>>
>>If someone feels the need to revert the change, go ahead.  I
>>prefer to just leave it now that I've already changed it, and
>>then I'll add the new function as disk_total_space().
>>
> 
> Why add more functions to be depreciated soon?? Lets name new functions
> properly, bring others into line as and when and as needed add alaises until
> we fix it.
> 


Well, for one thing, no one has agreed on a naming convention yet.

So its possible that now we'll have two aliases:

diskfreespace
disk_free_space

and then the actual function name:

disk_freespace()
or
disk_space_free()

Furthermore, it was never agreed that the core functions should follow 
any naming conventions.  In fact, I think that would be plain stupid. 
The extensions should follow a naming convention, however, the core 
functions need not follow any such convention.  This is how it is with 
almost every other language (Perl and C for example).

-Sterling


-- 
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] disktotalspace()

2001-05-15 Thread Jon Parise

On Wed, May 16, 2001 at 01:01:46AM +0100, James Moore wrote:

> > If someone feels the need to revert the change, go ahead.  I
> > prefer to just leave it now that I've already changed it, and
> > then I'll add the new function as disk_total_space().
> 
> Why add more functions to be depreciated soon?? Lets name new functions
> properly, bring others into line as and when and as needed add alaises until
> we fix it.
 
I agree.  I thought that disk_total_space() would be the proper
name for this new function.

-- 
Jon Parise ([EMAIL PROTECTED])  .  Rochester Inst. of Technology
http://www.csh.rit.edu/~jon/  :  Computer Science House Member

-- 
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] disktotalspace()

2001-05-15 Thread James Moore

> > >> How do you feel about renaming the existing diskfreespace()
> > >> function to disk_free_space() (with an alias for backwards
> > >> compatibility)?
> > >
> > > A warm fuzzy feeling :)  Seriously though, it's been discussed in
> > > great  length, and at least from what I understood, going in that
> > > direction was  the general idea.  Slowly, but surely :)
> > >
> > Actually, at least what I remember from the conversations, this was
> > being put off till someone actually did some work at renaming a set of
> > the functions, and there are still a good number of unresolved issues
> > regarding function naming (str_tok() or strtok() to name one).  At this
> > point, I think placing it in there as disktotalspace() and leaving
> > diskfreespace() alone would be the right thing to do.  Then
> when all the
> > naming issues are hashed out/someone has some work to show, change both
> > of the functions to their proper names.  At this point a
> > disk_free_space() function seems out of place in the current naming
> > scheme (I wouldn't object as much to disk_freespace() and
> > disk_totalspace(), but overall, I think we should wait until
> the rest of
> > the source is namespace complaint and we've decided how to handle the
> > change to the new naming conventions.)
>
> Ugh.  I wish I had read this a few minutes earlier.  I just made
> the name change based on what I assumed was consensus.
>
> If someone feels the need to revert the change, go ahead.  I
> prefer to just leave it now that I've already changed it, and
> then I'll add the new function as disk_total_space().

Why add more functions to be depreciated soon?? Lets name new functions
properly, bring others into line as and when and as needed add alaises until
we fix it.

- James


-- 
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] disktotalspace()

2001-05-15 Thread Jon Parise

On Tue, May 15, 2001 at 07:14:27AM -0400, Sterling Hughes wrote:

> >> How do you feel about renaming the existing diskfreespace()
> >> function to disk_free_space() (with an alias for backwards
> >> compatibility)?
> >
> > A warm fuzzy feeling :)  Seriously though, it's been discussed in 
> > great  length, and at least from what I understood, going in that 
> > direction was  the general idea.  Slowly, but surely :)
> >
> Actually, at least what I remember from the conversations, this was 
> being put off till someone actually did some work at renaming a set of 
> the functions, and there are still a good number of unresolved issues 
> regarding function naming (str_tok() or strtok() to name one).  At this 
> point, I think placing it in there as disktotalspace() and leaving 
> diskfreespace() alone would be the right thing to do.  Then when all the 
> naming issues are hashed out/someone has some work to show, change both 
> of the functions to their proper names.  At this point a 
> disk_free_space() function seems out of place in the current naming 
> scheme (I wouldn't object as much to disk_freespace() and 
> disk_totalspace(), but overall, I think we should wait until the rest of 
> the source is namespace complaint and we've decided how to handle the 
> change to the new naming conventions.)
 
Ugh.  I wish I had read this a few minutes earlier.  I just made 
the name change based on what I assumed was consensus.

If someone feels the need to revert the change, go ahead.  I 
prefer to just leave it now that I've already changed it, and 
then I'll add the new function as disk_total_space().

-- 
Jon Parise ([EMAIL PROTECTED])  .  Rochester Inst. of Technology
http://www.csh.rit.edu/~jon/  :  Computer Science House Member

-- 
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] disktotalspace()

2001-05-15 Thread Sterling Hughes

Zeev Suraski wrote:

> At 01:40 16/5/2001, Jon Parise wrote:
>
>> How do you feel about renaming the existing diskfreespace()
>> function to disk_free_space() (with an alias for backwards
>> compatibility)?
>
>
> A warm fuzzy feeling :)  Seriously though, it's been discussed in 
> great  length, and at least from what I understood, going in that 
> direction was  the general idea.  Slowly, but surely :)
>
Actually, at least what I remember from the conversations, this was 
being put off till someone actually did some work at renaming a set of 
the functions, and there are still a good number of unresolved issues 
regarding function naming (str_tok() or strtok() to name one).  At this 
point, I think placing it in there as disktotalspace() and leaving 
diskfreespace() alone would be the right thing to do.  Then when all the 
naming issues are hashed out/someone has some work to show, change both 
of the functions to their proper names.  At this point a 
disk_free_space() function seems out of place in the current naming 
scheme (I wouldn't object as much to disk_freespace() and 
disk_totalspace(), but overall, I think we should wait until the rest of 
the source is namespace complaint and we've decided how to handle the 
change to the new naming conventions.)

-Sterling


-- 
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] Rename list to php-doc?

2001-05-15 Thread Jon Parise

We're there plans to rename the [EMAIL PROTECTED] mailing list
to [EMAIL PROTECTED], for consistency with the other mailing
lists?  What ever happened to that idea?

-- 
Jon Parise ([EMAIL PROTECTED])  .  Rochester Inst. of Technology
http://www.csh.rit.edu/~jon/  :  Computer Science House Member

-- 
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] disktotalspace()

2001-05-15 Thread Jon Parise

On Wed, May 16, 2001 at 01:47:15AM +0300, Zeev Suraski wrote:

> >How do you feel about renaming the existing diskfreespace()
> >function to disk_free_space() (with an alias for backwards
> >compatibility)?
> 
> A warm fuzzy feeling :)  Seriously though, it's been discussed in great 
> length, and at least from what I understood, going in that direction was 
> the general idea.  Slowly, but surely :)
 
Alright, I'm now caught up with all of the messages related to
this.  I'll go through and start sorting out all of the changes
that have been discussed over the rest of the evening.  I'll try
and keep all of the changes separate.

-- 
Jon Parise ([EMAIL PROTECTED])  .  Rochester Inst. of Technology
http://www.csh.rit.edu/~jon/  :  Computer Science House Member

-- 
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] disktotalspace()

2001-05-15 Thread Zeev Suraski

At 01:40 16/5/2001, Jon Parise wrote:
>How do you feel about renaming the existing diskfreespace()
>function to disk_free_space() (with an alias for backwards
>compatibility)?

A warm fuzzy feeling :)  Seriously though, it's been discussed in great 
length, and at least from what I understood, going in that direction was 
the general idea.  Slowly, but surely :)

Zeev


-- 
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] disktotalspace()

2001-05-15 Thread Jon Parise

On Wed, May 16, 2001 at 01:37:51AM +0300, Zeev Suraski wrote:

> >Yes, but this new version will work correctly under Unix-like
> >systems and Windows NT / 2000 systems.  Executing system binaries
> >is sloppy for things like this, anyway.
> >
> >Or perhaps I'm missing your point?
> 
> I think  you were missing the point :)  I meant that I think there's no 
> need to load kernel32.dll and all that, we can simply call 
> GetDiskFreeSpaceEx() directly.

Okay, my lexer wasn't in the correct context when I read your
reply.  I follow you now.

I assume you're suggesting an update of both the existing
diskfreespace() and the proposed disktotalspace() functions,
correct?
 
> BTW, in light of the standard naming convention initiative, 
> disktotalspace() is probably a bad name and should be more like 
> disk_total_space()...

How do you feel about renaming the existing diskfreespace()
function to disk_free_space() (with an alias for backwards
compatibility)?

-- 
Jon Parise ([EMAIL PROTECTED])  .  Rochester Inst. of Technology
http://www.csh.rit.edu/~jon/  :  Computer Science House Member

-- 
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] disktotalspace()

2001-05-15 Thread Zeev Suraski

At 01:25 16/5/2001, Jon Parise wrote:
> > Wouldnt it make more sense here to correct the name of diskfree_space and
> > and an alias back rather than introducing new functions that are named not
> > according the the standard?
>
>No, I don't think it's really that much of an issue.

We've had a huge thread about this, we did decide to try and stick with the 
standard...

Zeev


-- 
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] disktotalspace()

2001-05-15 Thread Zeev Suraski

At 01:35 16/5/2001, Jon Parise wrote:
>On Tue, May 15, 2001 at 10:43:25PM +0300, Zeev Suraski wrote:
>
> > >Does anyone object to my adding a new function disktotalspace()?
> > >
> > >A friend of mine ran into a situation where he required an
> > >OS-independent means of determining the amount of free space on a
> > >filesystem (meaning executing and parsing 'df -k' wasn't going to
> > >cut it).
> >
> > I'm pretty sure we're already incompatible with Windows 95, so I'm not 
> sure
> > we should go through those hoops - we can just call the function 
> directly...
>
>Yes, but this new version will work correctly under Unix-like
>systems and Windows NT / 2000 systems.  Executing system binaries
>is sloppy for things like this, anyway.
>
>Or perhaps I'm missing your point?

I think  you were missing the point :)  I meant that I think there's no 
need to load kernel32.dll and all that, we can simply call 
GetDiskFreeSpaceEx() directly.

BTW, in light of the standard naming convention initiative, 
disktotalspace() is probably a bad name and should be more like 
disk_total_space()...

Zeev


-- 
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] disktotalspace()

2001-05-15 Thread Jon Parise

On Tue, May 15, 2001 at 10:43:25PM +0300, Zeev Suraski wrote:

> >Does anyone object to my adding a new function disktotalspace()?
> >
> >A friend of mine ran into a situation where he required an
> >OS-independent means of determining the amount of free space on a
> >filesystem (meaning executing and parsing 'df -k' wasn't going to
> >cut it).
>
> I'm pretty sure we're already incompatible with Windows 95, so I'm not sure 
> we should go through those hoops - we can just call the function directly...

Yes, but this new version will work correctly under Unix-like
systems and Windows NT / 2000 systems.  Executing system binaries
is sloppy for things like this, anyway.

Or perhaps I'm missing your point?

-- 
Jon Parise ([EMAIL PROTECTED])  .  Rochester Inst. of Technology
http://www.csh.rit.edu/~jon/  :  Computer Science House Member

-- 
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] disktotalspace()

2001-05-15 Thread Jon Parise

On Tue, May 15, 2001 at 11:14:37PM +0100, James Moore wrote:

> > Well, there is no "CVS standard", but rather a standard in the
> > CODING_GUIDELINES file.  However, in this case, I think you can
> > disregard that, since the function is so similiar (in nature) to the
> > diskfreespace() function that disktotalspace() makes the most sense,
> > instead of disk_totalspace() or disk_total_space().
> 
> Wouldnt it make more sense here to correct the name of diskfree_space and
> and an alias back rather than introducing new functions that are named not
> according the the standard?

No, I don't think it's really that much of an issue.

-- 
Jon Parise ([EMAIL PROTECTED])  .  Rochester Inst. of Technology
http://www.csh.rit.edu/~jon/  :  Computer Science House Member

-- 
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] disktotalspace()

2001-05-15 Thread James Moore


>
> Well, there is no "CVS standard", but rather a standard in the
> CODING_GUIDELINES file.  However, in this case, I think you can
> disregard that, since the function is so similiar (in nature) to the
> diskfreespace() function that disktotalspace() makes the most sense,
> instead of disk_totalspace() or disk_total_space().

Wouldnt it make more sense here to correct the name of diskfree_space and
and an alias back rather than introducing new functions that are named not
according the the standard?

- James


-- 
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 #6391 Updated: charset error

2001-05-15 Thread vlad

ID: 6391
Updated by: vlad
Reported By: [EMAIL PROTECTED]
Old-Status: Open
Status: Feedback
Bug Type: Sybase (dblib) related
Operating system: 
PHP Version: 4.0 Latest CVS (28/08/2000)
Assigned To: vlad
Comments:

I am not a localization expert, but I do speak Russian and AFAIK charset cp-1251 and 
cp-850 are totally different, like koi8 and cp-1251, thus you won't be able to read 
one when your browser understands the other. I do not see a problem here.

I might be missing the point of the problem altogether, so I am not closing the 
report, but asking for your feedback. Can you tell me if I am mistaken thinking that 
there is no error? If yes, please do explain.

Previous Comments:
---

[2000-12-11 21:09:41] [EMAIL PROTECTED]
Could someone who knows something about localization
take a look at this one?

---

[2000-08-28 02:25:10] [EMAIL PROTECTED]
4-th parameter to specify charset in sybase_[p]connect
converting chars when parameter is blank. I have installed
cp850 charset in database, but client-side browser use windows-1251 and chars in 
browser are unreadable.
php.ini - no changes

---



ATTENTION! Do NOT reply to this email!
To reply, use the web interface found at http://bugs.php.net/?id=6391&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 #10890: Segmentation fault when using mcrypt function in Apache

2001-05-15 Thread henrik_l

From: [EMAIL PROTECTED]
Operating system: FreeBSD 4.1.1
PHP version:  4.0.5
PHP Bug Type: mcrypt related
Bug description:  Segmentation fault when using mcrypt function in Apache

If i try to run this script:


I get this in my Apache log file:
[Tue May 15 23:30:13 2001] [notice] child pid 22372 exit signal Segmentation fault (11)
[Tue May 15 23:30:13 2001] [notice] child pid 22371 exit signal Segmentation fault (11)

I did configure libmcrypt 2.4.9 with:
./configure --disable-posix-threads

And PHP 4.0.5 with:
./configure --with-mysql=/usr/local/mysql --with-gd=/usr/local --with-t1lib --with-ttf 
--with-jpeg-dir --with-png-dir --with-tiff-dir --with-zlib-dir --with-xpm-dir 
--with-imap --with-gettext --with-zlib --with-pdflib --enable-exif --enable-ftp 
--enable-bcmath --with-mcrypt --with-config-file-path=/usr/local/etc 
--with-apxs=/usr/local/apache/bin/apxs


-- 
Edit Bug report at: http://bugs.php.net/?id=10890&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] Any Successfull PHP/iPlanet installs w/ 4.0.5???

2001-05-15 Thread J. Fowler

There are several outstanding bugs reported for PHP 4.0.5. and iPlanet
on Solaris boxes.

http://www.php.net/bugs.php?id=10581
http://www.php.net/bugs.php?id=10817
http://www.php.net/bugs.php?id=10821
http://www.php.net/bugs.php?id=10871

I could add to the list, but would rather here from someone who has
successfully installed 4.0.5 on their machine. It is my opinion that the

bugs mentioned above are all related, as the symptoms are all the same
and only seem to affect iPlanet web servers.

Jay







-- 
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 #10889: mssql_fetch_array - IDENTITY values returned as string with padded NULL chars

2001-05-15 Thread alt

From: [EMAIL PROTECTED]
Operating system: Windows 2000
PHP version:  4.0.5
PHP Bug Type: MSSQL related
Bug description:  mssql_fetch_array - IDENTITY values returned as string with padded 
NULL chars

OS = Windows 2000
Server = IIS 5.0
Database = SQL Server 7
PHP = 4.0.5

To reproduce
1. Create a table as such:
CREATE TABLE table1 (
   row_id NUMERIC(9,0) IDENTITY,
   col1 INT NOT NULL,
   col2 INT NULL,
   col3 VARCHAR(25) NULL,
  PRIMARY KEY(row_id)
)
GO

2. Insert a row:
INSERT INTO table1 (col1) VALUES(1)
GO

3. Now fetch that row
";
$username = "";
$password = "";
$dbName = "";

// Connect
$connectionID = mssql_connect($hostname, $username, $password);
$retval = mssql_select_db($dbName);

// Query
$query = "SELECT row_id, col1, col2, col3 from table1"
$queryID = mssql_query($query, $connectionID)

// Fetch fields
$fields = mssql_fetch_array($queryID);

list($row_id, $col1, $col2, $col3) = $fields;

echo "type = " . gettype($row_id) . "";
echo "strlen(\$row_id) = " . strlen($row_id) . "";
echo bin2hex($row_id) . "";

mssql_close($connectionID);
?>

3. Results
Did yours match mine?  My result from bin2hex is
31
The character 1, followed by 19 nulls!




-- 
Edit Bug report at: http://bugs.php.net/?id=10889&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] Re: Fw: ssl support

2001-05-15 Thread Chuck Hagenbuch

Well, that's nice for him to say, but if you want php to support c-client's ssl 
features, you need to build c-client with ssl. That's a dependancy.

Anyway, this is getting into build issues that are a little over my head, so 
I'm passing it off to php-dev...

Quoting Ilya Krel <[EMAIL PROTECTED]>:

> 
> - Original Message -
> From: "Mark Crispin" <[EMAIL PROTECTED]>
> To: "Ilya" <[EMAIL PROTECTED]>
> Cc: <[EMAIL PROTECTED]>
> Sent: Tuesday, May 15, 2001 4:30 PM
> Subject: re: ssl support
> 
> 
> > On Tue, 15 May 2001 16:05:24 -0400, Ilya wrote:
> > > Is ssl support in c-client 2000 broken?
> > > there is no auth_ssl files in distribution, and php for example
> cant
> compile
> > > properly if i want it to support imap-ssl through cclinet
> >
> > All UW-distributed versions of imap-2000 had auth_ssl.
> >
> > Note that in imap-2001, the SSL support files are now called
> ssl_unix,
> > ssl_w2k, etc.
> >
> > PHP should not in any way depend upon how c-client is built (whether
> with
> or
> > without SSL).  If it does, this is a bug in PHP.
> >
> >
> 
> 


-chuck

--
Charles Hagenbuch, <[EMAIL PROTECTED]>
Black and white and grey, all the shades of truth.

-- 
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] Re: [PHP-QA] Velocis Support in PHP 4

2001-05-15 Thread Zak Greant

...uh... I just managed to build with Velocis support.  I did a full
reinstall of PHP and Velocis... sigh...

Oh well, it is better to be wrong about a problem, than to have a problem.
:)

--zak

- Original Message -
From: "Zak Greant" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>; "Andi Gutmans"
<[EMAIL PROTECTED]>
Sent: Tuesday, May 15, 2001 2:17 PM
Subject: [PHP-QA] Velocis Support in PHP 4


> Andi wrote:
> > >Building with Velocis support enabled fails with many syntax errors.
> Should
> > >Velocis support be stripped from PHP 4?
> >
> > Hmm, why? Isn't anyone using it? Has it been broken for a long time?
>
>
> AFAICT it has been broken for some time.  I will take a closer look at it
> and see if I can get it to build at any particular point in time (and
> confirm that it is broken - maybe it is just me :)
>
> The things that make me believe that it is broken are:
> The errors in compiling the code are syntax errors
> It has no maintainer
> Most of the changes to the code seem to be patches not directly related to
> the module
>
> Is anyone out there using Velocis?
>
> I will report back when I have taken a closer look at the problem.
>
> --zak
>
>
> --
> PHP Quality Assurance 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 #10887 Updated: Variables from forms being undefined

2001-05-15 Thread mikepeterson

ID: 10887
User Update by: [EMAIL PROTECTED]
Old-Status: Feedback
Status: Open
Bug Type: Unknown/Other Function
Operating system: Windows 2000 Pro
PHP Version: 4.0.5
Description: Variables from forms being undefined

This function did not work in PHP4.05:
elseif ($delete) {

// delete a record

$sql = "DELETE FROM models WHERE model_id=$model_id";   

$result = mysql_query($sql);

echo "$sql Record deleted!";
}

Unless I added isset() like so:

elseif (isset($delete)) {}

But as I added that in other functions that returned a value from mySQL, every value 
returned would be "1" or TRUE.

Previous Comments:
---

[2001-05-15 16:23:28] [EMAIL PROTECTED]
This script shows no isset(), please be a little more descriptive.

Derick

---

[2001-05-15 16:01:31] [EMAIL PROTECTED]
Here is an example of a script that returned the error in 4.05, and works in 4.04.

elseif ($delete) {

// delete a record

$sql = "DELETE FROM models WHERE model_id=$model_id";   

$result = mysql_query($sql);

echo "$sql Record deleted!";

---

[2001-05-15 15:54:10] [EMAIL PROTECTED]
Please post a short reproducing script. (short is under 10 lines)

---

[2001-05-15 15:50:01] [EMAIL PROTECTED]
When using PHP4.05 my script always told me a variable from a form I had on the page 
was undefined. Using isset() the script ran without problems, but returned every query 
with "1" (my best guess is that is TRUE from isset()). I installed PHO4.04 and 
everything ran perfectly.

Mike Peterson

---


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


-- 
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 #10888: upload_max_filesize, post_max_size ignored in php.ini

2001-05-15 Thread tswan

From: [EMAIL PROTECTED]
Operating system: Linux (RH 6.2/2.2.14) Apache 1.3.19
PHP version:  4.0.5
PHP Bug Type: *Install and Config
Bug description:  upload_max_filesize, post_max_size ignored in php.ini

Uploading a file larger that 2M fails consistently. 

Changing the php.ini values of upload_max_filesize and post_max_size had no effect.

I tried settings these values using both Human terms and raw numbers (32M vs. some 
nasty number) with no resolution either.

However, once I changed the default values in main/main.c lines 240 and 242 from 2M to 
32M, this behavoir was resolved.

Please fix!!! :-)



-- 
Edit Bug report at: http://bugs.php.net/?id=10888&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 #10887 Updated: Variables from forms being undefined

2001-05-15 Thread derick

ID: 10887
Updated by: derick
Reported By: [EMAIL PROTECTED]
Old-Status: Open
Status: Feedback
Bug Type: Unknown/Other Function
Operating system: 
PHP Version: 4.0.5
Assigned To: 
Comments:

This script shows no isset(), please be a little more descriptive.

Derick

Previous Comments:
---

[2001-05-15 16:01:31] [EMAIL PROTECTED]
Here is an example of a script that returned the error in 4.05, and works in 4.04.

elseif ($delete) {

// delete a record

$sql = "DELETE FROM models WHERE model_id=$model_id";   

$result = mysql_query($sql);

echo "$sql Record deleted!";

---

[2001-05-15 15:54:10] [EMAIL PROTECTED]
Please post a short reproducing script. (short is under 10 lines)

---

[2001-05-15 15:50:01] [EMAIL PROTECTED]
When using PHP4.05 my script always told me a variable from a form I had on the page 
was undefined. Using isset() the script ran without problems, but returned every query 
with "1" (my best guess is that is TRUE from isset()). I installed PHO4.04 and 
everything ran perfectly.

Mike Peterson

---



ATTENTION! Do NOT reply to this email!
To reply, use the web interface found at http://bugs.php.net/?id=10887&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] Velocis Support in PHP 4

2001-05-15 Thread Zak Greant

Andi wrote:
> >Building with Velocis support enabled fails with many syntax errors.
Should
> >Velocis support be stripped from PHP 4?
>
> Hmm, why? Isn't anyone using it? Has it been broken for a long time?


AFAICT it has been broken for some time.  I will take a closer look at it
and see if I can get it to build at any particular point in time (and
confirm that it is broken - maybe it is just me :)

The things that make me believe that it is broken are:
The errors in compiling the code are syntax errors
It has no maintainer
Most of the changes to the code seem to be patches not directly related to
the module

Is anyone out there using Velocis?

I will report back when I have taken a closer look at the problem.

--zak


-- 
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] PHP 4.0.6RC1 ready for testing

2001-05-15 Thread Phil Driscoll

> >Please everyone take sometime to make sure this is release worthy :)
Would someone be kind enough to post a Windows binary somewhere - I have a 
new machine and have not installed any dev tools and no doubt 4.0.6 will be 
released before I get everything working :-)

I'm sure other QAers will benefit anyway.

Cheers
-- 
Phil Driscoll


-- 
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 #10887 Updated: Variables from forms being undefined

2001-05-15 Thread mikepeterson

ID: 10887
User Update by: [EMAIL PROTECTED]
Old-Status: Feedback
Status: Open
Bug Type: Unknown/Other Function
Operating system: Windows 2000 Pro
PHP Version: 4.0.5
Description: Variables from forms being undefined

Here is an example of a script that returned the error in 4.05, and works in 4.04.

elseif ($delete) {

// delete a record

$sql = "DELETE FROM models WHERE model_id=$model_id";   

$result = mysql_query($sql);

echo "$sql Record deleted!";

Previous Comments:
---

[2001-05-15 15:54:10] [EMAIL PROTECTED]
Please post a short reproducing script. (short is under 10 lines)

---

[2001-05-15 15:50:01] [EMAIL PROTECTED]
When using PHP4.05 my script always told me a variable from a form I had on the page 
was undefined. Using isset() the script ran without problems, but returned every query 
with "1" (my best guess is that is TRUE from isset()). I installed PHO4.04 and 
everything ran perfectly.

Mike Peterson

---


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


-- 
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 #10887 Updated: Variables from forms being undefined

2001-05-15 Thread derick

ID: 10887
Updated by: derick
Reported By: [EMAIL PROTECTED]
Old-Status: Open
Status: Feedback
Bug Type: Unknown/Other Function
Operating system: 
PHP Version: 4.0.5
Assigned To: 
Comments:

Please post a short reproducing script. (short is under 10 lines)

Previous Comments:
---

[2001-05-15 15:50:01] [EMAIL PROTECTED]
When using PHP4.05 my script always told me a variable from a form I had on the page 
was undefined. Using isset() the script ran without problems, but returned every query 
with "1" (my best guess is that is TRUE from isset()). I installed PHO4.04 and 
everything ran perfectly.

Mike Peterson

---



ATTENTION! Do NOT reply to this email!
To reply, use the web interface found at http://bugs.php.net/?id=10887&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 #10887: Variables from forms being undefined

2001-05-15 Thread mikepeterson

From: [EMAIL PROTECTED]
Operating system: Windows 2000 Pro
PHP version:  4.0.5
PHP Bug Type: Unknown/Other Function
Bug description:  Variables from forms being undefined

When using PHP4.05 my script always told me a variable from a form I had on the page 
was undefined. Using isset() the script ran without problems, but returned every query 
with "1" (my best guess is that is TRUE from isset()). I installed PHO4.04 and 
everything ran perfectly.

Mike Peterson


-- 
Edit Bug report at: http://bugs.php.net/?id=10887&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 #10886: Warning: _oci_open_server: ORA-12154: TNS:no se ha podido resolver el nombre de

2001-05-15 Thread webssi

From: [EMAIL PROTECTED]
Operating system: NT SERVER 4.0 & APACHE 1.3.14
PHP version:  4.0.5
PHP Bug Type: OCI8 related
Bug description:  Warning: _oci_open_server: ORA-12154: TNS:no se ha podido resolver 
el nombre de

Warning: _oci_open_server: ORA-12154: TNS:no se ha podido resolver el nombre del 
servicio in c:\web\apache\htdocs\orac.php on line 2

have all, the parameters ok

is one bugs in the php, exist solutioin the respect

please nedd help



-- 
Edit Bug report at: http://bugs.php.net/?id=10886&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] disktotalspace()

2001-05-15 Thread Zeev Suraski

I'm pretty sure we're already incompatible with Windows 95, so I'm not sure 
we should go through those hoops - we can just call the function directly...

Zeev

At 05:57 15/5/2001, Jon Parise wrote:
>Does anyone object to my adding a new function disktotalspace()?
>
>A friend of mine ran into a situation where he required an
>OS-independent means of determining the amount of free space on a
>filesystem (meaning executing and parsing 'df -k' wasn't going to
>cut it).
>
>PHP already has diskfreespace(), so I see no reason why it can't
>also have disktotalspace().
>
>His patch is attached.  If no one objects, I'll commit this in a
>day or two (along with documentation, which I have yet to write).
>
>--
>Jon Parise ([EMAIL PROTECTED])  .  Rochester Inst. of Technology
>http://www.csh.rit.edu/~jon/  :  Computer Science House Member
>
>--
>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] RE: [PHP-QA] Re: [PHP-DEV] PHP 4.0.6RC1 ready for testing

2001-05-15 Thread Andi Gutmans

I can do a basic build but I think Daniel Beulshausen might be able to do a 
more complete build with a lot of Windows extensions.
Or is there anyone else?

Andi

At 08:29 PM 5/15/2001 +0100, Liz wrote:
>Is someone going todo a windows build of this?
>
> > At 09:39 PM 5/15/2001 +0300, Andi Gutmans wrote:
> > >I rolled 4.0.6RC1. It is ready for testing.
> > >http://www.php.net/~andi/php-4.0.6RC1.tar.gz
> > >
> > >Please everyone take sometime to make sure this is release worthy :)
> >
> > That should be "some time".


-- 
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] Re: [PHP-QA] PHP 4.0.6RC1 ready for testing

2001-05-15 Thread Andi Gutmans

At 01:26 PM 5/15/2001 -0600, Zak Greant wrote:
>Andi wrote:
> > I rolled 4.0.6RC1. It is ready for testing.
> > http://www.php.net/~andi/php-4.0.6RC1.tar.gz
> >
> > Please everyone take sometime to make sure this is release worthy :)
>
>Hurray! :)
>
>Successful build on Mandrake 7.1
>Basic scripts run w/o issues
>
>Building with Velocis support enabled fails with many syntax errors.  Should
>Velocis support be stripped from PHP 4?

Hmm, why? Isn't anyone using it? Has it been broken for a long time?

Andi


-- 
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 #10885: Add result type to mssql_fetch_array

2001-05-15 Thread mike

From: [EMAIL PROTECTED]
Operating system: Win2K
PHP version:  4.0.5
PHP Bug Type: Feature/Change Request
Bug description:  Add result type to mssql_fetch_array

it would be great if mssql_fetch_array() function would support the result type 
parameter like the mysql_fetch_array() function.




-- 
Edit Bug report at: http://bugs.php.net/?id=10885&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] RE: [PHP-QA] Re: [PHP-DEV] PHP 4.0.6RC1 ready for testing

2001-05-15 Thread Liz

Is someone going todo a windows build of this?

> At 09:39 PM 5/15/2001 +0300, Andi Gutmans wrote:
> >I rolled 4.0.6RC1. It is ready for testing.
> >http://www.php.net/~andi/php-4.0.6RC1.tar.gz
> >
> >Please everyone take sometime to make sure this is release worthy :)
> 
> That should be "some time".


-- 
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] Re: [PHP-QA] PHP 4.0.6RC1 ready for testing

2001-05-15 Thread Zak Greant

Andi wrote:
> I rolled 4.0.6RC1. It is ready for testing.
> http://www.php.net/~andi/php-4.0.6RC1.tar.gz
>
> Please everyone take sometime to make sure this is release worthy :)

Hurray! :)

Successful build on Mandrake 7.1
Basic scripts run w/o issues

Building with Velocis support enabled fails with many syntax errors.  Should
Velocis support be stripped from PHP 4?

uname -a
Linux 207.34.113.45 2.2.15-4mdksecure #1 SMP Wed May 10 14:16:48 CEST 2000
i586 unknown


./configure \
--disable-pear \
--enable-bcmath \
--enable-calendar \
--with-db3 \
--with-db \
--with-gdbm \
--enable-dba=shared \
--enable-dbase \
--enable-ftp \
--with-apxs=/usr/local/apache/bin/apxs \
--with-msql=/usr/local/mSQL \
--with-mysql \
--with-readline=/usr/lib/ \
--with-recode \
--with-gettext \
--with-sockets \
--with-pgsql \
--with-ldap \
--with-hyperwave

--zak



-- 
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 #10875 Updated: In COM Function: Return Var is emty

2001-05-15 Thread phanto

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

closed.j

Previous Comments:
---

[2001-05-15 15:12:57] [EMAIL PROTECTED]
> $jServer->GetB("NN", &$Var);

pass by reference is deprecated. you have to pack your value into a VARIANT object and 
unpack it afterwards.


$vVar = new VARIANT($Var);
/* VARIANT($Var [, VT_BSTR [,CP_ACP]]) */
$jServer->GetB("NN", $vVar);

echo $vVar->value;
echo $vVar->type;
/* one of VT_BSTR, VTUI4, VT_BYREF|VT_*,  */


btw, in 4.0.5 the com extension is not working properly, maybe you have to wait for 
4.0.6 (or use the -dev version)

---

[2001-05-15 07:04:49] [EMAIL PROTECTED]
here my problem with COM in PHP.


";

$jServer = new COM("jexeserver") or DIE ("Connect zum J Server ist nicht
möglich");
$jServer->Show(1);
$jServer->Log(1);

$jServer->Do("0!:0 <(1!:40''),'systemextrasconfigprofile.ijs'");
$jServer->Do("load'd:\j_tm1dll\j\tm1api.ijs'");
$jServer->Do("load'd:\j_tm1dll\j\tm1con.ijs'");
$jServer->Do("load'd:\j_tm1dll\j\tm1prop.ijs'");
$jServer->Do("load'd:\j_tm1dll\j\tm1view.ijs'");

$jServer->Do("Tm1On''");
$jServer->Do("Tm1AdmSet'OLAPLINE01'");
$jServer->Do("SrvCon'zeiterf';'Admin';''");

#$jServer->Do("NN=:'XXX'");

$Var = "xxx";
$jServer->SetB("NN", $Var);  //  In the COM server: NN = $Var
$jServer->Do("NN");  //  Display NN in the COM server
$jServer->Do("NN=:'yyy'"); //  In the COM server: NN = "yyy"

$jServer->GetB("NN", &$Var);//  <===   There is my problem:  (& is a 
refernce)
   //  In the COM server &$Var = NN
echo $Var;   // echo $Var Output: xxx and not yyy ?!?

$jServer->Quit();

?>

Is there a bug in my code or is this a bug in COM ???



---



ATTENTION! Do NOT reply to this email!
To reply, use the web interface found at http://bugs.php.net/?id=10875&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 #10875 Updated: In COM Function: Return Var is emty

2001-05-15 Thread phanto

ID: 10875
Updated by: phanto
Reported By: [EMAIL PROTECTED]
Status: Open
Bug Type: COM related
Operating system: 
PHP Version: 4.0.5
Assigned To: 
Comments:

> $jServer->GetB("NN", &$Var);

pass by reference is deprecated. you have to pack your value into a VARIANT object and 
unpack it afterwards.


$vVar = new VARIANT($Var);
/* VARIANT($Var [, VT_BSTR [,CP_ACP]]) */
$jServer->GetB("NN", $vVar);

echo $vVar->value;
echo $vVar->type;
/* one of VT_BSTR, VTUI4, VT_BYREF|VT_*,  */


btw, in 4.0.5 the com extension is not working properly, maybe you have to wait for 
4.0.6 (or use the -dev version)

Previous Comments:
---

[2001-05-15 07:04:49] [EMAIL PROTECTED]
here my problem with COM in PHP.


";

$jServer = new COM("jexeserver") or DIE ("Connect zum J Server ist nicht
möglich");
$jServer->Show(1);
$jServer->Log(1);

$jServer->Do("0!:0 <(1!:40''),'systemextrasconfigprofile.ijs'");
$jServer->Do("load'd:\j_tm1dll\j\tm1api.ijs'");
$jServer->Do("load'd:\j_tm1dll\j\tm1con.ijs'");
$jServer->Do("load'd:\j_tm1dll\j\tm1prop.ijs'");
$jServer->Do("load'd:\j_tm1dll\j\tm1view.ijs'");

$jServer->Do("Tm1On''");
$jServer->Do("Tm1AdmSet'OLAPLINE01'");
$jServer->Do("SrvCon'zeiterf';'Admin';''");

#$jServer->Do("NN=:'XXX'");

$Var = "xxx";
$jServer->SetB("NN", $Var);  //  In the COM server: NN = $Var
$jServer->Do("NN");  //  Display NN in the COM server
$jServer->Do("NN=:'yyy'"); //  In the COM server: NN = "yyy"

$jServer->GetB("NN", &$Var);//  <===   There is my problem:  (& is a 
refernce)
   //  In the COM server &$Var = NN
echo $Var;   // echo $Var Output: xxx and not yyy ?!?

$jServer->Quit();

?>

Is there a bug in my code or is this a bug in COM ???



---



ATTENTION! Do NOT reply to this email!
To reply, use the web interface found at http://bugs.php.net/?id=10875&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 #7821 Updated: Unresolved symbol with GD

2001-05-15 Thread mad

ID: 7821
User Update by: [EMAIL PROTECTED]
Old-Status: Closed
Status: Open
Bug Type: *Configuration Issues
Operating system: HP-UX 10.20
PHP Version: 4.0.5
Description: Unresolved symbol with GD

Hellow,

Here's the feedback : 

When I add --with-xpm-dir=..., the configure program failed : 

...
checking for libjpeg (needed by gd-1.8+)... yes
checking for jpeg_read_header in -ljpeg... yes
checking for libXpm (needed by gd-1.8+)... yes
checking for XpmFreeXpmImage in -lXpm... no
no
checking whether to include GD support... yes (static)
checking for gdImageString16 in -lgd... no
checking for gdImagePaletteCopy in -lgd... no
checking for gdImageColorClosestHWB in -lgd... no
checking for compress in -lz... no
checking for png_info_init in -lpng... no
checking for gdImageColorResolve in -lgd... no
checking for gdImageCreateFromPng in -lgd... no
checking for gdImageCreateFromGif in -lgd... no
checking for gdImageWBMP in -lgd... no
checking for gdImageCreateFromJpeg in -lgd... no
checking for gdImageCreateFromXpm in -lgd... no
checking whether to include FreeType 1.x support... yes
checking for T1lib support... no
checking whether to include GNU gettext support... no
checking for gmp support... no
checking for Hyperwave support... no
checking for ICAP support... no
checking for iconv support... no
checking for Kerberos support in IMAP... no
checking for SSL support in IMAP... no
checking for IMAP support... no
checking for Informix support... no
checking for Ingres II support... no
checking for InterBase support... no
checking for ircg support... no
checking for Java support... no
checking whether to include LDAP support... no
checking for MCAL support... no
checking for mcrypt support... no
checking for mhash support... no
checking whether to include ming support... no
checking for mnoGoSearch support... no
checking for mSQL support... no
checking for Muscat support... no
checking for MySQL support... no
checking for Oracle-OCI8 support... no
checking for Adabas support... no
checking for SAP DB support... no
checking for Solid support... no
checking for IBM DB2 support... no
checking for Empress support... no
checking for Velocis support... no
checking for a custom ODBC support... no
checking for iODBC support... no
checking for Easysoft ODBC-ODBC Bridge support... no
checking for unixODBC support... no
checking for OpenLink ODBC support... no
checking for DBMaker support... no
checking for Oracle-ORACLE support... no
checking for Ovrimos SQL Server support... no
checking whether to include PCRE support... yes
checking for memmove... (cached) yes
checking whether to include PDFlib support... yes
checking for libz needed by pdflib 3.x... already zlib support
checking for jpeg_read_header in -ljpeg... (cached) yes
checking for png_create_info_struct in -lpng... no
no
checking for TIFFOpen in -ltiff... no
no
checking for PDF_show_boxed in -lpdf... no
configure: error: pdflib extension requires pdflib 3.x.

I'll become crazy :p

An idea ?
Thx :)


Previous Comments:
---

[2001-04-28 15:35:26] [EMAIL PROTECTED]
No feedback. If this problem persists with PHP 4.0.5 which
will be released next week, please reopen this report.

Derick

---

[2001-03-29 11:09:27] [EMAIL PROTECTED]
Try adding --with-xpm-dir=/path/to/libXpm/
into your configure line (without the /lib part!)

--Jani




---

[2001-03-27 11:02:30] [EMAIL PROTECTED]
Hi Jani,

I use GD 1.8.4

If I return to GD 1.8.3, I have this message when I launch apache :

/usr/lib/dld.sl: Unresolved symbol: XpmReadFileToXpmImage (code)  from 
=/PKl01h01/soft/web/lib/libgd.sl


---

[2001-03-26 17:39:34] [EMAIL PROTECTED]
Which version of GD library are you using?
As I can't find such symbols in my gd libs at all.

(well, in GD 2.0.0BETA there are those gdMalloc, gdCalloc, etc. but not in 1.8.3)

--Jani


---

[2001-03-26 06:40:38] [EMAIL PROTECTED]
Okay, with the option "--with-ttf=..." it works better, but I have this when I launch 
apache : 

./apachectl start
/usr/lib/dld.sl: Unresolved symbol: gdCalloc (code)  from 
/PKl01h01/soft/web/lib/libgd.sl
/usr/lib/dld.sl: Unresolved symbol: gdMalloc (code)  from 
/PKl01h01/soft/web/lib/libgd.sl
/usr/lib/dld.sl: Unresolved symbol: gdFree (code)  from 
/PKl01h01/soft/web/lib/libgd.sl
/usr/lib/dld.sl: Unresolved symbol: gdRealloc (code)  from 
/PKl01h01/soft/web/lib/libgd.sl

an idea ?

Thank you for your answer,
JC

---

The remainder of the comments for this report are too long.  To view the 

Re: [PHP-DEV] Bug #10871 Updated: pclose() failed. (2: unknown early startup error)

2001-05-15 Thread J. Fowler

See Bug IDs 10821 and 10581.

I think if you set the LateInit="yes" in the obj.conf file, the web
server will start, but anyone accessing a php page will cause the
server to hang. This is assuming that you are seeing the same
problem we have been seeing.

Init fn="load-modules" shlib="/path/to/server4/bin/libphp4.so"
funcs="php4_init,php4_close,php4_execute,php4_auth_trans"
Init fn="php4_init" LateInit="yes"

http://www.php.net/bugs.php?id=10581
http://www.php.net/bugs.php?id=10821

Jay

[EMAIL PROTECTED] wrote:

> ID: 10871
> User Update by: [EMAIL PROTECTED]
> Status: Open
> Bug Type: Other web server
> Operating system: Solaris 2.6
> PHP Version: 4.0.5
> Description: pclose() failed. (2: unknown early startup error)
>
> No problem with 4.0.4pl1...
>
> Previous Comments:
> ---
>
> [2001-05-15 05:14:59] [EMAIL PROTECTED]
> When I start the web server, I have a "[https-test]: pclose() failed. (2: unknown 
>early startup error)" message
>
> I installed php 4.0.5 with Oracle 8.1.6 support and Netscape Enterprise 3.6SP3 with :
>
> ./configure --without-mysql --with-nsapi=/opt/netscape/suitespot 
>--with-oci8=/opt/oracle/816
>
> make ; make install
>
> First, I had more error messages :
>
> [https-test]: pclose() failed. (2: unknown early startup error)
>
> [https-test]: conf_init: Error running init function load-modules: dlopen of 
>/opt/netscape/suitespot/bin/libphp4.so failed (ld.so.1:
>
> ns-httpd: fatal: libstdc++.so.2.8.1.1: open failed: No such file or directory)
>
> So I added the path for libstdc++ in LD_LIBRARY_PATH in the start file.
>
> Then, I had this :
>
> [https-test]: pclose() failed. (2: unknown early startup error)
>
> [https-test]: conf_init: Error running init function load-modules: dlopen of 
>/opt/netscape/suitespot/bin/libphp4.so failed (ld.so.1:
>
> ns-httpd: fatal: libclntsh.so.8.0: open failed: No such file or directory)
>
> So I also added Oracle lib path in the start file.
>
> Now I just have the first line, and no other error message. The Web Server just 
>won't start.
>
> my obj.conf is :
>
> # Netscape Communications Corporation - obj.conf
>
> # You can edit this file, but comments and formatting changes
>
> # might be lost when the admin server makes changes.
>
> Init fn="flex-init" access="/opt/netscape/suitespot/https-test/logs/access" form
>
> at.access="%Ses->client.ip% - %Req->vars.auth-user% [%SYSDATE%] "%Req->reqpb.cl
>
> f-request%" %Req->srvhdrs.clf-status% %Req->srvhdrs.content-length%"
>
> Init fn="load-types" mime-types="mime.types"
>
> Init fn="load-modules" funcs="php4_init,php4_close,php4_execute,php4_auth_trans"
>
>  shlib="/opt/netscape/suitespot/bin/libphp4.so"
>
> Init fn=php4_init errorString="Failed to initialize PHP!"
>
> 
>
> NameTrans fn="pfx2dir" from="/ns-icons" dir="/opt/netscape/suitespot/ns-icons"
>
> NameTrans fn="pfx2dir" from="/mc-icons" dir="/opt/netscape/suitespot/ns-icons"
>
> NameTrans fn="pfx2dir" from="/help" dir="/opt/netscape/suitespot/manual/https/ug"
>
> NameTrans fn="document-root" root="/www/test/htdocs"
>
> PathCheck fn="unix-uri-clean"
>
> PathCheck fn="check-acl" acl="default"
>
> PathCheck fn="find-pathinfo"
>
> PathCheck fn="find-index" index-names="index.html,home.html"
>
> ObjectType fn="type-by-extension"
>
> ObjectType fn="force-type" type="text/plain"
>
> Service fn="php4_execute" type="magnus-internal/x-httpd-php"
>
> Service method="(GET|HEAD)" type="magnus-internal/imagemap" fn="imagemap"
>
> Service method="(GET|HEAD)" type="magnus-internal/directory" fn="index-common"
>
> Service method="(GET|HEAD)" type="*~magnus-internal/*" fn="send-file"
>
> AddLog fn="flex-log" name="access"
>
> 
>
> 
>
> ObjectType fn="force-type" type="magnus-internal/cgi"
>
> Service fn="send-cgi"
>
> 
>
> 
>
> ObjectType fn="force-type" type="magnus-internal/x-httpd-php"
>
> Service fn=php4_execute
>
> 
>
> Any idea ?
>
> ---
>
> Full Bug description available at: http://bugs.php.net/?id=10871
>
> --
> 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]




Re: [PHP-DEV] disktotalspace()

2001-05-15 Thread Sterling Hughes

Jon Parise wrote:

> On Tue, May 15, 2001 at 06:24:25PM +0100, James Moore wrote:
> 
> 
>>Before you add it can you name it properly (To the CVS standard).
>>
>  
> I don't follow you.  How is it named improperly, and what is the
> CVS standard?
> 


Well, there is no "CVS standard", but rather a standard in the 
CODING_GUIDELINES file.  However, in this case, I think you can 
disregard that, since the function is so similiar (in nature) to the 
diskfreespace() function that disktotalspace() makes the most sense, 
instead of disk_totalspace() or disk_total_space().

-Sterling


-- 
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 #10884: Cookies not set

2001-05-15 Thread mad

From: [EMAIL PROTECTED]
Operating system: HPUX 10.20
PHP version:  4.0.5
PHP Bug Type: Variables related
Bug description:  Cookies not set

Hellow,

Here's a problem with Cookies Management :

When I define several (eg. 3 ) cookies outside php (eg. in a cgi shell-script), the 
HTTP_COOKIE variable is set but not HTTP_COOKIE_VARS array in php.

Then when I define another Cookie with SetCookie with php, HTTP_COOKIE contain all 
Cookies, but HTTP_COOKIE_VARS contains only this Cookie.

An idea ?


-- 
Edit Bug report at: http://bugs.php.net/?id=10884&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] CVS Account Request

2001-05-15 Thread CVS Account Request

Full name: Jeroen van Wolffelaar
Email: [EMAIL PROTECTED]
ID: jeroen
Purpose: phpdoc (en+nl) ; php-lang?

-- 
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 #10851 Updated: COM component crashes when calling a property

2001-05-15 Thread phanto

ID: 10851
Updated by: phanto
Reported By: [EMAIL PROTECTED]
Status: Open
Bug Type: COM related
Operating system: 
PHP Version: 4.0.6-dev
Assigned To: 
Comments:

it seems that there's something wrong inside php, because the same script translated 
to another language works.
the proplem is that the execution fails during a method call
of the com component (so outside of php). maybe it assumes a preallocated memory area 
that i don't provide, i'll investigate this ..

Previous Comments:
---

[2001-05-15 03:52:36] [EMAIL PROTECTED]
This is a small script that should generate a file called tbxds-data.xml . Don't mind 
what is in the file. It crashes at line 23: $xml = $xmlhttp->responseXML;

With PHP 4.0.4pl1 it works fine, but with 4.0.5 and 4.0.6-dev it crashes. I've tested 
this a number of times, so it thinks the new COM component is buggy.

http://services.eurobench.nl/tbxds/tbxds.asp";;

   $xmlhttp = new COM("Microsoft.XMLHTTP");
 
$requestdata = '


   
  
   
   
   
  
   
   
';

$xmlhttp->open("POST", $tbxdslocation, 0);
$xmlhttp->send($requestdata);
$xml = $xmlhttp->responseXML;
$xml->Save($savefile);

print "$savefile saved, done";
?>


---

[2001-05-14 14:13:21] [EMAIL PROTECTED]
status: feedback

---

[2001-05-14 14:02:09] [EMAIL PROTECTED]
could you provide a short script without any includes that reproduces that error. i've 
done a few tests with XMLHTTP but i haven't got any errors with the latest cvs version.

---

[2001-05-14 14:01:17] [EMAIL PROTECTED]
could you provide a short script without any includes that reproduces that error. i've 
done a few tests with XMLHTTP but i haven't got any errors with the latest cvs version.

---

[2001-05-14 11:41:46] [EMAIL PROTECTED]
Still crashes with new 4.0.6-dev binary from php4win

---

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=10851&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] PHP 4.0.6RC1 ready for testing

2001-05-15 Thread Andi Gutmans

At 09:39 PM 5/15/2001 +0300, Andi Gutmans wrote:
>I rolled 4.0.6RC1. It is ready for testing.
>http://www.php.net/~andi/php-4.0.6RC1.tar.gz
>
>Please everyone take sometime to make sure this is release worthy :)

That should be "some time".

Andi


-- 
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 4.0.6RC1 ready for testing

2001-05-15 Thread Andi Gutmans

I rolled 4.0.6RC1. It is ready for testing.
http://www.php.net/~andi/php-4.0.6RC1.tar.gz

Please everyone take sometime to make sure this is release worthy :)

Thanks,
Andi


-- 
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] disktotalspace()

2001-05-15 Thread James Moore



> > Before you add it can you name it properly (To the CVS standard).
>
> I don't follow you.  How is it named improperly, and what is the
> CVS standard?

http://cvs.php.net/viewcvs.cgi/php4/CODING_STANDARDS?rev=1.6&content-type=te
xt/vnd.viewcvs-markup

Derick suggested:  diskspace_free and diskspace_total
I dont really know.. maybe disk_total_space or what derick said.. not really
sure what it should be by disktotalspace certainly isnt correct.

- James


-- 
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's gettext extension

2001-05-15 Thread Rudi Benkovič

Hi,

Now since gettext 0.10.36, gettext has support for plural translations
(functions ngettext, dcngettext,...).  Could some hack this into PHP?

I don't know much 'bout C (or is it C++? :) though I have currently managed to
hack together dncgettext, but the ngettext just doesn't like me - libint.h has
at first the correct definition (three parameters), but later on in some #ifdef
__OPTIMIZE__ there's a ngettext macro that accepts only two parameters - and the
second one only 'works', but it is broken - later on it reports that the call to
dcngettext has too few arguments. I don't get it :) Maby some stupid RedHat
folks have hacked this up (using Rawhide RPM).

Could someone pleeease do this? It would be great! (or if some explains me about
ngettext macro, I can do it :)

--

Rudi





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

2001-05-15 Thread Cameron

#$%@

found a bug in latest cvs snap

here is a backtrace, it occur's when i am using a

$download_id = $db->nextId( 'download' );

with the pear database layer using mysql . . . everything else seems to
be find except for that 1


bash-2.04$ gdb ../../cgi-bin/php php.core
GNU gdb 4.18
Copyright 1998 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you
are
welcome to change it and/or distribute copies of it under certain
conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for
details.
This GDB was configured as "i386-unknown-freebsd"...
Core was generated by `php'.
Program terminated with signal 10, Bus error.
Reading symbols from /usr/lib/libpam.so.1...done.
Reading symbols from /usr/local/lib/libtiff.so.4...done.
Reading symbols from /usr/lib/libm.so.2...done.
Reading symbols from /usr/lib/libcrypt.so.2...done.
Reading symbols from /usr/lib/libz.so.2...done.
Reading symbols from /usr/local/lib/libc-client4.so.8...done.
Reading symbols from /usr/local/lib/libzzip-0.10.11.so...done.
Reading symbols from /usr/local/pgsql/lib/libpq.so.2...done.
Reading symbols from /usr/local/lib/libpdf.so.3...done.
Reading symbols from /usr/local/lib/libpng.so.4...done.
Reading symbols from /usr/local/lib/mysql/libmysqlclient.so.10...done.
Reading symbols from /usr/lib/libutil.so.3...done.
Reading symbols from /usr/local/lib/libmhash.so.2...done.
Reading symbols from /usr/local/lib/libintl.so.1...done.
Reading symbols from /usr/local/lib/libgd.so.2...done.
Reading symbols from /usr/X11R6/lib/libX11.so.6...done.
Reading symbols from /usr/X11R6/lib/libXpm.so.4...done.
Reading symbols from /usr/local/lib/libgdbm.so.2...done.
Reading symbols from /usr/local/lib/libbz2.so.1...done.
Reading symbols from /usr/lib/libc.so.4...done.
Reading symbols from /usr/local/lib/libjpeg.so.9...done.
Reading symbols from /usr/local/lib/libfreetype.so.6...done.
Reading symbols from /usr/X11R6/lib/libXThrStub.so.6...done.
Reading symbols from /usr/libexec/ld-elf.so.1...done.
#0  _efree (ptr=Cannot access memory at address 0x1f.
) at zend_alloc.c:214
214 CALCULATE_REAL_SIZE_AND_CACHE_INDEX(p->size);
(gdb) bt
#0  _efree (ptr=Cannot access memory at address 0x1f.
) at zend_alloc.c:214
#1  0x3 in ?? ()
Cannot access memory at address 0x.
(gdb)




-- 
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] disktotalspace()

2001-05-15 Thread Jon Parise

On Tue, May 15, 2001 at 06:24:25PM +0100, James Moore wrote:

> Before you add it can you name it properly (To the CVS standard).
 
I don't follow you.  How is it named improperly, and what is the
CVS standard?

-- 
Jon Parise ([EMAIL PROTECTED])  .  Rochester Inst. of Technology
http://www.csh.rit.edu/~jon/  :  Computer Science House Member

-- 
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] disktotalspace()

2001-05-15 Thread James Moore

Before you add it can you name it properly (To the CVS standard).

cheers,

- James

> -Original Message-
> From: Jon Parise [mailto:[EMAIL PROTECTED]]
> Sent: 15 May 2001 05:01
> To: Sterling Hughes
> Cc: [EMAIL PROTECTED]
> Subject: Re: [PHP-DEV] disktotalspace()
> 
> 
> On Mon, May 14, 2001 at 11:51:52PM -0400, Sterling Hughes wrote:
> 
> > The patch looks ok, a couple of questions though...
> 
> I'm not the original author of the function, but so I'll answer
> as best I can.
>  
> > 1) disktotalspace() looks like a memory intensive operation, perhaps 
> > having a cache might not be a bad idea.
> 
> Perhaps.  I haven't profiled the function's use, but I can think
> of possible situations where it may be called multiple times in a
> script's execution.
>  
> > 2) I see you use LoadLibrary to load in kernel32.dll on Win32, what 
> > happens on that system when I call disk total space more than once? 
> > Could this cause a crash??  Also, perhaps you don't need to load the 
> > library in more than once, does anyone know of any other areas where 
> > this library is loaded in?
> 
> I know very little about Windows program, although I understand
> the points you raise.  All I can say is that the Windows-specific
> portions of the disktotalspace() function were adapted from the
> preexisting diskfreespace() function.  The original author of
> that code would be the best person to ask, I think.
>  
> > 3)  Why not just have a statfs() function instead, that would 
> return all 
> > this info and more?
>  
> Again, the new function is based on diskfreespace(), so I think
> we just assumed the was a reason it was done that way.  I presume
> that compatibility was the primary concern, but I can't say for
> sure.
> 
> -- 
> Jon Parise ([EMAIL PROTECTED])  .  Rochester Inst. of Technology
> http://www.csh.rit.edu/~jon/  :  Computer Science House Member
> 
> -- 
> 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 #6069 Updated: new sybase pconnect function with char set does not work with freetds

2001-05-15 Thread joey

ID: 6069
Updated by: joey
Reported By: [EMAIL PROTECTED]
Old-Status: Feedback
Status: Closed
Bug Type: Sybase (dblib) related
Operating system: 
PHP Version: 4.0 Latest CVS (10/08/2000)
Assigned To: 
Comments:

Setting closed instead of feedback.

Previous Comments:
---

[2001-05-14 12:27:15] [EMAIL PROTECTED]
Just don't specify a 4th param to pconnect. This is an optional parameter, and should 
not cause any problems if nothing is set here.

---

[2000-08-10 06:44:44] [EMAIL PROTECTED]
the new pconnect function does not work properly with freetds because freetds 
apparently
does not support the DBSETLCHARSET command if the following changes are made to
the sybase_db.c file it compiles properly with freetds

if (user) {
DBSETLUSER(sybase.login,user);
}
if (passwd) {
DBSETLPWD(sybase.login,passwd);
}
//if (charset) {
//  DBSETLCHARSET(sybase.login,charset);
//}

---



ATTENTION! Do NOT reply to this email!
To reply, use the web interface found at http://bugs.php.net/?id=6069&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 #10883: conflict between PHP ISAPI and asp.dll

2001-05-15 Thread springsnc

From: [EMAIL PROTECTED]
Operating system: Win 2000 Pro
PHP version:  4.0.5
PHP Bug Type: IIS related
Bug description:  conflict between PHP ISAPI and asp.dll

Bug #10480 concerns a conflict between asp.dll and php isapi module. We have the same 
problem during an PHP's installation on a windows 2000 professional platform. We 
resolved it inserting PHP as ISAPI Filter in the web site configuration. This seems to 
work.


-- 
Edit Bug report at: http://bugs.php.net/?id=10883&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 #10850 Updated: imap_uid() does not produce an Unique ID Number from POP Servers

2001-05-15 Thread sniper

ID: 10850
Updated by: sniper
Reported By: [EMAIL PROTECTED]
Status: Open
Old-Bug Type: IMAP related
Bug Type: Documentation problem
Operating system: 
PHP Version: 4.0.5
Assigned To: 
Comments:

reclassify for real now..


Previous Comments:
---

[2001-05-15 13:02:29] [EMAIL PROTECTED]
Reopened as documentation problem as this is at least the second time this has been 
reported as bug.

>From Mark Crispin (author of c-client?)

"POP3 UIDs are not supported.
This is a permanent restriction."

--Jani



---

[2001-05-15 01:50:05] [EMAIL PROTECTED]
As far as I can see,

The following text for the manual says that there will be unique numbers, not numbers 
that change over time, and the only unique numbers that are available for a message is 
the UIDL number from the server,

>From the php manual:

This function returns the UID for the given message sequence number. An UID is an 
unique identifier that will not change over time while a message sequence number may 
change whenever the content of the mailbox changes. This function is the inverse of 
imap_msgno(). 

In other words, an UID is not a seq number that starts with 1, goes on with 2 3 4 5 6 
etc. etc. and then starts all over when the mailbox is empty...

---

[2001-05-14 13:19:37] [EMAIL PROTECTED]
uhhh... no, it shouldn't. Those are not UID's.

---

[2001-05-14 09:38:37] [EMAIL PROTECTED]
The following code should echo out the Unique ID's generated by UIDL on the IMAP/POP 
Server, but echo's out a sequencial number starting with 1 instead...

It should probably produce ID's like, 3afffb530001, 3afffb530002, etc. etc.


$mbox = imap_open ("{your.imap.host:143}", "username", "password");

$headers = imap_headers ($mbox);

if ($headers == true) {
while (list ($key,$val) = each ($headers)) {
echo imap_uid($mbox, $key);
}
} else {
echo "No messages in inbox";
}

---



ATTENTION! Do NOT reply to this email!
To reply, use the web interface found at http://bugs.php.net/?id=10850&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 #10850 Updated: imap_uid() does not produce an Unique ID Number from POP Servers

2001-05-15 Thread sniper

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

Reopened as documentation problem as this is at least the second time this has been 
reported as bug.

>From Mark Crispin (author of c-client?)

"POP3 UIDs are not supported.
This is a permanent restriction."

--Jani



Previous Comments:
---

[2001-05-15 01:50:05] [EMAIL PROTECTED]
As far as I can see,

The following text for the manual says that there will be unique numbers, not numbers 
that change over time, and the only unique numbers that are available for a message is 
the UIDL number from the server,

>From the php manual:

This function returns the UID for the given message sequence number. An UID is an 
unique identifier that will not change over time while a message sequence number may 
change whenever the content of the mailbox changes. This function is the inverse of 
imap_msgno(). 

In other words, an UID is not a seq number that starts with 1, goes on with 2 3 4 5 6 
etc. etc. and then starts all over when the mailbox is empty...

---

[2001-05-14 13:19:37] [EMAIL PROTECTED]
uhhh... no, it shouldn't. Those are not UID's.

---

[2001-05-14 09:38:37] [EMAIL PROTECTED]
The following code should echo out the Unique ID's generated by UIDL on the IMAP/POP 
Server, but echo's out a sequencial number starting with 1 instead...

It should probably produce ID's like, 3afffb530001, 3afffb530002, etc. etc.


$mbox = imap_open ("{your.imap.host:143}", "username", "password");

$headers = imap_headers ($mbox);

if ($headers == true) {
while (list ($key,$val) = each ($headers)) {
echo imap_uid($mbox, $key);
}
} else {
echo "No messages in inbox";
}

---



ATTENTION! Do NOT reply to this email!
To reply, use the web interface found at http://bugs.php.net/?id=10850&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 #10866 Updated: PHP config problem with IBM AIX 4.3 and oracle 8.1.6

2001-05-15 Thread sniper

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

Not enough information. And most likely fixed already.
open a new bug report if problem exists with PHP 4.0.6
or latest snapshot from http://snaps.php.net/



Previous Comments:
---

[2001-05-15 04:23:12] [EMAIL PROTECTED]
MACHINE&OS : IBM AIX 4.3
WEB SERVER : APHACHE
PHP VERSION : 4.0.5
DATABASE : ORACLE 8.1.6

I'm having problems configuring PHP to work with Aphache,oracle 8.1.6 and IBM AIX 4.3.
 
When I was configuring php after configuring aphache configuration,
I met "Checking oracle version!!" error message.
I can't figure out this problem.

Actually I don't have enough time.
If anyone have solution about it,please give me any comments as soon as possible?

P.S. I'm sure that correctly set oracle home directory.


---

[2001-05-15 02:33:06] [EMAIL PROTECTED]
MACHINE&OS : IBM AIX 4.3
WEB SERVER : APHACHE
PHP VERSION : 4.0.5
DATABASE : ORACLE 8.1.6

I'm having problems configuring PHP to work with Apache,oracle 8.1.6, IBM AIX 4.3.
 
When I was configuring php after configuring aphache configuration,
I met "ORACLE VERSION CHECK!!" error message.
I can't figure out this problem.

Actually I don't have enough time.
Could you give me any comments about this problem as soon as possible please?

P.S. I'm sure that correctly set oracle home directory.

---



ATTENTION! Do NOT reply to this email!
To reply, use the web interface found at http://bugs.php.net/?id=10866&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 #10850 imap_uid() does not produce an Unique ID Number from POP Servers

2001-05-15 Thread Vlad Krupin

UID's will be unique for IMAP, not POP servers. At least, as far as I 
remember, c-client will return a numer (a long, if I am not mistaken); 
that is the UID you get. 3afffb530001 is not gonna fit in there. I 
do not think you can get much more. If there is a capability in POP3 
part of c-client to return the unique numbers you want, please point me 
to that part, and I'll implement it.

Vlad


Mattias Segerdahl wrote:

> Hi Mark,
> 
> I was doing some php coding the other day and did something simular as,
> 
> The following code should echo out the Unique ID's generated by UIDL on the
> IMAP/POP Server, but echo's out a sequencial number starting with 1
> instead...  It should probably produce ID's like, 3afffb530001,
> 3afffb530002, etc. etc.
> 
> $mbox = imap_open ("{your.pop3.host:143}", "username", "password");
> $headers  = imap_headers ($mbox);
> 
> if ($headers == true) {
>   while (list ($key,$val) = each ($headers)) {
>   echo imap_uid($mbox, $key);
>   }
> } else {
>   echo "No messages in inbox";
> }
> 
> 
> 
> Since this was producing a sequencual number ("1,2,3,4,5"), same as the
> message number, I though there was a bug in php, so I checked the
> ext/imap/php_imap.c and found the following code,
> 
> /* {{{ proto int imap_uid(int stream_id, int msg_no)
>Get the unique message id associated with a standard sequential message
> number */
> PHP_FUNCTION(imap_uid)
> {
> zval **streamind, **msgno;
> int ind, ind_type, msgindex;
> pils *imap_le_struct;
> 
> if (ZEND_NUM_ARGS() != 2 || zend_get_parameters_ex(2, &streamind,
> &msgno) == FAILURE) {
> ZEND_WRONG_PARAM_COUNT();
> }
> 
> convert_to_long_ex(streamind);
> convert_to_long_ex(msgno);
> 
> ind = Z_LVAL_PP(streamind);
> 
> imap_le_struct = (pils *) zend_list_find(ind, &ind_type);
> 
> if (!imap_le_struct || !IS_STREAM(ind_type)) {
> php_error(E_WARNING, "Unable to find stream pointer");
> RETURN_FALSE;
> }
> 
> msgindex = Z_LVAL_PP(msgno);
> if ((msgindex < 1) || ((unsigned) msgindex >
> imap_le_struct->imap_stream->nmsgs)) {
> php_error(E_WARNING, "Bad message number");
> RETURN_FALSE;
> }
> 
> RETURN_LONG(mail_uid(imap_le_struct->imap_stream,
> Z_LVAL_PP(msgno)));
> }
> /* }}} */
> 
> 
> When reading this code, it still baffles me that I don't get the correct
> UID's, the UIDL produces, I came to the fact that it must be the c-client..
> 
> The bug seems to be in src/c-client/mail.h line 1364 ... mail_uid returns an
> unsigned long
> 
> // Mattias
> 
> 



-- 
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] Recursive calls on &EG(regular_list) ?

2001-05-15 Thread clayton collie

im creating an extension which exposes classes which may act as containers
to other classes. These contained classes also get exposed via the
extension. Now when the container class gets destructed by the user
 $container->close(), called before RSHUTDOWN ), i need to ensure that all
resources allocated by the contained objects are released, otherwise
nastiness can occur is the user tries to access the contained objects later
in the script.

 to that end, ive written something like the following. i just wanted to
know if it will cause any problems, since it accesses EG(regular_list) from
a resource destructor. BTW the list destructor is
destroy_container_resource .


static int _kill_contained_objects(zend_rsrc_list *le,void *argument)
{
container_t *cont = (container_t *)argument;
if (le->type == le_contained_object) {
contained_t *field = (contained_t *)le->ptr;
return (field->container == cont);
}
return 0;
}

static void kill_kids(apply_func_arg_t func, void *parent)
{
EGLS_FETCH();
zend_hash_apply_with_argument(  &EG(regular_list), func, parent );
}

static void destroy_container_resource(zend_rsrc_list_entry *rsrc) {
container_t *cont = (container_t *)rsrc->ptr;
kill_kids( (apply_func_t) _kill_contained_objects, cont );
container_free(cont);
}


clayton
_
"Fried Ice-Cream is a reality !" - George Clinton



-- 
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 #10882 Updated: nl2br function now instead of replacing \n to replaces \b to

2001-05-15 Thread cynic

ID: 10882
Updated by: cynic
Reported By: [EMAIL PROTECTED]
Status: Bogus
Bug Type: Strings related
Operating system: 
PHP Version: 4.0.5
Assigned To: 
Comments:

have you read the dos-and-don'ts page? I'm sure it suggest you RTFM before posting, 
and check the bug database to see if it hasn't been reported before. this "bug" is 
intended and documented behavior, and has been reported so many times you couldn't 
have missed it.

Previous Comments:
---

[2001-05-15 12:01:24] [EMAIL PROTECTED]
Not a bug, is simply XHTML compliant now.

-Chris

---

[2001-05-15 11:54:31] [EMAIL PROTECTED]


---



ATTENTION! Do NOT reply to this email!
To reply, use the web interface found at http://bugs.php.net/?id=10882&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 #10882 Updated: nl2br function now instead of replacing \n to replaces \b to

2001-05-15 Thread cnewbill

ID: 10882
Updated by: cnewbill
Reported By: [EMAIL PROTECTED]
Old-Status: Open
Status: Bogus
Bug Type: Strings related
Operating system: 
PHP Version: 4.0.5
Assigned To: 
Comments:

Not a bug, is simply XHTML compliant now.

-Chris

Previous Comments:
---

[2001-05-15 11:54:31] [EMAIL PROTECTED]


---



ATTENTION! Do NOT reply to this email!
To reply, use the web interface found at http://bugs.php.net/?id=10882&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 #10882: nl2br function now instead of replacing \n to replaces \b to

2001-05-15 Thread b2b

From: [EMAIL PROTECTED]
Operating system: Redhat 6.2
PHP version:  4.0.5
PHP Bug Type: Strings related
Bug description:  nl2br function now instead of replacing \n to 
replaces \b to
-- Edit Bug report at: http://bugs.php.net/?id=10882&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 #10625 Updated: Internal Server Error 500

2001-05-15 Thread kalowsky

ID: 10625
Updated by: kalowsky
Reported By: [EMAIL PROTECTED]
Status: Feedback
Bug Type: ODBC related
Operating system: 
PHP Version: 4.0.4pl1
Assigned To: 
Comments:

One more time..

1) Use the Bug system to respond to bugs
2) Please provide a SIMPLE SAMPLE script to reproduce this.  Not your entire website, 
but the simplest form of PHP code to have this occur. 

Previous Comments:
---

[2001-05-14 12:02:11] [EMAIL PROTECTED]
can you please post a simple sample script to reproduce this problem?  do NOT send a 
copy of your website to me please.

the smallest possible code bank is the best option.

---

[2001-05-09 12:03:23] [EMAIL PROTECTED]
not sure i understand what the bug is.  please provide a sample script, and relavent 
parts of your php.ini file.  also, do try this with the 4.0.5 release and see if this 
continues to happen for you.

---

[2001-05-02 23:48:31] [EMAIL PROTECTED]
My environment is Windows 2000 server , php4.0.4 and access 2000 database.
My application is that I using ASP to get all customer name from DB to build a 
drop-down list. Once user select 1 item, the ASP will get customer name to generate 
 to call php script.
The php script get the content of c_name to query all sales data from db for this 
customer.Then, it using these data to generate a purchasing distribution chart for 
this customer.

For the first few times, it works fine. However,after about 20 user selection, it 
become unstable. It sometime works and sometime give me internal server error 500 
message.
In some case, it not just give me error message, but it make other asp and php program 
cannot access DB again.

I have change the PHP script to read data from user input,it works fine (even after 
100 selection).
Also, the application can works (even after 100 selection)on Windows NT 4.0 platform


---



ATTENTION! Do NOT reply to this email!
To reply, use the web interface found at http://bugs.php.net/?id=10625&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 #10881: unknown segfaults

2001-05-15 Thread phpbug

From: [EMAIL PROTECTED]
Operating system: progeny linux 1.0 Kernel 2.4.0
PHP version:  4.0 Latest CVS (2001-05-15)
PHP Bug Type: 
Bug description:  unknown segfaults

Using today's PHP and IMP/Horde CVS with Progeny Linux 1.0
under kernel 2.4.0.

libmcrypt-2.4.10
libtool-1.4
Apache/1.3.19

./configure --with-apxs=/www/bin/apxs --with-openssl=/usr
--with-db2=/usr --with-imap=../ --with-ldap=/usr
--with-mysql=/usr --with-mm=/usr --with-zlib=/usr
--with-gnu-ld --with-gettext=/usr --enable-ftp
--with-mcal=/usr/local --with-mcrypt=/usr/local

http://airbag.tss.peachnet.edu/info.php

When I try to login to IMP, I get a segfault. From apache's
error log:

[Tue May 15 10:50:00 2001] [notice] child pid 17105 exit
signal Segmentation fault (11)

backtrace #1

#0  0x406930ee in gost_LTX__mcrypt_decrypt (key=0x0,
in=0x81957a4)
at gost.c:276
#1  0x401fd9f0 in ecb_LTX__mdecrypt (ign=0x0,
ciphertext=0x81957a4, len=8, 
blocksize=8, akey=0x0, func=0x40692da4
, 
func2=0x406930b0 ) at ecb.c:72
#2  0x4058dc36 in mdecrypt (td=0x81d3148, buf=0x0,
a=0x81957a4, b=8)
at mcrypt_modules.c:387
#3  0x4058d161 in mdecrypt_generic (td=0x81d3148,
ciphertext=0x81957a4, len=8)
at mcrypt.c:160
#4  0x4039e6af in php_if_mdecrypt_generic (ht=2,
return_value=0x816fb84, 
this_ptr=0x0, return_value_used=1) at mcrypt.c:559
#5  0x4034d6f9 in execute (op_array=0x817d00c) at
./zend_execute.c:1504
#6  0x4034d94c in execute (op_array=0x817b6ec) at
./zend_execute.c:1544
#7  0x4034d94c in execute (op_array=0x81466b4) at
./zend_execute.c:1544
#8  0x4035befe in zend_execute_scripts (type=8,
file_count=3) at zend.c:748
#9  0x4036dc74 in php_execute_script
(primary_file=0xb800) at main.c:1206
#10 0x4036a31f in apache_php_module_main (r=0x812ff24,
display_source_mode=0)
at sapi_apache.c:89
#11 0x4036acf3 in send_php (r=0x812ff24,
display_source_mode=0, filename=0x0)
at mod_php4.c:535
#12 0x4036ad32 in send_parsed_php (r=0x812ff24) at
mod_php4.c:546
#13 0x8055389 in ap_invoke_handler ()
#14 0x806a1df in process_request_internal ()
#15 0x806a246 in ap_process_request ()
#16 0x80610a6 in child_main ()
#17 0x8061281 in make_child ()
#18 0x80613fc in startup_children ()
#19 0x8061a6c in standalone_main ()
#20 0x80622bc in main ()
#21 0x4008fdcc in __libc_start_main () from /lib/libc.so.6


backtrace #2 after a re-compile of mcrypt
#0  0x406080ee in gost_LTX__mcrypt_decrypt (key=0x0,
in=0x823ae14)
at gost.c:276
#1  0x401fd9f0 in ecb_LTX__mdecrypt (ign=0x0,
ciphertext=0x823ae14, len=8, 
blocksize=8, akey=0x0, func=0x40607da4
, 
func2=0x406080b0 ) at ecb.c:72
#2  0x405a2c36 in mdecrypt (td=0x821f668, buf=0x0,
a=0x823ae14, b=8)
at mcrypt_modules.c:387
#3  0x405a2161 in mdecrypt_generic (td=0x821f668,
ciphertext=0x823ae14, len=8)
at mcrypt.c:160
#4  0x403ba2b8 in php_if_mdecrypt_generic (ht=2,
return_value=0x822c83c, 
this_ptr=0x0, return_value_used=1) at mcrypt.c:559
#5  0x40352667 in execute (op_array=0x8175204) at
./zend_execute.c:1504
#6  0x4035288f in execute (op_array=0x81847ac) at
./zend_execute.c:1544
#7  0x4035288f in execute (op_array=0x814a56c) at
./zend_execute.c:1544
#8  0x40363d00 in zend_execute_scripts (type=8,
file_count=3) at zend.c:748
#9  0x4037c173 in php_execute_script
(primary_file=0xb800) at main.c:1206
#10 0x403776be in apache_php_module_main (r=0x8131bbc,
display_source_mode=0)
at sapi_apache.c:89
#11 0x4037842a in send_php (r=0x8131bbc, display_source_mode=0, 
filename=0x81337bc "/www/htdocs/horde/imp/redirect.php")
at mod_php4.c:535
#12 0x4037846f in send_parsed_php (r=0x8131bbc) at
mod_php4.c:546
#13 0x8055389 in ap_invoke_handler ()
#14 0x806a1df in process_request_internal ()
#15 0x806a246 in ap_process_request ()
#16 0x80610a6 in child_main ()
#17 0x8061281 in make_child ()
#18 0x80613fc in startup_children ()
#19 0x8061a6c in standalone_main ()
#20 0x80622bc in main ()


this is the same machine that was having trouble with
gpc_magic_quotes in 10591.  Do I have some compiler or libc
funkiness going on?


-- 
Edit Bug report at: http://bugs.php.net/?id=10881&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 #10880: In some cases GetImageSize(image) does not return image dimensions

2001-05-15 Thread duh

From: [EMAIL PROTECTED]
Operating system: Debian GNU/Linux 2.2r3 potato
PHP version:  4.0.5
PHP Bug Type: GetImageSize related
Bug description:  In some cases GetImageSize(image) does not return image dimensions

This is the configstring of the server running potato r3 and php 4.0.5:

'./configure' '--with-mysql' '--with-apache=../apache_1.3.19' '--enable-track-vars' 
'--enable-trans-sid' '--with-mcrypt=../libmcrypt-2.4.10' '--disable-posix-threads' 
'--with-gd=/usr/local' '--with-jpeg-dir=/usr/local' 
'--with-ttf=/usr/local/include/freetype2' '--enable-shared' '--enable-gd-imgstrttf' 
'--enable-versioning' '--enable-magic-quotes'

As GetImageSize didn't work on a specific JPEG image I tried the same image on another 
server running Debian GNU/Linux Woody and php 4.0.4pl1 with the following configstring:

'./configure' '--with-apache=../apache_1.3.19' '--with-unixODBC=/usr/local' 
'--with-mysql=/usr/local/mysql' '--enable-track-vars' '--enable-gd-imgstrttf' 
'--with-gd=/usr/local' '--with-jpeg-dir=/usr/local' '--with-ttf=/usr/include/freetype' 
'--enable-trans-sid' '--with-mcrypt' '--enable-debug'

And on that server the GetImageSize() function just returned the image dimensions as 
you would suspect..

ImageMagick's identify returns the following information on the image:
Image: sicko.jpg
  format: JPEG (Joint Photographic Experts Group JFIF format)
  type: true color
  class: DirectClass
  matte: False
  colors: 117318
  geometry: 1024x768
  depth: 8
  filesize: 98kb
  interlace: None
  background-color: gray74
  border-color: gray74
  matte-color: gray74
  compression: JPEG
  runlength packets: 639759 of 786432
  tainted: False
  signature: 96e8d70ecf6d1784d27f801c39ec7bc5



-- 
Edit Bug report at: http://bugs.php.net/?id=10880&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 #10879: odbc_prepare causes bus error

2001-05-15 Thread ville . alkkiomaki

From: [EMAIL PROTECTED]
Operating system: Solaris 6&8
PHP version:  4.0.5
PHP Bug Type: Solid related
Bug description:  odbc_prepare causes bus error


Following script causes Bus error with php 4.0.5 & Solid 3.x (and at least 4.0.3 & 
4.0.1pl2). It crashes identically as a standalone cgi binary and as a apache module.



Where odbc_prepare causes Bus error and gdb gives following backtrace when configured 
with "--with-solid --enable-debug".

#0  0xef6c7bb4 in ssa_stmt_getstmtintegerproperty ()
   from /usr/lib/libsocssx35.so
#1  0xef6c4070 in SSAGetIntegerProperty () from /usr/lib/libsocssx35.so
#2  0xef6aabb4 in SQLNumParams_nomutex () from /usr/lib/libsocssx35.so
#3  0xef6aac74 in SQLNumParams () from /usr/lib/libsocssx35.so
#4  0x32bc8 in php_if_odbc_prepare (ht=2, return_value=0x1d1080, this_ptr=0x0, 
return_value_used=1) at php_odbc.c:812
#5  0x14acd8 in execute ()
#6  0xef07c in zend_execute_scripts (type=8, file_count=3) at zend.c:743
#7  0x27880 in php_execute_script (primary_file=0xebc8) at main.c:1209
#8  0x24424 in main (argc=2, argv=0xec6c) at cgi_main.c:730

Above script works fine with php 3.0.18RC1 & Solid 3.0 SDK. Older php3 releases had 
problems to compile with Solid 3.x, but if I recall right php version 3.0.1* had also 
similar problems. (required little hacking to compile) 




-- 
Edit Bug report at: http://bugs.php.net/?id=10879&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 #10878: Compile problem with IMAP support

2001-05-15 Thread sean . truman

From: [EMAIL PROTECTED]
Operating system: sparc-sun-solaris2.7
PHP version:  4.0.5
PHP Bug Type: Compile Problem
Bug description:  Compile problem with IMAP support

configure line is:
./configure --with-mysql=/usr \ 
--with-imap=y \ 
--with-apache=../apache_1.3.19 \
--enable-track-vars \   
--enable-register-globals \ 
--enable-trans-sid  


make[2]: Entering directory `/usr/local/src/php-4.0.5/main'
 
gcc  -I. -I/usr/local/src/php-4.0.5/main -I/usr/local/src/php-4.0.5/main 
-I/usr/local/src/php-4.0.5 -I/usr/local/src/apache_1.3.19/s
rc/include -I/usr/local/src/apache_1.3.19/src/os/unix -I/usr/local/src/php-4.0.5/Zend 
-I/usr/include/mysql -I/usr/local/src/php-4.0.
5/ext/xml/expat/xmltok -I/usr/local/src/php-4.0.5/ext/xml/expat/xmlparse 
-I/usr/local/src/php-4.0.5/TSRM  -D_POSIX_PTHREAD_SEMANTICS
 -DSUPPORT_UTF8 -DXML_BYTE_ORDER=21 -g -O2  -c main.c && touch main.lo 
 
gcc  -I. -I/usr/local/src/php-4.0.5/main -I/usr/local/src/php-4.0.5/main 
-I/usr/local/src/php-4.0.5 -I/usr/local/src/apache_1.3.19/s
rc/include -I/usr/local/src/apache_1.3.19/src/os/unix -I/usr/local/src/php-4.0.5/Zend 
-I/usr/include/mysql -I/usr/local/src/php-4.0.
5/ext/xml/expat/xmltok -I/usr/local/src/php-4.0.5/ext/xml/expat/xmlparse 
-I/usr/local/src/php-4.0.5/TSRM  -D_POSIX_PTHREAD_SEMANTICS
 -DSUPPORT_UTF8 -DXML_BYTE_ORDER=21 -g -O2  -c internal_functions.c && touch 
internal_functions.lo  
In file included from internal_functions.c:32: 
 
/usr/local/src/php-4.0.5/ext/imap/php_imap.h:50: parse error before `MAILSTREAM'   
 
/usr/local/src/php-4.0.5/ext/imap/php_imap.h:50: warning: no semicolon at end of 
struct or union
/usr/local/src/php-4.0.5/ext/imap/php_imap.h:58: parse error before `}'
 
/usr/local/src/php-4.0.5/ext/imap/php_imap.h:58: warning: data definition has no type 
or storage class  
/usr/local/src/php-4.0.5/ext/imap/php_imap.h:61: parse error before `SIZEDTEXT'
 
/usr/local/src/php-4.0.5/ext/imap/php_imap.h:61: warning: no semicolon at end of 
struct or union
/usr/local/src/php-4.0.5/ext/imap/php_imap.h:65: parse error before `}'
 
/usr/local/src/php-4.0.5/ext/imap/php_imap.h:65: warning: data definition has no type 
or storage class  
/usr/local/src/php-4.0.5/ext/imap/php_imap.h:68: parse error before `SIZEDTEXT'
 
/usr/local/src/php-4.0.5/ext/imap/php_imap.h:68: warning: no semicolon at end of 
struct or union
/usr/local/src/php-4.0.5/ext/imap/php_imap.h:70: conflicting types for `next'  
 
/usr/local/src/php-4.0.5/ext/imap/php_imap.h:64: previous declaration of `next'
 
/usr/local/src/php-4.0.5/ext/imap/php_imap.h:71: parse error before `}'
 
/usr/local/src/php-4.0.5/ext/imap/php_imap.h:71: warning: data definition has no type 
or storage class  
/usr/local/src/php-4.0.5/ext/imap/php_imap.h:156: parse error before `STRINGLIST'  
 
/usr/local/src/php-4.0.5/ext/imap/php_imap.h:156: warning: no semicolon at end of 
struct or union   
/usr/local/src/php-4.0.5/ext/imap/php_imap.h:157: warning: data definition has no type 
or storage class 
/usr/local/src/php-4.0.5/ext/imap/php_imap.h:158: parse error before `*'   
 
/usr/local/src/php-4.0.5/ext/imap/php_imap.h:158: warning: data definition has no type 
or storage class 
/usr/local/src/php-4.0.5/ext/imap/php_imap.h:159: parse error before `*'   
 
/usr/local/src/php-4.0.5/ext/imap/php_imap.h:159: warning: data definition has no type 
or storage class 
/usr/local/src/php-4.0.5/ext/imap/php_imap.h:161: parse error before `*'   
 
/usr/local/src/php-4.0.5/ext/imap/php_imap.h:161: warning: data definition has no type 
or storage class 
/usr/local/src/php-4.0.5/ext/imap/php_imap.h:162: parse error before `*'   
 
/usr/local/src/php-4.0.5/ext/imap/php

[PHP-DEV] Bug #10871 Updated: pclose() failed. (2: unknown early startup error)

2001-05-15 Thread mh

ID: 10871
User Update by: [EMAIL PROTECTED]
Status: Open
Bug Type: Other web server
Operating system: Solaris 2.6
PHP Version: 4.0.5
Description: pclose() failed. (2: unknown early startup error)

No problem with 4.0.4pl1...

Previous Comments:
---

[2001-05-15 05:14:59] [EMAIL PROTECTED]
When I start the web server, I have a "[https-test]: pclose() failed. (2: unknown 
early startup error)" message

I installed php 4.0.5 with Oracle 8.1.6 support and Netscape Enterprise 3.6SP3 with :
./configure --without-mysql --with-nsapi=/opt/netscape/suitespot 
--with-oci8=/opt/oracle/816
make ; make install

First, I had more error messages :
[https-test]: pclose() failed. (2: unknown early startup error)
[https-test]: conf_init: Error running init function load-modules: dlopen of 
/opt/netscape/suitespot/bin/libphp4.so failed (ld.so.1:
ns-httpd: fatal: libstdc++.so.2.8.1.1: open failed: No such file or directory) 
So I added the path for libstdc++ in LD_LIBRARY_PATH in the start file.

Then, I had this :
[https-test]: pclose() failed. (2: unknown early startup error)
[https-test]: conf_init: Error running init function load-modules: dlopen of 
/opt/netscape/suitespot/bin/libphp4.so failed (ld.so.1:
ns-httpd: fatal: libclntsh.so.8.0: open failed: No such file or directory) 
So I also added Oracle lib path in the start file.

Now I just have the first line, and no other error message. The Web Server just won't 
start.

my obj.conf is :
# Netscape Communications Corporation - obj.conf
# You can edit this file, but comments and formatting changes
# might be lost when the admin server makes changes.

Init fn="flex-init" access="/opt/netscape/suitespot/https-test/logs/access" form
at.access="%Ses->client.ip% - %Req->vars.auth-user% [%SYSDATE%] "%Req->reqpb.cl
f-request%" %Req->srvhdrs.clf-status% %Req->srvhdrs.content-length%"
Init fn="load-types" mime-types="mime.types"
Init fn="load-modules" funcs="php4_init,php4_close,php4_execute,php4_auth_trans"
 shlib="/opt/netscape/suitespot/bin/libphp4.so"
Init fn=php4_init errorString="Failed to initialize PHP!"


NameTrans fn="pfx2dir" from="/ns-icons" dir="/opt/netscape/suitespot/ns-icons"
NameTrans fn="pfx2dir" from="/mc-icons" dir="/opt/netscape/suitespot/ns-icons"
NameTrans fn="pfx2dir" from="/help" dir="/opt/netscape/suitespot/manual/https/ug"
NameTrans fn="document-root" root="/www/test/htdocs"
PathCheck fn="unix-uri-clean"
PathCheck fn="check-acl" acl="default"
PathCheck fn="find-pathinfo"
PathCheck fn="find-index" index-names="index.html,home.html"
ObjectType fn="type-by-extension"
ObjectType fn="force-type" type="text/plain"
Service fn="php4_execute" type="magnus-internal/x-httpd-php"
Service method="(GET|HEAD)" type="magnus-internal/imagemap" fn="imagemap"
Service method="(GET|HEAD)" type="magnus-internal/directory" fn="index-common"
Service method="(GET|HEAD)" type="*~magnus-internal/*" fn="send-file"
AddLog fn="flex-log" name="access"



ObjectType fn="force-type" type="magnus-internal/cgi"
Service fn="send-cgi"



ObjectType fn="force-type" type="magnus-internal/x-httpd-php"
Service fn=php4_execute


Any idea ?

---


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


-- 
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 #10591 Updated: magic_quotes_runtime being randomly set?

2001-05-15 Thread kalowsky

ID: 10591
Updated by: kalowsky
Reported By: [EMAIL PROTECTED]
Old-Status: Critical
Status: Closed
Bug Type: PHP options/info functions
Operating system: 
PHP Version: 4.0 Latest CVS (01/05/2001)
Assigned To: 
Comments:

user notes fixed in cvs

Previous Comments:
---

[2001-05-15 08:55:19] [EMAIL PROTECTED]
updating to today's (4-15-01) CVS fixed it...



---

[2001-05-10 09:38:02] [EMAIL PROTECTED]
Also, has anybody managed to reproduce it?  I can't.

---

[2001-05-10 09:27:52] [EMAIL PROTECTED]
Do you have any settings for magic_quotes_runtime in your httpd.conf or .htaccess 
files?

---

[2001-05-09 11:12:01] [EMAIL PROTECTED]
Marked as to be fixed before 4.0.6

---

[2001-05-01 23:07:35] [EMAIL PROTECTED]
Hmmm... maybe we do have a bug here...

There are no calls to magic_quotes_runtime().
There are no includes, requires or auto_(pre|ap)pend_files.
The php.ini files and apache conf files don't set magic_quotes_runtime.
And there are no other scripts on the box that call magic_quotes_runtime() or set_ini 
('magic_quotes_runtime', 'On');

So, right now it does seem that magic_quotes_runtime does to randomly turn on and off.

Calls to get_magic_quotes_runtime() accurately report whether magic_quotes_runtime is 
active, while phpinfo() reports that magic_quotes_runtime is off - both locally and 
the master value.

Initial reports indicated that the bug may have been related to file(), however, the 
problem can be reproduced using fopen() as well - see 
http://airbag.tss.peachnet.edu/~sam/fopen.php and 
http://airbag.tss.peachnet.edu/~sam/fopen.txt.

Anyone have any ideas here - I am coming up blank.


---

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=10591&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 #10591 Updated: magic_quotes_runtime being randomly set?

2001-05-15 Thread phpbug

ID: 10591
User Update by: [EMAIL PROTECTED]
Status: Critical
Bug Type: PHP options/info functions
Operating system: Progeny GNU/Linux
PHP Version: 4.0 Latest CVS (01/05/2001)
Description: magic_quotes_runtime being randomly set?

updating to today's (4-15-01) CVS fixed it...



Previous Comments:
---

[2001-05-10 09:38:02] [EMAIL PROTECTED]
Also, has anybody managed to reproduce it?  I can't.

---

[2001-05-10 09:27:52] [EMAIL PROTECTED]
Do you have any settings for magic_quotes_runtime in your httpd.conf or .htaccess 
files?

---

[2001-05-09 11:12:01] [EMAIL PROTECTED]
Marked as to be fixed before 4.0.6

---

[2001-05-01 23:07:35] [EMAIL PROTECTED]
Hmmm... maybe we do have a bug here...

There are no calls to magic_quotes_runtime().
There are no includes, requires or auto_(pre|ap)pend_files.
The php.ini files and apache conf files don't set magic_quotes_runtime.
And there are no other scripts on the box that call magic_quotes_runtime() or set_ini 
('magic_quotes_runtime', 'On');

So, right now it does seem that magic_quotes_runtime does to randomly turn on and off.

Calls to get_magic_quotes_runtime() accurately report whether magic_quotes_runtime is 
active, while phpinfo() reports that magic_quotes_runtime is off - both locally and 
the master value.

Initial reports indicated that the bug may have been related to file(), however, the 
problem can be reproduced using fopen() as well - see 
http://airbag.tss.peachnet.edu/~sam/fopen.php and 
http://airbag.tss.peachnet.edu/~sam/fopen.txt.

Anyone have any ideas here - I am coming up blank.


---

[2001-05-01 21:19:23] [EMAIL PROTECTED]
Damn... misread last comment. Have asked user to send me relevant code.  I would guess 
that something simple to fix on here...

---

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


-- 
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 #8452 Updated: imap_fetchstructure problem

2001-05-15 Thread kalowsky

ID: 8452
Updated by: kalowsky
Reported By: [EMAIL PROTECTED]
Old-Status: Open
Status: Closed
Bug Type: IMAP related
Operating system: 
PHP Version: 4.0.4
Assigned To: 
Comments:

user reports fixed in 4.0.5

Previous Comments:
---

[2001-05-15 03:54:43] [EMAIL PROTECTED]
It looks ok in PHP 4.05 and Yes I'am using c-client 4.1 (latest available)

---

[2001-05-03 15:41:33] [EMAIL PROTECTED]
Is this still the case, and are you using an updated version of c-client?

---

[2000-12-28 09:03:32] [EMAIL PROTECTED]
when reading a mail which have no attachment (single part mail), 

imap_fetchstructure->type is always "text"
imap_fetchstructure->subtype is always "plain"

even if in the header we have

Content-Type: text/html

---



ATTENTION! Do NOT reply to this email!
To reply, use the web interface found at http://bugs.php.net/?id=8452&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 #10876 Updated: Main thread error if die placed in file which uncluded from switch-case operato

2001-05-15 Thread anton

ID: 10876
User Update by: [EMAIL PROTECTED]
Status: Open
Bug Type: Scripting Engine problem
Operating system: WINNT 4.0 SP6 + Apache 3.12, php
PHP Version: 4.0.5
Description: Main thread error if die placed in file which uncluded from switch-case 
operato

Some comments.
It happen when Output_buffering=on only, if output_buffering=off all is ok

Previous Comments:
---

[2001-05-15 07:48:00] [EMAIL PROTECTED]
I use WINNT 4.0+SP6+Apache 1.3.12+php 4.0.5 as apache module
I got Apache main thread error each time, if die() or exit() function placed in file 
which included from switch-case operator like this:

code example

tdie.php


testdie.php



---


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


-- 
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 #10877: HTTP 500 Error and the page cannot be displayed

2001-05-15 Thread timothy_tang_tw

From: [EMAIL PROTECTED]
Operating system: Win 98
PHP version:  4.0.5
PHP Bug Type: PWS related
Bug description:  HTTP 500 Error and the page cannot be displayed

I installed the PHP 4.0.5.  The IE 5.5 shows "HTTP 500 Internal Server Error" on the 
title and "the page cannot be displayed" on the IE document, when I open any PHP web 
page by using PWS as a web server.  

If I click this page directly by using "Windows Explorer", it dumps all the HTML tags 
to DOS prompted window.
  
However, web pages runs fine when I use PWS + PHP 4.0.4PL1.  Those pages also runs 
fine under Apache + PHP 4.0.5.

I checked the regedit, php.ini, browscap.dll and browscap.ini.  If the PHP 4.0.4PL1 
runs fine with PWS, why the PHP 4.0.5 cann't work together with PWS?  Does this mean 
that PWS cann't recognize the PHP 4.0.5?  How to solve this problem?

I use the web page (one line only) below as a test page.


Best Regards,
Timothy


-- 
Edit Bug report at: http://bugs.php.net/?id=10877&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 #10876: Main thread error if die placed in file which uncluded from switch-case operato

2001-05-15 Thread anton

From: [EMAIL PROTECTED]
Operating system: WINNT 4.0 SP6 + Apache 3.12, php as apache module
PHP version:  4.0.5
PHP Bug Type: Scripting Engine problem
Bug description:  Main thread error if die placed in file which uncluded from 
switch-case operato

I use WINNT 4.0+SP6+Apache 1.3.12+php 4.0.5 as apache module
I got Apache main thread error each time, if die() or exit() function placed in file 
which included from switch-case operator like this:

code example

tdie.php


testdie.php




-- 
Edit Bug report at: http://bugs.php.net/?id=10876&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]




  1   2   >