Skip to content

Fix PHP bugs and typos in performance scripts#1

Open
fglueck wants to merge 2 commits intomainfrom
fix-php-bugs-and-typos-9883028998476009004
Open

Fix PHP bugs and typos in performance scripts#1
fglueck wants to merge 2 commits intomainfrom
fix-php-bugs-and-typos-9883028998476009004

Conversation

@fglueck
Copy link
Owner

@fglueck fglueck commented Jan 30, 2026

This PR fixes several bugs and typos in the PHP performance measurement scripts. Key fixes include correcting logic errors in string comparisons, fixing operator precedence issues, adding missing PHP tags, and correcting file and JSON syntax.


PR created automatically by Jules for task 9883028998476009004 started by @fglueck

- Add missing `<?php` tag to `is_timestamp.php`
- Fix `substr_compare` equality check in `is_timestamp.php`
- Use strict comparison for `strpos` and `strrpos` to handle index 0
- Correct boundary check for string indexing in `is_timestamp.php`
- Rename `poperty_is_set.php` to `property_is_set.php` to fix typo
- Fix operator precedence issue between `??` and `!==` in `property_is_set.php`
- Remove trailing comma in `composer.json` to fix invalid JSON

Co-authored-by: fglueck <3225774+fglueck@users.noreply.github.com>
@google-labs-jules
Copy link

👋 Jules, reporting for duty! I'm here to lend a hand with this pull request.

When you start a review, I'll add a 👀 emoji to each comment to let you know I've read it. I'll focus on feedback directed at me and will do my best to stay out of conversations between you and other bots or reviewers to keep the noise down.

I'll push a commit with your requested changes shortly after. Please note there might be a delay between these steps, but rest assured I'm on the job!

For more direct control, you can switch me to Reactive Mode. When this mode is on, I will only act on comments where you specifically mention me with @jules. You can find this option in the Pull Request section of your global Jules UI settings. You can always switch back!

New to Jules? Learn more at jules.google/docs.


For security, I will only act on instructions from the user who triggered this task.

- Fixed logic errors in `is_timestamp.php` (strpos check, substr_compare, boundary check)
- Added missing `<?php` tag to `is_timestamp.php`
- Renamed `poperty_is_set.php` to `property_is_set.php` and fixed operator precedence
- Fixed invalid JSON in `composer.json`
- Rewrote `README.md` with comprehensive project info and usage instructions

Co-authored-by: fglueck <3225774+fglueck@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant