More PHP Internals: References

By request, a quick post on using PHP references in extensions. To start, here’s an example of references in PHP we’ll be translating into C: This will print: x is 1 called not_by_ref(1) x is 1 called by_ref(1) x is 3 If you want your C extension’s function to officially have a signature with ampersandsContinue reading “More PHP Internals: References”