Re: [PHP-DEV] Database-Connectivity

2010-06-17 Thread Derick Rethans
On Wed, 16 Jun 2010, Pierre Joye wrote:

 On Wed, Jun 16, 2010 at 11:13 PM, Daniel Henning dan...@web.de wrote:
  hi,
 
 The only
 question was about sqlite2. mssql is not going to be removed.
 
  The question came up in the mails about sqlite2. I was thinking about pdo 
  in general.
 
 Please consider to use SqlSrv on Windows
 It is well supported and the 2.0 version comes with PDO support as well.
 
  If version 2 will have one - great.
 
  Now only the problems around pdo_oci needs to be handled.
 
 Did you open a bug report for the CLOB and resultset issue? (if that's a bug)

I did; years ago: http://bugs.php.net/bug.php?id=44852

regards,
Derick

-- 
http://derickrethans.nl | http://xdebug.org
Like Xdebug? Consider a donation: http://xdebug.org/donate.php
twitter: @derickr and @xdebug

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



Re: [PHP-DEV] Remove sqlite2 from trunk

2010-06-17 Thread Derick Rethans
On Tue, 15 Jun 2010, Patrick ALLAERT wrote:

 What about doing the same with MySQL extensions ?
 
 Currently there is 3 main ways to access a MySQL server:
 ext/mysql
 ext/mysqli
 PDO_MYSQL
 
 Additionally, mysqlnd has to be considered as a possible library for
 each of them.
 
 I have the feeling that there is a benefit at removing ext/mysql with
 the same arguments as for sqlite 2.

I would be against that.

Derick

-- 
http://derickrethans.nl | http://xdebug.org
Like Xdebug? Consider a donation: http://xdebug.org/donate.php
twitter: @derickr and @xdebug

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



[PHP-DEV] Why not attach XMLReader / XMLWriter to open php streams?

2010-06-17 Thread Hans-Peter Oeri
Hi!

As documented - and several searches did not lead to a different result
- XMLReader and XMLWriter can only work on an URI. That would be a php
stream opened and closed by themselves.

For several workflows, e.g. with php://temp, it would be nice to be able
to attach XMLReader/XMLWriter to a pre-opened php stream. I would
describe it as letting them work on a stream instead of on an uri.

As I didn't find anything about it: Is there a reason for not supporting
'stream resources'? Other extension, like e.g. curl, do.

HPO

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



RE: [PHP-DEV] Remove sqlite2 from trunk

2010-06-17 Thread Mike Robinson
On June-17-10 5:23 AM Derick Rethans wrote:

 
 On Tue, 15 Jun 2010, Patrick ALLAERT wrote:
 
  What about doing the same with MySQL extensions ?
 
  Currently there is 3 main ways to access a MySQL server:
  ext/mysql
  ext/mysqli
  PDO_MYSQL
 
  Additionally, mysqlnd has to be considered as a possible library for
  each of them.
 
  I have the feeling that there is a benefit at removing ext/mysql with
  the same arguments as for sqlite 2.
 
 I would be against that.
 
 Derick

= sigh of relief =

The voice of reason.


Best Regards,

Mike Robinson


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



Re: [PHP-DEV] Remove sqlite2 from trunk

2010-06-17 Thread Pierre Joye
On Thu, Jun 17, 2010 at 5:12 PM, Mike Robinson m...@rile.ca wrote:
 On June-17-10 5:23 AM Derick Rethans wrote:


 On Tue, 15 Jun 2010, Patrick ALLAERT wrote:

  What about doing the same with MySQL extensions ?
 
  Currently there is 3 main ways to access a MySQL server:
  ext/mysql
  ext/mysqli
  PDO_MYSQL
 
  Additionally, mysqlnd has to be considered as a possible library for
  each of them.
 
  I have the feeling that there is a benefit at removing ext/mysql with
  the same arguments as for sqlite 2.

 I would be against that.

 Derick

 = sigh of relief =

 The voice of reason.

The only voice that matters here is the voice of the mysql team, they
know if it is still widely used or not, and how :)

-- 
Pierre

@pierrejoye | http://blog.thepimp.net | http://www.libgd.org

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



Re: [PHP-DEV] Type hinting

2010-06-17 Thread Christian Kaps
Hi,

I know the discussion is about scalar type hints. But what is with a
object type hint as base for all objects?

What is the next step to get type hinting in the next PHP release,
regardless of whether strict or weak?

Best regards,
Christian

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



Re: [PHP-DEV] Type hinting

2010-06-17 Thread Stas Malyshev

Hi!


I know the discussion is about scalar type hints. But what is with a
object type hint as base for all objects?


When it makes sense to accept any object, regardless of the class, but 
not other types? I wonder if it's really a common use-case.

--
Stanislav Malyshev, Software Architect
SugarCRM: http://www.sugarcrm.com/
(408)454-6900 ext. 227

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



Re: [PHP-DEV] Type hinting

2010-06-17 Thread Christian Kaps
Am 17.06.2010 21:14, schrieb Stas Malyshev:
 Hi!

 I know the discussion is about scalar type hints. But what is with a
 object type hint as base for all objects?

 When it makes sense to accept any object, regardless of the class, but
 not other types? I wonder if it's really a common use-case.

My view layer accepts only presentation model objects. So every object
with public properties can be passed to the the view.

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



RE: [PHP-DEV] Remove sqlite2 from trunk

2010-06-17 Thread Mike Robinson
On June-17-10 12:44 PM Pierre Joye wrote:
 Sent: June-17-10 12:44 PM
 To: Mike Robinson
 Cc: Derick Rethans; Patrick ALLAERT; Ilia Alshanetsky; Adam Harvey;
 internals@lists.php.net
 Subject: Re: [PHP-DEV] Remove sqlite2 from trunk
 
 On Thu, Jun 17, 2010 at 5:12 PM, Mike Robinson m...@rile.ca wrote:
  On June-17-10 5:23 AM Derick Rethans wrote:
 
 
  On Tue, 15 Jun 2010, Patrick ALLAERT wrote:
 
   What about doing the same with MySQL extensions ?
  
   Currently there is 3 main ways to access a MySQL server:
   ext/mysql
   ext/mysqli
   PDO_MYSQL
  
   Additionally, mysqlnd has to be considered as a possible library
 for
   each of them.
  
   I have the feeling that there is a benefit at removing ext/mysql
 with
   the same arguments as for sqlite 2.
 
  I would be against that.
 
  Derick
 
  = sigh of relief =
 
  The voice of reason.
 
 The only voice that matters here is the voice of the mysql team, they
 know if it is still widely used or not, and how :)


Really? Seriously, how could they reliably know that?  :)

I still like the I would be against that, notwithstanding.

Best Regards

Mike Robinson









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



[PHP-DEV] PHP 5.2.14RC1 5.3.3RC1 Released for Testing

2010-06-17 Thread Ilia Alshanetsky
The first release candidates of 5.2.14 and 5.3.3 were just released
for testing and can be downloaded here:

http://downloads.php.net/ilia/php-5.2.14RC1.tar.bz2 (md5sum:
c269b5b5dfd571df0af4e1cabb5e9b8d)

http://downloads.php.net/johannes/php-5.3.3RC1.tar.bz2 (md5sum:
50d6e7d4e0c354ccfc8a53d2eae003a9)

The windows binaries are available at: http://windows.php.net/qa/

This is a beginning of the release cycle for the both releases with
the goal of having a 2nd RC two weeks from now, and hopefully a final
release sometime in July. Majority of the changes for both versions
are of the bug fix variety. To ensure that the release is solid,
please test this RC against your code base and report any problems
that you encounter.

Ilia Alshanetsky
PHP 5.2 Release Master

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