pFad - Phone/Frame/Anonymizer/Declutterfier! Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

URL: http://github.com/php/php-src/pull/21414

om/assets/global-68dd150ce6c8e711.css" /> use smart_str_append() if we have a zend_string* by Girgias · Pull Request #21414 · php/php-src · GitHub
Skip to content

use smart_str_append() if we have a zend_string*#21414

Open
Girgias wants to merge 1 commit intophp:masterfrom
Girgias:smart-str-zstr
Open

use smart_str_append() if we have a zend_string*#21414
Girgias wants to merge 1 commit intophp:masterfrom
Girgias:smart-str-zstr

Conversation

@Girgias
Copy link
Member

@Girgias Girgias commented Mar 11, 2026

No description provided.

case IS_OBJECT: {
zend_string *class_name = Z_OBJ_HANDLER_P(arg, get_class_name)(Z_OBJ_P(arg));
smart_str_appends(str, "Object(");
/* cut off on NULL byte ... class@anonymous */
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
/* cut off on NULL byte ... class@anonymous */
/* cut off on NUL byte ... class@anonymous */

Prefer NUL when referring to the (char *)0.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is copied from an existing comment and people always seem to disagree between NULL and NUL byte... So I'll leave it like this and someone can either try to codify or fix this across the whole codebase.

@Girgias Girgias marked this pull request as ready for review March 16, 2026 14:18
Copy link
Member

@DanielEScherzer DanielEScherzer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Okay for ext/reflection

Copy link
Member

@devnexen devnexen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

intl ok

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants

pFad - Phonifier reborn

Pfad - The Proxy pFad © 2024 Your Company Name. All rights reserved.





Check this box to remove all script contents from the fetched content.



Check this box to remove all images from the fetched content.


Check this box to remove all CSS styles from the fetched content.


Check this box to keep images inefficiently compressed and original size.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy