#48204 [Ver->Asn]: xmlwriter_open_uri() accepts too long path

From: Date: Sat, 09 May 2009 20:57:47 +0000
Subject: #48204 [Ver->Asn]: xmlwriter_open_uri() accepts too long path
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-137062@lists.php.net to get a copy of this message
 ID:               48204
 Updated by:       jani@php.net
 Reported By:      koenk82 at gmail dot com
-Status:           Verified
+Status:           Assigned
 Bug Type:         XML Writer
 Operating System: *
 PHP Version:      5.3, 6CVS (2009-05-09)
-Assigned To:      
+Assigned To:      pajoye


Previous Comments:
------------------------------------------------------------------------

[2009-05-09 13:47:31] koenk82 at gmail dot com

Description:
------------
When passing a path longer than PHP_MAXPATHLEN to xmlwriter_open_uri()
it doesn't throw an error/warning.

Reproduce code:
---------------
<?php 
$path = str_repeat('a', PHP_MAXPATHLEN + 1);
var_dump(xmlwriter_open_uri('file:///' . $path));
?>



------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=48204&edit=1



Thread (4 messages)

« previous php.bugs (#137062) next »