在show.php页面中,已经把类文件 v.php 包含进来:
require( APP_DIR."/client/v.php" );   //第11行
并且已经实例化:
$v=new _obfuscate_dg();   //第14行

解决方案 »

  1.   

    很显然,第11行的代码没有正确的执行你可在 第11行下面加一句
    print_r(get_declared_classes());
      

  2.   

    在第11行下面加一句
    print_r(get_declared_classes());
    之后,出现如下情况:
    Array ( [0] => stdClass [1] => Exception [2] => ErrorException [3] => COMPersistHelper [4] => com_exception [5] => com_safearray_proxy [6] => variant [7] => com [8] => dotnet [9] => ReflectionException [10] => Reflection [11] => ReflectionFunction [12] => ReflectionParameter [13] => ReflectionMethod [14] => ReflectionClass [15] => ReflectionObject [16] => ReflectionProperty [17] => ReflectionExtension [18] => LibXMLError [19] => __PHP_Incomplete_Class [20] => php_user_filter [21] => Directory [22] => SimpleXMLElement [23] => DOMException [24] => DOMStringList [25] => DOMNameList [26] => DOMImplementationList [27] => DOMImplementationSource [28] => DOMImplementation [29] => DOMNode [30] => DOMNameSpaceNode [31] => DOMDocumentFragment [32] => DOMDocument [33] => DOMNodeList [34] => DOMNamedNodeMap [35] => DOMCharacterData [36] => DOMAttr [37] => DOMElement [38] => DOMText [39] => DOMComment [40] => DOMTypeinfo [41] => DOMUserDataHandler [42] => DOMDomError [43] => DOMErrorHandler [44] => DOMLocator [45] => DOMConfiguration [46] => DOMCdataSection [47] => DOMDocumentType [48] => DOMNotation [49] => DOMEntity [50] => DOMEntityReference [51] => DOMProcessingInstruction [52] => DOMStringExtend [53] => DOMXPath [54] => RecursiveIteratorIterator [55] => IteratorIterator [56] => FilterIterator [57] => RecursiveFilterIterator [58] => ParentIterator [59] => LimitIterator [60] => CachingIterator [61] => RecursiveCachingIterator [62] => NoRewindIterator [63] => AppendIterator [64] => InfiniteIterator [65] => EmptyIterator [66] => ArrayObject [67] => ArrayIterator [68] => RecursiveArrayIterator [69] => SplFileInfo [70] => DirectoryIterator [71] => RecursiveDirectoryIterator [72] => SplFileObject [73] => SplTempFileObject [74] => SimpleXMLIterator [75] => LogicException [76] => BadFunctionCallException [77] => BadMethodCallException [78] => DomainException [79] => InvalidArgumentException [80] => LengthException [81] => OutOfRangeException [82] => RuntimeException [83] => OutOfBoundsException [84] => OverflowException [85] => RangeException [86] => UnderflowException [87] => UnexpectedValueException [88] => SplObjectStorage [89] => XMLReader [90] => XMLWriter [91] => XMLWriter [92] => XMLReader [93] => SplObjectStorage [94] => UnexpectedValueException [95] => UnderflowException [96] => RangeException [97] => OverflowException [98] => OutOfBoundsException [99] => RuntimeException [100] => OutOfRangeException [101] => LengthException [102] => InvalidArgumentException [103] => DomainException [104] => BadMethodCallException [105] => BadFunctionCallException [106] => LogicException [107] => SimpleXMLIterator [108] => SplTempFileObject [109] => SplFileObject [110] => RecursiveDirectoryIterator [111] => DirectoryIterator [112] => SplFileInfo [113] => RecursiveArrayIterator [114] => ArrayIterator [115] => ArrayObject [116] => EmptyIterator [117] => InfiniteIterator [118] => AppendIterator [119] => NoRewindIterator [120] => RecursiveCachingIterator [121] => CachingIterator [122] => LimitIterator [123] => ParentIterator [124] => RecursiveFilterIterator [125] => FilterIterator [126] => IteratorIterator [127] => RecursiveIteratorIterator [128] => DOMXPath [129] => DOMStringExtend [130] => DOMProcessingInstruction [131] => DOMEntityReference [132] => DOMEntity [133] => DOMNotation [134] => DOMDocumentType [135] => DOMCdataSection [136] => DOMConfiguration [137] => DOMLocator [138] => DOMErrorHandler [139] => DOMDomError [140] => DOMUserDataHandler [141] => DOMTypeinfo [142] => DOMComment [143] => DOMText [144] => DOMElement [145] => DOMAttr [146] => DOMCharacterData [147] => DOMNamedNodeMap [148] => DOMNodeList [149] => DOMDocument [150] => DOMDocumentFragment [151] => DOMNameSpaceNode [152] => DOMNode [153] => DOMImplementation [154] => DOMImplementationSource [155] => DOMImplementationList [156] => DOMNameList [157] => DOMStringList [158] => DOMException [159] => SimpleXMLElement [160] => Directory [161] => php_user_filter [162] => __PHP_Incomplete_Class [163] => LibXMLError [164] => ReflectionExtension [165] => ReflectionProperty [166] => ReflectionObject [167] => ReflectionClass [168] => ReflectionMethod [169] => ReflectionParameter [170] => ReflectionFunction [171] => Reflection [172] => ReflectionException [173] => dotnet [174] => com [175] => variant [176] => com_safearray_proxy [177] => com_exception [178] => COMPersistHelper [179] => ErrorException [180] => Exception [181] => stdClass [182] => v ) 
    Fatal error: Class '_obfuscate_dg' not found in F:\libo\lm\show.php on line 15接下来要如何判定呢?
      

  3.   

    我还以为你会自己分析呢这样吧
    $cls = '_obfuscate_dg';
    if(! in_array($cls, get_declared_classes()))
      echo "$cls 未定义";
      

  4.   

    嗯,阁下实在是高,佩服!结果得出了 :_obfuscate_dg 未定义可是这个类明明已经在 v.php 文件中定义了呀,晕了!