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

2017-10-03 Thread BohwaZ/PHP
I believe that's how PDO::PARAM_LOB is intended to work (based on my reading of the docs and implementations for other drivers). It seems like more of a convenience than anything, though maybe someone had more ideas for how it should work across drivers and never got to follow through on it.

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

2017-10-03 Thread BohwaZ/PHP
Taking it to a better solution is that the method sqliteCreateFunction shouldn't exist on the PDO class, but instead on a PDOSqlite that extends PDO. class PDOSqlite extends PDO { public function createFunction(...) {...} } class PDO { public static function connect(string $dsn [,

Re: [PHP-DEV] RFC proposal: Provide support for XSLT 3.0, XPath 3.1, and XQuery 3.1

2017-10-03 Thread Rowan Collins
[Forwarding this to the list, because I seem to have edited the To line wrong.] On 03/10/2017 14:58, Michael Kay wrote: I'm not 100% sure of my facts here, but I assume there is a significant call overhead every time there's a function call from the PHP world to Saxon's Java world or vice

Re: [PHP-DEV] RFC proposal: Provide support for XSLT 3.0, XPath 3.1, and XQuery 3.1

2017-10-03 Thread Walter Parker
On Tue, Oct 3, 2017 at 7:51 AM, Dan Ackroyd wrote: > Hi O'Neil, > > On 3 October 2017 at 10:04, O'Neil Delpratt wrote: > > Hi, > > > > We are considering submitting an RFC along the following lines and > welcome your comments: > > > > Enhancing the

Re: [PHP-DEV] Making stream functions accepting SplFileObject as valid parameter

2017-10-03 Thread Sara Golemon
On Tue, Oct 3, 2017 at 9:44 AM, Dan Ackroyd wrote: > On 29 September 2017 at 07:46, nyamsprod the funky webmaster > wrote: >> >> I've been following the resolution of this bug: >> >> https://bugs.php.net/bug.php?id=44392 >> >> and it seems that there

Re: [PHP-DEV] RFC proposal: Provide support for XSLT 3.0, XPath 3.1, and XQuery 3.1

2017-10-03 Thread Dan Ackroyd
Hi O'Neil, On 3 October 2017 at 10:04, O'Neil Delpratt wrote: > Hi, > > We are considering submitting an RFC along the following lines and welcome > your comments: > > Enhancing the existing XSLTProcessor is not an option: it has fallen too far > behind for this to be

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

2017-10-03 Thread Adam Baratz
> > PDO already has support for large objects (LOBs)[1]. I don't know if >>> and how these are supported by the pdo_sqlite driver, but wouldn't it >>> make sense to use the existing API instead of introducing a new >>> method? >>> >>> [1] >>> >>> >>

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

2017-10-03 Thread Dan Ackroyd
On 2 October 2017 at 22:48, BohwaZ/PHP wrote: > > If you follow your logic, then PDO::sqliteCreateFunction shouldn't exist, > and this would make the PDO sqlite driver pretty much useless as SQLite is > missing a number of important functions. That's taking it to the illogical

Re: [PHP-DEV] Making stream functions accepting SplFileObject as valid parameter

2017-10-03 Thread Dan Ackroyd
On 29 September 2017 at 07:46, nyamsprod the funky webmaster wrote: > Hi internals, > > I've been following the resolution of this bug: > > https://bugs.php.net/bug.php?id=44392 > > and it seems that there is no safe way to expose the internal > `SplFileObject` filepointer.

[PHP-DEV] RFC proposal: Provide support for XSLT 3.0, XPath 3.1, and XQuery 3.1

2017-10-03 Thread O'Neil Delpratt
Hi, We are considering submitting an RFC along the following lines and welcome your comments: ** Provide support for XSLT 3.0, XPath 3.1, and XQuery 3.1 ** PHP is frequently used to create web services that process XML input and deliver HTML to web clients. Often this is done by invoking XSLT