1--TEST-- 2Interface of the class mysqli_stmt - Reflection 3--SKIPIF-- 4<?php 5require_once('skipif.inc'); 6require_once('skipifemb.inc'); 7require_once('connect.inc'); 8 9if (($tmp = substr(PHP_VERSION, 0, strpos(PHP_VERSION, '.'))) && ($tmp < 5)) 10 die("skip Reflection not available before PHP 5 (found PHP $tmp)"); 11 12/* 13Let's not deal with cross-version issues in the EXPECTF/UEXPECTF. 14Most of the things which we test are covered by mysqli_class_*_interface.phpt. 15Those tests go into the details and are aimed to be a development tool, no more. 16*/ 17if (!$IS_MYSQLND) 18 die("skip Test has been written for the latest version of mysqlnd only"); 19if ($MYSQLND_VERSION < 50004) 20 die("skip Test requires mysqlnd Revision 5.0.4 or newer"); 21?> 22--FILE-- 23<?php 24 require_once('reflection_tools.inc'); 25 $class = new ReflectionClass('mysqli_warning'); 26 inspectClass($class); 27 print "done!\n"; 28?> 29--EXPECTF-- 30Inspecting class 'mysqli_warning' 31isInternal: yes 32isUserDefined: no 33isInstantiable: no 34isInterface: no 35isAbstract: no 36isFinal: yes 37isIteratable: no 38Modifiers: '%d' 39Parent Class: '' 40Extension: 'mysqli' 41 42Inspecting method '__construct' 43isFinal: no 44isAbstract: no 45isPublic: no 46isPrivate: no 47isProtected: yes 48isStatic: no 49isConstructor: yes 50isDestructor: no 51isInternal: yes 52isUserDefined: no 53returnsReference: no 54Modifiers: %d 55Number of Parameters: 0 56Number of Required Parameters: 0 57 58Inspecting method '__construct' 59isFinal: no 60isAbstract: no 61isPublic: no 62isPrivate: no 63isProtected: yes 64isStatic: no 65isConstructor: yes 66isDestructor: no 67isInternal: yes 68isUserDefined: no 69returnsReference: no 70Modifiers: %d 71Number of Parameters: 0 72Number of Required Parameters: 0 73 74Inspecting method 'next' 75isFinal: no 76isAbstract: no 77isPublic: yes 78isPrivate: no 79isProtected: no 80isStatic: no 81isConstructor: no 82isDestructor: no 83isInternal: yes 84isUserDefined: no 85returnsReference: no 86Modifiers: %d 87Number of Parameters: 0 88Number of Required Parameters: 0 89 90Inspecting property 'errno' 91isPublic: yes 92isPrivate: no 93isProtected: no 94isStatic: no 95isDefault: yes 96Modifiers: 256 97 98Inspecting property 'message' 99isPublic: yes 100isPrivate: no 101isProtected: no 102isStatic: no 103isDefault: yes 104Modifiers: 256 105 106Inspecting property 'sqlstate' 107isPublic: yes 108isPrivate: no 109isProtected: no 110isStatic: no 111isDefault: yes 112Modifiers: 256 113Default property 'errno' 114Default property 'message' 115Default property 'sqlstate' 116done! 117