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

2009-12-05 Thread Samuel ROZE
something 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

[PHP-DEV] Stream: Cast and Seek

2009-12-04 Thread Samuel ROZE
generally works. So, 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] 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

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

2009-12-02 Thread Samuel ROZE
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 wrote: > > Hi, > > > > In the description of ssh2_shell, there's: &g

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 wrote: > > Hi,

[PHP-DEV] An SSH shell like a stream

2009-12-01 Thread Samuel ROZE
Stream with the stream_select 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 Developme

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

2009-11-30 Thread Samuel ROZE
ew function into the streamfuncs.c file, there's the same problem ! Regards, Samuel ROZE. 2009/11/30 Jess Portnoy : > 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

[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 : > 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 t

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

2009-11-27 Thread Samuel ROZE
ockets/sockets.c:959: undefined reference 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

Re: [PHP-DEV] Intervals representation with brackets

2009-11-20 Thread Samuel ROZE
php > > On Fri, Nov 20, 2009 at 1:56 PM, 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: >> >

Re: [PHP-DEV] Intervals representation with brackets

2009-11-20 Thread Samuel ROZE
It's clear. ;-) Thanks. 2009/11/20 Rasmus Lerdorf : > 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 c

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:

[PHP-DEV] Intervals representation with brackets

2009-11-20 Thread Samuel ROZE
terval_2); ?> IntervalList's functions are: - inverse(); which returns an IntervalList object - intersection(); which returns an IntervalList object of intervals which are contained by every interval of this list. To be easier, what do you think about: Regards, Samuel ROZE. -- PHP Interna

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.

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 : > > 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 p

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: http://www.php.net/un

[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" ?

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

2009-10-20 Thread Samuel ROZE
Hi Christopher, 2009/10/19 Christopher Jones : > 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 Oracle's DBMS_OUTPUT (page

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

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 : > 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 K

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 pa

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

2009-10-12 Thread Samuel ROZE
) Thanks a lot for your reply. 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

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/1

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] 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,

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) ? > >> > > http://dev.mysql.

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

2009-10-09 Thread Samuel ROZE
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) ? > Cheers, > -- > Pierre > > On Fri, Oct 9, 2009 at 10:31 PM, Samuel ROZE wrote: > > Just a little question: > > - How I

[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

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

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

2009-10-09 Thread Samuel ROZE
> Cheers, > -- > Pierre > > On Fri, Oct 9, 2009 at 3:21 PM, Samuel ROZE 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"

[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] 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 wa

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 : > > Samuel ROZE wrote

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

2009-10-08 Thread Samuel ROZE
get notices from 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 errorIn

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

2009-10-08 Thread Samuel ROZE
Sympatique 1 !" [1]=> string(40) "NOTICE: 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) ---

[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] 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 int

Re: [PHP-DEV] PDO PgSQL: _pdo_pgsql_notice

2009-10-07 Thread Samuel ROZE
of theses...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 > > wrote: > >> This is a b

Re: [PHP-DEV] PDO PgSQL: _pdo_pgsql_notice

2009-10-07 Thread Samuel ROZE
t this address for PHP 5.3: http://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

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

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 à 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. Se

Re: [PHP-DEV] PDO PgSQL: _pdo_pgsql_notice

2009-10-06 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 : > > S

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

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 th

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 l

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

Re: [PHP-DEV] PDO PgSQL: _pdo_pgsql_notice

2009-10-05 Thread Samuel ROZE
l_notice.php:22 Stack trace: #0 /etc/php-5.2.10/test/pgsql_notice.php(22): PDO->errorInfo() #1 {main} thrown in /etc/php-5.2.10/test/pgsql_notice.php on line 22 Is anyone can help me ? Thanks a lot ! Samuel. (French) Le mardi 06 octobre 2009 à 07:22 +0200, Samuel ROZE a écrit : >

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

2009-10-05 Thread Samuel ROZE
l_notice.php:22 Stack trace: #0 /etc/php-5.2.10/test/pgsql_notice.php(22): PDO->errorInfo() #1 {main} thrown in /etc/php-5.2.10/test/pgsql_notice.php on line 22 Is anyone can help me ? Thanks a lot ! Samuel. (French) Le lundi 05 octobre 2009 à 20:58 +0200, Samuel ROZE a écrit : >

[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 commented