RETURN_THROWS();
}
+ if (!intern->file_name) {
+ zend_throw_error(NULL, "Object not initialized");
+ RETURN_THROWS();
+ }
+
spl_filesystem_object_get_path(intern, &path_len);
if (path_len && path_len < intern->file_name_len) {
RETURN_THROWS();
}
+ if (!intern->file_name) {
+ zend_throw_error(NULL, "Object not initialized");
+ RETURN_THROWS();
+ }
+
spl_filesystem_object_get_path(intern, &path_len);
if (path_len && path_len < intern->file_name_len) {
RETURN_THROWS();
}
+ if (!intern->file_name) {
+ zend_throw_error(NULL, "Object not initialized");
+ RETURN_THROWS();
+ }
+
spl_filesystem_object_get_path(intern, &path_len);
if (path_len && path_len < intern->file_name_len) {
} catch (Throwable $e) {
echo $e->getMessage() . "\n";
}
+try {
+ var_dump($x->getFilename());
+} catch (Throwable $e) {
+ echo $e->getMessage() . "\n";
+}
+try {
+ var_dump($x->getExtension());
+} catch (Throwable $e) {
+ echo $e->getMessage() . "\n";
+}
+try {
+ var_dump($x->getBasename());
+} catch (Throwable $e) {
+ echo $e->getMessage() . "\n";
+}
+?>
--EXPECT--
Object not initialized
+Object not initialized
+Object not initialized
+Object not initialized