pub struct PHPInfo(/* private fields */);Expand description
Output of php -i.
Implementations§
Source§impl PHPInfo
impl PHPInfo
Sourcepub fn get(php: &Path) -> Result<Self>
pub fn get(php: &Path) -> Result<Self>
Get the PHP info by running php -i.
§Errors
Returns an error if php -i command failed to execute successfully.
Sourcepub fn thread_safety(&self) -> Result<bool>
pub fn thread_safety(&self) -> Result<bool>
Checks if thread safety is enabled.
§Errors
Returns an error if PHPInfo does not contain thread safety information.
Sourcepub fn debug(&self) -> Result<bool>
pub fn debug(&self) -> Result<bool>
Checks if PHP was built with debug.
§Errors
Returns an error if PHPInfo does not contain debug build information.
Sourcepub fn zend_version(&self) -> Result<u32>
pub fn zend_version(&self) -> Result<u32>
Get the Zend API version number.
§Errors
Returns an error if PHPInfo does not contain PHP API version.
Auto Trait Implementations§
impl Freeze for PHPInfo
impl RefUnwindSafe for PHPInfo
impl Send for PHPInfo
impl Sync for PHPInfo
impl Unpin for PHPInfo
impl UnwindSafe for PHPInfo
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more