[Solar-talk] session warrnings

Paul M Jones pmjones at solarphp.com
Thu Mar 29 14:29:00 PDT 2007


On Mar 29, 2007, at 1:21 PM, Jeff Surgeson wrote:

>>> Is this me or Solar? (svn)
>>> Notice: Uninitialized string offset: 0
>>> in /var/www/localhost/htdocs/libsvn/Solar/Class/Stack.php on line  
>>> 165
>>
>> The line in question is the last one listed here:
>>
>>      public function load($name, $throw = true)
>>      {
>>          // some preliminary checks for valid class names
>>          if ($name != trim($name) || ! ctype_alpha($name[0])) {
>>
>> Hm ... are you passing an empty name, by chance?  That would make it
>> Solar's problem, it shouldn't accept empty names.  I'll fix that;
>> thanks.
>
> Thanks Paul, your update solved the problem, however was that a  
> pure Solar
> thing or am I doing something somewhere that I should not be, how  
> would I be
> passing an empty class name, is this not handled by Solar?

I'm not sure, and without an exception trace (which would not have  
been thrown in the earlier case) I can't tell where it would be  
coming from.  Sorry.  :-(




--

Paul M. Jones  <http://paul-m-jones.com>

Solar: Simple Object Library and Application Repository
for PHP5.   <http://solarphp.com>

Savant: The simple, elegant, and powerful solution for
templates in PHP.   <http://phpsavant.com>




More information about the solar-talk mailing list