<?xml version="1.0" encoding="utf-8" ?><rss version="2.0" xml:base="https://www.webmaster-forums.net/crss/node/1022886" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title></title>
    <link>https://www.webmaster-forums.net/crss/node/1022886</link>
    <description></description>
    <language>en</language>
          <item>
    <title></title>
    <link>https://www.webmaster-forums.net/serverside-scripting/php-class-and-constructor#comment-1141036</link>
    <description> &lt;p&gt;ok finally i don&#039;t know why i made such a big fuzz out of this. When there is a constructor for class B the constructor for class A is not called. I simply added a line to class B contructor wich call Class A constructor&lt;/p&gt;
 </description>
     <pubDate>Wed, 19 Nov 2003 16:51:14 +0000</pubDate>
 <dc:creator>druagord</dc:creator>
 <guid isPermaLink="false">comment 1141036 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/serverside-scripting/php-class-and-constructor#comment-1141016</link>
    <description> &lt;p&gt;yes i took a look at it. and it seems very nice i just want it to get a little more mature before i upgrade my production servers. I will install it on my workstation as soon as i find time for that &lt;img src=&quot;https://www.webmaster-forums.net/misc/smileys/smile.png&quot; title=&quot;Smiling&quot; alt=&quot;Smiling&quot; class=&quot;smiley-content&quot; /&gt;&lt;/p&gt;
 </description>
     <pubDate>Wed, 19 Nov 2003 14:09:32 +0000</pubDate>
 <dc:creator>druagord</dc:creator>
 <guid isPermaLink="false">comment 1141016 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/serverside-scripting/php-class-and-constructor#comment-1141000</link>
    <description> &lt;p&gt;You might want to consider php5.  I just upgraded my server, and I&#039;m looking forward to developing with the new object stuff.&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;http://www.php.net/zend-engine-2.php&quot; class=&quot;bb-url&quot;&gt;http://www.php.net/zend-engine-2.php&lt;/a&gt;&lt;/p&gt;
 </description>
     <pubDate>Wed, 19 Nov 2003 01:57:56 +0000</pubDate>
 <dc:creator>Mark Hensler</dc:creator>
 <guid isPermaLink="false">comment 1141000 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/serverside-scripting/php-class-and-constructor#comment-1140975</link>
    <description> &lt;blockquote class=&quot;bb-quote-body&quot;&gt;&lt;p&gt;&lt;strong&gt;Mark Hensler wrote:&lt;/strong&gt; So you have a class &#039;B&#039; with no constructor and when creating an instance of class &#039;B&#039;, the constructor for class &#039;A&#039; was called?
&lt;/p&gt;&lt;/blockquote&gt;
&lt;p&gt;Yes actualy i&#039;m improving on this code and now need to set some other variables in class B And in class C wich also extends class A &lt;/p&gt;
&lt;blockquote class=&quot;bb-quote-body&quot;&gt;&lt;p&gt;&lt;strong&gt;Mark Hensler wrote:&lt;/strong&gt;&lt;br /&gt;
I guess that does make sense.  Because class &#039;A&#039; may require data to instanciate (is that a word?) itself.&lt;/p&gt;&lt;/blockquote&gt;
&lt;p&gt;yes i think it&#039;s the word. From the php.net docs i know this works only in php4 and not in php3. Since i&#039;m only designing my new class structures right now i didn&#039;t experiment yet but i&#039;ll keep you posted on my findings. Thanks again for your help.&lt;/p&gt;
 </description>
     <pubDate>Tue, 18 Nov 2003 19:42:17 +0000</pubDate>
 <dc:creator>druagord</dc:creator>
 <guid isPermaLink="false">comment 1140975 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/serverside-scripting/php-class-and-constructor#comment-1140973</link>
    <description> &lt;p&gt;So you have a class &#039;B&#039; with no constructor and when creating an instance of class &#039;B&#039;, the constructor for class &#039;A&#039; was called?&lt;/p&gt;
&lt;p&gt;I guess that does make sense.  Because class &#039;A&#039; may require data to instanciate (is that a word?) itself.&lt;/p&gt;
 </description>
     <pubDate>Tue, 18 Nov 2003 19:31:39 +0000</pubDate>
 <dc:creator>Mark Hensler</dc:creator>
 <guid isPermaLink="false">comment 1140973 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/serverside-scripting/php-class-and-constructor#comment-1140966</link>
    <description> &lt;p&gt;ok understood for the destructor but for the constructor i know that if class B doesn&#039;t have one the one from class A will be called since i already done something like that now i want to know what will happen if class B also as a constructor should i call the one from class A in the one from class B or not (i don&#039;t want it to be called twice). I guess i&#039;ll just build some dummy class to experiment. &lt;/p&gt;
&lt;p&gt;Thank&#039;s for the answer.&lt;/p&gt;
 </description>
     <pubDate>Tue, 18 Nov 2003 18:46:55 +0000</pubDate>
 <dc:creator>druagord</dc:creator>
 <guid isPermaLink="false">comment 1140966 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/serverside-scripting/php-class-and-constructor#comment-1140964</link>
    <description> &lt;p&gt;I got confused there for a bit, so I&#039;m gonna say &quot;Class &#039;B&#039; Extends Class &#039;A&#039;&quot;.&lt;/p&gt;
&lt;p&gt;When creating an instance of class &#039;B&#039;, the constructor for class &#039;B&#039; will be called.  The constructor for &#039;A&#039; will not be called.  This is simply because the constructor for a class is always a function of the same name.&lt;/p&gt;
&lt;p&gt;I haven&#039;t anything linking register_shutdown_function() to classes.  It&#039;s a global thing.&lt;/p&gt;
&lt;p&gt;I&#039;m guessing you have a function (destructor?) defined in class &#039;A&#039;, and want to know if register_shutdown_function() will call it if you have an instance of class &#039;B&#039;.  I believe it will.&lt;/p&gt;
 </description>
     <pubDate>Tue, 18 Nov 2003 18:12:42 +0000</pubDate>
 <dc:creator>Mark Hensler</dc:creator>
 <guid isPermaLink="false">comment 1140964 at https://www.webmaster-forums.net</guid>
  </item>
  </channel>
</rss>
