Wrox Programmer Forums
BOOK: Beginning PHP4/PHP 5 ISBN: 978-0-7645-4364-7; v5 ISBN: 978-0-7645-5783-5
This is the forum to discuss the Wrox book Beginning PHP4 by Wankyu Choi, Allan Kent, Chris Lea, Ganesh Prasad, Chris Ullman; ISBN: 9780764543647
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Beginning PHP4/PHP 5 ISBN: 978-0-7645-4364-7; v5 ISBN: 978-0-7645-5783-5 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
Old October 15th, 2006, 10:25 AM
Registered User
Join Date: Oct 2006
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default Beg. PHP5 > Ch12 - User class - just some info

At page 472 (Chapter 12) in the code for class User() is think there's a flaw that brings up the Exception error in the __set function. This is caused by the fact that $_changedProperties is not initialised at the beginning of the whole class declaration. Where the class statement now reads:

class User {
        private $_properties;
        private $_hDB;
        public function __construct($userID){
it should read

class User {
        private $_properties;
        private $_hDB;
        private $_changedProperties;
        public function __construct($userID){
At least this is the only way I could avoid the Exception error (apart from commenting out the $_changedProperties in the constructor function).


Similar Threads
Thread Thread Starter Forum Replies Last Post
Beg DWMX 2004 CH12 progrm crashing pg 434 Roo Dreamweaver (all versions) 7 October 3rd, 2006 01:42 PM
GenericObject class from Professional PHP5 codecowboy Pro PHP 0 December 14th, 2005 06:31 PM
Pro PHP5, Ch.15, Class file usage BillD Pro PHP 0 April 7th, 2005 11:08 PM
MSDE(.MDF) files Beg. ASP Ch12 p475 DANIV ASP.NET 1.0 and 1.1 Basics 0 March 28th, 2005 05:27 PM
Class Design Info... kaizer BOOK: Beginning Java 2 1 December 27th, 2003 06:49 AM

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.