Re: [PHP-DEV] Moderate PHP-DEV

2003-03-12 Thread Michael Bretterklieber
Hi,

Derick Rethans wrote:
On Wed, 12 Mar 2003, Sascha Schumann wrote:


if even that description doesn't work, then nothing would work, not even
changing the name.
   Well, it is obvious that some folks don't read that
   description and simply move forward, because php-dev sounds
   about right.  They are PHP developers and so a list called
   php-dev makes absolute sense to them.


Let's ask the mysql guys, they did change the name too. (I think that we 
+1 for changing the name, to something like php-internal

bye,
--
--- -
Michael Bretterklieber- [EMAIL PROTECTED]
JAWA Management Software GmbH - http://www.jawa.at
Liebenauer Hauptstr. 200-- privat ---
A-8041 GRAZ GSM: ++43-(0)676-93 96 698
Tel: ++43-(0)316-403274-12  E-mail:   [EMAIL PROTECTED]
Fax: ++43-(0)316-403274-10  http://www.bretterklieber.com
--- -
...the number of UNIX installations has grown to 10, with more
expected... - Dennis Ritchie and Ken Thompson, June 1972
--
PHP Development Mailing List http://www.php.net/
To unsubscribe, visit: http://www.php.net/unsub.php


[PHP-DEV] MSSQL extension BugFix FreeTDS, datetime with milliseconds

2003-03-02 Thread Michael Bretterklieber
Hi Frank!

In the attached patches I fixed a bug when using the mssql extension 
with FreeTDS and deactivated datetimeconvert. FreeTDS returns the month 
starting with 0 (=jan), but the MSoft-lib starts with 1.

I added another php.ini switch (datetimemsec) for adding milliseconds to 
datetime-values when datetimeconvert is deactivated. This was a user 
request, because he has otherwise no chance to get the milliseconds back 
from the db.

I hope that these patches are good enough for a commit,

thanx,
bye,
--
--- -
Michael Bretterklieber- [EMAIL PROTECTED]
JAWA Management Software GmbH - http://www.jawa.at
Liebenauer Hauptstr. 200-- privat ---
A-8041 GRAZ GSM: ++43-(0)676-93 96 698
Tel: ++43-(0)316-403274-12  E-mail:   [EMAIL PROTECTED]
Fax: ++43-(0)316-403274-10  http://www.bretterklieber.com
--- -
...the number of UNIX installations has grown to 10, with more
expected... - Dennis Ritchie and Ken Thompson, June 1972
Index: php_mssql.c
===
RCS file: /repository/php4/ext/mssql/php_mssql.c,v
retrieving revision 1.86.2.15
diff -u -r1.86.2.15 php_mssql.c
--- php_mssql.c 11 Feb 2003 01:23:49 -  1.86.2.15
+++ php_mssql.c 2 Mar 2003 14:28:56 -
@@ -137,6 +137,7 @@
STD_PHP_INI_ENTRY_EX(mssql.textlimit, -1,   
PHP_INI_ALL,OnUpdateInt,textlimit,  
zend_mssql_globals, mssql_globals,  display_text_size)
STD_PHP_INI_ENTRY_EX(mssql.batchsize, 0,
PHP_INI_ALL,OnUpdateInt,batchsize,  
zend_mssql_globals, mssql_globals,  display_link_numbers)
STD_PHP_INI_BOOLEAN(mssql.datetimeconvert,1,PHP_INI_ALL,   
 OnUpdateBool,   datetimeconvert,zend_mssql_globals,   
  mssql_globals)
+   STD_PHP_INI_BOOLEAN(mssql.datetimemsec,   0,
PHP_INI_ALL,OnUpdateBool,   datetimemsec,   
zend_mssql_globals, mssql_globals)
STD_PHP_INI_BOOLEAN(mssql.secure_connection,  0,
PHP_INI_SYSTEM, OnUpdateBool,   secure_connection,  
zend_mssql_globals, mssql_globals)
STD_PHP_INI_ENTRY_EX(mssql.max_procs, 25,   
PHP_INI_ALL,OnUpdateInt,max_procs,  
zend_mssql_globals, mssql_globals,  display_link_numbers)
 PHP_INI_END()
@@ -839,11 +840,17 @@
dbdatecrack(mssql_ptr-link, 
dateinfo, (DBDATETIME *) dbdata(mssql_ptr-link,offset));
}

-   res_length = 19;
-   res_buf = (unsigned char *) 
emalloc(res_length+1);
+   res_buf = (unsigned char *) emalloc(30);
+#if HAVE_FREETDS
+   dateinfo.month++;
+#endif
sprintf(res_buf, %d-%02d-%02d %02d:%02d:%02d 
, dateinfo.year, dateinfo.month, dateinfo.day, dateinfo.hour, dateinfo.minute, 
dateinfo.second);
+   if (MS_SQL_G(datetimemsec)) {
+   sprintf(res_buf[strlen(res_buf)],  
.%03d, dateinfo.millisecond);
+   }
+   res_length = strlen(res_buf);
}
-   
+
Z_STRVAL_P(result) = res_buf;
Z_STRLEN_P(result) = res_length;
Z_TYPE_P(result) = IS_STRING;
@@ -900,9 +907,16 @@
dbdatecrack(mssql_ptr-link, dateinfo, (DBDATETIME *) 
dbdata(mssql_ptr-link,offset));
}

-   res_length = 19;
-   res_buf = (unsigned char *) emalloc(res_length+1);
+   res_length = 30;
+   res_buf = (unsigned char *) emalloc(res_length);
+#if HAVE_FREETDS
+   dateinfo.month++;
+#endif
sprintf(res_buf, %d-%02d-%02d %02d:%02d:%02d , 
dateinfo.year, dateinfo.month, dateinfo.day, dateinfo.hour, dateinfo.minute, 
dateinfo.second);
+   if (MS_SQL_G(datetimemsec)) {
+   sprintf(res_buf[strlen(res_buf)],  .%03d, 
dateinfo.millisecond);
+   }
+   res_length = strlen(res_buf);
}
 
Z_STRVAL_P(result) = res_buf;
Index: php_mssql.h

[PHP-DEV] package.xlm question

2003-02-28 Thread Michael Bretterklieber
Hi,

in my package.xml I have this:
 filelist
dir role=src name=/
  fileCREDITS/file
  fileMakefile.in/file
is it possible that with older versions of the pear-command I have to 
put on each file entry the role?
 filelist
dir role=src name=/
  file role=srcCREDITS/file
  file role=srcMakefile.in/file

Because I got a report from a user that he has problems installing the 
package.
Localy if have no problems pear validate-package returns no error.

bye,
--
--- -
Michael Bretterklieber- [EMAIL PROTECTED]
JAWA Management Software GmbH - http://www.jawa.at
Liebenauer Hauptstr. 200-- privat ---
A-8041 GRAZ GSM: ++43-(0)676-93 96 698
Tel: ++43-(0)316-403274-12  E-mail:   [EMAIL PROTECTED]
Fax: ++43-(0)316-403274-10  http://www.bretterklieber.com
--- -
...the number of UNIX installations has grown to 10, with more
expected... - Dennis Ritchie and Ken Thompson, June 1972
--
PHP Development Mailing List http://www.php.net/
To unsubscribe, visit: http://www.php.net/unsub.php


Re: [PHP-DEV] package.xlm question

2003-02-28 Thread Michael Bretterklieber
Hi,

forget this posting, I picked the wrong address from my addressbook - 
again gr,

bye,

Michael Bretterklieber wrote:
Hi,

in my package.xml I have this:
 filelist
dir role=src name=/
  fileCREDITS/file
  fileMakefile.in/file
is it possible that with older versions of the pear-command I have to 
put on each file entry the role?
 filelist
dir role=src name=/
  file role=srcCREDITS/file
  file role=srcMakefile.in/file

Because I got a report from a user that he has problems installing the 
package.
Localy if have no problems pear validate-package returns no error.

bye,
--
--- -
Michael Bretterklieber- [EMAIL PROTECTED]
JAWA Management Software GmbH - http://www.jawa.at
Liebenauer Hauptstr. 200-- privat ---
A-8041 GRAZ GSM: ++43-(0)676-93 96 698
Tel: ++43-(0)316-403274-12  E-mail:   [EMAIL PROTECTED]
Fax: ++43-(0)316-403274-10  http://www.bretterklieber.com
--- -
...the number of UNIX installations has grown to 10, with more
expected... - Dennis Ritchie and Ken Thompson, June 1972
--
PHP Development Mailing List http://www.php.net/
To unsubscribe, visit: http://www.php.net/unsub.php


Re: [PHP-DEV] mssql.convertdatetime, mssql.longdatetime

2003-02-24 Thread Michael Bretterklieber
Hi,

Just FYI:

I wrote some months ago a patch wich let datetime-values return in the 
format -MM-DD HH24:MI:SS, because sometimes the conversion function 
wich converts datetime-values does weird things.
The ini switch for activating this is named mssql.datetimeconvert, you 
must set this to 0 for deactivating the datetimeconvert-function.

This patch was integrated by fmk some months ago.

bye,

Mike Robinson schrieb:
Jochen Daum wrote:

Hi !

I need to fetch a datetime column from sql server with 
milliseconds. Someone posted a patch a while ago:



Doesn't look like that patch made it, but a ton of work has
been done on that file since.

How do I find out, if this patch has been incorporated
into Version 4.3?


http://cvs.php.net/co.php/php4/ext/mssql/php_mssql.c?login=2r=1.107

Regards
Mike Robinson

--
--- --
Michael Bretterklieber  - [EMAIL PROTECTED]	
JAWA Management Software GmbH   - http://www.jawa.at
Liebenauer Hauptstr. 200-- privat 
A-8041 GRAZ GSM: ++43-(0)676-84 03 15 712
Tel: ++43-(0)316-403274-12  E-mail: [EMAIL PROTECTED]
Fax: ++43-(0)316-403274-10  http://www.bretterklieber.com
--- --
...the number of UNIX installations has grown to 10, with more 
expected... - Dennis Ritchie and Ken Thompson, June 1972

--
PHP Development Mailing List http://www.php.net/
To unsubscribe, visit: http://www.php.net/unsub.php


Re: [PHP-DEV] bcpowmod() and bigIntegers

2003-02-22 Thread Michael Bretterklieber
Hi,

Robert Kofler wrote:
is there a possibility to implement bcpowmod() in a 
version prior than PHP5?

bcpowmod() ist the only way to calculate a blind signature
as described by David CHAUM 1982 - digicash
(openssl does not work here).
try this:

function bcPowMod($n, $e, $m) {
   //if ($m == 0 || $e  0) return 0;
   if (bccomp($m, 0) == 0 || bccomp($e, 0) == -1) return 0;
   $res = 1;
   $pow = $n;
   $e1  = $e;
   //while ($e1 != 0) {
   while (bccomp($e1, 0) != 0) {
  $d = bcmod($e1, 2);
  //$e1  = floor(bcdiv($e1, 2));
  $e1  = bcdiv($e1, 2, 0);
  //if ($d == 1) {
  if (bccomp($d, 1) == 0) {
 $res = bcMod(bcMul($res, $pow), $m);
  }
  $pow = bcMod(bcMul($pow, $pow), $m);
   }
// if ($res  0)
if (bccomp($res, 0) == -1) $res = bcAdd($res, $m);
return $res;
}
bye,
--
--- -
Michael Bretterklieber- [EMAIL PROTECTED]
JAWA Management Software GmbH - http://www.jawa.at
Liebenauer Hauptstr. 200-- privat ---
A-8041 GRAZ GSM: ++43-(0)676-93 96 698
Tel: ++43-(0)316-403274-12  E-mail:   [EMAIL PROTECTED]
Fax: ++43-(0)316-403274-10  http://www.bretterklieber.com
--- -
...the number of UNIX installations has grown to 10, with more
expected... - Dennis Ritchie and Ken Thompson, June 1972
--
PHP Development Mailing List http://www.php.net/
To unsubscribe, visit: http://www.php.net/unsub.php


[PHP-DEV] md5(), sha1() returning binary values

2003-02-18 Thread Michael Bretterklieber
Hi,

I attached patches for md5.c and sha1.c. They add an optional second
param to md5() and sha1(), if this param is set to true then the binary
value is returned and no bin2hex() is performed.
In some cases this can be useful.
Is there any chance to commit this?

bye,
--
--- -
Michael Bretterklieber- [EMAIL PROTECTED]
JAWA Management Software GmbH - http://www.jawa.at
Liebenauer Hauptstr. 200-- privat ---
A-8041 GRAZ GSM: ++43-(0)676-93 96 698
Tel: ++43-(0)316-403274-12  E-mail:   [EMAIL PROTECTED]
Fax: ++43-(0)316-403274-10  http://www.bretterklieber.com
--- -
...the number of UNIX installations has grown to 10, with more
expected... - Dennis Ritchie and Ken Thompson, June 1972


Index: md5.c
===
RCS file: /repository/php4/ext/standard/md5.c,v
retrieving revision 1.28
diff -u -u -r1.28 md5.c
--- md5.c   24 Aug 2002 01:19:28 -  1.28
+++ md5.c   18 Feb 2003 18:56:55 -
@@ -44,22 +44,35 @@
Calculate the md5 hash of a string */
 PHP_NAMED_FUNCTION(php_if_md5)
 {
-   zval **arg;
+   zval **arg, **noBin2Hex;
char md5str[33];
PHP_MD5_CTX context;
unsigned char digest[16];
+   int argc = ZEND_NUM_ARGS();
+   short bin;

-   if (ZEND_NUM_ARGS() != 1 || zend_get_parameters_ex(1, arg) == FAILURE) {
+   if (argc  1 || argc  2  || zend_get_parameters_ex(argc, arg, noBin2Hex) == 
+FAILURE) {
WRONG_PARAM_COUNT;
}
convert_to_string_ex(arg);
-
+   if (argc  1) {
+   convert_to_boolean_ex(noBin2Hex);
+   bin = Z_BVAL_PP(noBin2Hex);
+   } else {
+   bin = 0;
+   }
+   
md5str[0] = '\0';
PHP_MD5Init(context);
PHP_MD5Update(context, Z_STRVAL_PP(arg), Z_STRLEN_PP(arg));
PHP_MD5Final(digest, context);
-   make_digest(md5str, digest);
-   RETVAL_STRING(md5str, 1);
+   if (bin) {
+   RETURN_STRINGL(digest, sizeof digest, 1);
+   } else {
+   make_digest(md5str, digest);
+   RETVAL_STRING(md5str, 1);
+   }
+
 }
 /* }}} */
 
Index: sha1.c
===
RCS file: /repository/php4/ext/standard/sha1.c,v
retrieving revision 1.3
diff -u -u -r1.3 sha1.c
--- sha1.c  24 Aug 2002 01:19:28 -  1.3
+++ sha1.c  18 Feb 2003 18:57:06 -
@@ -41,22 +41,36 @@
Calculate the sha1 hash of a string */
 PHP_FUNCTION(sha1)
 {
-   zval **arg;
+   zval **arg, **noBin2Hex;
char sha1str[41];
PHP_SHA1_CTX context;
unsigned char digest[20];
+   int argc = ZEND_NUM_ARGS();
+   short bin;

-   if (ZEND_NUM_ARGS() != 1 || zend_get_parameters_ex(1, arg) == FAILURE) {
+   if (argc  1 || argc  2  || zend_get_parameters_ex(argc, arg, noBin2Hex) == 
+FAILURE) {
WRONG_PARAM_COUNT;
}
convert_to_string_ex(arg);
+   if (argc  1) {
+   convert_to_boolean_ex(noBin2Hex);
+   bin = Z_BVAL_PP(noBin2Hex);
+   } else {
+   bin = 0;
+   }
 
sha1str[0] = '\0';
PHP_SHA1Init(context);
PHP_SHA1Update(context, Z_STRVAL_PP(arg), Z_STRLEN_PP(arg));
PHP_SHA1Final(digest, context);
make_sha1_digest(sha1str, digest);
-   RETVAL_STRING(sha1str, 1);
+   if (bin) {
+   RETURN_STRINGL(digest, sizeof digest, 1);
+   } else {
+   make_sha1_digest(sha1str, digest);
+   RETVAL_STRING(sha1str, 1);
+   }
+
 }
 
 /* }}} */



-- 
PHP Development Mailing List http://www.php.net/
To unsubscribe, visit: http://www.php.net/unsub.php


[PHP-DEV] encryption functions

2002-12-18 Thread Michael Bretterklieber
Hi,

I'm trying to provide samples for authenticating using MS-CHAP and my 
Radius PECL.

I need DES for generating the data., but it seems that des is only 
available via mcrypt-extension, but mcrypt only compiles under unix or 
am i wrong?

Its nearly useless to provide a sample for MS-CHAP only for unix, 
because MS-CHAP is often used with Windoze.

What should I do? I can add DES to my radius-PECL, but isn't it better 
to have an extension wich provides basic encryption functions for 
windows AND unix?

any suggestions?

bye,
--
--- --
Michael Bretterklieber- [EMAIL PROTECTED]   
JAWA Management Software GmbH - http://www.jawa.at
Liebenauer Hauptstr. 200-- privat 
A-8041 GRAZ GSM: ++43-(0)676-93 96 698   
Tel: ++43-(0)316-403274-12  E-mail:   [EMAIL PROTECTED]
Fax: ++43-(0)316-403274-10  http://www.bretterklieber.com
--- --
...the number of UNIX installations has grown to 10, with more 
expected... - Dennis Ritchie and Ken Thompson, June 1972



--
PHP Development Mailing List http://www.php.net/
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP-DEV] encryption functions

2002-12-18 Thread Michael Bretterklieber
Hi,

Derick Rethans wrote:


On 18 Dec 2002, Adam Voigt wrote:

 

Check out the Mcrypt manual page:

http://us2.php.net/mcrypt

In the comments several people posted links to DLL (windows) version's
of
the MCRYPT library.
   


The main problems with the library where the dynamic loading of the 
ciphers. In mcrypt version 2.5.4 this is finally addressed (released 
yesterday). I'll see if I can compile the library so that we finally can 
add this extension to our windows distributions.

This would be great!

bye,

--
--- --
Michael Bretterklieber- [EMAIL PROTECTED]   
JAWA Management Software GmbH - http://www.jawa.at
Liebenauer Hauptstr. 200-- privat 
A-8041 GRAZ GSM: ++43-(0)676-93 96 698   
Tel: ++43-(0)316-403274-12  E-mail:   [EMAIL PROTECTED]
Fax: ++43-(0)316-403274-10  http://www.bretterklieber.com
--- --
...the number of UNIX installations has grown to 10, with more 
expected... - Dennis Ritchie and Ken Thompson, June 1972



--
PHP Development Mailing List http://www.php.net/
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP-DEV] encryption functions

2002-12-18 Thread Michael Bretterklieber
Hi,

Derick Rethans wrote:


On 18 Dec 2002, Adam Voigt wrote:

 

It would be a welcome addition but wouldn't this create legal
problems with the U.S. export laws in-reference to high powered
encryption technology/software?


Wasn't his law dropped or weaked some years ago?

I can imaging if you export SKIPJACK, that you can run into problems!
Maybe only some ciphers are affected by this law and not all.


   


We're not exporting the encryptions as we will not distribute the
library, but I'm sure we'll find a site in europe to place the library
on (most likely the mcrypt site if the author wants to play with us).
The extension of course we can bundle with PHP.
 

bye,

--
--- --
Michael Bretterklieber- [EMAIL PROTECTED]   
JAWA Management Software GmbH - http://www.jawa.at
Liebenauer Hauptstr. 200-- privat 
A-8041 GRAZ GSM: ++43-(0)676-93 96 698   
Tel: ++43-(0)316-403274-12  E-mail:   [EMAIL PROTECTED]
Fax: ++43-(0)316-403274-10  http://www.bretterklieber.com
--- --
...the number of UNIX installations has grown to 10, with more 
expected... - Dennis Ritchie and Ken Thompson, June 1972



--
PHP Development Mailing List http://www.php.net/
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP-DEV] distributing windows binaries (dll's) of PECL's

2002-12-13 Thread Michael Bretterklieber
Hi,

I would like to distribute also binaries of my (our) radius PECL for
windows, because Windows users usualy don't have visualstudio to compile
the PECL.

I would like to make a bin subdirectory and then for each php-version
also a subdirectory:
PECL/radius/bin
PECL/radius/bin/php4.2.3/php_radius.dll

My question is this allowed?

Are there any other ideas howto distribute binaries of PECL's?

bye,

--
--- --
Michael Bretterklieber- [EMAIL PROTECTED]
JAWA Management Software GmbH - http://www.jawa.at
Liebenauer Hauptstr. 200-- privat 
A-8041 GRAZ GSM: ++43-(0)676-93 96 698
Tel: ++43-(0)316-403274-12  E-mail:   [EMAIL PROTECTED]
Fax: ++43-(0)316-403274-10  http://www.inode.at/mbretter
--- --
...the number of UNIX installations has grown to 10, with more
expected... - Dennis Ritchie and Ken Thompson, June 1972




--
PHP Development Mailing List http://www.php.net/
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP-DEV] distributing windows binaries (dll's) of PECL's

2002-12-13 Thread Michael Bretterklieber
Hi,

Edin Kadribasic schrieb:

Hi,

We already bundle several pecl extensions in the win32 distro
(printer, iisfunc, etc.) I could add radius to the list.

that would be great!

But how can I provide upgrades of the PECL?
then the user has to wait until a new php-version is released.

bye,



Edin

- Original Message -
From: Michael Bretterklieber [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Friday, December 13, 2002 12:29 PM
Subject: [PHP-DEV] distributing windows binaries (dll's) of PECL's




Hi,

I would like to distribute also binaries of my (our) radius PECL


for


windows, because Windows users usualy don't have visualstudio to


compile


the PECL.

I would like to make a bin subdirectory and then for each


php-version


also a subdirectory:
PECL/radius/bin
PECL/radius/bin/php4.2.3/php_radius.dll

My question is this allowed?

Are there any other ideas howto distribute binaries of PECL's?

bye,

--
--- --
Michael Bretterklieber- [EMAIL PROTECTED]
JAWA Management Software GmbH - http://www.jawa.at
Liebenauer Hauptstr. 200-- privat 
A-8041 GRAZ GSM: ++43-(0)676-93 96 698
Tel: ++43-(0)316-403274-12  E-mail:   [EMAIL PROTECTED]
Fax: ++43-(0)316-403274-10  http://www.inode.at/mbretter
--- --
...the number of UNIX installations has grown to 10, with more
expected... - Dennis Ritchie and Ken Thompson, June 1972




--
PHP Development Mailing List http://www.php.net/
To unsubscribe, visit: http://www.php.net/unsub.php





--
--- --
Michael Bretterklieber  - [EMAIL PROTECTED]	
JAWA Management Software GmbH   - http://www.jawa.at
Liebenauer Hauptstr. 200-- privat 
A-8041 GRAZ GSM: ++43-(0)676-84 03 15 712
Tel: ++43-(0)316-403274-12	E-mail:   [EMAIL PROTECTED]
Fax: ++43-(0)316-403274-10 	http://www.inode.at/mbretter
--- --
...the number of UNIX installations has grown to 10, with more expected...
	   - Dennis Ritchie and Ken Thompson, June 1972


--
PHP Development Mailing List http://www.php.net/
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP-DEV] distributing windows binaries (dll's) of PECL's

2002-12-13 Thread Michael Bretterklieber
Hi,

Edin Kadribasic schrieb:

We already bundle several pecl extensions in the win32 distro
(printer, iisfunc, etc.) I could add radius to the list.


that would be great!

But how can I provide upgrades of the PECL?
then the user has to wait until a new php-version is released.



That is a larger question. I'm afraid that there are no satisfactory
aswers to it yet. PECL infrastructure is still pretty much
non-existent. But you're welcome to help defining and implementing
it :)


My idea is to move the responsibility for stable PECL's to the 
maintainers of the PECL's. The maintainers should provide stable 
versions of PECL for the different php-versions, therefore I would like 
to make a bin directory in each PECL-dir.
pecl/radius/bin
and then
pecl/radius/bin/php4.2.3/win32/php_radius.dll
or
pecl/radius/bin/php4.2.3/freebsd4/radius.so
pecl/radius/bin/php4.2.3/linux-glibc21/radius.so
and so on.
Or maybe its better to make a cvs tag instead of different subdirs for 
different php versions?

If the distribution is generated, then its not needed to compile every 
PECL, the distributors just take the version from the appropriate dir. 
If no files are found, then the PECL is not included into the distr.

This would also help if users download the PECL from the pear-web, 
because they then have also binaries and they don't need to compile it.
.. and the pear web can be used for providing updates of PECL's.

bye,
--
--- --
Michael Bretterklieber  - [EMAIL PROTECTED]	
JAWA Management Software GmbH   - http://www.jawa.at
Liebenauer Hauptstr. 200-- privat 
A-8041 GRAZ GSM: ++43-(0)676-84 03 15 712
Tel: ++43-(0)316-403274-12	E-mail:   [EMAIL PROTECTED]
Fax: ++43-(0)316-403274-10 	http://www.inode.at/mbretter
--- --
...the number of UNIX installations has grown to 10, with more expected...
	   - Dennis Ritchie and Ken Thompson, June 1972


--
PHP Development Mailing List http://www.php.net/
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP-DEV] distributing windows binaries (dll's) of PECL's

2002-12-13 Thread Michael Bretterklieber
Hi,

Derick Rethans schrieb:

On Fri, 13 Dec 2002, Michael Bretterklieber wrote:



My idea is to move the responsibility for stable PECL's to the 
maintainers of the PECL's. The maintainers should provide stable 
versions of PECL for the different php-versions, therefore I would like 
to make a bin directory in each PECL-dir.
pecl/radius/bin
and then
pecl/radius/bin/php4.2.3/win32/php_radius.dll
or
pecl/radius/bin/php4.2.3/freebsd4/radius.so
pecl/radius/bin/php4.2.3/linux-glibc21/radius.so
and so on.
Or maybe its better to make a cvs tag instead of different subdirs for 
different php versions?


I'm very against generated binaries in CVS; CVS is not meant for that. 
We don't put tarballs of PECL classes in CVS either.

Of course having binaries in CVS is not a good solution (we (my company) 
also don't make this in our projects)

But are there any other ideas how to provide binaries of PECL's outside 
the php distributions?

Can I add the binaries to the .tgz, by adding it to the package.xml 
file, before I'm going to upload the package into the pear web?

bye,
--
--- --
Michael Bretterklieber  - [EMAIL PROTECTED]	
JAWA Management Software GmbH   - http://www.jawa.at
Liebenauer Hauptstr. 200-- privat 
A-8041 GRAZ GSM: ++43-(0)676-84 03 15 712
Tel: ++43-(0)316-403274-12	E-mail:   [EMAIL PROTECTED]
Fax: ++43-(0)316-403274-10 	http://www.inode.at/mbretter
--- --
...the number of UNIX installations has grown to 10, with more expected...
	   - Dennis Ritchie and Ken Thompson, June 1972


--
PHP Development Mailing List http://www.php.net/
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP-DEV] New PECL Radius

2002-12-09 Thread Michael Bretterklieber
Hi,

I added the new PECL radius to the cvs repository, now I have some 
questions:

My next todo is to write the documentation. This PECL follows the php 
source-code-style and not the PEAR source-code-style.
What about with the documentation of PECL's, do I have to write the docu 
for PEAR or for PHP or for both?

Another ToDo is to write PEAR classes that wrap the PECL functions, my 
questions is if I have autom. the permission to put my classes into the 
cvs repository under pear/Radius (I already have a cvs account)?

Who is responsible for Branches and Tag's in PECL's?
Am I allowed to set tags and make branches?
Has PEAR the same Tags as PHP?

If I finished all my ToDo's what must I do that this extension is autom. 
contributed with each new PHP release?

bye,
--
--- --
Michael Bretterklieber		- [EMAIL PROTECTED]	
JAWA Management Software GmbH 	- http://www.jawa.at
Liebenauer Hauptstr. 200	-- privat 
A-8041 GRAZ			GSM: ++43-(0)676-93 96 698		
Tel: ++43-(0)316-403274-12	E-mail:   [EMAIL PROTECTED]
Fax: ++43-(0)316-403274-10 	http://www.inode.at/mbretter
--- --
...the number of UNIX installations has grown to 10, with more expected...
	   - Dennis Ritchie and Ken Thompson, June 1972


--
PHP Development Mailing List http://www.php.net/
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP-DEV] CVS Account Request: mbretter

2002-12-04 Thread Michael Bretterklieber
new PECL radius. Frank M. Kromann wrote that i should request cvs-access.

-- 
PHP Development Mailing List http://www.php.net/
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP-DEV] radius extension

2002-11-26 Thread Michael Bretterklieber
Hi,

I made a radius extension for PHP.

This extension is just a wrapper for the libradius of FreeBSD, but I 
imported this lib into the extension-dir and therefore it doesen't need 
external libs, its just --enable-radius.

My questions are:
- Is this extension welcome in the PHP-Project?
- How to proceed, where should I send my extension?
- Windows: It should also build under windows with some modifications, 
but I have nothing found in the documentation about the build-process 
under windows = HowTo?

bye,
--
--- --
Michael Bretterklieber		- [EMAIL PROTECTED]	
JAWA Management Software GmbH 	- http://www.jawa.at
Liebenauer Hauptstr. 200	-- privat 
A-8041 GRAZ			GSM: ++43-(0)676-93 96 698		
Tel: ++43-(0)316-403274-12	E-mail:   [EMAIL PROTECTED]
Fax: ++43-(0)316-403274-10 	http://www.inode.at/mbretter
--- --
...the number of UNIX installations has grown to 10, with more expected...
	   - Dennis Ritchie and Ken Thompson, June 1972


--
PHP Development Mailing List http://www.php.net/
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP-DEV] radius extension

2002-11-26 Thread Michael Bretterklieber


Antony Dovgal schrieb:

On Tue, 26 Nov 2002 10:33:02 +0100
Michael Bretterklieber [EMAIL PROTECTED] wrote:



- Windows: It should also build under windows with some modifications, 
but I have nothing found in the documentation about the build-process 
under windows = HowTo?

I suppose you need to read this:
http://www.php.net/manual/en/install.windows.php

but this is for the end-user and not for a developer.

I found in each extension .dsp files, this are files from 
MS-Visual-Studio. Before I can start building my extension I must have 
this file and I have no idea how to make such file.

bye,
--
--- --
Michael Bretterklieber		- [EMAIL PROTECTED]	
JAWA Management Software GmbH 	- http://www.jawa.at
Liebenauer Hauptstr. 200	-- privat 
A-8041 GRAZ			GSM: ++43-(0)676-93 96 698		
Tel: ++43-(0)316-403274-12	E-mail:   [EMAIL PROTECTED]
Fax: ++43-(0)316-403274-10 	http://www.inode.at/mbretter
--- --
...the number of UNIX installations has grown to 10, with more expected...
	   - Dennis Ritchie and Ken Thompson, June 1972


--
PHP Development Mailing List http://www.php.net/
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP-DEV] radius extension

2002-11-26 Thread Michael Bretterklieber
Hi,




- How to proceed, where should I send my extension?



People at [EMAIL PROTECTED] will get you on the track.

of course I have also to write wrapper classes (PEAR-Package), because 
the API of libradius is at very low-level.




- Windows: It should also build under windows with some modifications, 
but I have nothing found in the documentation about the build-process 
under windows = HowTo?


The usual thing is to copy over the *.dsp file from an
already existing extension and just add the necessary
changes.

ok, will try it

bye,
--
--- --
Michael Bretterklieber		- [EMAIL PROTECTED]	
JAWA Management Software GmbH 	- http://www.jawa.at
Liebenauer Hauptstr. 200	-- privat 
A-8041 GRAZ			GSM: ++43-(0)676-93 96 698		
Tel: ++43-(0)316-403274-12	E-mail:   [EMAIL PROTECTED]
Fax: ++43-(0)316-403274-10 	http://www.inode.at/mbretter
--- --
...the number of UNIX installations has grown to 10, with more expected...
	   - Dennis Ritchie and Ken Thompson, June 1972


--
PHP Development Mailing List http://www.php.net/
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP-DEV] radius extension

2002-11-26 Thread Michael Bretterklieber
Hi,


Chandler, Jacob R schrieb:

Is this to connect to a radius server? If so, there is no need to write

yes.


an extension for this. I have written one that will use all built in php
functions so that there are no additional libraries necessary.
Currently, it only connects to the specified server and authenticates,
but it is written as a class and could be easily extended.

My idea was to write just a wrapper for an existing implementation and 
not to spend so much time for re-implementing a radius-client-lib. The 
quality of this library is very good (its a part of FreeBSD) and it 
implements radius with all features (auth, accounting), also 
vendor-specific (MSoft, ...) parts are implemented. Implementing a full 
featured radius-lib is a very time expensive task.
I imported the lib into the extension dir, therefore no external libs 
are used.
I also can easy re-import the lib if changes (bugfixes) has been made.

Of course having a class just written in php has also his advantages.

Why can't exist both together?

bye,
--
--- --
Michael Bretterklieber		- [EMAIL PROTECTED]	
JAWA Management Software GmbH 	- http://www.jawa.at
Liebenauer Hauptstr. 200	-- privat 
A-8041 GRAZ			GSM: ++43-(0)676-93 96 698		
Tel: ++43-(0)316-403274-12	E-mail:   [EMAIL PROTECTED]
Fax: ++43-(0)316-403274-10 	http://www.inode.at/mbretter
--- --
...the number of UNIX installations has grown to 10, with more expected...
	   - Dennis Ritchie and Ken Thompson, June 1972


--
PHP Development Mailing List http://www.php.net/
To unsubscribe, visit: http://www.php.net/unsub.php