TalkPHP
 
 
Account Login
Latest Articles
» The basic usage of PHPTAL, a XML/XHTML template library for PHP
» Vulnerable methods and the areas they are commonly trusted in.
» Simple way to protect a form from bot
» The Basics On: How Session Stealing Works
» How to keep your forms from double posting data
IRC Channel
IRC Speech Bubble Join the friendly bunch on IRC...
(#TalkPHP on Freenode)

...Also available via a web interface.

See this thread for information on the TalkPHP Free Hugs Initiative™. Subject to availability.
Associates
Associates
CSS Tutorials
Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old 07-29-2008, 09:10 PM   #1 (permalink)
is cute and cuddly
 
delayedinsanity's Avatar
 
Join Date: Mar 2008
Location: Vegas, Baby
Posts: 963
Thanks: 31
delayedinsanity is on a distinguished road
Default SALATHE!!! Reflection class?

Great time for you to be on vacation buddy! Maybe Kalle or somebody knows... I use PHPs built in reflection class in my registry pattern, but I just got an email from somebody who tried to install my package and got:

Fatal error: Call to undefined method ReflectionClass::newInstanceArgs() in /var/www/html/bin/lib/tuatara.class.php on line 200

The installer won't permit the user to install if they're not running php 5 (tested via version_compare(PHP_VERSION, '5.0.0', '>')) so I know it's not because they're running 4. Is there an early release of PHP 5 that didn't include the reflection API by chance? I checked the docs and it just says PHP 5, no specific version on when it came in.

I don't know what to tell this person, but if there's a specific version of 5 where Reflection was included, I need to know so I can update my installer.
-m
delayedinsanity is offline  
Reply With Quote
Old 07-29-2008, 09:32 PM   #2 (permalink)
The Frequenter
Zend Certified 
 
Join Date: Sep 2007
Location: Denmark
Posts: 352
Thanks: 8
Kalle is on a distinguished road
Default

PHP.net tells it all:

Quote:
Originally Posted by http://www.php.net/language.oop5.reflection
Note: hasConstant(), hasMethod(), hasProperty(), getStaticPropertyValue() and setStaticPropertyValue() were added in PHP 5.1.0, while newInstanceArgs() was added in PHP 5.1.3.
Its the only reason I could see why =)
__________________
Send a message via MSN to Kalle Send a message via Skype™ to Kalle
Kalle is offline  
Reply With Quote
Old 07-29-2008, 09:37 PM   #3 (permalink)
is cute and cuddly
 
delayedinsanity's Avatar
 
Join Date: Mar 2008
Location: Vegas, Baby
Posts: 963
Thanks: 31
delayedinsanity is on a distinguished road
Default

Damnit that's where I was looking too, and I didn't read to the end of the line.

delayedinsanity is offline  
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


All times are GMT. The time now is 03:52 AM.

 
     

Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0
Inactive Reminders By Icora Web Design