Skip to content

Fixed typo - inconsistent notice for undefined property (introduced by fix for #49348) #323

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from

Conversation

Majkl578
Copy link
Contributor

@Majkl578 Majkl578 commented Apr 9, 2013

The message added as a fix for #49348 (0c6d903) is not consistent with the other one triggered in similar case.

Consider the following code:

$x = new stdClass();
echo $x->foo++;
echo $x->bar;

Currently, it triggers two notices:
Notice: Undefined property: foo
Notice: Undefined property: stdClass::$bar

The first one was added by the fix for #49348 and is inconsistent with other notices related to property access. It should be same as the other one (should contain classname, :: and dollar).

(I already commented on bugs.php.net and here in #281, but noone cared.)

@laruence
Copy link
Member

seems fine...

@laruence
Copy link
Member

only one issue here, the fix seems also applied to 5.5, but your fix is only against master...

@php-pulls
Copy link

Comment on behalf of laruence at php.net:

cherry-picked in 70668fd

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.

3 participants