On 04/09/2012 10:30 PM, Luke Scott wrote:
Yeah it would be. He also mentioned something about preloading
framework classes.. Would like to hear his thoughts on that!
I also subscribe to the opinion of object persistency not being worth it. In an
application server, you could probably achieve m
On 04/07/2012 05:21 AM, Luke Scott wrote:
From what I've gathered thus far, it is impossible to do without copying the
non-persistent memory into persistent memory, and then back again.
Hi, glad to see you again StackOverflow user:-)
I think I've shown you the route by that [1] project, and
On 02/22/2012 07:29 AM, Rasmus Lerdorf wrote:
complicated optimization passes or any of those things
Would such things be welcome/needed in the engine or as an extension?
--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php
On 02/22/2012 06:49 AM, Deepak Balani wrote:
Hello all,
I am think(actually drafting) about the compilation system of PHP scripts.
I want to make a native C extension which is able to compile the scripts in
the Zend Engines opcodes and execute directly when called.
The extension may have two fu
On 02/21/2012 03:18 PM, Ralf Lang wrote:
In PHP I would rather do
$mother = $baby->getMother();
if ($mother) {
$granny = $mother->getMother();
if ($granny) {
$granny_name = $granny->getName();
}
}
because I have no way to catch if $mother or $granny cannot be retr
Hi
How can I ksort() an array?
The default implementation does basically this:
zend_hash_sort(Z_ARRVAL_P(array), zend_qsort, php_array_key_compare, 0
TSRMLS_CC) but php_array_key_compare() is static in ext/standard/array.c [1]
Actually I wouldn't need to sort by key at all if add_index_zval(
On 09/12/2011 08:45 AM, Dmitry Stogov wrote:
Hi Flavius,
Unfortunately, the proposed fix is wrong.
It changes the operators precedence and it's definitely wrong.
I suppose the crash caused by side effect of some other bug.
Try to run the same script with valgrind.
Thanks. Dmitry.
Please t
Hi
I think I've found a bug in the engine, and I think it occures only with
the latest gcc ("gcc version 4.6.1 20110819 (prerelease)"), since it
used to work with earlier versions.
For example line 867
http://lxr.php.net/opengrok/xref/PHP_5_3/Zend/zend_execute_API.c#867
should be
&& P
On 09/08/2011 04:54 PM, Adir Kuhn wrote:
Hello I am new to the list, I live in Brazil and PHP program for 5
years. I have basic knowledge in C, would like to increase my
knowledge in this language and collaborate with the PHP code.
I wish someone could help me with the basic steps, suggesting bu
On 09/07/2011 11:57 PM, David Soria Parra wrote:
For everyone else, go read http:/progit.org, make yourself familar with Git.
As a former svn-only user, I can tell you how I've learned (and still
learn) about git:
1. http://git.or.cz/course/svn.html
2. progit
3. Git from the Bottom up:
h
On 09/04/2011 05:28 AM, Gustavo Lopes wrote:
On Sun, 04 Sep 2011 04:05:32 +0100, Kalle Sommer Nielsen
wrote:
2011/9/3 Arpad Ray:
- Variable declarations should always begin a block, some platforms
will bork otherwise.
Actually this is required for the C standard, the early ones that we
use i
On 09/03/2011 11:41 PM, Arpad Ray wrote:
Haven't had much of a look yet but I really like the concept :)
Glad to hear that. I had this idea for a long time, but I've never got
time to look at it.
A couple of minor things to note:
- Now would be a good time to make it follow the PHP codi
On 09/04/2011 09:21 AM, Nikita Popov wrote:
Hi Flavius!
Hi Nikita
First, you seem to try to lex the PHP code yourself too. Why don't you
use PHP's internal lexing capabilities?
I can't. This is documented in the README.
Second, you seem to try to parse PHP using your own grammar. From my
Hi
I'm Flavius Aspra and over the past weeks [1] I've worked on a small
extension, which I think it has a lot of potential. Thanks to everyone
for being patient with me on #php.pecl during this time - I've learned a
lot!
Meta will enable userland scripts to get the AST of a PHP
There is something that confuses me. Let there be a class member
Foo::$bar, which has to be initialized as an empty array in the
constructor. If I do that (via zend_update_property), its refcount is
increased (from 1, which it gets after alloc + array_init, to 2). It is
obvious why this happens
I have a zval *obj holding an object of class B, which I then add to an
array member of another object of class A. Then I create a new instance
*obj2 of class B, to which I want to add a reference to *obj. How would
I best go about it?
So A works as a "pool" of B's, and B's may reference to ea
Hi
I have a few questions about zend_fcall_info and zend_fcall_info_cache.
Regarding zend_fcall_info
What is function_name useful for? I have a feeling it's for error
reporting, but I'm not sure
What is symbol_table for? Maybe to put in the function's context other
variables beside the para
17 matches
Mail list logo