Re: [PHP-DEV] Ask php cli to parse HTTP request

2016-11-16 Thread Aaron Lewis
als for legacy app support purposes. > > > On 16 Nov 2016 11:50, "Aaron Lewis" wrote: >> >> I have a file that contains a HTTP request, >> >> ``` >> GET /xxx.php >> Host: xxx >> Content-Type: xxx >> ... >> ``` >> >&

Re: [PHP-DEV] Ask php cli to parse HTTP request

2016-11-16 Thread Aaron Lewis
s though, I'd look there for inspiration ... there's also > an HTTP parser included in there ... > > Cheers > Joe > > On Wed, Nov 16, 2016 at 10:50 AM, Aaron Lewis > wrote: >> >> I have a file that contains a HTTP request, >> >> ``` >> G

[PHP-DEV] Ask php cli to parse HTTP request

2016-11-16 Thread Aaron Lewis
API myself. So far I've found sapi_post_entry, but I couldn't get the whole picture. Where's the entry point of request parsing? -- Best Regards, Aaron Lewis - PGP: 0x13714D33 - http://pgp.mit.edu/ Finger Print: 9F67 391B B770 8FF6 99DC D92D 87F6 2602 1371 4D33 -- PH

[PHP-DEV] How should I call a PHP function

2014-08-17 Thread Aaron Lewis
Hi, I'm trying to call a function inside a module, a PHP_FUNCTION. Other than zend_eval_stringl, what's the direct way to do it? -- Best Regards, Aaron Lewis - PGP: 0x13714D33 - http://pgp.mit.edu/ Finger Print: 9F67 391B B770 8FF6 99DC D92D 87F6 2602 1371 4D33 -- PHP Inter

[PHP-DEV] How can I let zend accept any parameters?

2014-08-16 Thread Aaron Lewis
What should I use in "zend_parse_parameters" so that it can support arguments like this: 1. object, string 2. null, string I'm not sure what represents "null" here -- Best Regards, Aaron Lewis - PGP: 0x13714D33 - http://pgp.mit.edu/ Finger Print: 9F67 391B B770 8FF6

[PHP-DEV] Unexpected dead loop

2014-08-15 Thread Aaron Lewis
Hi, It looks like you can't call zend_eval_stringl with unserialize() If you do so it causes a segfault in zend_set_compiled_filename() Is it the right way to eval() something in a module? -- Best Regards, Aaron Lewis - PGP: 0x13714D33 - http://pgp.mit.edu/ Finger Print: 9F67 391B B770

[PHP-DEV] Can't use php_error_docref in zend_API.c?

2014-08-13 Thread Aaron Lewis
Hi, I'm trying to print error messages in zend, so I add a function in zend_API.{h,c} Then I got and error: /Zend/zend_API.c:3226: undefined reference to `php_error_docref So, what's the appropriate function to use? -- Best Regards, Aaron Lewis - PGP: 0x13714D33 - http://pgp.mit.e

[PHP-DEV] Re: Regarding PHP-FPM protocols

2014-08-08 Thread Aaron Lewis
I also want to know about the "fastcgi_param" part, thanks! On Sat, Aug 9, 2014 at 12:43 PM, Aaron Lewis wrote: > Hi, > > I'm trying to understand how php-fpm works, aka how does nginx > "forward" the request to it. > > Now I want an example program

[PHP-DEV] Regarding PHP-FPM protocols

2014-08-08 Thread Aaron Lewis
Hi, I'm trying to understand how php-fpm works, aka how does nginx "forward" the request to it. Now I want an example program that do it or the document that explains it. Anyone know where to get those? -- Best Regards, Aaron Lewis - PGP: 0x13714D33 - http://pgp.mit.edu/ Finge

[PHP-DEV] How do I know if the code is in eval?

2014-07-22 Thread Aaron Lewis
n eval() either -- Best Regards, Aaron Lewis - PGP: 0x13714D33 - http://pgp.mit.edu/ Finger Print: 9F67 391B B770 8FF6 99DC D92D 87F6 2602 1371 4D33 -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

[PHP-DEV] [RESOLVED] Re: [PHP-DEV] What's wrong with these hashtable iteration code?

2014-07-20 Thread Aaron Lewis
Thanks! It worked On Mon, Jul 21, 2014 at 11:20 AM, Tjerk Meesters wrote: > > > > On Mon, Jul 21, 2014 at 11:12 AM, Aaron Lewis > wrote: >> >> Hi, >> >> I'm trying to iterate through a hash table, >> >> But the zend_hash_get_current_key(

[PHP-DEV] What's wrong with these hashtable iteration code?

2014-07-20 Thread Aaron Lewis
\n", string_key); } Any ideas? -- Best Regards, Aaron Lewis - PGP: 0x13714D33 - http://pgp.mit.edu/ Finger Print: 9F67 391B B770 8FF6 99DC D92D 87F6 2602 1371 4D33 -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php