我的drupal站点在托管了3个月后给了我这个错误...这是错误..
Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /home/hotsign1/public_html/posephotography.co.uk/index.php:1) in /home/hotsign1/public_html/posephotography.co.uk/includes/bootstrap.i
我有一个奇怪的行为,在我的程序中,双倍正在失去精度。我的cout显示了正确的值,但行为还是出乎意料。因此,我调试并发现,甚至gdb也显示了意想不到的值。以下只是简化的场景:
double length =2.11;
//gdb shows 2.10 here but prints 2.11 correctly using cout at the end
cout<<"length; //It prints 2.11 correctly here
通常,在生产场景中很难找到这样的问题,因为调试不是选项,唯一的选项是使用尽可能多的打印。有什么建议可以避免这个问题吗?