[PHP-DEV] PDO PgSQL: _pdo_pgsql_notice

2009-10-05 Thread Samuel ROZE
Hi ! I'm reading the source of PDO PostgreSQL driver and i see that there's an empty function, _pdo_pgsql_notice, which is very interesting ! I think that it is used when PostgreSQL throw Notices. But, nothing is done... I want to know if somebody know why the content of the function is

[PHP-DEV] Re: [PHP-DB] PDO PgSQL: _pdo_pgsql_notice

2009-10-05 Thread Samuel ROZE
! Samuel. (French) Le lundi 05 octobre 2009 à 20:58 +0200, Samuel ROZE a écrit : Hi ! I'm reading the source of PDO PostgreSQL driver and i see that there's an empty function, _pdo_pgsql_notice, which is very interesting ! I think that it is used when PostgreSQL throw Notices. But, nothing is done

Re: [PHP-DEV] PDO PgSQL: _pdo_pgsql_notice

2009-10-05 Thread Samuel ROZE
! Samuel. (French) Le mardi 06 octobre 2009 à 07:22 +0200, Samuel ROZE a écrit : Hi ! I'm reading the source of PDO PostgreSQL driver and i see that there's an empty function, _pdo_pgsql_notice, which is very interesting ! I think that it is used when PostgreSQL throw Notices. But, nothing is done

Re: [PHP-DEV] Re: [PHP-DB] PDO PgSQL: _pdo_pgsql_notice

2009-10-05 Thread Samuel ROZE
Sorry, forget this email, it is just a silly forward of my mail to php-db mailing list, where there's someone who said me that i must discuss about the C code with you... Sorry. Samuel. Le mardi 06 octobre 2009 à 07:22 +0200, Samuel ROZE a écrit : To use PostgreSQL's Notices with PDO, i'm

Re: [PHP-DEV] PDO PgSQL: _pdo_pgsql_notice

2009-10-06 Thread Samuel ROZE
Hi, I might find some time to look at it shortly. Not sure using errmsg is appropriate though, as notices are usually returning additional information, not error messages. I think i'll have to make a noticemsg var, but I don't know how implement a new noticeInfo (or somethink like

Re: [PHP-DEV] PDO PgSQL: _pdo_pgsql_notice

2009-10-06 Thread Samuel ROZE
Hi, I might find some time to look at it shortly. Not sure using errmsg is appropriate though, as notices are usually returning additional information, not error messages. I think i'll have to make a noticemsg var, but I don't know how implement a new noticeInfo (or somethink like that)

Re: [PHP-DEV] PDO PgSQL: _pdo_pgsql_notice

2009-10-06 Thread Samuel ROZE
Thanks all lot for your work ! It is be what I want ! I'll view it this evening and I probably will transform it for PHP 5.2 (which is my version) and put it here. At tonight ! :-) Samuel. Le mercredi 07 octobre 2009 à 00:31 +0200, Matteo Beccati a écrit : Hi, Please allow some time for

Re: [PHP-DEV] PDO PgSQL: _pdo_pgsql_notice

2009-10-06 Thread Samuel ROZE
Well, i've show the patch this morning... It's great ! The allocation of the HashTable when use setAttribute might not be really a good job but other, in my mind, is ! See you afternoon for PHP 5.2 path. :-) Samuel. Le mercredi 07 octobre 2009 à 00:31 +0200, Matteo Beccati a écrit : Hi,

Re: [PHP-DEV] PDO PgSQL: _pdo_pgsql_notice

2009-10-07 Thread Samuel ROZE
Ok, it is possible with Oracle.. Do you think that if it is for only both of PDO's supported databases is a reason to make that generaly ? For other drivers it must just burdening PDO. It's what I think... Le mardi 06 octobre 2009 à 23:08 -0700, Christopher Jones a écrit : Samuel ROZE wrote

Re: [PHP-DEV] PDO PgSQL: _pdo_pgsql_notice

2009-10-07 Thread Samuel ROZE
Le mercredi 07 octobre 2009 à 09:06 +0200, Matteo Beccati a écrit : From what I could see, things get a bit more complicate on the code side: PgSQL: 1. Set a notice processor callback 2. Clear the notice buffer before a query 3. Asynchronously buffer notices inside the callback 4. Set a

Re: [PHP-DEV] PDO PgSQL: _pdo_pgsql_notice

2009-10-07 Thread Samuel ROZE
Le mercredi 07 octobre 2009 à 13:30 +0200, Pierre Joye a écrit : [...] This is a bit complicated and very different ! Actually, each database works as it want and it may be better to use different functions for each driver. That defeats the whole purpose of PDO. The meaning of each

Re: [PHP-DEV] PDO PgSQL: _pdo_pgsql_notice

2009-10-07 Thread Samuel ROZE
Le mercredi 07 octobre 2009 à 07:57 +0200, Samuel ROZE a écrit : Well, i've show the patch this morning... It's great ! The allocation of the HashTable when use setAttribute might not be really a good job but other, in my mind, is ! See you afternoon for PHP 5.2 path. :-) Well, I've done

Re: [PHP-DEV] PDO PgSQL: _pdo_pgsql_notice

2009-10-07 Thread Samuel ROZE
://www.beccati.com/misc/php/pdo_pgsql_notices_php5_3.patch I can make another for the trunk, why not :-). I'll probably try to make this functionality as global today or tomorrow. Thanks for your feedback. Samuel. Cheers, On Wed, Oct 7, 2009 at 3:29 PM, Samuel ROZE samuel.r...@aliceadsl.fr

Re: [PHP-DEV] PDO PgSQL: _pdo_pgsql_notice

2009-10-07 Thread Samuel ROZE
...although the method to get them is different, that is the communication ! Samuel. Le mercredi 07 octobre 2009 à 15:49 +0200, Matteo Beccati a écrit : Pierre Joye ha scritto: On Wed, Oct 7, 2009 at 1:27 PM, Samuel ROZE samuel.r...@aliceadsl.fr wrote: This is a bit complicated and very different

[PHP-DEV] php-src in Eclipse CDT

2009-10-07 Thread Samuel ROZE
Hi, Now, i'm using Eclipse CDT (C/C++ Development Tools) and Subclipse. I have a Project (no C Project) from the checkout of the PHP SVN. I modify files, I can create/apply path easly, i'm happy. But, to build, i'm using the console, make sudo make install. Is it possible that when I save into

[PHP-DEV] Patch: Use notices in PDO

2009-10-08 Thread Samuel ROZE
Hi, I've make a patch which insert notices concepts to PDO. It create: - PDO::noticeInfo() - to be like errorInfo - PDO::ATTR_LOG_NOTICES, the name of the PDO parameter - PDO::NOTICES_FETCH - fetch notices - PDO::NOTICES_NONE - don't fetch notices The notices HashTable is emptied

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

2009-10-08 Thread Samuel ROZE
: Sympatique un nouvelle fois 1 ! [2]= string(33) NOTICE: Génial maintenant... 1 } Query: object(PDOStatement)#4 (1) { [queryString]= string(10) SELECT 1,2 } Notices: bool(false) Samuel. Le jeudi 08 octobre 2009 à 23:51 +0200, Samuel ROZE

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

2009-10-08 Thread Samuel ROZE
Oracle ? Thanks. Samuel. Le jeudi 08 octobre 2009 à 15:22 -0700, Christopher Jones a écrit : Samuel ROZE wrote: Hi, I've make a patch which insert notices concepts to PDO. It create: - PDO::noticeInfo() - to be like errorInfo - PDO::ATTR_LOG_NOTICES, the name of the PDO parameter

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

2009-10-09 Thread Samuel ROZE
: 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 proof

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 Samuel ROZE
, -- Pierre On Fri, Oct 9, 2009 at 3:21 PM, Samuel ROZE samuel.r...@gmail.com wrote: 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

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

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

2009-10-09 Thread Samuel ROZE
drivers at the same time. I'm looking for Oracle. Is somebody know how we can do for MySQL (and how raise notices with it) ? Cheers, -- Pierre On Fri, Oct 9, 2009 at 10:31 PM, Samuel ROZE samuel.r...@gmail.com wrote: Just a little question: - How I can propose my patch to be merged to PHP

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

2009-10-10 Thread Samuel ROZE
Le samedi 10 octobre 2009 à 15:51 +0100, Lester Caine a écrit : Ferenc Kovacs wrote: Then see how we can do it for the other drivers at the same time. I'm looking for Oracle. Is somebody know how we can do for MySQL (and how raise notices with it) ?

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

2009-10-11 Thread Samuel ROZE
Le samedi 10 octobre 2009 à 19:43 +0100, Lester Caine a écrit : [...] It is the case for MySQL and Oracle...so for your mind, we don't have to make this option available ? I disagree because PDO want make that PHP codes support many Databases and if I want to get this notices on MySQL, I

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

2009-10-11 Thread Samuel ROZE
Hi, Le dimanche 11 octobre 2009 à 11:55 -0400, Daniel Convissor a écrit : Hi: If the notice/warning gathering abstraction is going to be sending queries to the DBMS in the background, one needs to be careful about maintaining both the results and metadata from the original query that

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

2009-10-12 Thread Samuel ROZE
Sorry but what is ABI ? Le lundi 12 octobre 2009 à 12:50 +0200, Johannes Schlüter a écrit : Hi, On Thu, 2009-10-08 at 23:51 +0200, Samuel ROZE wrote: There is a patch to implements this function into PDO: http://www.d-sites.com/wp-content/uploads/2009/10/php-5_3-pdo-notices

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

2009-10-12 Thread Samuel ROZE
. Samuel. 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 - PDO::ATTR_LOG_NOTICES, the name of the PDO parameter - PDO::NOTICES_FETCH - fetch notices

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

2009-10-12 Thread Samuel ROZE
Here is what I expect for the notices fetching in PDO: http://www.d-sites.com/wp-content/uploads/2009/10/RFC-PDO-Notices.pdf Samuel. Le lundi 12 octobre 2009 à 19:11 +0200, Lukas Kahwe Smith a écrit : [...] well .. what Pierre (and me supporting him) was asking for is to create an RFC page

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

2009-10-13 Thread Samuel ROZE
http://wiki.php.net/rfc/pdonotices Samuel. 2009/10/12 Samuel ROZE samuel.r...@gmail.com: Here is what I expect for the notices fetching in PDO: http://www.d-sites.com/wp-content/uploads/2009/10/RFC-PDO-Notices.pdf Samuel. Le lundi 12 octobre 2009 à 19:11 +0200, Lukas Kahwe Smith a écrit

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

2009-10-15 Thread Samuel ROZE
Le jeudi 15 octobre 2009 à 11:08 +0200, Lukas Kahwe Smith a écrit : On 13.10.2009, at 10:34, Samuel ROZE wrote: http://wiki.php.net/rfc/pdonotices I assume that calling noticeInfo() will also purge all currently stored notices (maybe controllable via some parameter)? If purge all

Re: [PHP-DEV] Autofunc patch (automatically loading functions like autoload)

2009-10-16 Thread Samuel ROZE
Hi, This is a good idea, it appears that it works fine ! I'm not really fond of auto-loading (class or here functions) but it can be a good thing ! :-) Le vendredi 16 octobre 2009 à 17:32 +0300, Rack-Soft security a écrit : [...] Management of large no OOP projects (or mixed OOP/procedural) is

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

2009-10-20 Thread Samuel ROZE
Hi Christopher, 2009/10/19 Christopher Jones christopher.jo...@oracle.com: The new interface combines system generated error messages with user generated messages. I think you're talking about Oracle. The original PostgreSQL example I saw seemed to use arbitrary text messages, similar to

[PHP-DEV] PHP modules (pecl) and PHP codes (pear)

2009-10-29 Thread Samuel ROZE
Hi, I'll have to develop a function like parse_url, but parse_referrer which provides informations about the URL (the referrer): provider, keywords, type of search (search, cache, translation, ...), real page url... I don't really know how I'll do that: using a .ini file like get_browser ? I

Re: [PHP-DEV] PHP modules (pecl) and PHP codes (pear)

2009-10-29 Thread Samuel ROZE
Le jeudi 29 octobre 2009 à 14:03 +0300, Alexey Zakhlestin a écrit : Usually, it is a good idea to write it in PHP at first and then port to C, if performance is poor But I lose some time ! -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit:

Re: [PHP-DEV] PHP modules (pecl) and PHP codes (pear)

2009-10-29 Thread Samuel ROZE
Le jeudi 29 octobre 2009 à 17:35 +0100, Patrick ALLAERT a écrit : 2009/10/29 Samuel ROZE samuel.r...@gmail.com: Le jeudi 29 octobre 2009 à 14:03 +0300, Alexey Zakhlestin a écrit : Usually, it is a good idea to write it in PHP at first and then port to C, if performance is poor But I

Re: [PHP-DEV] PHP modules (pecl) and PHP codes (pear)

2009-10-29 Thread Samuel ROZE
Le jeudi 29 octobre 2009 à 17:37 +0100, Patrick ALLAERT a écrit : Yes, but as far as a PHP extension may take hundreds time to develop than a PHP function. If the PHP version is fast enough, you will win a huge amount of time, if not, you will only lose less than 1% of the overall dev time.

[PHP-DEV] Intervals representation with brackets

2009-11-20 Thread Samuel ROZE
. To be easier, what do you think about: ?php // An interval with [ ] $interval = [ (int) $from, (int) $to ]; ? ?php // A list of intervals $list = [ $from_1, $to_1] + [$from_2, $to_2] + ... [$from_n, $to_n]; $list_2 = [$from_1, $to_1] + ... + $interval_n; ? Regards, Samuel ROZE. -- PHP Internals - PHP

Re: [PHP-DEV] Intervals representation with brackets

2009-11-20 Thread Samuel ROZE
Are you suggesting new object operator? Short-syntax-array? Short-syntax-interval ! :-) What exactly are you asking/informing/reporting/whatever? I'm just asking if, for you, brackets can represent intervals... -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit:

Re: [PHP-DEV] Intervals representation with brackets

2009-11-20 Thread Samuel ROZE
It's clear. ;-) Thanks. 2009/11/20 Rasmus Lerdorf ras...@lerdorf.com: Samuel ROZE wrote: Hello, I'm working on two classes, Interval and IntervalList which describe an interval and a list of intervals. These intervals are defined using the Interval class: ?php $interval = new Interval

Re: [PHP-DEV] Intervals representation with brackets

2009-11-20 Thread Samuel ROZE
at 1:56 PM, Samuel ROZE samuel.r...@gmail.com wrote: Hello, I'm working on two classes, Interval and IntervalList which describe an interval and a list of intervals. These intervals are defined using the Interval class: ?php $interval = new Interval((int) $from, (int

[PHP-DEV] Using a stream function into another module

2009-11-27 Thread Samuel ROZE
to `stream_array_from_fd_set' How can I do to use them into my module ? Regards, Samuel ROZE. -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

[PHP-DEV] Re: Using a stream function into another module

2009-11-29 Thread Samuel ROZE
Nobody can help me ? Is there someone who can just give me some astuces ? Regards, Samuel ROZE. 2009/11/27 Samuel ROZE samuel.r...@gmail.com: Hello, I want to use two stream functions (stream_array_to_fd_set and stream_array_from_fd_set) in a module (/etc/modulename/modulename.c). To use

Re: [PHP-DEV] Re: Using a stream function into another module

2009-11-30 Thread Samuel ROZE
into the streamfuncs.c file, there's the same problem ! Regards, Samuel ROZE. 2009/11/30 Jess Portnoy j...@zend.com: Hi, stream_array_to_fd_set() is defined in ext/standard/streamsfuncs.c, not the header. But I see the actual complaint is on ext/sockets/sockets.c:877: undefined reference

[PHP-DEV] An SSH shell like a stream

2009-12-01 Thread Samuel ROZE
function... Warning: stream_select() [function.stream-select]: cannot represent a stream of type SSH2 Channel as a select()able descriptor in XX on line XX Why I cannot ? Is there a workaround ? Regards, Samuel ROZE. -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit

Re: [PHP-DEV] An SSH shell like a stream

2009-12-01 Thread Samuel ROZE
Done. Sorry! Le mardi 01 décembre 2009 à 22:23 +0100, Pierre Joye a écrit : hi, Please discuss PECL extension in the PECL mailing list or report a bug via pecl.php.net/ssh2. Cheers, On Tue, Dec 1, 2009 at 10:19 PM, Samuel ROZE samuel.r...@gmail.com wrote: Hi, In the description

Re: [PHP-DEV] An SSH shell like a stream

2009-12-02 Thread Samuel ROZE
, Please discuss PECL extension in the PECL mailing list or report a bug via pecl.php.net/ssh2. Cheers, On Tue, Dec 1, 2009 at 10:19 PM, Samuel ROZE samuel.r...@gmail.com wrote: Hi, In the description of ssh2_shell, there's: Open a shell at the remote end and allocate a stream

Re: [PHP-DEV] An SSH shell like a stream

2009-12-02 Thread Samuel ROZE
Sorry, I had a problem with my GMail filters... Regards, Le mercredi 02 décembre 2009 à 13:28 +0100, Samuel ROZE a écrit : The pecl-...@lists.php.net list appears to be broken because I doesn't received my message which I sent yesterday... Is there any who can tell me if I received

[PHP-DEV] Stream: Cast and Seek

2009-12-04 Thread Samuel ROZE
, can someone explain to me what means cast and seek streams ? (In fact, I have to cast a php_ssh2_channel_stream) Thanks a lot. Regards, Samuel ROZE. -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DEV] Stream: Cast and Seek

2009-12-05 Thread Samuel ROZE
wrong ? Regards, Samuel. Le samedi 05 décembre 2009 à 13:40 +0100, Arnaud Le Blanc a écrit : Hi, Le samedi 05 décembre 2009 à 00:01 +0100, Samuel ROZE a écrit : Hello, I'm working on the use of a PHP SSH2 Stream returned by ssh2_shell function with stream_select() function. Within