<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<META content="MSHTML 6.00.2900.3020" name=GENERATOR>
<STYLE>@page Section1 {size: 612.0pt 792.0pt; margin: 72.0pt 90.0pt 72.0pt 90.0pt; }
P.MsoNormal {
        FONT-SIZE: 12pt; MARGIN: 0pt; FONT-FAMILY: "Times New Roman"
}
LI.MsoNormal {
        FONT-SIZE: 12pt; MARGIN: 0pt; FONT-FAMILY: "Times New Roman"
}
DIV.MsoNormal {
        FONT-SIZE: 12pt; MARGIN: 0pt; FONT-FAMILY: "Times New Roman"
}
A:link {
        COLOR: blue; TEXT-DECORATION: underline
}
SPAN.MsoHyperlink {
        COLOR: blue; TEXT-DECORATION: underline
}
A:visited {
        COLOR: purple; TEXT-DECORATION: underline
}
SPAN.MsoHyperlinkFollowed {
        COLOR: purple; TEXT-DECORATION: underline
}
SPAN.emailstyle17 {
        COLOR: windowtext; FONT-FAMILY: Arial
}
SPAN.EmailStyle19 {
        FONT-FAMILY: Arial
}
DIV.Section1 {
        page: Section1
}
</STYLE>
</HEAD>
<BODY lang=EN-US vLink=purple link=blue>
<DIV dir=ltr align=left><FONT face=Arial><FONT color=#0000ff><FONT size=2><SPAN 
class=031080222-09012007>Based on what I have seen you are better off using 
non-objects for things you want to cache.&nbsp; As an example there is a lot 
less overhead when using APC with arrays vs 
objects&nbsp;</SPAN></FONT></FONT></FONT><BR></DIV>
<BLOCKQUOTE dir=ltr 
style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #0000ff 2px solid; MARGIN-RIGHT: 0px">
  <DIV></DIV>
  <DIV class=Section1>
  <P class=MsoNormal><FONT face=Arial size=2><SPAN 
  style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">To use objects or arrays? 
  &nbsp;What is the &#8220;Drupal way&#8221;?&nbsp; I&#8217;d rather write code using objects 
  (php&#8217;s stdClass).&nbsp; But I&#8217;ve run into a ton of problems using objects on 
  php4.<BR><BR>The CiviCRM folks have this handy guide for php5 -&gt; 
  php4:</SPAN></FONT></P>
  <P class=MsoNormal><FONT face=Arial size=2><SPAN 
  style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"></SPAN></FONT>&nbsp;</P>
  <P class=MsoNormal><FONT face=Arial size=2><SPAN 
  style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">http://wiki.civicrm.org/confluence/display/CRM/Writing+PHP4+Compatible+code</SPAN></FONT></P>
  <P class=MsoNormal><FONT face=Arial size=2><SPAN 
  style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"></SPAN></FONT>&nbsp;</P>
  <P class=MsoNormal><FONT face=Arial size=2><SPAN 
  style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">But even after using it, I&#8217;m 
  having difficulties.&nbsp; I&#8217;m starting to conclude that I should convert all 
  my object references to arrays.&nbsp; I only see a couple of object references 
  in core, and none to anything complicated (arrays of objects, objects pointing 
  to objects, object elements of arrays of objects, etc).&nbsp; 
  </SPAN></FONT></P>
  <P class=MsoNormal><FONT face=Arial size=2><SPAN 
  style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"></SPAN></FONT>&nbsp;</P>
  <DIV>
  <P class=MsoNormal><FONT face=Arial size=2><SPAN 
  style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">Doug Green</SPAN></FONT></P>
  <P class=MsoNormal><FONT face=Arial size=1><SPAN 
  style="FONT-SIZE: 7.5pt; FONT-FAMILY: Arial"><A 
  href="http://www.douggreenconsulting.com/">www.douggreenconsulting.com</A></SPAN></FONT></P>
  <P class=MsoNormal><FONT face=Arial color=navy size=1><SPAN 
  style="FONT-SIZE: 7.5pt; COLOR: navy; FONT-FAMILY: Arial"><A 
  title=http://www.douggreenconsulting.com/ 
  href="http://www.civicactions.com">www.civicactions.com</A></SPAN></FONT></P>
  <P class=MsoNormal><FONT face="Times New Roman" size=3><SPAN 
  style="FONT-SIZE: 12pt"></SPAN></FONT>&nbsp;</P>
  <P class=MsoNormal><EM><I><FONT face="Times New Roman" color=navy size=1><SPAN 
  style="FONT-SIZE: 7.5pt; COLOR: navy">Changing the world one node at a 
  time!</SPAN></FONT></I></EM></P></DIV></DEFANGED_SPAN>
  <P class=MsoNormal><FONT face="Times New Roman" size=3><SPAN 
  style="FONT-SIZE: 12pt"></SPAN></FONT>&nbsp;</P></DIV></BLOCKQUOTE></BODY></HTML>