Re: [PHP-DEV] [PATCH] bug 12655: datetime format in mssql extension

2002-04-16 Thread derick

Hello Steve,

can you please make a unified diff (diff -u)? That is much more readable.

Derick

On Tue, 16 Apr 2002, steve dillon wrote:

> The 4.1.2 (and before) mssql entension returns datetime fields as a locale
> specific format eg:  Oct 30 2001  7:44PM,  which doesn't allow access to the
> seconds or milliseconds field of datetime.  I patched my copy of mssql to
> have a php.ini entry mssql.longdatetime which tells mssql to return datetime
> in the long format: eg: 2001-10-30 19:44:54.206.   99% of the changes are in
> php_mssql.c with php_mssql.h just needing a variable added to it.  Diff of
> php4.1.2 php_mssql.c => my patch ver
> 
> 45,46c45,46
> < static void php_mssql_get_column_content_with_type(mssql_link
> *mssql_ptr,int offset,zval *result, int column_type);
> < static void php_mssql_get_column_content_without_type(mssql_link
> *mssql_ptr,int offset,zval *result, int column_type);
> ---
> > static void php_mssql_get_column_content_with_type(mssql_link
> *mssql_ptr,int offset,zval *result, int column_type,long longdatetime);
> > static void php_mssql_get_column_content_without_type(mssql_link
> *mssql_ptr,int offset,zval *result, int column_type,long longdatetime);
> 136a137
> > STD_PHP_INI_BOOLEAN("mssql.longdatetime",   "0",
> PHP_INI_ALL,  OnUpdateBool,   longdatetime,
> zend_mssql_globals,   mssql_globals)
> 739c740
> < static void php_mssql_get_column_content_with_type(mssql_link
> *mssql_ptr,int offset,zval *result, int column_type)
> ---
> > static void php_mssql_get_column_content_with_type(mssql_link
> *mssql_ptr,int offset,zval *result, int column_type,long longdatetime)
> 795,801c796,823
> < char *res_buf;
> < int res_length =
> dbdatlen(mssql_ptr->link,offset);
> < if (column_type == SQLDATETIM4) res_length
> += 14;
> < if (column_type == SQLDATETIME) res_length
> += 10;
> < 
> < res_buf = (char *) emalloc(res_length + 1);
> < res_length =
> dbconvert(NULL,column_type,dbdata(mssql_ptr->link,offset),
> res_length,SQLCHAR,res_buf,-1);
> ---
> > char *res_buf; > int res_length;
> > 
> > if (column_type == SQLDATETIME &&  longdatetime ) {
> >/* if it is the long date time format and user wants the
> extended date/time (with seconds and millis)*/
> >/* then output: 2001-03-15 23:06:36.000 */
> >DBDATEREC dr;
> > 
> >if (dbdatecrack(mssql_ptr->link,&dr,(DBDATETIME
> *)dbdata(mssql_ptr->link,offset)) != SUCCEED) {
> >   php_error(E_ERROR,"MS SQL:  column %d unable to convert
> datetime field", offset);
> >   ZVAL_FALSE(result);
> >   /* no further processing */
> >   return;
> >}
> > 
> >res_length = 23;
> >res_buf = (char *) emalloc(res_length+1);
> >sprintf(res_buf,"%4d-%02d-%02d %02d:%02d:%02d.%03d",
> >
> dr.year,dr.month,dr.day,dr.hour,dr.minute,dr.second,dr.millisecond);
> > 
> > } else {
> >res_length = dbdatlen(mssql_ptr->link,offset);
> >if (column_type == SQLDATETIM4) res_length += 14;
> >if (column_type == SQLDATETIME) res_length += 10;
> > 
> >res_buf = (char *) emalloc(res_length + 1);
> >res_length =
> dbconvert(NULL,column_type,dbdata(mssql_ptr->link,offset),
> res_length,SQLCHAR,res_buf,-1);
> > }
> 814c836
> < static void php_mssql_get_column_content_without_type(mssql_link
> *mssql_ptr,int offset,zval *result, int column_type)
> ---
> > static void php_mssql_get_column_content_without_type(mssql_link
> *mssql_ptr,int offset,zval *result, int column_type, long unused)
> 858a881,885
> >/* Ugh.. It would be cleaner to fetch the longdatetime in */
> >/* get_column_content_with_type, but doing the thread-safe lookup */
> >/* for every row that has a datetime field seems bad also.  So get it
> */
> >/* here and pass the value in  */
> >long longdatetime = MS_SQL_G(longdatetime);
> 916c943
> < MS_SQL_G(get_column_content(mssql_ptr, j+1,
> &result->data[i][j], column_types[j]));
> ---
> > MS_SQL_G(get_column_content(mssql_ptr, j+1,
> &result->data[i][j], column_types[j],longdatetime));
> 
> 

---
 Did I help you? Consider a gift:
  http://www.amazon.co.uk/exec/obidos/registry/SLCB276UZU8B
---
  PHP: Scripting the Web - [EMAIL PROTECTED]
All your branches are belong to me!
SRM: Script Running Machine - www.vl-srm.net
-

[PHP-DEV] mhash and C++ header (both HEAD and 4.2.0)

2002-04-16 Thread Yasuo Ohgaki

Some recent change(s) must be responsile for this error...

In file included from /home/yohgaki/cvs/php/HEAD/ext/mhash/mhash.c:30:
/usr/local/include/mhash.h:31: parse error before `MHash'
/usr/local/include/mhash.h:35: warning: data definition has no type or 
storage class
/usr/local/include/mhash.h:36: parse error before `<'
/usr/local/include/mhash.h:45: parse error before `*'
/usr/local/include/mhash.h:45: warning: data definition has no type or 
storage class
/usr/local/include/mhash.h:46: parse error before `*'
/usr/local/include/mhash.h:46: parse error before `NKey'
/usr/local/include/mhash.h:46: warning: data definition has no type or 
storage class

Build system does not work with C++ header again...

--
Yasuo Ohgaki


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




Re: [PHP-DEV] PHP 4.2.0 RC4

2002-04-16 Thread derick

Hello Aaron,

if this fixes the problem, this patch should also go into PHP_4_2_0.

regards,
Derick

On Tue, 16 Apr 2002, Aaron Bannert wrote:

> On Tue, Apr 16, 2002 at 10:56:08AM +0200, Balazs Nagy wrote:
> > Excusez moi, I had a hard time in the last D&D3 session when I wrote
> > this.  Here's the dump:
> 
> Give the attached patch a try.
> 
> Looks like we're just trying to use the server_context before it's been
> initialized. (Thanks for Cliff for pointing this message out to me.)
> 
> -aaron
> 
> 
> Index: sapi_apache2.c
> ===
> RCS file: /repository/php4/sapi/apache2filter/sapi_apache2.c,v
> retrieving revision 1.61.2.9
> diff -u -u -r1.61.2.9 sapi_apache2.c
> --- sapi_apache2.c12 Apr 2002 22:26:28 -  1.61.2.9
> +++ sapi_apache2.c16 Apr 2002 22:49:53 -
> @@ -211,7 +211,14 @@
>* line.  Not sure if this is correct, but it mirrors what happens
>* with Apache 1.3 -- rbb
>*/
> - ap_log_error(APLOG_MARK, APLOG_ERR | APLOG_NOERRNO | APLOG_STARTUP, 0, 
>ctx->r->server, "%s", msg);
> + if (ctx == NULL) { /* we haven't initialized our ctx yet, oh well */
> + ap_log_error(APLOG_MARK, APLOG_ERR | APLOG_NOERRNO | APLOG_STARTUP,
> +  0, NULL, "%s", msg);
> + }
> + else {
> + ap_log_error(APLOG_MARK, APLOG_ERR | APLOG_NOERRNO | APLOG_STARTUP,
> +  0, ctx->r->server, "%s", msg);
> + }
>  }
>  
>  static sapi_module_struct apache2_sapi_module = {
> 
> -- 
> PHP Development Mailing List 
> To unsubscribe, visit: http://www.php.net/unsub.php
> 

---
 Did I help you? Consider a gift:
  http://www.amazon.co.uk/exec/obidos/registry/SLCB276UZU8B
---
  PHP: Scripting the Web - [EMAIL PROTECTED]
All your branches are belong to me!
SRM: Script Running Machine - www.vl-srm.net
---


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




Re: [PHP-DEV] Re: [PHP-CVS] cvs: php4 /ext/tokenizer config.m4

2002-04-16 Thread Sebastian Bergmann

Sebastian Bergmann wrote:
>   I know. But I don't know, what to add there :-/

  Stupid me, I did not look at internal_functions_win32.c, but at
  config.w32.h :-)

-- 
  Sebastian Bergmann
  http://sebastian-bergmann.de/ http://phpOpenTracker.de/

  Did I help you? Consider a gift: http://wishlist.sebastian-bergmann.de/

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




[PHP-DEV] Win32 build broken

2002-04-16 Thread Sebastian Bergmann

  c:\home\php\php4\main\php_ini.c(271): warning C4013:
  'S_ISDIR': undefined

  php_ini.obj: error LNK2001: Unresolved external symbol _S_ISDIR

-- 
  Sebastian Bergmann
  http://sebastian-bergmann.de/ http://phpOpenTracker.de/

  Did I help you? Consider a gift: http://wishlist.sebastian-bergmann.de/

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




Re: [PHP-DEV] Re: [PHP-CVS] cvs: php4 /ext/tokenizer config.m4

2002-04-16 Thread Sebastian Bergmann

"Stig S. Bakken" wrote:
> internal_functions_win32.c?

  I know. But I don't know, what to add there :-/

-- 
  Sebastian Bergmann
  http://sebastian-bergmann.de/ http://phpOpenTracker.de/

  Did I help you? Consider a gift: http://wishlist.sebastian-bergmann.de/

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




RE: [PHP-DEV] The PHP Platform

2002-04-16 Thread Dietrich Ayala

here's some reasons why XML in PHP does not compare favorably to XML in the MS 
platform:

1. None of the XML related extensions work together. SAX, XSLT, DOM, XML Schema are 
part of the same core in MSXML. There is
incredible power and flexibility in that alone.

2. None of the XML extensions beyond Expat are compiled by default. So to the hosted 
masses, or those without control over their
server environment, these extensions may as well not even exist.

(getting your hosting provider to add new extensions is a longshot. in my experience 
it rarely ever happens. even if it does, you
have go through it all over again if you switch hosts)

dietrich

> -Original Message-
> From: Stefan Livieratos [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, April 16, 2002 5:36 PM
> To: [EMAIL PROTECTED]; Dave Mertens
> Subject: Re: [PHP-DEV] The PHP Platform
>
>
> Hi,
>
> Dave Mertens wrote:
>
> > That all great. Almost every company (even google) has a SOAP interface. SOAP 
>relies for a big part on XML.
> > We (ISM, the company i work for) write e-commerce, b2c, b2b, extranet and portal 
>systems.
> > We have to connect several interface to the website. And SOAP makes that much 
>easier.
> >
> > And i know that PHP can also writes console apps with forking, getopt, etc.
> > What i really miss in PHP is a good XML parser. And because i've been working with 
>the MS parser for 2 years now, i'm
> not completely nutral. But i must say that working with the MS parser is realy fun.
> >
>
> Could you please elaborate a little bit more on this? What is not good
> about the PHP XML Parser (Expat) and why is the MSXML Parser superior to
> or "more fun" than the XML extensions of PHP (XML, XSLT, DOMXML)?
>
> The only difference I see featurewise is that MSXML offers XML Schema
> validation which is not yet supported by domxml (libxml2).
>
> Regards,
> Stefan Livieratos
>   --
>
> ICS Plus
> Internet Consulting + Services
> ==
> Aeussere Brucker Str. 51
> D-91058 Erlangen
> Germany
> ==
> Tel: +49 9131 127733
> Fax: +49 9131 127744
> E-mail : [EMAIL PROTECTED]
> Web: http://www.icsplus.de
> ==
>
>
> --
> PHP Development Mailing List 
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>


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




Re: [PHP-DEV] The PHP Platform

2002-04-16 Thread fabwash

and Google uses php for its website yay!

- Original Message -
From: "Stefan Livieratos" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>; "Dave Mertens" <[EMAIL PROTECTED]>
Sent: Tuesday, April 16, 2002 8:36 PM
Subject: Re: [PHP-DEV] The PHP Platform


> Hi,
>
> Dave Mertens wrote:
>
> > That all great. Almost every company (even google) has a SOAP interface.
SOAP relies for a big part on XML.
> > We (ISM, the company i work for) write e-commerce, b2c, b2b, extranet
and portal systems.
> > We have to connect several interface to the website. And SOAP makes that
much easier.
> >
> > And i know that PHP can also writes console apps with forking, getopt,
etc.
> > What i really miss in PHP is a good XML parser. And because i've been
working with the MS parser for 2 years now, i'm not completely nutral. But i
must say that working with the MS parser is realy fun.
> >
>
> Could you please elaborate a little bit more on this? What is not good
> about the PHP XML Parser (Expat) and why is the MSXML Parser superior to
> or "more fun" than the XML extensions of PHP (XML, XSLT, DOMXML)?
>
> The only difference I see featurewise is that MSXML offers XML Schema
> validation which is not yet supported by domxml (libxml2).
>
> Regards,
> Stefan Livieratos
>   --
>
> ICS Plus
> Internet Consulting + Services
> ==
> Aeussere Brucker Str. 51
> D-91058 Erlangen
> Germany
> ==
> Tel: +49 9131 127733
> Fax: +49 9131 127744
> E-mail : [EMAIL PROTECTED]
> Web: http://www.icsplus.de
> ==
>
>
> --
> PHP Development Mailing List 
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>

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




Re: [PHP-DEV] The PHP Platform

2002-04-16 Thread Stefan Livieratos

Hi,

Dave Mertens wrote:

> That all great. Almost every company (even google) has a SOAP interface. SOAP relies 
>for a big part on XML.
> We (ISM, the company i work for) write e-commerce, b2c, b2b, extranet and portal 
>systems.
> We have to connect several interface to the website. And SOAP makes that much easier.
> 
> And i know that PHP can also writes console apps with forking, getopt, etc. 
> What i really miss in PHP is a good XML parser. And because i've been working with 
>the MS parser for 2 years now, i'm not completely nutral. But i must say that working 
>with the MS parser is realy fun.
> 

Could you please elaborate a little bit more on this? What is not good 
about the PHP XML Parser (Expat) and why is the MSXML Parser superior to 
or "more fun" than the XML extensions of PHP (XML, XSLT, DOMXML)?

The only difference I see featurewise is that MSXML offers XML Schema 
validation which is not yet supported by domxml (libxml2).

Regards,
Stefan Livieratos
  --

ICS Plus
Internet Consulting + Services
==
Aeussere Brucker Str. 51
D-91058 Erlangen
Germany
==
Tel: +49 9131 127733
Fax: +49 9131 127744
E-mail : [EMAIL PROTECTED]
Web: http://www.icsplus.de
==


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




Re: [PHP-DEV] The PHP Platform

2002-04-16 Thread Dave Mertens

On Tue, Apr 16, 2002 at 07:08:38PM -0400, Ken Egervari wrote:
> The issue with the phpclasses repository is that none of the classes really
> 'work together' much like the Java and .NET classes.  As you have known,
> extremephp.org was a project I started awhile back to do such a framework
> (well, actually a lot of subframeworks meshed into one).  Nonetheless, this
> hasn't happened with PHP.  Also, the people who submit to phpclasses.org
> don't have to be super architects.  This is good and bad.  The bad thing is,
> many of the classes there aren't as good as they could be because 1 mind was
> behind the wheel and lots of times the classes even brake standard OO design
> heuristics.  When someone with a lot of design experience looks at the
> classes, they say, "hmm.. i wonder if all the work done on PHP is this
> questionable.".  You can't wind everyone, but not too much work has been
> done to make solid OO frameworks and tools.  I tried.. but the project is
> too damn big.
I don't think that their's something wrong behind PHP. I never saw such a clean and 
easy engine as PHP in fact.
With the projects i see today at the company i work, it's not about webpages anymore.
Customers want these days webapplications, connected with mostly several back-ends.

Most companies converted their back-ends from EDI, CSV and other formats to XML. And 
most of it can be requested with SOAP.
A big role in this is Microsoft. Microsoft is really pushing XML and SOAP. Which is 
for everybody a good thing.

The only thing that i need is a good XML parser in PHP. And after MS, came Sun with 
Java2 webservices. So why wouldn't PHP follow.
XML is a big part of the future, and PHP misses a good XML Parser.

Futher, the .NET classes are also 'collections' of classes. Each collection has it own 
related classes.
And where .NET has base classes like data, net, xml, text, etc, PHP has NET_, XML_, 
PEAR DB, etc.

Are pear is still growing. And pear is more variated than the .NET base classes.

> I don't think it has too much to do with bad Fame.  For instance, several
> large companies still use php, including the work I did on altavista and
> Rackspace and audiogalaxy use PHP as well.
I'm not saying PHP has a bad fame. I only saying that most customers even don't know 
the name PHP. But with all the MS bugs, everybody knows the Microsoft tools..
So even the bugs is helping Microsoft.


> Sure, more well known sites that
> use PHP would increase its popularity, but what I really think is that PHP
> needs a real platform that makes it even faster to develop websites and
> client-side tools - or it's going to fall behind.  It's really as simple as
> that.
Websites are already fast to write in PHP. Web applications are harder to write in PHP.
In ASP i do a lot with the application session. It holds important application data. 
In PHP i simulate this with an serialized array that is read from file every request.

And maybe i'm not the right person to say what's good and not. I work a lot with both 
ASP and PHP. And i only tell what i'm seeing.

That's all
And for now, good night everybody!

Dave Mertens

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




Re: [PHP-DEV] The PHP Platform

2002-04-16 Thread Ken Egervari

The issue with the phpclasses repository is that none of the classes really
'work together' much like the Java and .NET classes.  As you have known,
extremephp.org was a project I started awhile back to do such a framework
(well, actually a lot of subframeworks meshed into one).  Nonetheless, this
hasn't happened with PHP.  Also, the people who submit to phpclasses.org
don't have to be super architects.  This is good and bad.  The bad thing is,
many of the classes there aren't as good as they could be because 1 mind was
behind the wheel and lots of times the classes even brake standard OO design
heuristics.  When someone with a lot of design experience looks at the
classes, they say, "hmm.. i wonder if all the work done on PHP is this
questionable.".  You can't wind everyone, but not too much work has been
done to make solid OO frameworks and tools.  I tried.. but the project is
too damn big.

I don't think it has too much to do with bad Fame.  For instance, several
large companies still use php, including the work I did on altavista and
Rackspace and audiogalaxy use PHP as well.  Sure, more well known sites that
use PHP would increase its popularity, but what I really think is that PHP
needs a real platform that makes it even faster to develop websites and
client-side tools - or it's going to fall behind.  It's really as simple as
that.

Regards,
Ken Egervari

- Original Message -
From: "Manuel Lemos" <[EMAIL PROTECTED]>
To: "Ken Egervari" <[EMAIL PROTECTED]>
Sent: Tuesday, April 16, 2002 7:00 PM
Subject: Re: [PHP-DEV] The PHP Platform


> Hello,
>
> Ken Egervari wrote:
> >
> > I'd have to agree with Dave.  PHP is too far behind and for those that
> > didn't agree with earlier post that started this entire topic about
> > developing a a PHP Platform, this is the reality that we all face.  I
for
> > one have been using Java and .Net for all my applications now.  PHP just
> > doesn't come into the picture any longer.  I can't see any performance
or
> > coding time benefits that justify using it.  The fact that I write
something
> > in Java and 20x more people can make use of it is even more gratifying.
How
> > long as PEAR being around?  Maybe not nearly enough as Java, but don't
even
>
> You are touching a sensitive key. PEAR aimed to be like CPAN but since
> contributing is reserved to a few privileged minds, there is no
> adherence to it.
>
> OTOH, anybody contribute for instance to the PHP Classes repository,
> just like to CPAN. The advantage against CPAN is that the PHP Classes
> repository assures an guaranteed audience of tens of thousands of PHP
> users that are eager to learn abour new classes. Here you may see the
> stats about over 32.000 users that get notifications about all the new
> content in there:
>
>
> > have a great collections framework, lack of standard xml parsers and
even
> > tools to make our coding easier.  I'm a convert I suppose.  I'm loosing
> > everyday as I see PHP code already in production and that I can't take
the
> > facilities of .NET or Java as a whole.  It's sad really that the PHP
> > community isn't large enough to keep up.  I too how ze2 will justify any
> > code i've written, but I look now upon it as a very large waste.  It's
> > unfortunate.
>
>
> Too bad people are addressing the wrong problem. The greatest appeal of
> Java and .Net for many companies is that unlike with PHP, they offer
> more perspectives of profiting from investing on them. PHP has the bad
> fame of being something that only poor people use. You don't see big
> names being advertised to use PHP that would clear that bad fame of PHP.
>
> Regards,
> Manuel Lemos
>


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




Re: [PHP-DEV] PHP 4.2.0 RC4

2002-04-16 Thread Aaron Bannert

On Tue, Apr 16, 2002 at 10:56:08AM +0200, Balazs Nagy wrote:
> Excusez moi, I had a hard time in the last D&D3 session when I wrote
> this.  Here's the dump:

Give the attached patch a try.

Looks like we're just trying to use the server_context before it's been
initialized. (Thanks for Cliff for pointing this message out to me.)

-aaron


Index: sapi_apache2.c
===
RCS file: /repository/php4/sapi/apache2filter/sapi_apache2.c,v
retrieving revision 1.61.2.9
diff -u -u -r1.61.2.9 sapi_apache2.c
--- sapi_apache2.c  12 Apr 2002 22:26:28 -  1.61.2.9
+++ sapi_apache2.c  16 Apr 2002 22:49:53 -
@@ -211,7 +211,14 @@
 * line.  Not sure if this is correct, but it mirrors what happens
 * with Apache 1.3 -- rbb
 */
-   ap_log_error(APLOG_MARK, APLOG_ERR | APLOG_NOERRNO | APLOG_STARTUP, 0, 
ctx->r->server, "%s", msg);
+   if (ctx == NULL) { /* we haven't initialized our ctx yet, oh well */
+   ap_log_error(APLOG_MARK, APLOG_ERR | APLOG_NOERRNO | APLOG_STARTUP,
+0, NULL, "%s", msg);
+   }
+   else {
+   ap_log_error(APLOG_MARK, APLOG_ERR | APLOG_NOERRNO | APLOG_STARTUP,
+0, ctx->r->server, "%s", msg);
+   }
 }
 
 static sapi_module_struct apache2_sapi_module = {

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




[PHP-DEV] Proposed additional behaviour of str_replace()

2002-04-16 Thread Mårten Gustafsson

Is there anyone else than me that would find it useful to be able to do:

 'FOO',
'bar'   => 'BAR');
// Prints "FOO BAR"
echo str_replace($replacements, $string);
?>

With current behaviour one has to do:

 'FOO',
'bar'   => 'BAR');
// Prints "FOO BAR"
echo str_replace(array_keys($replacements), array_values($string));
?>





regards,
Marten.


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




Re: [PHP-DEV] Re: [PHP-CVS] cvs: php4 /ext/tokenizer config.m4

2002-04-16 Thread Stig S. Bakken

internal_functions_win32.c?

 - Stig

On Tue, 2002-04-16 at 16:54, Sebastian Bergmann wrote:
> Stig Bakken wrote:
> > ssb Tue Apr 16 01:37:51 2002 EDT
> >
> >   Modified files:
> > /php4/ext/tokenizer config.m4
> >   Log:
> >   * build tokenizer by default
> 
>   The following patch makes ext/tokenizer compile by default on Win32,
>   too, but the extension is not 'activated'. Why?
> 
> Index: php4dll.dsp
> ===
> RCS file: /repository/php4/win32/php4dll.dsp,v
> retrieving revision 1.26
> diff -u -2 -b -w -B -r1.26 php4dll.dsp
> --- php4dll.dsp 12 Apr 2002 05:35:50 -  1.26
> +++ php4dll.dsp 16 Apr 2002 14:53:28 -
> @@ -865,4 +865,8 @@
>  # Begin Source File
> 
> +SOURCE=..\ext\tokenizer\tokenizer.c
> +# End Source File
> +# Begin Source File
> +
>  SOURCE=..\ext\wddx\wddx.c
>  # ADD CPP /I "..\ext\xml\expat\xmltok" /I "..\ext\xml\expat\xmlparse"
> Index: php4dllts.dsp
> ===
> RCS file: /repository/php4/win32/php4dllts.dsp,v
> retrieving revision 1.61
> diff -u -2 -b -w -B -r1.61 php4dllts.dsp
> --- php4dllts.dsp   11 Apr 2002 17:52:26 -  1.61
> +++ php4dllts.dsp   16 Apr 2002 14:53:29 -
> @@ -455,4 +455,8 @@
>  # Begin Source File
> 
> +SOURCE=..\ext\tokenizer\tokenizer.c
> +# End Source File
> +# Begin Source File
> +
>  SOURCE=..\ext\wddx\wddx.c
> 
> -- 
>   Sebastian Bergmann
>   http://sebastian-bergmann.de/ http://phpOpenTracker.de/
> 
>   Did I help you? Consider a gift: http://wishlist.sebastian-bergmann.de/
> 
> -- 
> PHP Development Mailing List 
> To unsubscribe, visit: http://www.php.net/unsub.php


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




Re: [PHP-DEV] RFC: PG(allow_url_fopen) slight behaviour change

2002-04-16 Thread Wez Furlong

On 16/04/02, "Stig S. Bakken" <[EMAIL PROTECTED]> wrote:
> I think this is fine.

Good - it's now in HEAD.

> > wrapperallow_url_fopen=onallow_url_fopen=off
> > 
> > http   allowed   disallowed
> > ftpallowed   disallowed
> > bzip2  allowed   allowed
> > zlib   allowed   allowed
> > user   allowed   allowed




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




Re: [PHP-DEV] RFC: PG(allow_url_fopen) slight behaviour change

2002-04-16 Thread Stig S. Bakken

I think this is fine.

 - Stig

On Tue, 2002-04-16 at 19:06, Wez Furlong wrote:
> There is currently (and probably has been for quite a few releases) a
> crash bug where allow_url_fopen can not be set on a per-virtual host basis.
> That's because wrappers are only initialized on module init if
> PG(allow_url_fopen) is set, rather than request init.
> 
> I plan to change it so that wrappers are *always* initialized.
> 
> So that the allow_url_fopen setting is respected, I'm adding an is_url
> field to the wrapper structure.  If a wrapper has this field set and
> PG(allow_url_fopen) is not set, the streams system will display a warning
> stating that URLs are not allowed.
> 
> Now, the question is: was the original intention of the allow_url_fopen
> setting to prevent people from running scripts that contact the network?
> If so, it would be OK to have the zlib, bzip2 and user-space wrappers
> classed as not being a url for the purposes of this security/policy check?
> 
> Heres a chart summarizing the new behaviour:
> 
> wrapperallow_url_fopen=onallow_url_fopen=off
> 
> http   allowed   disallowed
> ftpallowed   disallowed
> bzip2  allowed   allowed
> zlib   allowed   allowed
> user   allowed   allowed
> 
> user-space streams could potentially access the network using
> fsockopen etc., but I don't think this is an issue because the
> admin can then disable the use of that function as well.
> 
> Are there any reasons against this?
> 
> --Wez.
> 
> -- 
> Wez Furlong
> The Brain Room Ltd.
> 
> 
> -- 
> PHP Development Mailing List 
> To unsubscribe, visit: http://www.php.net/unsub.php


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




[PHP-DEV] [PATCH] bug 12655: datetime format in mssql extension

2002-04-16 Thread steve dillon
Title: [PATCH] bug 12655:  datetime format in mssql extension





The 4.1.2 (and before) mssql entension returns datetime fields as a locale specific format eg:  Oct 30 2001  7:44PM,  which doesn't allow access to the seconds or milliseconds field of datetime.  I patched my copy of mssql to have a php.ini entry mssql.longdatetime which tells mssql to return datetime in the long format: eg: 2001-10-30 19:44:54.206.   99% of the changes are in php_mssql.c with php_mssql.h just needing a variable added to it.  Diff of php4.1.2 php_mssql.c => my patch ver

45,46c45,46
< static void php_mssql_get_column_content_with_type(mssql_link *mssql_ptr,int offset,zval *result, int column_type);
< static void php_mssql_get_column_content_without_type(mssql_link *mssql_ptr,int offset,zval *result, int column_type);

---
> static void php_mssql_get_column_content_with_type(mssql_link *mssql_ptr,int offset,zval *result, int column_type,long longdatetime);

> static void php_mssql_get_column_content_without_type(mssql_link *mssql_ptr,int offset,zval *result, int column_type,long longdatetime);

136a137
>   STD_PHP_INI_BOOLEAN("mssql.longdatetime",           "0",    PHP_INI_ALL,    OnUpdateBool,   longdatetime,               zend_mssql_globals,     mssql_globals)

739c740
< static void php_mssql_get_column_content_with_type(mssql_link *mssql_ptr,int offset,zval *result, int column_type)
---
> static void php_mssql_get_column_content_with_type(mssql_link *mssql_ptr,int offset,zval *result, int column_type,long longdatetime)

795,801c796,823
<               char *res_buf;
<               int res_length = dbdatlen(mssql_ptr->link,offset);
<               if (column_type == SQLDATETIM4) res_length += 14;
<               if (column_type == SQLDATETIME) res_length += 10;
<           
<               res_buf = (char *) emalloc(res_length + 1);
<               res_length = dbconvert(NULL,column_type,dbdata(mssql_ptr->link,offset), res_length,SQLCHAR,res_buf,-1);

---
>               char *res_buf; > int res_length;
> 
> if (column_type == SQLDATETIME &&  longdatetime ) {
>    /* if it is the long date time format and user wants the extended date/time (with seconds and millis)*/

>    /* then output: 2001-03-15 23:06:36.000 */
>    DBDATEREC dr;
> 
>    if (dbdatecrack(mssql_ptr->link,&dr,(DBDATETIME *)dbdata(mssql_ptr->link,offset)) != SUCCEED) {
>   php_error(E_ERROR,"MS SQL:  column %d unable to convert datetime field", offset);
>   ZVAL_FALSE(result);
>   /* no further processing */
>   return;
>    }
> 
>    res_length = 23;
>    res_buf = (char *) emalloc(res_length+1);
>    sprintf(res_buf,"%4d-%02d-%02d %02d:%02d:%02d.%03d",
>    dr.year,dr.month,dr.day,dr.hour,dr.minute,dr.second,dr.millisecond);
> 
> } else {
>    res_length = dbdatlen(mssql_ptr->link,offset);
>    if (column_type == SQLDATETIM4) res_length += 14;
>    if (column_type == SQLDATETIME) res_length += 10;
> 
>    res_buf = (char *) emalloc(res_length + 1);
>    res_length = dbconvert(NULL,column_type,dbdata(mssql_ptr->link,offset), res_length,SQLCHAR,res_buf,-1);

> }
814c836
< static void php_mssql_get_column_content_without_type(mssql_link *mssql_ptr,int offset,zval *result, int column_type)
---
> static void php_mssql_get_column_content_without_type(mssql_link *mssql_ptr,int offset,zval *result, int column_type, long unused)

858a881,885
>    /* Ugh.. It would be cleaner to fetch the longdatetime in */
>    /* get_column_content_with_type, but doing the thread-safe lookup */
>    /* for every row that has a datetime field seems bad also.  So get it */
>    /* here and pass the value in  */
>    long longdatetime = MS_SQL_G(longdatetime);
916c943
<           MS_SQL_G(get_column_content(mssql_ptr, j+1, &result->data[i][j], column_types[j]));
---
>           MS_SQL_G(get_column_content(mssql_ptr, j+1, &result->data[i][j], column_types[j],longdatetime));




Re: [PHP-DEV] Re: [PHP-EVANGELISM] RE: [PHP-DEV] The PHP Platform

2002-04-16 Thread Daniel Lorch

Hi,

> Just a note, that we also have a web server written in PHP ;)
> http://nanoweb.si.kz/

and a protocol-independent server framework (which includes a sample
webserver, too):

  http://daniel.lorch.cc/projects/phpserv/

SCNR :)

-daniel



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




[PHP-DEV] CVS Account Request: adir

2002-04-16 Thread Adir Abraham

Hi! I would like to contribute to the PHP delopment by maintaining the documentation 
(phpdoc).

Thanks!

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




Re: [PHP-DEV] The PHP Platform

2002-04-16 Thread Dave Mertens

On Tue, Apr 16, 2002 at 11:27:36AM -0400, Robert Cummings wrote:
> I keep hearing a lot of "my company this in microsoft" and "my company that"
> and "blah blah blah". I'm sorry, but if the fullfillment of all your dreams
> are in your company then you live a sad, sad life. The future is what you make
> of it, and each and every person has the power to contribute to change what
> may be.

He, i'm doing great projects for my company. And i don't mind programming into a other 
language than PHP.
I only always try to get PHP into the picture. Just because i like PHP. It can do so 
much, but i also see that it's getting behind.

And if Zend is writing the ZE2 engine that thay say in their PDF i think that PHP 
still has a future.
But into that same future belongs a good XML parser.

And i heared that there are currently 2(!) SOAP projects within PHP. So i think that 
part is covered.


That's all. I only have a problem that i can't express myself that well.. ;-(

Dave Mertens



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




RE: [PHP-DEV] The PHP Platform

2002-04-16 Thread James Cox



On Tue, Apr 16, 2002 at 05:09:57PM +0100, James Cox wrote:
> I hear you on the call to make PHP more recognisable. That's why we have
the
> php-evangelism project, where we are putting together documents and facts
as
> to why choose PHP over other languages. Really advocating PHP. I invite
> you - and anyone else interested - to join.
I must say this is the first time i heared about that project.. And how can
i join the program?!

send an email to [EMAIL PROTECTED] Damien Seguy (dams)
and I are working on getting a site together where we can publish
information about PHP for people like your boss.

james


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




Re: [PHP-DEV] The PHP Platform

2002-04-16 Thread Dave Mertens

On Tue, Apr 16, 2002 at 05:09:57PM +0100, James Cox wrote:
> I hear you on the call to make PHP more recognisable. That's why we have the
> php-evangelism project, where we are putting together documents and facts as
> to why choose PHP over other languages. Really advocating PHP. I invite
> you - and anyone else interested - to join.
I must say this is the first time i heared about that project.. And how can i join the 
program?!


> Secondly, as to why PHP sucks because it doesn't have a soap extension (bla
> bla bla). It doesn't suck. The beauty of PHP is that it carries from C
> something really special. A lighweight basic environment for getting things
> done. You don't need ext/soap or ext/java -- you can do a whole load of
> these things without needing to have to leave PHP userspace, as Shane has
> demonstrated with his excellent PEAR SOAP classes.
> 
> That's the beauty of PHP -- you can do everything within the language. We're
> even getting to the stage in which you can use PHP to write things that you
> would traditionally use perl, or c (eg, irc bots, email handlers, even
> ide's - with php-gtk) to handle.
That all great. Almost every company (even google) has a SOAP interface. SOAP relies 
for a big part on XML.
We (ISM, the company i work for) write e-commerce, b2c, b2b, extranet and portal 
systems.
We have to connect several interface to the website. And SOAP makes that much easier.

And i know that PHP can also writes console apps with forking, getopt, etc. 
What i really miss in PHP is a good XML parser. And because i've been working with the 
MS parser for 2 years now, i'm not completely nutral. But i must say that working with 
the MS parser is realy fun.

And this like variable variables are quite unique. Also what i've read about the ZE2 
engine (destructors, private vars) really interests me.
I only hope that their will be also an property mechanism. But with the private i can 
force the use of $object->setX and $object->getX.
Also static variables are a must. Overloading is a keyword these days with .NET

And because isn't the booman as i'm descriping him, he's writing out a company contest.
We (Linux/kde/php) get a Sharp Zaures and the ASP (Win CE + .NET) get a HP Jornada.

Both teams have to write an extranet for the handhelds. But i think kde will be 
replaced by gnome, there's isn't PHP-QT yet..
Both extranets needs to be extendable to fit later requirements. For now kept secret.

And the most important rule. Each team must make an API for import/export the data 
hold by the applications. Direct DB access is forbidden.
The winning product will be used in a warehouse enviroment.

My change to proof that PHP is still these days a good tool. Oh both teams exists of 4 
developers to keep it fair.

> It has been mentioned before -- "what is there left to do to PHP?" -- and I
> believe that we could just fix up all the bugs left, and then work on
> writing add-ons in pecl or pear. Really, lets stop turning this language
> into bloat-ware with all the latest plugins and gadgets (that make other
> languages hell to learn), and stick with our original principles : and easy
> language to learn and extend.

But there's a feature that could solve the bloat-ware, namely DL. Don't put everything 
static in PHP, but more in a module way.
Like all the dll's that are supplied with the ISAPI binaries.

And ISM (the company i work for) already wrote an application/session/page RPC server 
to maintain states. The only problem is that my boss doesn't let me commit the RPC 
server ;-(

But i will stop writing negative about PHP.. But i still believe that PHP needs to 
keep up with other languages.

Dave Mertens


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




[PHP-DEV] RFC: PG(allow_url_fopen) slight behaviour change

2002-04-16 Thread Wez Furlong

There is currently (and probably has been for quite a few releases) a
crash bug where allow_url_fopen can not be set on a per-virtual host basis.
That's because wrappers are only initialized on module init if
PG(allow_url_fopen) is set, rather than request init.

I plan to change it so that wrappers are *always* initialized.

So that the allow_url_fopen setting is respected, I'm adding an is_url
field to the wrapper structure.  If a wrapper has this field set and
PG(allow_url_fopen) is not set, the streams system will display a warning
stating that URLs are not allowed.

Now, the question is: was the original intention of the allow_url_fopen
setting to prevent people from running scripts that contact the network?
If so, it would be OK to have the zlib, bzip2 and user-space wrappers
classed as not being a url for the purposes of this security/policy check?

Heres a chart summarizing the new behaviour:

wrapperallow_url_fopen=onallow_url_fopen=off

http   allowed   disallowed
ftpallowed   disallowed
bzip2  allowed   allowed
zlib   allowed   allowed
user   allowed   allowed

user-space streams could potentially access the network using
fsockopen etc., but I don't think this is an issue because the
admin can then disable the use of that function as well.

Are there any reasons against this?

--Wez.

-- 
Wez Furlong
The Brain Room Ltd.


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




[PHP-DEV] Re: [PHP-EVANGELISM] RE: [PHP-DEV] The PHP Platform

2002-04-16 Thread Gabor Hojtsy

> It has been mentioned before -- "what is there left to do to PHP?" -- and
I
> believe that we could just fix up all the bugs left, and then work on
> writing add-ons in pecl or pear. Really, lets stop turning this language
> into bloat-ware with all the latest plugins and gadgets (that make other
> languages hell to learn), and stick with our original principles : and
easy
> language to learn and extend.

Just a note, that we also have a web server written in PHP ;)
http://nanoweb.si.kz/

Goba



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




[PHP-DEV] xslt extension stuff

2002-04-16 Thread Sterling Hughes

Hey, 

Just a note not to worry to much yet about the xslt extension
related stuff...  All the new api changes are quite subject to
change, my main reason for commiting to cvs is for version histories
(I can revert if i screw things up :), I'll send a message when it
all gets somewhat finalized.

-Sterling

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




RE: [PHP-DEV] The PHP Platform

2002-04-16 Thread James Cox

I hear you on the call to make PHP more recognisable. That's why we have the
php-evangelism project, where we are putting together documents and facts as
to why choose PHP over other languages. Really advocating PHP. I invite
you - and anyone else interested - to join.

Secondly, as to why PHP sucks because it doesn't have a soap extension (bla
bla bla). It doesn't suck. The beauty of PHP is that it carries from C
something really special. A lighweight basic environment for getting things
done. You don't need ext/soap or ext/java -- you can do a whole load of
these things without needing to have to leave PHP userspace, as Shane has
demonstrated with his excellent PEAR SOAP classes.

That's the beauty of PHP -- you can do everything within the language. We're
even getting to the stage in which you can use PHP to write things that you
would traditionally use perl, or c (eg, irc bots, email handlers, even
ide's - with php-gtk) to handle.

It has been mentioned before -- "what is there left to do to PHP?" -- and I
believe that we could just fix up all the bugs left, and then work on
writing add-ons in pecl or pear. Really, lets stop turning this language
into bloat-ware with all the latest plugins and gadgets (that make other
languages hell to learn), and stick with our original principles : and easy
language to learn and extend.

james


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




Re: [PHP-DEV] The PHP Platform

2002-04-16 Thread Dave Mertens

On Tue, Apr 16, 2002 at 11:20:26PM +0800, Alan Knowles wrote:
> I know this is going nowhere :) but anyway - its late here and I've got 
> a few secs to kill
> 
> Ask your boss, how often has he done a project using microsoft tools, 
> and its been seriously delayed because they found a serious bug in the 
> microsoft tools, that had to be worked around.- if he answers never i 
> would be amazed !
I nevery experienced any bugs related to ASP. Most bugs are related to security issues.

> Delayed = late delivery = unsatified customer = bad reputation = no more 
> contracts!
We (ISM) are running the one of the most visited webshops in the world 
(shop.kazaa.com, a third party shop of the Free Record Shop company).
It's running on 3 webservers and 1 database server. And it's all programmed on the 
standard ASP package.

And the CMS system we now have is eating my PHP ground away.. As you might know, 
soccer is very big in Europe. We're also running with the same ASP-code the 
'voetbal.nl' site.

And to be fair, most big sites are running asp these days.

> The difference with PHP (and perl,pike,python, ruby..etc), is that 
> when there is a problem, your project is not delayed, you have full 
> access to the source, you can find the problem, fix it and carry on with 
> minimal delays.. - no workaround. - no code thats going to break on the 
> next MS update!
And you think fixing the PHP don't take time.. I don't have the time to fix the 
problem. So even than i have to wait till it's fixed.


> This is the core to the reason behind why all of these languages are 
> better than c#/java - you are empowered to solve your own problems, 
> rather than relying on 3 levels of technical support and promises that 
> it will be fixed and wont break your code.
And that's also the weakness behind those tools. A PHP (scripting) developer mostly 
can't fix the C code of PHP.
So he's also depended on other people.

And these days microsoft is taking bugs very seriously. Ok, Microsoft is now creating 
a lot of patches. And they do it fast.
When i bug is reported and they can reproduce them it mostly is fixed within a month.

> the logic is in the philosophy not the marketing = no seminar is ever 
> going to solve this problem :)
I'm only trying to say (here we go again..) that it's hard to defend PHP in a 
microsoft company.

But it's not impossible. The fact that i can commit to PEAR says enough.
I hardly program in my free time. That time i'm usinf for my social life.

And here it's almost 18:00 (CEST) so i'm going to play some soccer.

Happy programming!!
Dave Mertens

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




Re: [PHP-DEV] Please forward to the list, I'm not a member anymore... (fwd)

2002-04-16 Thread J Smith


I don't know if it's so much a violation of the GPL as it is a clash with 
PHP's license, which is basically BSD-like. The whole point of the PHP 
license is that you can basically use PHP without restriction, commercial 
or otherwise. The GPL doesn't allow that.

But I'm just guessing here. It feels kind of like when OpenBSD removed it's 
ipf code because it wasn't under an OpenBSD-ish license.

J


Stefan Esser wrote:

> Morning,
> 
>> > It is GPL
>>
>> Then we can't use it with PHP...
> 
> sorry, but I do not see your point. How can optional support for a GPL
> library in PHP violate the GPL?
> 
> Stefan Esser


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




Re: [PHP-DEV] The PHP Platform

2002-04-16 Thread Dave Mertens

On Tue, Apr 16, 2002 at 10:54:33AM -0400, Ken Egervari wrote:
> a) no enough are learning php which in itself, says PHP is not doing a good
> enough job promoting the language
And that's the problem. PHP isn't promoted anymore. Not in the way .NET and Java are.
2 years ago i convinced my boss to use PHP, but these says MS and Java can do the same 
stuff as PHP.

So how do i have to justify the use of PHP if .NET is doing the same. But at my 
company there are in total 6 PHP developers, 12 java and 39 ASP developers.

All the programmers are MCSD certified. Even the PHP developers! Oh the PHP developers 
have also a brainbench certificate. The Java guys are also Java certifified

So everyone (in the company) knows the MS tools. But only 6 PHP.  And with these facts 
my boss choses for ASP/.NET

> b) there actually needs to be more support for PHP software in comparison to
> .net and java applications.
First, the PHP documentation is great. But that's all.
Did you even seen what MSDN and TechNet are providing. honderds of cd's with 
documentation, articles, code samples, columns and the latest version of the most 
important MS products.

And because i like PHP i'm still promoting it within my company. But no-one is helping 
me!!
The lastest thing my boss read about PHP was the MIME bug.
 
And about the trainings. You're crazy thinking knowing the language is enough. If 
you're buy 3 books about PHP. They will all learn you to program in PHP.
But all three in a different way. And the more ways you know to solve a problem, the 
better.

And those training provides you with that knowlegde.
And as long microsoft is giving away those free training (not briefings) i'm very 
willing to take them.

Dave Mertens

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




Re: [PHP-DEV] The PHP Platform

2002-04-16 Thread Yasuo Ohgaki

Brad Lafountain wrote:
> --- Dave Mertens <[EMAIL PROTECTED]> wrote:
> 
>>On Tue, Apr 16, 2002 at 07:27:06AM -0700, brad lafountain wrote:
>>
And next week i have a special C# traning for PHP developers. Offered
>>>
>>free by
>>
Microsoft.
>>>
>>> alls i have to say is WOW. This is one pathetic attempt by Microsoft. 
>>
>>Yeah, but are there any professional tranings for PHP? Do you hear of PHP? 
>>That's the problem i'm facing. I think PHP is great, i really am.
>>
>>But the fact the PHP don't have a proper XML parser, only a scripting SOAP
>>parser 
> 
> 
>  Well i currently am working on a soap c extension for php (ext/soap). Its
> pretty fast. And with other technologies like ext/session and ext/msession I
> have created a way to create a cluster of soap object with each soap request
> not needing to got the same machine. My extension is in a 'alpha' stage right
> now. I am working on a website and docuementation right now. After that im
> going to clean up the code and release an alpha release. I'll definly email
> this list when i get something i want to release.

It sounds very nice.
I'm waiting.

--
Yasuo Ohgaki




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




Re: [PHP-DEV] The PHP Platform

2002-04-16 Thread Robert Cummings

I keep hearing a lot of "my company this in microsoft" and "my company that"
and "blah blah blah". I'm sorry, but if the fullfillment of all your dreams
are in your company then you live a sad, sad life. The future is what you make
of it, and each and every person has the power to contribute to change what
may be.

Cheers,
Rob.


Dave Mertens wrote:
> 
> On Tue, Apr 16, 2002 at 07:57:26AM -0700, brad lafountain wrote:
> > > --- Dave Mertens <[EMAIL PROTECTED]> wrote:
> > > But the fact the PHP don't have a proper XML parser, only a scripting SOAP
> > > parser
> >
> >  Well i currently am working on a soap c extension for php (ext/soap). Its
> > pretty fast. And with other technologies like ext/session and ext/msession I
> > have created a way to create a cluster of soap object with each soap request
> > not needing to got the same machine. My extension is in a 'alpha' stage right
> > now. I am working on a website and docuementation right now. After that im
> > going to clean up the code and release an alpha release. I'll definly email
> > this list when i get something i want to release.
> 
> I didn't know there was an native SOAP parses in PHP. I hope it will become 
>production soon, so i can start using it.
> 
> But than on the other hand XML is still very poor in PHP. And the relation between 
>SOAP and XML is very tight.
> 
> But i'm not trying to trap someone into the floor, i'm only saying what i'm facing 
>as a PHP developer in a company that is a Microsoft partner.
> See it as a coca-cola agent who likes Pepsi. It's hard to sell Coca-cola when you 
>like Pepsi.
> 
> But i'm a Pepsi agent that is trying to sell Pepsi to the Coca-cola factory!
> 
> Dave Mertens
> 
> --
> PHP Development Mailing List 
> To unsubscribe, visit: http://www.php.net/unsub.php

-- 
.-.
| Robert Cummings |
:-`.
| Webdeployer - Chief PHP and Java Programmer  |
:--:
| Mail  : mailto:[EMAIL PROTECTED] |
| Phone : (613) 731-4046 x.109 |
:--:
| Website : http://www.webmotion.com   |
| Fax : (613) 260-9545 |
`--'

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




Re: [PHP-DEV] The PHP Platform

2002-04-16 Thread Alan Knowles

I know this is going nowhere :) but anyway - its late here and I've got 
a few secs to kill

Ask your boss, how often has he done a project using microsoft tools, 
and its been seriously delayed because they found a serious bug in the 
microsoft tools, that had to be worked around.- if he answers never i 
would be amazed !

Delayed = late delivery = unsatified customer = bad reputation = no more 
contracts!

The difference with PHP (and perl,pike,python, ruby..etc), is that 
when there is a problem, your project is not delayed, you have full 
access to the source, you can find the problem, fix it and carry on with 
minimal delays.. - no workaround. - no code thats going to break on the 
next MS update!

This is the core to the reason behind why all of these languages are 
better than c#/java - you are empowered to solve your own problems, 
rather than relying on 3 levels of technical support and promises that 
it will be fixed and wont break your code.

the logic is in the philosophy not the marketing = no seminar is ever 
going to solve this problem :)

anyway -  just one angle to try

best regards
alan

Dave Mertens wrote:

>On Tue, Apr 16, 2002 at 07:27:06AM -0700, brad lafountain wrote:
>
>>>And next week i have a special C# traning for PHP developers. Offered free by
>>>Microsoft.
>>>
>> alls i have to say is WOW. This is one pathetic attempt by Microsoft. 
>>
>Yeah, but are there any professional tranings for PHP? Do you hear of PHP? 
>That's the problem i'm facing. I think PHP is great, i really am.
>
>But the fact the PHP don't have a proper XML parser, only a scripting SOAP parser 
>makes it for my boss easy to choose for ASP/Java in stead of PHP. And what can i do 
>about it, absolutely nothing!
>I don't have the knowledge to make PHP itself better. That why i submit as much as i 
>can (and allowed) to PEAR.
>
>Hoping that it will end as a set of foundation classes.
>
>But now, all new projects are done with ASP. And why? Because Microsoft has a damn 
>good marketing machine.
>They even have now commercials for .NET! 
>
>And about the training. Microsoft knows that PHP is getting behind and they are 
>saying that .NET can do almost everything what PHP can and more.
>I can only say that i hope ZE2 will change this. But i have a hard time on my work 
>defending PHP.
>
>Yeah. When a company becomes a Microsoft Partner you get a lot of MS licenses for 
>free! Buy MSDN Universal and you get more programs for Free.
>And the company i work for is a gold partner. We have 100 free licenses for XP! Why 
>use linux??
>
>2 years ago PHP was leading egde. I hope that the ZE2 engine makes it a leading 
>language again.
>
>Dave Mertens
>




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




[PHP-DEV] PATCH to zend_list.c

2002-04-16 Thread Thies C. Arntzen


zeev, andi

i have to following problem:

while the zend_destroy_rsrc_list() is running a _dtor
function for one of my resources it (the dtor of the resource)
does a zend_list_delete, which does a hash_find on the
resource-list again. the problem is that
zend_destroy_rsrc_list takes out the bucked it will dtor from
the hash's mail linked list but it leaves the bucket in
ht->arBuckets.  so my zend_list_delete might find an already
dealloced entry (cause the resource_list is inconsistent) ->
boom!

the attached patch fixes this by removing the bucket not only
from the hashes global linked list but by also removing all
traces of it from the ht->arBuckets.

i have stolen some code from zend_hash_del_key_or_index.

so - we could either apply this patch as it is
as zend_destroy_rsrc_list() already fiddles with
hash-internals -or- i create a macro in zend_hash.h
called DISCONNECT_BUCKET_FROM_ARLIST(ht, bucket).

a patch along these lines is needed to have a consistent
resource_list while the _dtors are called. i don't think
we'll see a measuarable speed impact once this patch is in.

comments?
tc



? .zend_hash.c.swp
Index: zend_list.c
===
RCS file: /repository/Zend/zend_list.c,v
retrieving revision 1.52
diff -u -r1.52 zend_list.c
--- zend_list.c 6 Jan 2002 15:21:09 -   1.52
+++ zend_list.c 16 Apr 2002 15:17:12 -
@@ -231,8 +231,10 @@
 void zend_destroy_rsrc_list(HashTable *ht TSRMLS_DC)
 {
Bucket *p, *q;
+   uint nIndex;
 
while (1) {
+   /* remove bucket from main linked-list */
p = ht->pListTail;
if (!p) {
break;
@@ -242,6 +244,34 @@
q->pListNext = NULL;
}
ht->pListTail = q;
+
+   /* stolen from zend_hash_del_key_or_index - should be moved back into 
+zend_hash */
+   nIndex = p->h & ht->nTableMask;
+
+   if (p == ht->arBuckets[nIndex]) {
+   ht->arBuckets[nIndex] = p->pNext;
+   } else {
+   p->pLast->pNext = p->pNext;
+   }
+   if (p->pNext) {
+   p->pNext->pLast = p->pLast;
+   }
+   if (p->pListLast != NULL) {
+   p->pListLast->pListNext = p->pListNext;
+   } else { 
+   /* Deleting the head of the list */
+   ht->pListHead = p->pListNext;
+   }
+   if (p->pListNext != NULL) {
+   p->pListNext->pListLast = p->pListLast;
+   } else {
+   ht->pListTail = p->pListLast;
+   }
+   if (ht->pInternalPointer == p) {
+   ht->pInternalPointer = p->pListNext;
+   }
+   ht->nNumOfElements--;
+   /* now the hashtable is consistent again */
 
if (ht->pDestructor) {
zend_try {



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


Re: [PHP-DEV] The PHP Platform

2002-04-16 Thread Dave Mertens

On Tue, Apr 16, 2002 at 07:57:26AM -0700, brad lafountain wrote:
> > --- Dave Mertens <[EMAIL PROTECTED]> wrote:
> > But the fact the PHP don't have a proper XML parser, only a scripting SOAP
> > parser 
> 
>  Well i currently am working on a soap c extension for php (ext/soap). Its
> pretty fast. And with other technologies like ext/session and ext/msession I
> have created a way to create a cluster of soap object with each soap request
> not needing to got the same machine. My extension is in a 'alpha' stage right
> now. I am working on a website and docuementation right now. After that im
> going to clean up the code and release an alpha release. I'll definly email
> this list when i get something i want to release.

I didn't know there was an native SOAP parses in PHP. I hope it will become production 
soon, so i can start using it.

But than on the other hand XML is still very poor in PHP. And the relation between 
SOAP and XML is very tight.

But i'm not trying to trap someone into the floor, i'm only saying what i'm facing as 
a PHP developer in a company that is a Microsoft partner.
See it as a coca-cola agent who likes Pepsi. It's hard to sell Coca-cola when you like 
Pepsi.

But i'm a Pepsi agent that is trying to sell Pepsi to the Coca-cola factory!

Dave Mertens

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




RE: [PHP-DEV] php installation in XP

2002-04-16 Thread Joseph Tate

The better forum to ask these kinds of questions is on the php-general list.
See http://www.php.net/mailing-lists.php for the complete listing.  Make
sure that you read through the installation guide again before posting
though.

> -Original Message-
> From: maria [mailto:[EMAIL PROTECTED]]
> Sent: Monday, April 15, 2002 8:08 AM
> To: [EMAIL PROTECTED]
> Subject: [PHP-DEV] php installation in XP
>
>
> Dear Friends,
> I have installed php in windows XP professional with IIS web server
> by following the instructions in the manual. But when i run the php test
> program thru ie it displays
>
> "HTTP 500 - Internal server error
> Internet Explorer "
>
> I had run the 'php -i' in command prompt too. It displays the
> html tags. So
> I think the problem is in configuration only.
>
> Can anybody help me in locating my error? and also the
> configurations to be
> done in php.ini file? and also things to be done in IIS?
>
> Thanks in advance.
>
> Regards,
> Maria
>
>
>
> --
> PHP Development Mailing List 
> To unsubscribe, visit: http://www.php.net/unsub.php


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




Re: [PHP-DEV] The PHP Platform

2002-04-16 Thread brad lafountain


--- Dave Mertens <[EMAIL PROTECTED]> wrote:
> On Tue, Apr 16, 2002 at 07:27:06AM -0700, brad lafountain wrote:
> > > And next week i have a special C# traning for PHP developers. Offered
> free by
> > > Microsoft.
> > 
> >  alls i have to say is WOW. This is one pathetic attempt by Microsoft. 
> Yeah, but are there any professional tranings for PHP? Do you hear of PHP? 
> That's the problem i'm facing. I think PHP is great, i really am.
> 
> But the fact the PHP don't have a proper XML parser, only a scripting SOAP
> parser 

 Well i currently am working on a soap c extension for php (ext/soap). Its
pretty fast. And with other technologies like ext/session and ext/msession I
have created a way to create a cluster of soap object with each soap request
not needing to got the same machine. My extension is in a 'alpha' stage right
now. I am working on a website and docuementation right now. After that im
going to clean up the code and release an alpha release. I'll definly email
this list when i get something i want to release.

 - Brad



__
Do You Yahoo!?
Yahoo! Tax Center - online filing with TurboTax
http://taxes.yahoo.com/

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




Re: [PHP-DEV] Please forward to the list, I'm not a member anymore... (fwd)

2002-04-16 Thread Stefan Esser

Morning,

> > It is GPL
>
> Then we can't use it with PHP...

sorry, but I do not see your point. How can optional support for a GPL
library in PHP violate the GPL?

Stefan Esser


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




Re: [PHP-DEV] The PHP Platform

2002-04-16 Thread Ken Egervari

I the fact that you still program says 2 things

a) no enough are learning php which in itself, says PHP is not doing a good
enough job promoting the language

b) there actually needs to be more support for PHP software in comparison to
.net and java applications.

- Original Message -
From: "Dave Mertens" <[EMAIL PROTECTED]>
To: "Andi Gutmans" <[EMAIL PROTECTED]>
Cc: "brad lafountain" <[EMAIL PROTECTED]>; "Andrey Hristov"
<[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Sent: Tuesday, April 16, 2002 11:37 AM
Subject: Re: [PHP-DEV] The PHP Platform


> On Tue, Apr 16, 2002 at 05:40:19PM +0300, Andi Gutmans wrote:
> > At 07:27 16/04/2002 -0700, brad lafountain wrote:
> > > > And next week i have a special C# traning for PHP developers.
Offered
> > > free by
> > > > Microsoft.
> > >
> > >  alls i have to say is WOW. This is one pathetic attempt by Microsoft.
> >
> > I wouldn't call it pathetic because these things work.
> And of these things work. We have 2 fulltime PHP developers and 4
part-time PHP developers which includes me. And with part-time i mean, those
developers also write ASP, C# and Java code.
>
> And ofcouse i'm going to such trainings. Maybe i even learn something.
> And oh, i'm also a MSDE programmer. That's was a requirement of my boss.
>
> My job title says that i'm a Technical project manager. But i'm lucky i'm
still program. Other tpm's are only busy managing their projects.
> But i'm a bit special. I know PHP! And that makes that i'm still program.
>
> Dave Mertens
>
> --
> PHP Development Mailing List 
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>


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




[PHP-DEV] Re: [PHP-CVS] cvs: php4 /ext/tokenizer config.m4

2002-04-16 Thread Sebastian Bergmann

Stig Bakken wrote:
> ssb Tue Apr 16 01:37:51 2002 EDT
>
>   Modified files:
> /php4/ext/tokenizer config.m4
>   Log:
>   * build tokenizer by default

  The following patch makes ext/tokenizer compile by default on Win32,
  too, but the extension is not 'activated'. Why?

Index: php4dll.dsp
===
RCS file: /repository/php4/win32/php4dll.dsp,v
retrieving revision 1.26
diff -u -2 -b -w -B -r1.26 php4dll.dsp
--- php4dll.dsp 12 Apr 2002 05:35:50 -  1.26
+++ php4dll.dsp 16 Apr 2002 14:53:28 -
@@ -865,4 +865,8 @@
 # Begin Source File

+SOURCE=..\ext\tokenizer\tokenizer.c
+# End Source File
+# Begin Source File
+
 SOURCE=..\ext\wddx\wddx.c
 # ADD CPP /I "..\ext\xml\expat\xmltok" /I "..\ext\xml\expat\xmlparse"
Index: php4dllts.dsp
===
RCS file: /repository/php4/win32/php4dllts.dsp,v
retrieving revision 1.61
diff -u -2 -b -w -B -r1.61 php4dllts.dsp
--- php4dllts.dsp   11 Apr 2002 17:52:26 -  1.61
+++ php4dllts.dsp   16 Apr 2002 14:53:29 -
@@ -455,4 +455,8 @@
 # Begin Source File

+SOURCE=..\ext\tokenizer\tokenizer.c
+# End Source File
+# Begin Source File
+
 SOURCE=..\ext\wddx\wddx.c

-- 
  Sebastian Bergmann
  http://sebastian-bergmann.de/ http://phpOpenTracker.de/

  Did I help you? Consider a gift: http://wishlist.sebastian-bergmann.de/

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




Re: [PHP-DEV] The PHP Platform

2002-04-16 Thread Ken Egervari

I'd have to agree with Dave.  PHP is too far behind and for those that
didn't agree with earlier post that started this entire topic about
developing a a PHP Platform, this is the reality that we all face.  I for
one have been using Java and .Net for all my applications now.  PHP just
doesn't come into the picture any longer.  I can't see any performance or
coding time benefits that justify using it.  The fact that I write something
in Java and 20x more people can make use of it is even more gratifying.  How
long as PEAR being around?  Maybe not nearly enough as Java, but don't even
have a great collections framework, lack of standard xml parsers and even
tools to make our coding easier.  I'm a convert I suppose.  I'm loosing
everyday as I see PHP code already in production and that I can't take the
facilities of .NET or Java as a whole.  It's sad really that the PHP
community isn't large enough to keep up.  I too how ze2 will justify any
code i've written, but I look now upon it as a very large waste.  It's
unfortunate.

- Original Message -
From: "Dave Mertens" <[EMAIL PROTECTED]>
To: "brad lafountain" <[EMAIL PROTECTED]>
Cc: "Andrey Hristov" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Sent: Tuesday, April 16, 2002 11:31 AM
Subject: Re: [PHP-DEV] The PHP Platform


> On Tue, Apr 16, 2002 at 07:27:06AM -0700, brad lafountain wrote:
> > > And next week i have a special C# traning for PHP developers. Offered
free by
> > > Microsoft.
> >
> >  alls i have to say is WOW. This is one pathetic attempt by Microsoft.
> Yeah, but are there any professional tranings for PHP? Do you hear of PHP?
> That's the problem i'm facing. I think PHP is great, i really am.
>
> But the fact the PHP don't have a proper XML parser, only a scripting SOAP
parser
> makes it for my boss easy to choose for ASP/Java in stead of PHP. And what
can i do about it, absolutely nothing!
> I don't have the knowledge to make PHP itself better. That why i submit as
much as i can (and allowed) to PEAR.
>
> Hoping that it will end as a set of foundation classes.
>
> But now, all new projects are done with ASP. And why? Because Microsoft
has a damn good marketing machine.
> They even have now commercials for .NET!
>
> And about the training. Microsoft knows that PHP is getting behind and
they are saying that .NET can do almost everything what PHP can and more.
> I can only say that i hope ZE2 will change this. But i have a hard time on
my work defending PHP.
>
> Yeah. When a company becomes a Microsoft Partner you get a lot of MS
licenses for free! Buy MSDN Universal and you get more programs for Free.
> And the company i work for is a gold partner. We have 100 free licenses
for XP! Why use linux??
>
> 2 years ago PHP was leading egde. I hope that the ZE2 engine makes it a
leading language again.
>
> Dave Mertens
>
> --
> PHP Development Mailing List 
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>


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




Re: [PHP-DEV] The PHP Platform

2002-04-16 Thread Dave Mertens

On Tue, Apr 16, 2002 at 05:40:19PM +0300, Andi Gutmans wrote:
> At 07:27 16/04/2002 -0700, brad lafountain wrote:
> > > And next week i have a special C# traning for PHP developers. Offered 
> > free by
> > > Microsoft.
> >
> >  alls i have to say is WOW. This is one pathetic attempt by Microsoft.
> 
> I wouldn't call it pathetic because these things work.
And of these things work. We have 2 fulltime PHP developers and 4 part-time PHP 
developers which includes me. And with part-time i mean, those developers also write 
ASP, C# and Java code.

And ofcouse i'm going to such trainings. Maybe i even learn something.
And oh, i'm also a MSDE programmer. That's was a requirement of my boss.

My job title says that i'm a Technical project manager. But i'm lucky i'm still 
program. Other tpm's are only busy managing their projects. 
But i'm a bit special. I know PHP! And that makes that i'm still program.

Dave Mertens

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




Re: [PHP-DEV] The PHP Platform

2002-04-16 Thread Dave Mertens

On Tue, Apr 16, 2002 at 07:27:06AM -0700, brad lafountain wrote:
> > And next week i have a special C# traning for PHP developers. Offered free by
> > Microsoft.
> 
>  alls i have to say is WOW. This is one pathetic attempt by Microsoft. 
Yeah, but are there any professional tranings for PHP? Do you hear of PHP? 
That's the problem i'm facing. I think PHP is great, i really am.

But the fact the PHP don't have a proper XML parser, only a scripting SOAP parser 
makes it for my boss easy to choose for ASP/Java in stead of PHP. And what can i do 
about it, absolutely nothing!
I don't have the knowledge to make PHP itself better. That why i submit as much as i 
can (and allowed) to PEAR.

Hoping that it will end as a set of foundation classes.

But now, all new projects are done with ASP. And why? Because Microsoft has a damn 
good marketing machine.
They even have now commercials for .NET! 

And about the training. Microsoft knows that PHP is getting behind and they are saying 
that .NET can do almost everything what PHP can and more.
I can only say that i hope ZE2 will change this. But i have a hard time on my work 
defending PHP.

Yeah. When a company becomes a Microsoft Partner you get a lot of MS licenses for 
free! Buy MSDN Universal and you get more programs for Free.
And the company i work for is a gold partner. We have 100 free licenses for XP! Why 
use linux??

2 years ago PHP was leading egde. I hope that the ZE2 engine makes it a leading 
language again.

Dave Mertens

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




Re: [PHP-DEV] The PHP Platform

2002-04-16 Thread Andi Gutmans

At 07:27 16/04/2002 -0700, brad lafountain wrote:
> > And next week i have a special C# traning for PHP developers. Offered 
> free by
> > Microsoft.
>
>  alls i have to say is WOW. This is one pathetic attempt by Microsoft.

I wouldn't call it pathetic because these things work.

Andi


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




Re: [PHP-DEV] Please forward to the list, I'm not a member anymore...(fwd)

2002-04-16 Thread David Eriksson

On Tue, 16 Apr 2002, Uwe Steinmann wrote:

> On Tue, Apr 16, 2002 at 02:07:01PM +0200, Derick Rethans wrote:
> > -- Forwarded message --
> > The homepage of Panda PDF is:
> > 
> > http://www.stillhq.com/cgi-bin/getpage?area=panda&page=index.htm
> > 
> > It offers a spec, the features are reasonable, the license is: ?
> It is GPL

Then we can't use it with PHP...

-\- David Eriksson -/-

"I personally refuse to use inferior tools because of ideology."
- Linus Torvalds 


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




Re: [PHP-DEV] The PHP Platform

2002-04-16 Thread brad lafountain

> And next week i have a special C# traning for PHP developers. Offered free by
> Microsoft.

 alls i have to say is WOW. This is one pathetic attempt by Microsoft. 

 - Brad


__
Do You Yahoo!?
Yahoo! Tax Center - online filing with TurboTax
http://taxes.yahoo.com/

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




[PHP-DEV] Re: Persistent Server Variable - dirty solution using mysql & overload extension

2002-04-16 Thread Andrei Zmievski

Alexander Belyaev wrote:
>
> Any comments, suggestions?
> ...
> function __get($prop_name, &$prop_value)
> {
>   if($prop_name=='id' or $prop_name=='version' or $prop_name=='classname' or
>  $prop_name=='data')
>   {
>   $prop_value = $this->$prop_name;
>   return true;
>   }
> 
>   $rt = mysql_query("select version from $this->classname where
> id=$this->id");
>   $ver = mysql_result($rt,0);
>   if($ver != $this->version) $this->reload();
>   $prop_value = $this->data[$prop_name];
>   return true;
> }

Yes. If you have existing class variables then ext/overload will automatically
use them instead of invoking __get() method. So this could be rewritten as:

function __get($prop_name, &$prop_value)
{
   $rt = mysql_query("select version from $this->classname where id=$this->id");
   $ver = mysql_result($rt, 0);
   if ($ver != $this->version) $this->reload();
   $prop_value = $this->data[$prop_name];
   return true;
} 

-Andrei
* "I'll need daily status reports on why you're so behind." -- Dilbert's boss *

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




Re: [PHP-DEV] Please forward to the list, I'm not a member anymore... (fwd)

2002-04-16 Thread Uwe Steinmann

On Tue, Apr 16, 2002 at 02:07:01PM +0200, Derick Rethans wrote:
> -- Forwarded message --
> The homepage of Panda PDF is:
> 
> http://www.stillhq.com/cgi-bin/getpage?area=panda&page=index.htm
> 
> It offers a spec, the features are reasonable, the license is: ?
It is GPL

  Uwe
-- 
  MMK GmbH, Hagen
  [EMAIL PROTECTED]
  Tel: +2331 987 4528Fax: +2331 987 375

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




[PHP-DEV] Please forward to the list, I'm not a member anymore... (fwd)

2002-04-16 Thread Derick Rethans

-- Forwarded message --
The homepage of Panda PDF is:

http://www.stillhq.com/cgi-bin/getpage?area=panda&page=index.htm

It offers a spec, the features are reasonable, the license is: ?

You should look yourself

greetings
Dennis


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




Re: [PHP-DEV] panda pdf

2002-04-16 Thread derick

On 16 Apr 2002, Dennis Heuer wrote:

> I just wanted to vote for the support for the Panda PDF lib in PHP. The
> other libs are both "not really" free, the licenses aren't that nice.
> Panda PDF is GPLed. I swear, I am not affiliated with the developers ;)

LGPL or GPL?

Derick

---
 Did I help you? Consider a gift:
  http://www.amazon.co.uk/exec/obidos/registry/SLCB276UZU8B
---
  PHP: Scripting the Web - [EMAIL PROTECTED]
All your branches are belong to me!
SRM: Script Running Machine - www.vl-srm.net
---


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




Re: [PHP-DEV] panda pdf

2002-04-16 Thread Hartmut Holzgraefe

Dennis Heuer wrote:
> I just wanted to vote for the support for the Panda PDF lib in PHP. The
> other libs are both "not really" free, the licenses aren't that nice.
> Panda PDF is GPLed. I swear, I am not affiliated with the developers ;)

how does it compare feature-wise ?

-- 
Hartmut Holzgraefe  [EMAIL PROTECTED]  http://www.six.de/  +49-711-99091-77


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




[PHP-DEV] Persistent Server Variable - dirty solution using mysql & overload extension

2002-04-16 Thread Alexander Belyaev 2147483647

Hello,

Bad idea, slow, really.. But it allows to create,modify persistent
variables, etc...
Any comments, suggestions?

Alexander


-
use test;
CREATE TABLE `tbl` (
 'id' mediumint(8) unsigned NOT NULL,
  'version' mediumint(8) unsigned default '1',
  'header' varchar(255),
  'content' text,
  PRIMARY KEY  ('id')
);

INSERT INTO tbl VALUES("1","1","test header","test content");

-


#!/usr/local/bin/php -q
':/tmp/mysql.sock','user'=>'root','pass'=>'?','database'=>
'test');
$DB['link'] = mysql_connect($sock,$DB['user'],$DB['pass']);
mysql_select_db($DB[database]);

class mpersist
{
function mpersist($id)
{
 $this->id = $id;
 $this->version = -1;
 $this->classname = get_class($this);
 $this->reload();
}

function reload()
{
 echo "::reload $this->classname($this->id,$this->version)\n";
 $rt = mysql_query("select * from $this->classname where id=$this->id");
 $data = mysql_fetch_assoc($rt);
 $this->version = $data[version];
 $this->data = $data;
}

function __get($prop_name, &$prop_value)
{
 if($prop_name=='id' or $prop_name=='version' or $prop_name=='classname' or
$prop_name=='data')
 {
 $prop_value = $this->$prop_name;
 return true;
 }

 $rt = mysql_query("select version from $this->classname where
id=$this->id");
 $ver = mysql_result($rt,0);
 if($ver != $this->version) $this->reload();
 $prop_value = $this->data[$prop_name];
 return true;
}
function __set($prop_name, $prop_value)
{
 if($prop_name=='id' or $prop_name=='version' or $prop_name=='classname' or
$prop_name=='data')
 {
 $this->$prop_name = $prop_value;
 return true;
 }
 $val = mysql_escape_string($prop_value);
 $rt = mysql_query("update $this->classname set
$prop_name='$val',version=version + 1 where id=$this->id and version =
$this->version");
 if(mysql_affected_rows() != 1)
 {
 echo "::version too old or something wrong\n";
 return false;
 }
 else
 {
 $this->data[$prop_name] = $prop_value;
 $this->version++;
 }
 return true;
}
}
class tbl extends mpersist{};
overload('tbl');

/*   test1 */
/* try to update tbl "update tbl set header='new header', version =
version+1 where id=1" from another window or using graphical client :)
during execution...*/
$a = new tbl(1);
for($i=0;$i<60;++$i)
{
echo "\n--". date("H:i:s") . "--\n";
echo $a->header;
sleep(1);
}

/*   test2 */
/* try to select from tbl "select * from tbl where id=1" from another window
or using graphical client :)  during execution...*/
for($i=0;$i<60;++$i)
{
echo "\n--". date("H:i:s") . "--\n";
echo $a->header = "$i iteration";
sleep(1);
}
?>




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




[PHP-DEV] panda pdf

2002-04-16 Thread Dennis Heuer

Hi,

I just wanted to vote for the support for the Panda PDF lib in PHP. The
other libs are both "not really" free, the licenses aren't that nice.
Panda PDF is GPLed. I swear, I am not affiliated with the developers ;)

Dennis




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




Re: [PHP-DEV] The PHP Platform

2002-04-16 Thread Andrey Hristov

Hi
> I know that there are RPC and SOAP classes. But that is not the point that i wanted 
>to make.
> What i'm trying to say is that companies never hear about PHP. OK, they hear about 
>the MIME bug and did you know what my boss
said??
> You see, PHP is just as bad as ASP, so why use PHP and not ASP?
>
> But only having the classes and documentation for it isn't enough these days. PHP is 
>getting behind on .NET and Java(2). But i
love PHP. I see it as C for the web.
> I use a C writing style, weird anough java extending, and i compile it (Zend 
>encoder).
> And PHP is more multi platform than Java (ok, php won't run on your microwave).
>
> It's a hard world for a PHP developer in an Microsoft company/world. I only think 
>that SOAP support should be native and must have
a much better XML support (Ever looked at the MSXML parser). Than it might be able to 
compete with .NET and Java.
> And next week i have a special C# traning for PHP developers. Offered free by 
>Microsoft.
>
> And because these type of actions of Microsoft i'm lossing grip on my boss to use 
>PHP. So please, keep PHP the best!
>
The XMLRPC extension does not provide class wrapper it is not OOP. Ok there is a 
wrapper class to help people that wrote code for
the Edd Dumbill lib to swtich easily.
I've used the xmlrpc extension for a while and I can say that it is more intuitive and 
hides the (de)serizalization that is needed
with Edd's code. But the code is not final no matter that some people use it in 
production enviroment.So as well there is a talk on
php-dev on forking GD why not some effort on the xmlrpc extension, to make it 
compatible with the new streams. I've not seen many
changes to the extension on php-cvs for a long time.

We know what is the MS biz practice. I am not sure but one day they may give 
developers money to use .net platform and once there
are many apps for .net they may switch to other policy.
Java has SUN on its back and it is compilable to bytecode. I'll tell you a little 
story.
Several months ago when I went to find a professor that will guide me for my bachelor 
thesis I said that I can program in PHP and I
want to make an extension for PHP. The reaction was bad because she thinks that PHP is 
interpreted(scripting) language for the web;
everyone can write in PHP that's why it is not serious. I left the room after this. 
However she is now my guide for the thesis but I
had to speak more than an hour why PHP is not so bad, why it is better than ASP.
If IBM says "Ok people. As well as we support linux development we will support PHP" 
the statuquo will change dramatically. PHP
needs a big name on its back. Zend is good company but cannot fight MS and SUN.


Best regards,
Andrey


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




Re: [PHP-DEV] PHP 4.2.0 RC4

2002-04-16 Thread Balazs Nagy

On Mon, 2002-04-15 at 19:04, [EMAIL PROTECTED] wrote:

> can you make a backtrace of this? 

Excusez moi, I had a hard time in the last D&D3 session when I wrote
this.  Here's the dump:

#0  0x00440397 in php_apache_sapi_log_message (
msg=0xbfffef80 "PHP Warning:  Unable to load dynamic library 'dba.so' - dba.so: 
cannot open shared object file: No such file or directory in Unknown on line 0") at 
sapi_apache2.c:214
214 ap_log_error(APLOG_MARK, APLOG_ERR | APLOG_NOERRNO | APLOG_STARTUP, 0, 
ctx->r->server, "%s", msg);
(gdb) bt
#0  0x00440397 in php_apache_sapi_log_message (
msg=0xbfffef80 "PHP Warning:  Unable to load dynamic library 'dba.so' - dba.so: 
cannot open shared object file: No such file or directory in Unknown on line 0") at 
sapi_apache2.c:214
#1  0x00441701 in php_log_err (
log_message=0xbfffef80 "PHP Warning:  Unable to load dynamic library 'dba.so' - 
dba.so: cannot open shared object file: No such file or directory in Unknown on line 
0", tsrm_ls=0x81414a0) at main.c:324
#2  0x00441c7b in php_error_cb (type=32, error_filename=0x4f0250 "Unknown", 
error_lineno=0, 
format=0x4f8e20 "Unable to load dynamic library '%s' - %s", args=0xb838) at 
main.c:459
#3  0x00434c39 in zend_error (type=32, format=0x4f8e20 "Unable to load dynamic library 
'%s' - %s")
at zend.c:682
#4  0x00485dce in php_dl (file=0x814c718, type=1, return_value=0xb880, 
tsrm_ls=0x81414a0) at dl.c:137
#5  0x004460e8 in php_load_function_extension_cb (arg=0x814c718, tsrm_ls=0x81414a0) at 
php_ini.c:188
#6  0x0042d113 in zend_llist_apply (l=0x51aa3c, func=0x4460c4 
, 
tsrm_ls=0x81414a0) at zend_llist.c:186
#7  0x004464ad in php_ini_delayed_modules_startup (tsrm_ls=0x81414a0) at php_ini.c:313
#8  0x004432af in php_module_startup (sf=0x4ffac0) at main.c:1001
#9  0x004409f4 in php_apache_server_startup (pconf=0x80b90a0, plog=0x80ef178, 
ptemp=0x80f1180, s=0x80bbce0)
at sapi_apache2.c:435
#10 0x0808025e in ap_run_post_config (pconf=0x80b90a0, plog=0x80ef178, 
ptemp=0x80f1180, s=0x80bbce0)
at config.c:127
#11 0x08084af8 in main (argc=2, argv=0xbab4) at main.c:569
#12 0x002ca627 in __libc_start_main (main=0x80844bc , argc=2, ubp_av=0xbab4, 
init=0x805ee6c <_init>, fini=0x809d9d0 <_fini>, rtld_fini=0x11dcc4 <_dl_fini>, 
stack_end=0xbaac)
at ../sysdeps/generic/libc-start.c:129
(gdb) print ctx
$1 = (php_struct *) 0x0

-- 
jul



signature.asc
Description: This is a digitally signed message part


Re: [PHP-DEV] The PHP Platform

2002-04-16 Thread Dave Mertens

On Mon, Apr 15, 2002 at 03:40:15PM +0300, Andrey Hristov wrote:
> >
> > I really have to fight within the company i work to keep PHP. Do you know what PHP 
>really needs? Good native XML and SOAP
> support..
> > Without that it's very hard to convince my boss that PHP is the right tool for the 
>job.
> >
> > I develop for a living. And i'm not only programming in PHP. I do also Java, VB, 
>C# and a little C. And i have to say that even
> with the high license costs of Microsoft, they are providing a solid developer base 
>with good support from MSDN and Technet. You
> can't around it and that is why my boss want to use .NET. Ever saw an ad for PHP?? 
>You don't read of PHP.
> 
> The XML-RPC extension supports SOAP at some point and it is transparent to the user. 
>No matter if it is XMLRPC request or SOAP
> request one thing is done. Of course it is not final and relies on the xmlrpc-epi 
>library, thus the extension is just a wrapper.
> Probably some efforts can be made in the development of xmlrpc-epi. I am sorry that 
>I am not too proficient in C otherwise I would
> help.
> But reading an article on /. and one on ZDnet about web services disturbed me 
>because IBM and MS may patent some of the roots of web
> services. As You may know MS was one of the companies which helped the evolvement of 
>XMLRPC and its extension SOAP.

I know that there are RPC and SOAP classes. But that is not the point that i wanted to 
make.
What i'm trying to say is that companies never hear about PHP. OK, they hear about the 
MIME bug and did you know what my boss said??
You see, PHP is just as bad as ASP, so why use PHP and not ASP?

But only having the classes and documentation for it isn't enough these days. PHP is 
getting behind on .NET and Java(2). But i love PHP. I see it as C for the web.
I use a C writing style, weird anough java extending, and i compile it (Zend encoder).
And PHP is more multi platform than Java (ok, php won't run on your microwave).

It's a hard world for a PHP developer in an Microsoft company/world. I only think that 
SOAP support should be native and must have a much better XML support (Ever looked at 
the MSXML parser). Than it might be able to compete with .NET and Java.
And next week i have a special C# traning for PHP developers. Offered free by 
Microsoft.

And because these type of actions of Microsoft i'm lossing grip on my boss to use PHP. 
So please, keep PHP the best!

Dave Mertens

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




RE: [PHP-DEV] RE: [Zend Engine 2] ZE2 Test Windows Binaries

2002-04-16 Thread Andi Gutmans

At 20:27 15/04/2002 +0200, phpsurf wrote:
>that'd be great !
>don't you have some website somewhere ?
>
>Andi ? any idea ?
>

I could put them up.

Andi


>-Original Message-
>From: Sebastian Bergmann [mailto:[EMAIL PROTECTED]]
>Sent: lundi 15 avril 2002 19:31
>To: [EMAIL PROTECTED]
>Subject: Re: [PHP-DEV] RE: [Zend Engine 2] ZE2 Test Windows Binaries
>
>
>phpsurf wrote:
> > do you have any idea where to find some windows binaries to test the
> > ZE2
>
>   I could provide those, but where shall I put them?
>
>--
>   Sebastian Bergmann
>   http://sebastian-bergmann.de/ http://phpOpenTracker.de/
>
>   Did I help you? Consider a gift: http://wishlist.sebastian-bergmann.de/
>
>--
>PHP Development Mailing List 
>To unsubscribe, visit: http://www.php.net/unsub.php
>
>
>__
>ifrance.com, l'email gratuit le plus complet de l'Internet !
>vos emails depuis un navigateur, en POP3, sur Minitel, sur le WAP...
>http://www.ifrance.com/_reloc/email.emailif


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




[PHP-DEV] Re: FRC: psv (Persistent Server Variable) module

2002-04-16 Thread Yasuo Ohgaki

Lance Lovette wrote:
> Check out the Pwee extension module. It sounds like it might provide some of
> the described functionality.
> 
> http://pwee.sourceforge.net/
> 

It sounds like a nice extension.
I'll check it, if it satisfies my requirements.
Thank you.

--
Yasuo Ohgaki



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