Ik mis geen include oid, hij herkend de class validate niet, en ik heb middels pear validate wel degelijk geinstalleerd.(en deze zit ook in het inculde path)
include_path .:/usr/share/php:/usr/share/pear
case ($val & DB_DATAOBJECT_STR):
$ret[$key] = Validate::string($this->$key, VALIDATE_PUNCTUATION . VALIDATE_NAME);
continue;
case ($val & DB_DATAOBJECT_INT):
$ret[$key] = Validate::number($this->$key, array('decimal'=>'.'));
continue;
Het gaat dus om het dikgedrukte stukje..... het vreemde is dat Validate::string dan wel schijnbaar werkt anders was hij daar stuk gelopen......
Humm blijkbaar mis ik validate wel, want als ik hem middels pear uninstall blijft de foutmelding hetzelfde 
iemand enig idee wat ik hier nu mis/over het hoofd zie.
Blijkbaar werkt validate zelf wel

, als ik de test uit validate draai, werken deze gewoon.
code:
1
| --TEST-- uri.phpt: Unit tests for Validate::uri() --FILE-- Test Validate::uri() not @ goodurl123: NO http://www.example.com//: YES http://www.example.com/: YES http://www.ics.uci.edu/pub/ietf/uri/#Related: YES http://user:password@www.ics.uci.edu:8080/pub/ietf/uri;rfc2396?test=ok&end=next#Related: YES //127.0.0.1: YES //127.0.333.1: NO http://user:password@127.0.0.1:8080/pub/ietf/uri;rfc2396?test=ok&end=next#Related: YES 127.0.0.1: NO //example.org/tkik-wkik_rss.php?ver=2http://www.hyperlecture.info//http://www.hyperlecture.info/accueil: NO //example-minus.com: YES //example.co-m: NO //example-.com: NO //-example.com: NO //-.com: NO //example.-com: NO //-example.com-: NO //php.net: schemes() with domain check : YES //example.gor: schemes() with domain check : YES //example.org: schemes(ftp,http) without domain check : NO http://example.org: schemes(ftp,http) without domain check : YES http://php.net: schemes(ftp,http) with domain check : YES //example.org/tkik-wkik_rss.php?ver=2http://www.hyperlecture.info//http://www.hyperlecture.info/accueil: schemes() without domain check : (strict : ) YES http://domain.tld//: YES http://domain.tld/.: YES http://domain.tld/./folder/.././/.folder/subfolder/../../: YES http://domain.tld//./: YES --EXPECT-- Test Validate::uri() not @ goodurl123: NO http://www.example.com//: YES http://www.example.com/: YES http://www.ics.uci.edu/pub/ietf/uri/#Related: YES http://user:password@www.ics.uci.edu:8080/pub/ietf/uri;rfc2396?test=ok&end=next#Related: YES //127.0.0.1: YES //127.0.333.1: NO http://user:password@127.0.0.1:8080/pub/ietf/uri;rfc2396?test=ok&end=next#Related: YES 127.0.0.1: NO //example.org/tkik-wkik_rss.php?ver=2http://www.hyperlecture.info//http://www.hyperlecture.info/accueil: NO //example-minus.com: YES //example.co-m: NO //example-.com: NO //-example.com: NO //-.com: NO //example.-com: NO //-example.com-: NO //php.net: schemes() with domain check : YES //example.gor: schemes() with domain check : NO //example.org: schemes(ftp,http) without domain check : NO http://example.org: schemes(ftp,http) without domain check : YES http://php.net: schemes(ftp,http) with domain check : YES //example.org/tkik-wkik_rss.php?ver=2http://www.hyperlecture.info//http://www.hyperlecture.info/accueil: schemes() without domain check : (strict : ) YES http://domain.tld//: YES http://domain.tld/.: YES http://domain.tld/./folder/.././/.folder/subfolder/../../: YES http://domain.tld//./: YES |
[
Voor 90% gewijzigd door
CrankyGamerOG op 25-09-2009 09:18
]