Re: [PHP-DEV] PR 1217: Add support for upload files from buffer string in curl extenion

2015-04-18 Thread Stanislav Malyshev
Hi! > I have few questions for my pull request: > https://github.com/php/php-src/pull/1217 > > Short story: in some special cases we need to upload just created small > file(s) by CURL. For example it's autogenerated image or pdf. And libcurl > give for us this options: CURLFORM_BUFFER, CURLFORM_

Re: [PHP-DEV] RFC: spl_autoload_register() should provide kind of entity to load

2015-04-18 Thread Stanislav Malyshev
Hi! > Currently spl_autoload_register() pass the name of the class entity to the > first *Callable* argument​, but there is now way (as i far i know) to know > what kind of entity we're looking for. > -Class ? > -Interface ? > -Trait? I'm not sure it would be very useful for the engine. It is obv

Re: [PHP-DEV] RFC: spl_autoload_register() should provide kind of entity to load

2015-04-18 Thread Nikita Popov
On Sat, Apr 18, 2015 at 4:24 PM, georges wrote: > ​Hi php internals, > > Currently spl_autoload_register() pass the name of the class entity to the > first *Callable* argument​, but there is now way (as i far i know) to know > what kind of entity we're looking for. > -Class ? > -Interface ? > -Tr

Re: [PHP-DEV] RFC: spl_autoload_register() should provide kind of entity to load

2015-04-18 Thread georges
Effectively from this perspective, i get it. I'm not a fan of PSR-4 convention as they are not officialy supported by PHP but i understand your both (Ryan, Anthony) point of view. Also well done for catching the Hungarian notation, i just noticed that is a bad pratice. Anyway, thanks for your (qu

Re: [PHP-DEV] RFC: spl_autoload_register() should provide kind of entity to load

2015-04-18 Thread Ryan Pallas
On Sat, Apr 18, 2015 at 8:24 AM, georges wrote: > ​Hi php internals, > > Currently spl_autoload_register() pass the name of the class entity to the > first *Callable* argument​, but there is now way (as i far i know) to know > what kind of entity we're looking for. > -Class ? > -Interface ? > -Tr

Re: [PHP-DEV] RFC: spl_autoload_register() should provide kind of entity to load

2015-04-18 Thread Anthony Ferrara
Georges, On Sat, Apr 18, 2015 at 10:24 AM, georges wrote: > Hi php internals, > > Currently spl_autoload_register() pass the name of the class entity to the > first *Callable* argument, but there is now way (as i far i know) to know > what kind of entity we're looking for. > -Class ? > -Interface

[PHP-DEV] RFC: spl_autoload_register() should provide kind of entity to load

2015-04-18 Thread georges
​Hi php internals, Currently spl_autoload_register() pass the name of the class entity to the first *Callable* argument​, but there is now way (as i far i know) to know what kind of entity we're looking for. -Class ? -Interface ? -Trait? A second argument should be added to the *Callable* functi

[PHP-DEV] PR 1217: Add support for upload files from buffer string in curl extenion

2015-04-18 Thread Alexander Moskalev
Hi all! I have few questions for my pull request: https://github.com/php/php-src/pull/1217 Short story: in some special cases we need to upload just created small file(s) by CURL. For example it's autogenerated image or pdf. And libcurl give for us this options: CURLFORM_BUFFER, CURLFORM_BUFFERPT