Development

#1376 ([PATCH] sfComponent::__get doesn't work under php 5.2.0+)

You must first sign up to be able to contribute.

Ticket #1376 (closed defect: fixed)

Opened 3 years ago

Last modified 3 years ago

[PATCH] sfComponent::__get doesn't work under php 5.2.0+

Reported by: spascoe Assigned to:
Priority: major Milestone: 1.0.0
Component: Version: 1.0.0-rc1
Keywords: Cc:
Qualification:

Description

Attached is a patch to correct the behavior of __get, but due to a bug in php 5.2.0, it doesn't correct the behavior in that version. The current snapshots of php 5.2.1 do have a fix in them that corrects the behavior change for php 5.1.4.

I've run the tests (on Windows) for sfComponent as follows:

PHP VersionPATCHResult
5.1.4NoWorks
5.2.0NoFails
5.2.1RC3NoFails
5.1.4YesWorks
5.2.0YesFails
5.2.1RC3YesWorks

Attachments

sfComponent.class.php.patch (0.8 kB) - added by spascoe on 01/24/07 15:15:08.
Corrected Patch for get

Change History

01/24/07 15:15:08 changed by spascoe

  • attachment sfComponent.class.php.patch added.

Corrected Patch for get

02/01/07 07:49:59 changed by fabien

  • status changed from new to closed.
  • resolution set to fixed.

(In [3379]) fixed sfComponent::get doesn't work under php 5.2.0+ (closes #1376 - patch from spascoe)

The Sensio Labs Network

Since 1998, Sensio Labs has been promoting the Open-Source software movement by providing quality web application development, training, consulting.
Sensio Labs also supports several large Open-Source projects.