[PHP-DEV] First-class types RFC

2024-11-09 Thread Adam Kecskes
nction get(type $type); } I’d appreciate your feedback on this idea before proceeding with an RFC or draft PR. Please let me know your thoughts! Best Regards, Adam Kecskes

Re: [PHP-DEV] Zephir, and other tangents

2024-09-23 Thread Adam Zielinski
nsion was a part of every PHP build, I'd be advocating to list it as a requirement. [1] https://github.com/WordPress/blueprints-library/blob/trunk/src/WordPres= s/AsyncHttp/Client.php - Adam

Re: [PHP-DEV] Zephir, and other tangents

2024-09-18 Thread Adam Zielinski
ling data between > PHP and Wasm adds complexity, especially when different programming languages > are involved. > While these are definitely challenges, aren't they largely the same for most languages intending to support WebAssembly? – Adam

Re: [PHP-DEV] Zephir, and other tangents

2024-09-18 Thread Adam Zielinski
On Tue, Sep 17, 2024 at 9:17 PM Mike Schinkel wrote: > > On Sep 17, 2024, at 8:57 AM, Adam Zielinski > wrote: > > > To summarize, I think PHP would benefit from: > > > > 1. Adding WASM for simple low-level extensibility that could run on > > shared hosts for

Re: [PHP-DEV] Zephir, and other tangents

2024-09-17 Thread Adam Zielinski
Constantly improving PHP the language, which is what you are solely > advocating for over extensibility, Hi Mike, I’m Adam, I'm building WordPress Playground [1] – it's WordPress running in the browser via a WebAssembly PHP build [2]. I'm excited to see this discussion and wante

Re: [PHP-DEV] Best way to monitor php-fpm container liveness on Kubernetes

2022-01-31 Thread Adam Hamsik
Hi Alexander, Pls see below my answers.    Best Regards,    Adam. Adam Hamšík Co-founder & CEO Mobile: +421-904-937-495 www.lablabs.io On 23 Jan 2022, 09:09 +0100, Alexandru Pătrănescu , wrote: > > On Sat, Jan 22, 2022 at 10:00 PM Adam Hamsik wrote: > > Hello, > >

[PHP-DEV] Best way to monitor php-fpm container liveness on Kubernetes

2022-01-22 Thread Adam Hamsik
w we can achieve similar results ? [1]  https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle/#when-should-you-use-a-liveness-probe [2] https://kubernetes.io/docs/reference/using-api/health-checks/    Best Regards,    Adam. Adam Hamšík Co-founder & CEO Mobile: +421

RE: [PHP-DEV] Addition of substring and subistring functions.

2021-01-18 Thread Adam Cable
From: Nikita Popov Sent: 18 January 2021 10:32 To: Adam Cable Cc: PHP internals Subject: Re: [PHP-DEV] Addition of substring and subistring functions. On Wed, Jan 13, 2021 at 11:51 AM Adam Cable <mailto:a...@adsar.co.uk> wrote: Hi internals. I've been coding in PHP for 15 yea

[PHP-DEV] Addition of substring and subistring functions.

2021-01-13 Thread Adam Cable
tation can be made a lot better, but it seems to work OK at present. This is my first e-mail to internals, so please excuse my naivety with things, but hope this is useful. Thanks, Adam -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: https://www.php.net/unsub.php

Re: [PHP-DEV] [RFC] [VOTE] Implement missing SQLite feature "openBlob" in PDO

2017-10-31 Thread Adam Baratz
the side of caution, and not adopt the change. > My take would be that "rules are rules." The RFC was defined as 50%+1. Thanks, Adam

Re: [PHP-DEV] Re: [RFC] [Discussion] Implement SQLite "openBlob" feature in PDO

2017-10-03 Thread Adam Baratz
better pattern for driver-specific APIs, but I'm comfortable lumping those goals under "future scope." Getting parity with ext/sqlite3 will make pdo_sqlite more usable, which will help grow its community, and the number of people who are able to contribute to these bigger projects. Deprecating the current set of driver-specific APIs in the future, if we have functional equivalents, isn't an impossible project. Thanks, Adam

Re: [PHP-DEV] [RFC] [Discussion] Implement SQLite "openBlob" feature in PDO

2017-09-27 Thread Adam Baratz
> > following my patch and discussions on this list, here is the RFC requested > by some people here to implement "openBlob" in the pdo_sqlite driver, to > match the "openBlob" method from the SQLite3 extension. Thanks for taking the time to do the writeup. No objections from me. Adam

Re: [PHP-DEV] Matching PDO_SQLite features with SQLite3 extension

2017-08-23 Thread Adam Baratz
out the right way to support extension-specific methods would have to figure out how to deprecate the existing methods. Adding one wouldn't really change the scope of this problem, which isn't intractable in the greater scheme of things. Thanks, Adam --- [1] https://github.com/php/php-src/blob/master/CONTRIBUTING.md

Re: [PHP-DEV] Matching PDO_SQLite features with SQLite3 extension

2017-08-21 Thread Adam Baratz
On Mon, Aug 21, 2017 at 5:54 PM, BohwaZ/PHP wrote: > Le 22/08/2017 07:55, Adam Baratz a écrit : > >> A new method is an API change to me, so an RFC would be warranted. I'm >> reluctant to add driver-specific methods, since that seems opposed to >> PDO's >>

Re: [PHP-DEV] Matching PDO_SQLite features with SQLite3 extension

2017-08-21 Thread Adam Baratz
nce that seems opposed to PDO's driver-agnostic API, but that's not to say we couldn't hash something out. Thanks, Adam

Re: [PHP-DEV] PDO ODBC #42765 uninitialized length bug patch

2017-06-27 Thread Adam Baratz
On Wed, Jun 21, 2017 at 11:32 AM Christoph M. Becker wrote: > On 21.06.2017 at 05:33, Anish Mistry wrote: > > > PDO ODBC #42765 uninitialized length bug patch > > https://bugs.php.net/bug.php?id=42765 > > > > Any takers? Would we be able to get this patch committed? It's a > > pretty straight f

[PHP-DEV] Re: PDO Parameter types // PDO::PARAM_AUTO

2017-05-19 Thread Adam Baratz
_CLASS option referring to that class. There are some examples in ext/pdo/tests, or you can look at the implementation of \PDO::prepare() for the nitty gritty. I think this hook is a good example of the principle I was describing. PDO may only have a basic set of tools, but it makes it easy to extend according to your preferences. Hope this helps, Adam

Re: [PHP-DEV] Re: [VOTE] PDO Float Type

2017-05-18 Thread Adam Baratz
. I'm considering #74592 as a general improvement, separately, in my capacity as pdo_dblib's maintainer, since it's not practical for everyone to move off it. Since your driver uses emulated prepares, I'd expect you having a new > execution plan regardless. At least for current master, which is the RFC > target. I meant if the driver is ever changed to one that uses real prepared statements. Thanks, Adam

[PHP-DEV] Re: PDO Parameter types // PDO::PARAM_AUTO

2017-05-18 Thread Adam Baratz
ot of agreement in the community, at least as indicated by discussions on this list. I agree with Matteo that param hooks might provide a better solution to the specific problem you're describing. Thanks, Adam

Re: [PHP-DEV] [RFC] deprecate PDO::PARAM_NULL

2017-05-18 Thread Adam Baratz
d. In all honesty, I'm ambivalent about this issue. It's certainly not causing any problems. But if enough people feel it should be removed, I'm happy to do the work to remove it. Thanks, Adam

Re: [PHP-DEV] messages not delivering?

2017-05-17 Thread Adam Baratz
> > I'm think this problem might've cropped up again. I didn't receive this > > message: > > http://news.php.net/php.internals/99052 > > > > I only heard about it because it was mentioned in a PR thread. > > > > I remember finding this one in the Spam dir (Gmail). It appears that > DMARC validation

[PHP-DEV] messages not delivering?

2017-05-17 Thread Adam Baratz
ered: http://news.php.net/php.internals/99041 At least, some of the responses I was getting made it seem like Matteo and Marco didn't get all of my posts. Thanks, Adam

Re: [PHP-DEV] Re: [VOTE] PDO Float Type

2017-05-15 Thread Adam Baratz
y use cases, but the maintainers of the other drivers should decide how they want to handle floats. I just want to add the hook so the information is there if anyone wants to use it. Thanks, Adam

[PHP-DEV] [RFC] deprecate PDO::PARAM_NULL

2017-05-15 Thread Adam Baratz
Hi, I've heard a few people here mention that this type isn't useful. It looks like it wouldn't be harmful to remove. The RFC mainly outlines the impact and proposes a schedule for doing so. https://wiki.php.net/rfc/deprecate_pdo_null Please let me know your thoughts. Thanks, Adam

[PHP-DEV] Re: [VOTE] PDO Float Type

2017-05-15 Thread Adam Baratz
to rename the const, from PDO::PARAM_FLT to PDO::PARAM_FLOAT. Agree that readability is better here. Since there's been a change, I'll plan on opening the vote tomorrow. Thanks, Adam --- [1] https://github.com/php/php-src/pull/2500

Re: [PHP-DEV] Re: [VOTE] PDO Float Type

2017-05-09 Thread Adam Baratz
last round respond and say that these changes won't change their vote, then sure, there's no point in rerunning this. Thanks, Adam

[PHP-DEV] Re: [VOTE] PDO Float Type

2017-05-08 Thread Adam Baratz
Hi, I took another pass at this RFC: > *https://wiki.php.net/rfc/pdo_float_type > <https://wiki.php.net/rfc/pdo_float_type>* > Unless discussion prompts major changes, I'll open this for a vote next Monday. Thanks, Adam

[PHP-DEV] Re: [VOTE] PDO Float Type

2017-05-01 Thread Adam Baratz
ne who voted "no" previously, but didn't comment in the thread. There's no need to talk through this RFC again if everyone in that group wants fixed precision types to be included. Thanks, Adam

[PHP-DEV] JS error on PR tool

2017-05-01 Thread Adam Baratz
Hi, I'm getting a JS error that's preventing this page from loading completely: https://qa.php.net/pulls/ The error is: Uncaught TypeError: Cannot read property 'msie' of undefined (jquery.ba-bbq.min.js:18) Is anyone able to take a look at this? Thanks, Adam

[PHP-DEV] Re: [VOTE] PDO Float Type

2017-04-26 Thread Adam Baratz
preciate hearing if they had any issues that weren't covered on the list. Thanks, Adam

Re: [PHP-DEV] [RFC] PDO Float Type

2017-04-24 Thread Adam Baratz
> > On 20/04/2017 00:51, Adam Baratz wrote: > > The reason I went that way was I couldn't find a DB API that > > differentiates between the two types. They all represent them as a > > double, so it seemed like a needless distinction to create two PDO > > types,

Re: [PHP-DEV] [RFC] PDO Float Type

2017-04-19 Thread Adam Baratz
do_sqlsrv goes, it's still a "preview." The Linux ODBC driver it depends on only became supported in January of this year. Eventually, it could make sense to deprecate pdo_dblib in favor of something supported by Microsoft, but the timeline for that is unclear. Thanks, Adam

Re: [PHP-DEV] [RFC] PDO Float Type

2017-04-19 Thread Adam Baratz
pretty rich level of detail in the RFC. I'd like to get a better handle on how we should discuss RFCs. We seem to hit impasses pretty frequently. If you have any specifics on what's helpful for you, I'm happy to adjust my style. Thanks, Adam

[PHP-DEV] [VOTE] PDO Float Type

2017-04-18 Thread Adam Baratz
Hi, I'd like to open the vote on this RFC: *https://wiki.php.net/rfc/pdo_float_type <https://wiki.php.net/rfc/pdo_float_type>* Previous discussion: *https://externals.io/thread/805 <https://externals.io/thread/805>* Voting will end on the 26th at 0:00 UTC. Thanks, Adam

Re: [PHP-DEV] [RFC] PDO Float Type

2017-04-18 Thread Adam Baratz
at each of the APIs. My conclusion was that a single type will be appropriate for floats, doubles, and fixed-precision. I updated the RFC with details. If it's accepted, it could be worth including some of this content in the documentation so people better understand the impact of each PDO param type. I'll create a separate thread to announce the vote. Thanks, Adam

Re: [PHP-DEV] [RFC] PDO Float Type

2017-04-12 Thread Adam Baratz
r problems with this or other points to cover. Otherwise, I'll aim to open voting on Monday. Thanks, Adam

Re: [PHP-DEV] [RFC] PDO Float Type

2017-04-10 Thread Adam Baratz
to talk through details if you have specific suggestions for how this type would work in practice. Thanks, Adam

[PHP-DEV] [RFC] PDO Float Type

2017-04-05 Thread Adam Baratz
tried to be as thorough as possible in understanding the impact on each supported driver. I'd appreciate any feedback on this concept as well as its impact on drivers. Thanks, Adam

Re: [PHP-DEV] Re: [RFC] Extended String Types For PDO

2017-03-18 Thread Adam Baratz
> > > Wait, when was the vote opened? I didn't receive any notification of that > > (and therefore didn't vote yet), and we were still telling you in this > > thread that there are fundamental conceptual issues with the backing > > reasoning. > > Adam an

[PHP-DEV] Re: [RFC] Extended String Types For PDO

2017-03-17 Thread Adam Baratz
was accepted. Thanks all for your feedback and votes. Adam

Re: [PHP-DEV] Let range() return a generator?

2017-03-17 Thread Adam Baratz
etimes you want an array and not a generator. That language is really sympathetic to generator use, but it never forces you to use them. The core libraries are structured thoughtfully in that regard. Thanks, Adam

Re: [PHP-DEV] Re: [RFC] Extended String Types For PDO

2017-03-10 Thread Adam Baratz
others may need to modify their code to be compatible with this new feature. Within pdo, a bitmask is applied -- see uses of the PDO_PARAM_TYPE macro. It's probably worth replicating that in DBAL. Thanks, Adam

Re: [PHP-DEV] Proposing a new 'cache_key' streams operation

2017-03-09 Thread Adam Baratz
stions and guide the conversation. There are some notes here if you haven't done one before: https://wiki.php.net/rfc/howto Thanks, Adam

Re: [PHP-DEV] Re: [RFC] Extended String Types For PDO

2017-03-09 Thread Adam Baratz
in? > It is true that you get the correct result right now. But this happens because the DB will automatically cast values that are quoted incorrectly. This addition would ensures that quoted values don't have an implicit cast applied, which makes queries more expensive. I can put the links I shared earlier into the RFC for easier reference. Thanks, Adam

[PHP-DEV] [VOTE] Extended String Types For PDO

2017-03-08 Thread Adam Baratz
Hi, I'd like to open the vote on this RFC: https://wiki.php.net/rfc/extended-string-types-for-pdo Previous discussion: https://externals.io/thread/715 Voting will end on the 17th at 0:00 UTC. Thanks, Adam

[PHP-DEV] generating code from AST

2017-03-06 Thread Adam Baratz
I'm exploring how to automate some basic kinds of refactor operations. One approach I'm considering: - Generate an AST - Rearrange it as needed - Turn it back into userland code Is this something anyone's explored? Thanks, Adam

Re: [PHP-DEV] Re: [RFC] Extended String Types For PDO

2017-03-06 Thread Adam Baratz
ortant? Or let me know how I should document things better in the RFC? Thanks, Adam

[PHP-DEV] Re: [RFC] Extended String Types For PDO

2017-03-03 Thread Adam Baratz
I updated the RFC based on what I heard. Hopefully it clarifies some of the ambiguities mentioned and the motivation for making this change. It's ultimately about helping PDO articulate part of the SQL spec. Let me know if you have any new questions/concerns. Adam

Re: [PHP-DEV] Re: [RFC] Extended String Types For PDO

2017-03-01 Thread Adam Baratz
o control delimiters and you might want them to be driver-specific. Thanks, Adam --- [1] https://www.postgresql.org/docs/9.2/static/sql-syntax-lexical.html#SQL-SYNTAX-DOLLAR-QUOTING

Re: [PHP-DEV] Re: [RFC] Extended String Types For PDO

2017-02-28 Thread Adam Baratz
ontent_CIREYU9 > EA54EOKQ7LAMZKRF6P.html This functionality seems orthogonal to what I'm describing. It would be more appropriate to implement this as a driver-specific attribute for pdo_oci. But since that driver doesn't support emulated prepares, I'm not sure how much value it would have. Thanks, Adam

[PHP-DEV] Re: [RFC] Extended String Types For PDO

2017-02-24 Thread Adam Baratz
his as a driver-specific change, but believe > it's worthwhile to make it generic since it affects multiple drivers: > https://externals.io/thread/400#email-12542 > > Please let me know what you think. > > Thanks, > Adam > Any thoughts on this one?

[PHP-DEV] [RFC] Extended String Types For PDO

2017-02-16 Thread Adam Baratz
ge, but believe it's worthwhile to make it generic since it affects multiple drivers: https://externals.io/thread/400#email-12542 Please let me know what you think. Thanks, Adam

Re: [PHP-DEV] writing extensions best practice, pass an object as parameter

2017-01-23 Thread Adam Baratz
situation[1]. If at all possible, it'd be better to let an existing community solve performance issues for you. The last question should I use call_user_function or write this function > in C. > Call the internal function directly for less overhead. Hope this helps! Adam --- [1] http://regex.info/blog/2006-09-15/247

Re: [PHP-DEV] Dorin Marcoci Added Firebrid native type mapping for integers (smallint, integer, bigint) in PDO_Firebird driver

2017-01-10 Thread Adam Baratz
d on with https://www.mail-archive.com/internals@lists.php.net/msg88713.html) My perspective is mainly as someone who works with pdo_dblib. Emulated prepares make a greater degree of control more desirable in some cases. I need to think through how such types would impact other drivers, and I've unfortunately been short on time for the exercise. Adam

Re: [PHP-DEV] Dorin Marcoci Added Firebrid native type mapping for integers (smallint, integer, bigint) in PDO_Firebird driver

2017-01-06 Thread Adam Baratz
27;s intended to allow toggling. Since this is a functionality change, I'd suggest supporting it. It'll make it easier for users to migrate if they have any baked-in assumptions around getting strings back. Thanks, Adam

Re: [PHP-DEV] Re: [RFC] ServerRequest and ServerResponse objects

2017-01-06 Thread Adam Baratz
a look at this one. This is definitely a topic of interest with the engineers I work with. Thanks, Adam --- [1] https://wiki.php.net/rfc [2] https://wiki.php.net/rfc/howto

[PHP-DEV] Re: [VOTE] Debugging PDO Prepared Statement Emulation v2

2016-12-15 Thread Adam Baratz
cooled off, so I'd like to open to a vote. Voting will end > on 16 December 2016 at 0:00 UTC. > This RFC was accepted. Thanks, Adam

Re: [PHP-DEV] PDO::PARAM_DOUBLE

2016-12-07 Thread Adam Baratz
> > For decimal, double wouldn't be the correct type anyway, as it could > cause loss of precision. > Sure, agree the name is imprecise. "Double" is mainly relevant to zvals. > Is there a reason PDO::PARAM_DOUBLE doesn't exist? > > I don't know if there's am historical reason. I think it should b

[PHP-DEV] PDO::PARAM_DOUBLE

2016-12-07 Thread Adam Baratz
PDO::PARAM_DOUBLE doesn't exist? Thanks, Adam

[PHP-DEV] [VOTE] Debugging PDO Prepared Statement Emulation v2

2016-12-07 Thread Adam Baratz
to open to a vote. Voting will end on 16 December 2016 at 0:00 UTC. Thanks, Adam

Re: [PHP-DEV] Re: [RFC] Debugging PDO Prepared Statement Emulation v2

2016-12-06 Thread Adam Baratz
> > This issue is not difficult to solve in userland, at least well enough for > debugging in my experience. Here's an older example I wrote up on my blog > that worked (but I'm told is broken right now): https://daveyshafik.com/ > archives/605-debugging-pdo-prepared-statements.html > I want to be

Re: [PHP-DEV] Re: [RFC] Debugging PDO Prepared Statement Emulation v2

2016-12-05 Thread Adam Baratz
o suggested earlier in this thread: make something more robust for getting structured data out of statements. To be honest, the v2 RFC does exactly what I need. It'll let me write .phpt tests and do one-off debugging. But if your take is that simply that you prefer v1 over v2, the regular vote should cover that. Thanks, Adam

Re: [PHP-DEV] Re: [RFC] Debugging PDO Prepared Statement Emulation v2

2016-12-02 Thread Adam Baratz
> > Could you please revert? Albeit minor, it's a new feature and therefore > it belongs to 7.2. No problem. Reverted.

Re: [PHP-DEV] Re: [RFC] Debugging PDO Prepared Statement Emulation v2

2016-12-01 Thread Adam Baratz
> > I'll incorporate it, and the content of this subthread, in the RFC when I > get my next free five minutes. :) > Done. And because of the scope of the v2 implementation, I changed the target release to next 7.1.x. Thanks, Adam

Re: [PHP-DEV] Re: [RFC] Debugging PDO Prepared Statement Emulation v2

2016-11-30 Thread Adam Baratz
tatements. Since they're attached to a pdo_pgsql_stmt value, you'd have to write some driver-specific code to get them out. Maybe there's a simple way to do what you're describing, but my instinct is that it would be better to keep it out-of-scope for this RFC. Thanks, Adam

Re: [PHP-DEV] Re: [RFC] Debugging PDO Prepared Statement Emulation v2

2016-11-28 Thread Adam Baratz
;active_query_stringlen, (int) stmt->active_query_stringlen, > stmt->active_query_string); > } Let me know what you think of this approach. If it sounds fine, I'll update the RFC. Thanks, Adam

[PHP-DEV] Re: [RFC] Debugging PDO Prepared Statement Emulation v2

2016-11-28 Thread Adam Baratz
Hi, > Based on my second thoughts on my initial approach, I created an RFC to > supplant it: > https://wiki.php.net/rfc/debugging_pdo_prepared_statement_emulation_v2 > I'd appreciate any feedback on this RFC, especially from any of the people who voted against the original[

Re: [PHP-DEV] Re: [RFC] Abolish 50%+1 Votes

2016-11-17 Thread Adam Baratz
writing RFCs. I have some concerns that a very high bar will make it difficult to change extensions if their users aren't well-represented here. Thanks, Adam

[PHP-DEV] [RFC] Debugging PDO Prepared Statement Emulation v2

2016-11-17 Thread Adam Baratz
Hi, Based on my second thoughts on my initial approach, I created an RFC to supplant it: https://wiki.php.net/rfc/debugging_pdo_prepared_statement_emulation_v2 I believe this better addresses the negative feedback from the original RFC[1] and is a better solution to the problem. Thanks, Adam

Re: [PHP-DEV] [VOTE] Debugging PDO Prepared Statement Emulation

2016-11-17 Thread Adam Baratz
> > Once the proposal had been accepted, and merged, it's not really > legitimate to unilaterally decide that it's a bad implementation and revert > it yourself. > That's fair. I will revert the revert and open a new RFC to supersede the previous one. Thanks again for your patience. Adam

[PHP-DEV] [VOTE] Debugging PDO Prepared Statement Emulation

2016-11-16 Thread Adam Baratz
marc.info/?l=php-internals&m=147734024403899&w=2 http://marc.info/?l=php-internals&m=147673258418764&w=2 Thanks for your patience as I get acclimated to the world of RFCs. Adam

[PHP-DEV] [ACCEPTED] Debugging PDO Prepared Statement Emulation

2016-11-15 Thread Adam Baratz
Hi, This RFC reached the 50%+1 vote needed for acceptance: https://wiki.php.net/rfc/debugging_pdo_prepared_statement_emulation The implementation was added to master (PHP 7.2): https://github.com/php/php-src/commit/83086d9a72675bad2b2560c6f427d0c1f1d1eba0 Thanks, Adam

[PHP-DEV] [VOTE] Debugging PDO Prepared Statement Emulation

2016-10-31 Thread Adam Baratz
tp://marc.info/?l=php-internals&m=147673258418764&w=2 There were some negatives raised, which I commented on in the RFC. Voting will end on 14 November 2016 at 0:00 UTC. Thanks, Adam

Re: [PHP-DEV] [RFC] Debugging PDO Prepared Statement Emulation

2016-10-31 Thread Adam Baratz
> > There's value in improving tests for emulated prepares, but as I stated > somewhere else, I would rather see them deprecated and removed rather > than encouraged. > I left a note about this in the "Future Scope" section[1]. If we deprecate emulated prepares, it would make sense to deprecate PD

Re: [PHP-DEV] Re: [RFC] Debugging PDO Prepared Statement Emulation

2016-10-26 Thread Adam Baratz
> > > My point is that you are adding 'testing tools' which are only any use > > to test themselves and not the actual interface? It's creating > > additional code that has nothing to do with testing that PDO is working > > cleanly properly across all databases, especially if it does not expect > >

Re: [PHP-DEV] Re: [RFC] Debugging PDO Prepared Statement Emulation

2016-10-26 Thread Adam Baratz
> My point is that you are adding 'testing tools' which are only any use > to test themselves and not the actual interface? It's creating > additional code that has nothing to do with testing that PDO is working > cleanly properly across all databases, especially if it does not expect > a working c

Re: [PHP-DEV] Re: [RFC] Debugging PDO Prepared Statement Emulation

2016-10-26 Thread Adam Baratz
> > Since PDO is an interface to third party databases this seems totally > out of place in PHP. Prepared statements are a sensible mechanism for > for anyone wanting secure access to those database, so what is the point > of this code. I don't want to solve for database access. I want to create

[PHP-DEV] Re: [RFC] Debugging PDO Prepared Statement Emulation

2016-10-24 Thread Adam Baratz
> > I've created an RFC to make it easier to work with emulated prepared > statements: > https://wiki.php.net/rfc/debugging_pdo_prepared_statement_emulation > Does anyone have feedback?

Re: [PHP-DEV] [RFC] Driver-Specific PDO Param Types

2016-10-21 Thread Adam Baratz
On Wed, Oct 19, 2016 at 12:25 PM, Lester Caine wrote: > On 18/10/16 23:05, Adam Baratz wrote: > > Please share your feedback. I'm happy to hear thoughts about the > pdo_dblib > > example, but the RFC is more about the possibility of driver-specific > types > > tha

[PHP-DEV] [RFC] Driver-Specific PDO Param Types

2016-10-18 Thread Adam Baratz
particular ones. Thanks, Adam

[PHP-DEV] [RFC] Debugging PDO Prepared Statement Emulation

2016-10-17 Thread Adam Baratz
your feedback. I'd like to hone in on one solution for the eventual vote. Thanks, Adam --- [1] http://marc.info/?l=php-internals&m=147638162506291&w=2

[PHP-DEV] PDOStatement::activeQueryString()

2016-10-13 Thread Adam Baratz
I figure it's always easier to discuss proposals alongside real code: https://github.com/php/php-src/pull/2159 Please let me know what you think, if an RFC would be appropriate, or what. Thanks, Adam

Re: [PHP-DEV] Fwd: [PHP-BUG] Bug #73234 [NEW]: emulated statementslet value dictate parameter type

2016-10-12 Thread Adam Baratz
On Wed, Oct 12, 2016 at 4:58 AM, Rowan Collins wrote: > On 11/10/2016 17:39, Lester Caine wrote: > >> The importance of 'null' in relation to SQL data sets is something that >> PHP seems to push under the carpet a bit. It is essential to the way SQL >> works and so needs to mirror properly which

Re: [PHP-DEV] Fwd: [PHP-BUG] Bug #73234 [NEW]: emulated statementslet value dictate parameter type

2016-10-11 Thread Adam Baratz
> > I've had a quick look at the bug fix, although I haven't tested it. By > the looks of it, it seems that the third parameter has become mandatory, > which to me seems unacceptable. > > I would say that the type parameter should have precedence over the > actual PHP type only when it is explicitl

Re: [PHP-DEV] Fwd: [PHP-BUG] Bug #73234 [NEW]: emulated statementslet value dictate parameter type

2016-10-04 Thread Adam Baratz
> > > Well, I'm pretty sure Postgres won't be affected either way, because > >>> its type system is such that you can't prepare a query where the types > of > >>> parameters can't be decided yet. A query like this simply gives an > error. > > Firebird, oracle and mysql would have exac

Re: [PHP-DEV] Fwd: [PHP-BUG] Bug #73234 [NEW]: emulated statementslet value dictate parameter type

2016-10-04 Thread Adam Baratz
> > >> Well, I'm pretty sure Postgres won't be affected either way, because > its type system is such that you can't prepare a query where the types of > parameters can't be decided yet. A query like this simply gives an error. > > > > Firebird, oracle and mysql would have exactly the same problem.

[PHP-DEV] Fwd: [PHP-BUG] Bug #73234 [NEW]: emulated statements let value dictate parameter type

2016-10-03 Thread Adam Baratz
e request. If I don't hear from anyone, I'll keep it to master to give others the most time to prepare. Thanks, Adam -- Forwarded message -- From: adambar...@php.net Date: Mon, Oct 3, 2016 at 11:19 AM Subject: [PHP-BUG] Bug #73234 [NEW]: emulated statements let value dicta

[PHP-DEV] Re: pdo_dblib on pecl

2016-09-26 Thread Adam Baratz
On Tue, Sep 13, 2016 at 10:54 AM, Adam Baratz wrote: > > I noticed that there's a stale version of a supported package on pecl: >> > https://pecl.php.net/package/pdo_dblib >> > >> > Should this be removed to avoid confusion? >> >> Alternativ

[PHP-DEV] Re: pdo_dblib on pecl

2016-09-13 Thread Adam Baratz
> > > I noticed that there's a stale version of a supported package on pecl: > > https://pecl.php.net/package/pdo_dblib > > > > Should this be removed to avoid confusion? > > Alternatively a note might be added, as it has been done for > PECL/domxml, for instance. > > Either way, that should also b

[PHP-DEV] pdo_dblib on pecl

2016-09-13 Thread Adam Baratz
Hi, I noticed that there's a stale version of a supported package on pecl: https://pecl.php.net/package/pdo_dblib Should this be removed to avoid confusion? Thanks, Adam

RE: [PHP-DEV] merged branches in incorrect order

2016-09-12 Thread Adam Baratz
> To keep it clean, you can > > git checkout master > git reset --hard origin/master > > and same for every branch containing a wrong merge. This will reset every branch to the state of remote, after that you can repeat the merge clean way. Yes, but in this case, I'd already pushed.

[PHP-DEV] merged branches in incorrect order

2016-09-12 Thread Adam Baratz
will this cause git history issues? Figured it would be better to check what to do next than to do any preemptive cleanup. Thanks, Adam

Re: [PHP-DEV] Re: VCS Account Request: adambaratz

2016-09-11 Thread Adam Baratz
> > I've granted you with ext/pdo_dblib karma, it takes a couple of hours to > propagate, let me know if you need further help. > Thanks! Is it also possible to get access to ext/pdo? I needed to add some conditional logic to get the shared tests running with pdo_dblib, but I can put up a regular

Re: [PHP-DEV] VCS Account Request: adambaratz

2016-09-06 Thread Adam Baratz
> > > One note I missed: it probably goes without saying that I'd like write > > access to ext/pdo_dblib, but write access to ext/pdo would also help for > > work on common unit tests and functionality. > > +1, Adam have done great work at trying to keep pdo_d

Re: [PHP-DEV] VCS Account Request: adambaratz

2016-08-31 Thread Adam Baratz
One note I missed: it probably goes without saying that I'd like write access to ext/pdo_dblib, but write access to ext/pdo would also help for work on common unit tests and functionality. On Tue, Aug 30, 2016 at 4:00 PM, Adam Baratz wrote: > Maintain pdo_dblib extension. > &

Re: [PHP-DEV] request for pdo_dblib maintainer status

2016-08-30 Thread Adam Baratz
> Do you already have a git account? If not, you should request one on http://php.net/git-php.php. Didn't know about that. Just did, thanks.

[PHP-DEV] VCS Account Request: adambaratz

2016-08-30 Thread Adam Baratz
Maintain pdo_dblib extension. -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

[PHP-DEV] request for pdo_dblib maintainer status

2016-08-25 Thread Adam Baratz
te so it can be run more reliably/consistently across environments. I'd be happy to push through the bugs queue shortly and see if it can be cleaned up. Thanks, Adam

Re: [PHP-DEV] [RFC] orphan extensions cleanup

2016-08-15 Thread Adam Baratz
this. It would help to know more about what's expected. In particular, when PRs poke at broader design questions with the extension, what's the maintainer's role? One example: https://github.com/php/php-src/pull/2017 Thanks, Adam

[PHP-DEV] automating gcov with third-party extensions

2016-07-27 Thread Adam Baratz
there would be value in getting phpize to produce some of this. Am I right in guessing that other people want to do things like this? Thanks, Adam

  1   2   3   4   5   6   7   >