 | News Feed |
 | Jobs Feed |
Sections
|
| feed this: |  |
Derick Rethans' Blog: Overloaded properties (__get)
by Chris Cornutt August 19, 2006 @ 15:29:56
Derick Rethans talks about something he noticed when working with backwards compatibility to PHP 5.1 for the eZ components project - the first of which is that __get doesn't behave itself in some situations.
The first issue is an extra notice in some cases. In our (ezcMailTools) class we implement a method that allows you to "reply" to a parsed e-mail message. you can see we loop over one of the seemingly public variables of the $mail class. However, the ezcMail class does not have this as a public member variable, but instead uses overload.
This all works 'fine' with PHP 5.1, however with PHP 5.2 the following notice was generated for this code:
Notice: Indirect modification of overloaded property ezcMail::$to has no effect in ../Mail/src/tools.php on line 364
The reason for this is that __get() only returns variables in read mode, while foreach() wants a variable in read/write mode as it tries to modify the internal array pointer. As it can't do this PHP 5.2 will now throw a warning on this.
The mentioned code examples are included and he includes the work-around that he found to help keep the issue from popping up again.
voice your opinion now!
get ez components overload property get ez components overload property
Syntux: eZ components
by Chris Cornutt August 14, 2006 @ 07:39:14
On his blog today, Ammar Ibrahim relays a story of how the Mail component from the eZ component frameowrk "saved the day" for a project he was working on.
A few days ago I was asked to develop a simple script for a solidarity campaign. The idea is that people send their photos as attachements to some email. The script would download all images attached and insert a record for that in the database.
I got introduced to eZ components during my last visit to Norway to attend the eZ systems conference. I decided to give it a shot, and oh boy it's just amazing, probably the cleanest and simplest API ever.
The Mail attachment provided all that he needed, and he includes the script (about 50 lines long) that he used to fetch the emails. He did have one issue with the ability to fetch a single email with the tool, but he managed to hack around it (script included as well).
voice your opinion now!
ez components save mail send photos attachments api simple clean ez components save mail send photos attachments api simple clean
Sandro Groganz's Blog: eZ System's New Strategy & Slides
by Chris Cornutt July 28, 2006 @ 05:52:53
Sandro Groganz has two new posts related to eZ systems today, one detailing their new strategy in the PHP market and the other, the set of slides from the eZ publish Conference this year.
In their new strategy staatement, eZ systems states why they develop the software they do, how it all relates to the eZ publish CMS, and a mention of their plans to built on top of the eZ platfom.
They look at the "mature market" that is the realm of PHP, noting it's a perfect time for them to make this move. They also talk about their development being done in "the PHP way", popular in the community. Their new focus is one driven by the community, too, adapting itself to the current climate of the market. They're also seeking to raise up the standard of their development, at the same time, raising the bar for other PHP platforms out there.
The second post just notes that the slides from the eZ publish Conference 2006 are now online. They primarily discuss the recent developments with the eZ platform and eZ application server.
voice your opinion now!
market strategy ez systems slides conference market strategy ez systems slides conference
|
Community Events
Don't see your event here? Let us know!
|