48 文字
1 分
PHP5.0.5 bug

This might be a bug. I want to try this stiation using 5.1.2 but PDFlib runs only 5.1.x environment.

<?php
$num = 100;
// Doesn't work
header("Content-Length: $num");
// Works
header("Content-Length: ".$num);
// Works
print("test $num");
// Works
print("test ".$num);
?>

I spent 1 hour to find this tricky spec.

PHP5.0.5 bug
https://blog.teraren.com/posts/php505-bug/
作者
Yuki Matsukura
公開日
2006-01-24
ライセンス
CC BY-NC-SA 4.0

コメント