]> granicus.if.org Git - php/commitdiff
- MFB: Added conversion to string.
authorFelipe Pena <felipe@php.net>
Fri, 16 May 2008 03:11:56 +0000 (03:11 +0000)
committerFelipe Pena <felipe@php.net>
Fri, 16 May 2008 03:11:56 +0000 (03:11 +0000)
ext/standard/dl.c

index 03cc138d02c434c20e13c594ce816f3771f71494..f8092bb15db0f7809f182cab065181cb761cbaf1 100644 (file)
@@ -56,9 +56,11 @@ PHP_FUNCTION(dl)
 {
        zval *filename;
 
-       if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "z", &filename) == FAILURE) {
+       if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "z/", &filename) == FAILURE) {
                return;
        }
+       
+       convert_to_string(filename);
 
        if (Z_STRLEN_P(filename) >= MAXPATHLEN) {
                php_error_docref(NULL TSRMLS_CC, E_WARNING, "File name exceeds the maximum allowed length of %d characters", MAXPATHLEN);