2

What code in the php-src repo handles a PHP programmer creating an array?

That is -- as a PHP programmer I might do something like this

$foo = array();
$foo = [];

Behind the scenes, I assume there's some bit of central PHP internals code that's alloc-ing out the zvalue_value and zval structs. Where is that code?

Bonus -- if this is a dumb question -- why is it a dumb question? (i.e. what mis-assumption about the PHP Internals handling of an array am I missing?)

1 Answer 1

2

According to this

Zend/zend_hash.c
Zend/zend_hash.h

Have array international code.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.