Re: [PHP-DEV] Patch: Use notices in PDO

2009-10-09 Thread Christopher Jones
Samuel ROZE wrote: It's a good idea. - PDO::NOTICES_FETCH - PDO::NOTICES_ENABLED - PDO::NOTICES_NONE - PDO::NOTICES_DISABLED That's better ? That works. I see that you are from the Oracle team. Can you explain me how oracle works to raise notices like PostgreSQL ? Or can you build a

Re: [PHP-DEV] Patch: Use notices in PDO

2009-10-09 Thread Matteo Beccati
Christopher Jones ha scritto: Samuel ROZE wrote: It's a good idea. - PDO::NOTICES_FETCH - PDO::NOTICES_ENABLED - PDO::NOTICES_NONE - PDO::NOTICES_DISABLED That's better ? That works. I see that you are from the Oracle team. Can you explain me how oracle works to raise notices like

Re: [PHP-DEV] Patch: Use notices in PDO

2009-10-09 Thread Samuel ROZE
Well, if I understood, DBMS_OUTPUT returns user's notices or warning, but no errors ? In the standart way, in console, how the notices are printed ? Is DBMS_OUTPUT used both by Pl/SQL function and Oracle functions? Thanks. Samuel. 2009/10/9 Christopher Jones christopher.jo...@oracle.com:

Re: [PHP-DEV] Patch: Use notices in PDO

2009-10-09 Thread Samuel ROZE
PDO::NOTICES_DISABLED PDO::NOTICES_ARRAY to allow space for different formats (e.g. PDO::NOTICES_RESULTSET)? I not but what is the real interest of returning another type of data. And, what can be the other type ? It can have one notice as having many. PL/SQL also has compile time warnings

[PHP-DEV] Configuration in the php.ini file

2009-10-09 Thread Samuel ROZE
Hi, I wanted to change a parameter in my PDO class, with the fourth PDO::_construct arg. But, I've many projects, which uses PDO, with one new PDO per project. The problem is that I have to change the source of every projects... Why isn't there an PDO section in the php.ini file ? For instance:

Re: [PHP-DEV] Configuration in the php.ini file

2009-10-09 Thread Pierre Joye
hi, The general consensus is to do not add new ini settings unless it is absolutely necessary. It is not the case for your example as it is cleary an application configuration problem (user land configuration). Cheers, -- Pierre On Fri, Oct 9, 2009 at 3:21 PM, Samuel ROZE samuel.r...@gmail.com

Re: [PHP-DEV] Configuration in the php.ini file

2009-10-09 Thread Samuel ROZE
It isn't. :-) Thanks. 2009/10/9 Pierre Joye pierre@gmail.com: hi, The general consensus is to do not add new ini settings unless it is absolutely necessary. It is not the case for your example as it is cleary an application configuration problem (user land configuration). Cheers, --

Re: [PHP-DEV] Configuration in the php.ini file

2009-10-09 Thread Olivier B.
Hi There isn't because nobody developed that or because it is contradicted ? here we extends the PDO class to configure it like we want. For example : class ourPDO { public function __construct( $dsn, $user = NULL, $password = NULL, $options = NULL ) { $defaultOptions = array(

Re: [PHP-DEV] Configuration in the php.ini file

2009-10-09 Thread Samuel ROZE
And I still have to modifiy my source. ;-) In fact I'm using a personnaly Database class using PDO for add execution times and array/string transformations. Actually, I just wanted to know why there isn't any pdo propreties in the php.ini file. Pierre replied. Thanks ! Samuel. 2009/10/9 Olivier

[PHP-DEV] Re: Patch: Use notices in PDO

2009-10-09 Thread Samuel ROZE
Just a little question: - How I can propose my patch to be merged to PHP ? Rather suggest.. :-) Le jeudi 08 octobre 2009 à 23:51 +0200, Samuel ROZE a écrit : Hi, I've make a patch which insert notices concepts to PDO. It create: - PDO::noticeInfo() - to be like errorInfo -

Re: [PHP-DEV] Re: Patch: Use notices in PDO

2009-10-09 Thread Pierre Joye
Hi, First thanks to have updated the patch according to our last feedback :) About applying it, we should wait a bit more until we get more feedbacks (say until the middle of next week). Then see how we can do it for the other drivers at the same time. Cheers, -- Pierre On Fri, Oct 9, 2009 at

Re: [PHP-DEV] Re: Patch: Use notices in PDO

2009-10-09 Thread Samuel ROZE
Le vendredi 09 octobre 2009 à 23:05 +0200, Pierre Joye a écrit : About applying it, we should wait a bit more until we get more feedbacks (say until the middle of next week). Oh yeah of course ! It was just a question to know how it happened. ;-) Then see how we can do it for the other